cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/reservation_affinity.pb.go (about)

     1  // Copyright 2025 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.35.2
    18  // 	protoc        v4.25.7
    19  // source: google/cloud/aiplatform/v1/reservation_affinity.proto
    20  
    21  package aiplatformpb
    22  
    23  import (
    24  	_ "google.golang.org/genproto/googleapis/api/annotations"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Identifies a type of reservation affinity.
    39  type ReservationAffinity_Type int32
    40  
    41  const (
    42  	// Default value. This should not be used.
    43  	ReservationAffinity_TYPE_UNSPECIFIED ReservationAffinity_Type = 0
    44  	// Do not consume from any reserved capacity, only use on-demand.
    45  	ReservationAffinity_NO_RESERVATION ReservationAffinity_Type = 1
    46  	// Consume any reservation available, falling back to on-demand.
    47  	ReservationAffinity_ANY_RESERVATION ReservationAffinity_Type = 2
    48  	// Consume from a specific reservation. When chosen, the reservation
    49  	// must be identified via the `key` and `values` fields.
    50  	ReservationAffinity_SPECIFIC_RESERVATION ReservationAffinity_Type = 3
    51  )
    52  
    53  // Enum value maps for ReservationAffinity_Type.
    54  var (
    55  	ReservationAffinity_Type_name = map[int32]string{
    56  		0: "TYPE_UNSPECIFIED",
    57  		1: "NO_RESERVATION",
    58  		2: "ANY_RESERVATION",
    59  		3: "SPECIFIC_RESERVATION",
    60  	}
    61  	ReservationAffinity_Type_value = map[string]int32{
    62  		"TYPE_UNSPECIFIED":     0,
    63  		"NO_RESERVATION":       1,
    64  		"ANY_RESERVATION":      2,
    65  		"SPECIFIC_RESERVATION": 3,
    66  	}
    67  )
    68  
    69  func (x ReservationAffinity_Type) Enum() *ReservationAffinity_Type {
    70  	p := new(ReservationAffinity_Type)
    71  	*p = x
    72  	return p
    73  }
    74  
    75  func (x ReservationAffinity_Type) String() string {
    76  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    77  }
    78  
    79  func (ReservationAffinity_Type) Descriptor() protoreflect.EnumDescriptor {
    80  	return file_google_cloud_aiplatform_v1_reservation_affinity_proto_enumTypes[0].Descriptor()
    81  }
    82  
    83  func (ReservationAffinity_Type) Type() protoreflect.EnumType {
    84  	return &file_google_cloud_aiplatform_v1_reservation_affinity_proto_enumTypes[0]
    85  }
    86  
    87  func (x ReservationAffinity_Type) Number() protoreflect.EnumNumber {
    88  	return protoreflect.EnumNumber(x)
    89  }
    90  
    91  // Deprecated: Use ReservationAffinity_Type.Descriptor instead.
    92  func (ReservationAffinity_Type) EnumDescriptor() ([]byte, []int) {
    93  	return file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescGZIP(), []int{0, 0}
    94  }
    95  
    96  // A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a
    97  // DeployedModel) to draw its Compute Engine resources from a Shared
    98  // Reservation, or exclusively from on-demand capacity.
    99  type ReservationAffinity struct {
   100  	state         protoimpl.MessageState
   101  	sizeCache     protoimpl.SizeCache
   102  	unknownFields protoimpl.UnknownFields
   103  
   104  	// Required. Specifies the reservation affinity type.
   105  	ReservationAffinityType ReservationAffinity_Type `protobuf:"varint,1,opt,name=reservation_affinity_type,json=reservationAffinityType,proto3,enum=google.cloud.aiplatform.v1.ReservationAffinity_Type" json:"reservation_affinity_type,omitempty"`
   106  	// Optional. Corresponds to the label key of a reservation resource. To target
   107  	// a SPECIFIC_RESERVATION by name, use
   108  	// `compute.googleapis.com/reservation-name` as the key and specify the name
   109  	// of your reservation as its value.
   110  	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   111  	// Optional. Corresponds to the label values of a reservation resource. This
   112  	// must be the full resource name of the reservation.
   113  	Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
   114  }
   115  
   116  func (x *ReservationAffinity) Reset() {
   117  	*x = ReservationAffinity{}
   118  	mi := &file_google_cloud_aiplatform_v1_reservation_affinity_proto_msgTypes[0]
   119  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  	ms.StoreMessageInfo(mi)
   121  }
   122  
   123  func (x *ReservationAffinity) String() string {
   124  	return protoimpl.X.MessageStringOf(x)
   125  }
   126  
   127  func (*ReservationAffinity) ProtoMessage() {}
   128  
   129  func (x *ReservationAffinity) ProtoReflect() protoreflect.Message {
   130  	mi := &file_google_cloud_aiplatform_v1_reservation_affinity_proto_msgTypes[0]
   131  	if x != nil {
   132  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   133  		if ms.LoadMessageInfo() == nil {
   134  			ms.StoreMessageInfo(mi)
   135  		}
   136  		return ms
   137  	}
   138  	return mi.MessageOf(x)
   139  }
   140  
   141  // Deprecated: Use ReservationAffinity.ProtoReflect.Descriptor instead.
   142  func (*ReservationAffinity) Descriptor() ([]byte, []int) {
   143  	return file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescGZIP(), []int{0}
   144  }
   145  
   146  func (x *ReservationAffinity) GetReservationAffinityType() ReservationAffinity_Type {
   147  	if x != nil {
   148  		return x.ReservationAffinityType
   149  	}
   150  	return ReservationAffinity_TYPE_UNSPECIFIED
   151  }
   152  
   153  func (x *ReservationAffinity) GetKey() string {
   154  	if x != nil {
   155  		return x.Key
   156  	}
   157  	return ""
   158  }
   159  
   160  func (x *ReservationAffinity) GetValues() []string {
   161  	if x != nil {
   162  		return x.Values
   163  	}
   164  	return nil
   165  }
   166  
   167  var File_google_cloud_aiplatform_v1_reservation_affinity_proto protoreflect.FileDescriptor
   168  
   169  var file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDesc = []byte{
   170  	0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
   171  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73,
   172  	0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74,
   173  	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   174  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
   175  	0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
   176  	0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,
   177  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
   178  	0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
   179  	0xc8, 0x02, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41,
   180  	0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x75, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x65, 0x72,
   181  	0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x5f,
   182  	0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f,
   183  	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74,
   184  	0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74,
   185  	0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65,
   186  	0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x17, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69,
   187  	0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15,
   188  	0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
   189  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
   190  	0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x01, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x63,
   191  	0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
   192  	0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f,
   193  	0x6e, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x5f, 0x0a, 0x04, 0x54, 0x79, 0x70,
   194  	0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
   195  	0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x4f, 0x5f, 0x52, 0x45,
   196  	0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41,
   197  	0x4e, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02,
   198  	0x12, 0x18, 0x0a, 0x14, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x43, 0x5f, 0x52, 0x45, 0x53,
   199  	0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0xcb, 0x02, 0xea, 0x41, 0x72,
   200  	0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   201  	0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61,
   202  	0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
   203  	0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x6f, 0x72, 0x5f, 0x6e, 0x75,
   204  	0x6d, 0x62, 0x65, 0x72, 0x7d, 0x2f, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x2f, 0x7b, 0x7a, 0x6f, 0x6e,
   205  	0x65, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
   206  	0x7b, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d,
   207  	0x65, 0x7d, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
   208  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
   209  	0x76, 0x31, 0x42, 0x18, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41,
   210  	0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e,
   211  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
   212  	0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61,
   213  	0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70,
   214  	0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02,
   215  	0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49,
   216  	0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f,
   217  	0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61,
   218  	0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
   219  	0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74,
   220  	0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   221  }
   222  
   223  var (
   224  	file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescOnce sync.Once
   225  	file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescData = file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDesc
   226  )
   227  
   228  func file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescGZIP() []byte {
   229  	file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescOnce.Do(func() {
   230  		file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescData)
   231  	})
   232  	return file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDescData
   233  }
   234  
   235  var file_google_cloud_aiplatform_v1_reservation_affinity_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   236  var file_google_cloud_aiplatform_v1_reservation_affinity_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   237  var file_google_cloud_aiplatform_v1_reservation_affinity_proto_goTypes = []any{
   238  	(ReservationAffinity_Type)(0), // 0: google.cloud.aiplatform.v1.ReservationAffinity.Type
   239  	(*ReservationAffinity)(nil),   // 1: google.cloud.aiplatform.v1.ReservationAffinity
   240  }
   241  var file_google_cloud_aiplatform_v1_reservation_affinity_proto_depIdxs = []int32{
   242  	0, // 0: google.cloud.aiplatform.v1.ReservationAffinity.reservation_affinity_type:type_name -> google.cloud.aiplatform.v1.ReservationAffinity.Type
   243  	1, // [1:1] is the sub-list for method output_type
   244  	1, // [1:1] is the sub-list for method input_type
   245  	1, // [1:1] is the sub-list for extension type_name
   246  	1, // [1:1] is the sub-list for extension extendee
   247  	0, // [0:1] is the sub-list for field type_name
   248  }
   249  
   250  func init() { file_google_cloud_aiplatform_v1_reservation_affinity_proto_init() }
   251  func file_google_cloud_aiplatform_v1_reservation_affinity_proto_init() {
   252  	if File_google_cloud_aiplatform_v1_reservation_affinity_proto != nil {
   253  		return
   254  	}
   255  	type x struct{}
   256  	out := protoimpl.TypeBuilder{
   257  		File: protoimpl.DescBuilder{
   258  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   259  			RawDescriptor: file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDesc,
   260  			NumEnums:      1,
   261  			NumMessages:   1,
   262  			NumExtensions: 0,
   263  			NumServices:   0,
   264  		},
   265  		GoTypes:           file_google_cloud_aiplatform_v1_reservation_affinity_proto_goTypes,
   266  		DependencyIndexes: file_google_cloud_aiplatform_v1_reservation_affinity_proto_depIdxs,
   267  		EnumInfos:         file_google_cloud_aiplatform_v1_reservation_affinity_proto_enumTypes,
   268  		MessageInfos:      file_google_cloud_aiplatform_v1_reservation_affinity_proto_msgTypes,
   269  	}.Build()
   270  	File_google_cloud_aiplatform_v1_reservation_affinity_proto = out.File
   271  	file_google_cloud_aiplatform_v1_reservation_affinity_proto_rawDesc = nil
   272  	file_google_cloud_aiplatform_v1_reservation_affinity_proto_goTypes = nil
   273  	file_google_cloud_aiplatform_v1_reservation_affinity_proto_depIdxs = nil
   274  }