cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/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/v1beta1/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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_api_auth_proto protoreflect.FileDescriptor
   156  
   157  var file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDesc = []byte{
   158  	0x0a, 0x2e, 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, 0x62, 0x65, 0x74, 0x61,
   160  	0x31, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   161  	0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
   162  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   163  	0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
   164  	0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
   165  	0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
   166  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x01,
   167  	0x0a, 0x07, 0x41, 0x70, 0x69, 0x41, 0x75, 0x74, 0x68, 0x12, 0x5d, 0x0a, 0x0e, 0x61, 0x70, 0x69,
   168  	0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
   169  	0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   170  	0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65,
   171  	0x74, 0x61, 0x31, 0x2e, 0x41, 0x70, 0x69, 0x41, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x70, 0x69, 0x4b,
   172  	0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x70, 0x69, 0x4b,
   173  	0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x77, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x4b,
   174  	0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x67, 0x0a, 0x16, 0x61, 0x70, 0x69, 0x5f,
   175  	0x6b, 0x65, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
   176  	0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2c,
   177  	0x0a, 0x2a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e,
   178  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53,
   179  	0x65, 0x63, 0x72, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x61, 0x70,
   180  	0x69, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
   181  	0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   182  	0x42, 0xe3, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   183  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
   184  	0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x41, 0x70, 0x69, 0x41, 0x75, 0x74,
   185  	0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   186  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69,
   187  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65,
   188  	0x74, 0x61, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62,
   189  	0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1f,
   190  	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50,
   191  	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca,
   192  	0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41,
   193  	0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
   194  	0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75,
   195  	0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56,
   196  	0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   197  }
   198  
   199  var (
   200  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescOnce sync.Once
   201  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDesc
   202  )
   203  
   204  func file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescGZIP() []byte {
   205  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescOnce.Do(func() {
   206  		file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescData)
   207  	})
   208  	return file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDescData
   209  }
   210  
   211  var file_google_cloud_aiplatform_v1beta1_api_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   212  var file_google_cloud_aiplatform_v1beta1_api_auth_proto_goTypes = []any{
   213  	(*ApiAuth)(nil),              // 0: google.cloud.aiplatform.v1beta1.ApiAuth
   214  	(*ApiAuth_ApiKeyConfig)(nil), // 1: google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig
   215  }
   216  var file_google_cloud_aiplatform_v1beta1_api_auth_proto_depIdxs = []int32{
   217  	1, // 0: google.cloud.aiplatform.v1beta1.ApiAuth.api_key_config:type_name -> google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig
   218  	1, // [1:1] is the sub-list for method output_type
   219  	1, // [1:1] is the sub-list for method input_type
   220  	1, // [1:1] is the sub-list for extension type_name
   221  	1, // [1:1] is the sub-list for extension extendee
   222  	0, // [0:1] is the sub-list for field type_name
   223  }
   224  
   225  func init() { file_google_cloud_aiplatform_v1beta1_api_auth_proto_init() }
   226  func file_google_cloud_aiplatform_v1beta1_api_auth_proto_init() {
   227  	if File_google_cloud_aiplatform_v1beta1_api_auth_proto != nil {
   228  		return
   229  	}
   230  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_msgTypes[0].OneofWrappers = []any{
   231  		(*ApiAuth_ApiKeyConfig_)(nil),
   232  	}
   233  	type x struct{}
   234  	out := protoimpl.TypeBuilder{
   235  		File: protoimpl.DescBuilder{
   236  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   237  			RawDescriptor: file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDesc,
   238  			NumEnums:      0,
   239  			NumMessages:   2,
   240  			NumExtensions: 0,
   241  			NumServices:   0,
   242  		},
   243  		GoTypes:           file_google_cloud_aiplatform_v1beta1_api_auth_proto_goTypes,
   244  		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_api_auth_proto_depIdxs,
   245  		MessageInfos:      file_google_cloud_aiplatform_v1beta1_api_auth_proto_msgTypes,
   246  	}.Build()
   247  	File_google_cloud_aiplatform_v1beta1_api_auth_proto = out.File
   248  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_rawDesc = nil
   249  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_goTypes = nil
   250  	file_google_cloud_aiplatform_v1beta1_api_auth_proto_depIdxs = nil
   251  }