// 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.databasecenter.v1beta;

import "google/api/field_behavior.proto";

option csharp_namespace = "Google.Cloud.DatabaseCenter.V1Beta";
option go_package = "cloud.google.com/go/databasecenter/apiv1beta/databasecenterpb;databasecenterpb";
option java_multiple_files = true;
option java_outer_classname = "MachineConfigProto";
option java_package = "com.google.cloud.databasecenter.v1beta";
option php_namespace = "Google\\Cloud\\DatabaseCenter\\V1beta";
option ruby_package = "Google::Cloud::DatabaseCenter::V1beta";

// MachineConfig describes the configuration of a machine specific to a Database
// Resource.
message MachineConfig {
  // Memory size in bytes.
  int64 memory_size_bytes = 2;

  // Optional. The number of Shards (if applicable).
  optional int32 shard_count = 3 [(google.api.field_behavior) = OPTIONAL];

  // Optional. The number of vCPUs (if applicable).
  optional double vcpu_count = 4 [(google.api.field_behavior) = OPTIONAL];

  // Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
  // increments of 50.
  optional int64 baseline_slot_count = 5
      [(google.api.field_behavior) = OPTIONAL];

  // Optional. Max slots for BigQuery Reservations. Max slots are in increments
  // of 50.
  optional int64 max_reservation_slot_count = 6
      [(google.api.field_behavior) = OPTIONAL];
}
