// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.cloud.aiplatform.v1beta1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/aiplatform/v1beta1/reasoning_engine.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb";
option java_multiple_files = true;
option java_outer_classname = "ReasoningEngineRuntimeRevisionProto";
option java_package = "com.google.cloud.aiplatform.v1beta1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
option ruby_package = "Google::Cloud::AIPlatform::V1beta1";

// ReasoningEngineRuntimeRevision is a specific version of the runtime related
// part of ReasoningEngine. Contains only the fields that are revision specific.
message ReasoningEngineRuntimeRevision {
  option (google.api.resource) = {
    type: "aiplatform.googleapis.com/ReasoningEngineRuntimeRevision"
    pattern: "projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/runtimeRevisions/{runtime_revision}"
    plural: "reasoningEngineRuntimeRevisions"
    singular: "reasoningEngineRuntimeRevision"
  };

  // Possible values of the state of the revision.
  enum State {
    // The unspecified state.
    STATE_UNSPECIFIED = 0;

    // Is deployed and ready to be used.
    ACTIVE = 1;

    // Is deprecated, may not be used, only preserved for historical
    // purposes.
    DEPRECATED = 2;
  }

  // Identifier. The resource name of the ReasoningEngineRuntimeRevision.
  // Format:
  // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/runtimeRevisions/{runtime_revision}`
  string name = 1 [(google.api.field_behavior) = IDENTIFIER];

  // Immutable. Configurations of the ReasoningEngineRuntimeRevision. Contains
  // only revision specific fields.
  ReasoningEngineSpec spec = 3 [(google.api.field_behavior) = IMMUTABLE];

  // Output only. Timestamp when this ReasoningEngineRuntimeRevision was
  // created.
  google.protobuf.Timestamp create_time = 4
      [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The state of the revision.
  State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
}
