cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/api_auth.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/api_auth.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 // The generic reusable api auth config. 39 type ApiAuth struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // The auth config. 45 // 46 // Types that are assignable to AuthConfig: 47 // 48 // *ApiAuth_ApiKeyConfig_ 49 AuthConfig isApiAuth_AuthConfig `protobuf_oneof:"auth_config"` 50 } 51 52 func (x *ApiAuth) Reset() { 53 *x = ApiAuth{} 54 mi := &file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 59 func (x *ApiAuth) String() string { 60 return protoimpl.X.MessageStringOf(x) 61 } 62 63 func (*ApiAuth) ProtoMessage() {} 64 65 func (x *ApiAuth) ProtoReflect() protoreflect.Message { 66 mi := &file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes[0] 67 if x != nil { 68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 69 if ms.LoadMessageInfo() == nil { 70 ms.StoreMessageInfo(mi) 71 } 72 return ms 73 } 74 return mi.MessageOf(x) 75 } 76 77 // Deprecated: Use ApiAuth.ProtoReflect.Descriptor instead. 78 func (*ApiAuth) Descriptor() ([]byte, []int) { 79 return file_google_cloud_aiplatform_v1_api_auth_proto_rawDescGZIP(), []int{0} 80 } 81 82 func (m *ApiAuth) GetAuthConfig() isApiAuth_AuthConfig { 83 if m != nil { 84 return m.AuthConfig 85 } 86 return nil 87 } 88 89 func (x *ApiAuth) GetApiKeyConfig() *ApiAuth_ApiKeyConfig { 90 if x, ok := x.GetAuthConfig().(*ApiAuth_ApiKeyConfig_); ok { 91 return x.ApiKeyConfig 92 } 93 return nil 94 } 95 96 type isApiAuth_AuthConfig interface { 97 isApiAuth_AuthConfig() 98 } 99 100 type ApiAuth_ApiKeyConfig_ struct { 101 // The API secret. 102 ApiKeyConfig *ApiAuth_ApiKeyConfig `protobuf:"bytes,1,opt,name=api_key_config,json=apiKeyConfig,proto3,oneof"` 103 } 104 105 func (*ApiAuth_ApiKeyConfig_) isApiAuth_AuthConfig() {} 106 107 // The API secret. 108 type ApiAuth_ApiKeyConfig struct { 109 state protoimpl.MessageState 110 sizeCache protoimpl.SizeCache 111 unknownFields protoimpl.UnknownFields 112 113 // Required. The SecretManager secret version resource name storing API key. 114 // e.g. projects/{project}/secrets/{secret}/versions/{version} 115 ApiKeySecretVersion string `protobuf:"bytes,1,opt,name=api_key_secret_version,json=apiKeySecretVersion,proto3" json:"api_key_secret_version,omitempty"` 116 } 117 118 func (x *ApiAuth_ApiKeyConfig) Reset() { 119 *x = ApiAuth_ApiKeyConfig{} 120 mi := &file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes[1] 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 ms.StoreMessageInfo(mi) 123 } 124 125 func (x *ApiAuth_ApiKeyConfig) String() string { 126 return protoimpl.X.MessageStringOf(x) 127 } 128 129 func (*ApiAuth_ApiKeyConfig) ProtoMessage() {} 130 131 func (x *ApiAuth_ApiKeyConfig) ProtoReflect() protoreflect.Message { 132 mi := &file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes[1] 133 if x != nil { 134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 135 if ms.LoadMessageInfo() == nil { 136 ms.StoreMessageInfo(mi) 137 } 138 return ms 139 } 140 return mi.MessageOf(x) 141 } 142 143 // Deprecated: Use ApiAuth_ApiKeyConfig.ProtoReflect.Descriptor instead. 144 func (*ApiAuth_ApiKeyConfig) Descriptor() ([]byte, []int) { 145 return file_google_cloud_aiplatform_v1_api_auth_proto_rawDescGZIP(), []int{0, 0} 146 } 147 148 func (x *ApiAuth_ApiKeyConfig) GetApiKeySecretVersion() string { 149 if x != nil { 150 return x.ApiKeySecretVersion 151 } 152 return "" 153 } 154 155 var File_google_cloud_aiplatform_v1_api_auth_proto protoreflect.FileDescriptor 156 157 var file_google_cloud_aiplatform_v1_api_auth_proto_rawDesc = []byte{ 158 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 159 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 160 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 161 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 162 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 163 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 164 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 165 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 166 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x01, 0x0a, 0x07, 0x41, 0x70, 0x69, 0x41, 0x75, 0x74, 0x68, 0x12, 167 0x58, 0x0a, 0x0e, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 168 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 169 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 170 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x69, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x70, 0x69, 171 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x70, 0x69, 172 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x77, 0x0a, 0x0c, 0x41, 0x70, 0x69, 173 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x67, 0x0a, 0x16, 0x61, 0x70, 0x69, 174 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 175 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xe0, 0x41, 0x02, 0xfa, 0x41, 176 0x2c, 0x0a, 0x2a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 177 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 178 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x61, 179 0x70, 0x69, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 180 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 181 0x67, 0x42, 0xb8, 0x02, 0xea, 0x41, 0x6b, 0x0a, 0x2a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x6d, 182 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 183 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 184 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 185 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 186 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x7d, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 187 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 188 0x6e, 0x7d, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 189 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 190 0x76, 0x31, 0x42, 0x0c, 0x41, 0x70, 0x69, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 191 0x50, 0x01, 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 192 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 193 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 194 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 195 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 196 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 197 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 198 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 199 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 200 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 201 0x6f, 0x74, 0x6f, 0x33, 202 } 203 204 var ( 205 file_google_cloud_aiplatform_v1_api_auth_proto_rawDescOnce sync.Once 206 file_google_cloud_aiplatform_v1_api_auth_proto_rawDescData = file_google_cloud_aiplatform_v1_api_auth_proto_rawDesc 207 ) 208 209 func file_google_cloud_aiplatform_v1_api_auth_proto_rawDescGZIP() []byte { 210 file_google_cloud_aiplatform_v1_api_auth_proto_rawDescOnce.Do(func() { 211 file_google_cloud_aiplatform_v1_api_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_api_auth_proto_rawDescData) 212 }) 213 return file_google_cloud_aiplatform_v1_api_auth_proto_rawDescData 214 } 215 216 var file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 217 var file_google_cloud_aiplatform_v1_api_auth_proto_goTypes = []any{ 218 (*ApiAuth)(nil), // 0: google.cloud.aiplatform.v1.ApiAuth 219 (*ApiAuth_ApiKeyConfig)(nil), // 1: google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig 220 } 221 var file_google_cloud_aiplatform_v1_api_auth_proto_depIdxs = []int32{ 222 1, // 0: google.cloud.aiplatform.v1.ApiAuth.api_key_config:type_name -> google.cloud.aiplatform.v1.ApiAuth.ApiKeyConfig 223 1, // [1:1] is the sub-list for method output_type 224 1, // [1:1] is the sub-list for method input_type 225 1, // [1:1] is the sub-list for extension type_name 226 1, // [1:1] is the sub-list for extension extendee 227 0, // [0:1] is the sub-list for field type_name 228 } 229 230 func init() { file_google_cloud_aiplatform_v1_api_auth_proto_init() } 231 func file_google_cloud_aiplatform_v1_api_auth_proto_init() { 232 if File_google_cloud_aiplatform_v1_api_auth_proto != nil { 233 return 234 } 235 file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes[0].OneofWrappers = []any{ 236 (*ApiAuth_ApiKeyConfig_)(nil), 237 } 238 type x struct{} 239 out := protoimpl.TypeBuilder{ 240 File: protoimpl.DescBuilder{ 241 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 242 RawDescriptor: file_google_cloud_aiplatform_v1_api_auth_proto_rawDesc, 243 NumEnums: 0, 244 NumMessages: 2, 245 NumExtensions: 0, 246 NumServices: 0, 247 }, 248 GoTypes: file_google_cloud_aiplatform_v1_api_auth_proto_goTypes, 249 DependencyIndexes: file_google_cloud_aiplatform_v1_api_auth_proto_depIdxs, 250 MessageInfos: file_google_cloud_aiplatform_v1_api_auth_proto_msgTypes, 251 }.Build() 252 File_google_cloud_aiplatform_v1_api_auth_proto = out.File 253 file_google_cloud_aiplatform_v1_api_auth_proto_rawDesc = nil 254 file_google_cloud_aiplatform_v1_api_auth_proto_goTypes = nil 255 file_google_cloud_aiplatform_v1_api_auth_proto_depIdxs = nil 256 }