cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/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/v1beta1/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_v1beta1_reservation_affinity_proto_enumTypes[0].Descriptor() 81 } 82 83 func (ReservationAffinity_Type) Type() protoreflect.EnumType { 84 return &file_google_cloud_aiplatform_v1beta1_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_v1beta1_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.v1beta1.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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_reservation_affinity_proto protoreflect.FileDescriptor 168 169 var file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDesc = []byte{ 170 0x0a, 0x3a, 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, 0x62, 0x65, 0x74, 0x61, 172 0x31, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x66, 173 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 174 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 175 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 176 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 177 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 178 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 179 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x02, 0x0a, 0x13, 0x52, 0x65, 180 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 181 0x79, 0x12, 0x7a, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 182 0x5f, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 183 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 184 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 185 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 186 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x42, 187 0x03, 0xe0, 0x41, 0x02, 0x52, 0x17, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 188 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 189 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 190 0x03, 0x6b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 191 0x20, 0x03, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x01, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x63, 0x6f, 192 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 193 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 194 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x5f, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 195 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 196 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4e, 0x4f, 0x5f, 0x52, 0x45, 0x53, 197 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x4e, 198 0x59, 0x5f, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 199 0x18, 0x0a, 0x14, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x43, 0x5f, 0x52, 0x45, 0x53, 0x45, 200 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0xe4, 0x02, 0xea, 0x41, 0x72, 0x0a, 201 0x22, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 202 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 203 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 204 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x6f, 0x72, 0x5f, 0x6e, 0x75, 0x6d, 205 0x62, 0x65, 0x72, 0x7d, 0x2f, 0x7a, 0x6f, 0x6e, 0x65, 0x73, 0x2f, 0x7b, 0x7a, 0x6f, 0x6e, 0x65, 206 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 207 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 208 0x7d, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 209 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 210 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x18, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 211 0x69, 0x6f, 0x6e, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 212 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 213 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 214 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x69, 215 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 216 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 217 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 218 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 219 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 220 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 221 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 222 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 223 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 224 } 225 226 var ( 227 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescOnce sync.Once 228 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDesc 229 ) 230 231 func file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescGZIP() []byte { 232 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescOnce.Do(func() { 233 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescData) 234 }) 235 return file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDescData 236 } 237 238 var file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 239 var file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 240 var file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_goTypes = []any{ 241 (ReservationAffinity_Type)(0), // 0: google.cloud.aiplatform.v1beta1.ReservationAffinity.Type 242 (*ReservationAffinity)(nil), // 1: google.cloud.aiplatform.v1beta1.ReservationAffinity 243 } 244 var file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_depIdxs = []int32{ 245 0, // 0: google.cloud.aiplatform.v1beta1.ReservationAffinity.reservation_affinity_type:type_name -> google.cloud.aiplatform.v1beta1.ReservationAffinity.Type 246 1, // [1:1] is the sub-list for method output_type 247 1, // [1:1] is the sub-list for method input_type 248 1, // [1:1] is the sub-list for extension type_name 249 1, // [1:1] is the sub-list for extension extendee 250 0, // [0:1] is the sub-list for field type_name 251 } 252 253 func init() { file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_init() } 254 func file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_init() { 255 if File_google_cloud_aiplatform_v1beta1_reservation_affinity_proto != nil { 256 return 257 } 258 type x struct{} 259 out := protoimpl.TypeBuilder{ 260 File: protoimpl.DescBuilder{ 261 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 262 RawDescriptor: file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDesc, 263 NumEnums: 1, 264 NumMessages: 1, 265 NumExtensions: 0, 266 NumServices: 0, 267 }, 268 GoTypes: file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_goTypes, 269 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_depIdxs, 270 EnumInfos: file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_enumTypes, 271 MessageInfos: file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_msgTypes, 272 }.Build() 273 File_google_cloud_aiplatform_v1beta1_reservation_affinity_proto = out.File 274 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_rawDesc = nil 275 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_goTypes = nil 276 file_google_cloud_aiplatform_v1beta1_reservation_affinity_proto_depIdxs = nil 277 }