...

Source file src/google.golang.org/genproto/googleapis/cloud/connectors/v1/authconfig.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/connectors/v1

     1  // Copyright 2022 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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/cloud/connectors/v1/authconfig.proto
    20  
    21  package connectors
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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  // AuthType defines different authentication types.
    39  type AuthType int32
    40  
    41  const (
    42  	// Authentication type not specified.
    43  	AuthType_AUTH_TYPE_UNSPECIFIED AuthType = 0
    44  	// Username and Password Authentication.
    45  	AuthType_USER_PASSWORD AuthType = 1
    46  	// JSON Web Token (JWT) Profile for Oauth 2.0
    47  	// Authorization Grant based authentication
    48  	AuthType_OAUTH2_JWT_BEARER AuthType = 2
    49  	// Oauth 2.0 Client Credentials Grant Authentication
    50  	AuthType_OAUTH2_CLIENT_CREDENTIALS AuthType = 3
    51  	// SSH Public Key Authentication
    52  	AuthType_SSH_PUBLIC_KEY AuthType = 4
    53  )
    54  
    55  // Enum value maps for AuthType.
    56  var (
    57  	AuthType_name = map[int32]string{
    58  		0: "AUTH_TYPE_UNSPECIFIED",
    59  		1: "USER_PASSWORD",
    60  		2: "OAUTH2_JWT_BEARER",
    61  		3: "OAUTH2_CLIENT_CREDENTIALS",
    62  		4: "SSH_PUBLIC_KEY",
    63  	}
    64  	AuthType_value = map[string]int32{
    65  		"AUTH_TYPE_UNSPECIFIED":     0,
    66  		"USER_PASSWORD":             1,
    67  		"OAUTH2_JWT_BEARER":         2,
    68  		"OAUTH2_CLIENT_CREDENTIALS": 3,
    69  		"SSH_PUBLIC_KEY":            4,
    70  	}
    71  )
    72  
    73  func (x AuthType) Enum() *AuthType {
    74  	p := new(AuthType)
    75  	*p = x
    76  	return p
    77  }
    78  
    79  func (x AuthType) String() string {
    80  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    81  }
    82  
    83  func (AuthType) Descriptor() protoreflect.EnumDescriptor {
    84  	return file_google_cloud_connectors_v1_authconfig_proto_enumTypes[0].Descriptor()
    85  }
    86  
    87  func (AuthType) Type() protoreflect.EnumType {
    88  	return &file_google_cloud_connectors_v1_authconfig_proto_enumTypes[0]
    89  }
    90  
    91  func (x AuthType) Number() protoreflect.EnumNumber {
    92  	return protoreflect.EnumNumber(x)
    93  }
    94  
    95  // Deprecated: Use AuthType.Descriptor instead.
    96  func (AuthType) EnumDescriptor() ([]byte, []int) {
    97  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0}
    98  }
    99  
   100  // AuthConfig defines details of a authentication type.
   101  type AuthConfig struct {
   102  	state         protoimpl.MessageState
   103  	sizeCache     protoimpl.SizeCache
   104  	unknownFields protoimpl.UnknownFields
   105  
   106  	// The type of authentication configured.
   107  	AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=google.cloud.connectors.v1.AuthType" json:"auth_type,omitempty"`
   108  	// Supported auth types.
   109  	//
   110  	// Types that are assignable to Type:
   111  	//
   112  	//	*AuthConfig_UserPassword_
   113  	//	*AuthConfig_Oauth2JwtBearer_
   114  	//	*AuthConfig_Oauth2ClientCredentials_
   115  	//	*AuthConfig_SshPublicKey_
   116  	Type isAuthConfig_Type `protobuf_oneof:"type"`
   117  	// List containing additional auth configs.
   118  	AdditionalVariables []*ConfigVariable `protobuf:"bytes,5,rep,name=additional_variables,json=additionalVariables,proto3" json:"additional_variables,omitempty"`
   119  }
   120  
   121  func (x *AuthConfig) Reset() {
   122  	*x = AuthConfig{}
   123  	if protoimpl.UnsafeEnabled {
   124  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[0]
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		ms.StoreMessageInfo(mi)
   127  	}
   128  }
   129  
   130  func (x *AuthConfig) String() string {
   131  	return protoimpl.X.MessageStringOf(x)
   132  }
   133  
   134  func (*AuthConfig) ProtoMessage() {}
   135  
   136  func (x *AuthConfig) ProtoReflect() protoreflect.Message {
   137  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[0]
   138  	if protoimpl.UnsafeEnabled && x != nil {
   139  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   140  		if ms.LoadMessageInfo() == nil {
   141  			ms.StoreMessageInfo(mi)
   142  		}
   143  		return ms
   144  	}
   145  	return mi.MessageOf(x)
   146  }
   147  
   148  // Deprecated: Use AuthConfig.ProtoReflect.Descriptor instead.
   149  func (*AuthConfig) Descriptor() ([]byte, []int) {
   150  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0}
   151  }
   152  
   153  func (x *AuthConfig) GetAuthType() AuthType {
   154  	if x != nil {
   155  		return x.AuthType
   156  	}
   157  	return AuthType_AUTH_TYPE_UNSPECIFIED
   158  }
   159  
   160  func (m *AuthConfig) GetType() isAuthConfig_Type {
   161  	if m != nil {
   162  		return m.Type
   163  	}
   164  	return nil
   165  }
   166  
   167  func (x *AuthConfig) GetUserPassword() *AuthConfig_UserPassword {
   168  	if x, ok := x.GetType().(*AuthConfig_UserPassword_); ok {
   169  		return x.UserPassword
   170  	}
   171  	return nil
   172  }
   173  
   174  func (x *AuthConfig) GetOauth2JwtBearer() *AuthConfig_Oauth2JwtBearer {
   175  	if x, ok := x.GetType().(*AuthConfig_Oauth2JwtBearer_); ok {
   176  		return x.Oauth2JwtBearer
   177  	}
   178  	return nil
   179  }
   180  
   181  func (x *AuthConfig) GetOauth2ClientCredentials() *AuthConfig_Oauth2ClientCredentials {
   182  	if x, ok := x.GetType().(*AuthConfig_Oauth2ClientCredentials_); ok {
   183  		return x.Oauth2ClientCredentials
   184  	}
   185  	return nil
   186  }
   187  
   188  func (x *AuthConfig) GetSshPublicKey() *AuthConfig_SshPublicKey {
   189  	if x, ok := x.GetType().(*AuthConfig_SshPublicKey_); ok {
   190  		return x.SshPublicKey
   191  	}
   192  	return nil
   193  }
   194  
   195  func (x *AuthConfig) GetAdditionalVariables() []*ConfigVariable {
   196  	if x != nil {
   197  		return x.AdditionalVariables
   198  	}
   199  	return nil
   200  }
   201  
   202  type isAuthConfig_Type interface {
   203  	isAuthConfig_Type()
   204  }
   205  
   206  type AuthConfig_UserPassword_ struct {
   207  	// UserPassword.
   208  	UserPassword *AuthConfig_UserPassword `protobuf:"bytes,2,opt,name=user_password,json=userPassword,proto3,oneof"`
   209  }
   210  
   211  type AuthConfig_Oauth2JwtBearer_ struct {
   212  	// Oauth2JwtBearer.
   213  	Oauth2JwtBearer *AuthConfig_Oauth2JwtBearer `protobuf:"bytes,3,opt,name=oauth2_jwt_bearer,json=oauth2JwtBearer,proto3,oneof"`
   214  }
   215  
   216  type AuthConfig_Oauth2ClientCredentials_ struct {
   217  	// Oauth2ClientCredentials.
   218  	Oauth2ClientCredentials *AuthConfig_Oauth2ClientCredentials `protobuf:"bytes,4,opt,name=oauth2_client_credentials,json=oauth2ClientCredentials,proto3,oneof"`
   219  }
   220  
   221  type AuthConfig_SshPublicKey_ struct {
   222  	// SSH Public Key.
   223  	SshPublicKey *AuthConfig_SshPublicKey `protobuf:"bytes,6,opt,name=ssh_public_key,json=sshPublicKey,proto3,oneof"`
   224  }
   225  
   226  func (*AuthConfig_UserPassword_) isAuthConfig_Type() {}
   227  
   228  func (*AuthConfig_Oauth2JwtBearer_) isAuthConfig_Type() {}
   229  
   230  func (*AuthConfig_Oauth2ClientCredentials_) isAuthConfig_Type() {}
   231  
   232  func (*AuthConfig_SshPublicKey_) isAuthConfig_Type() {}
   233  
   234  // AuthConfigTemplate defines required field over an authentication type.
   235  type AuthConfigTemplate struct {
   236  	state         protoimpl.MessageState
   237  	sizeCache     protoimpl.SizeCache
   238  	unknownFields protoimpl.UnknownFields
   239  
   240  	// The type of authentication configured.
   241  	AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=google.cloud.connectors.v1.AuthType" json:"auth_type,omitempty"`
   242  	// Config variables to describe an `AuthConfig` for a `Connection`.
   243  	ConfigVariableTemplates []*ConfigVariableTemplate `protobuf:"bytes,2,rep,name=config_variable_templates,json=configVariableTemplates,proto3" json:"config_variable_templates,omitempty"`
   244  }
   245  
   246  func (x *AuthConfigTemplate) Reset() {
   247  	*x = AuthConfigTemplate{}
   248  	if protoimpl.UnsafeEnabled {
   249  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[1]
   250  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   251  		ms.StoreMessageInfo(mi)
   252  	}
   253  }
   254  
   255  func (x *AuthConfigTemplate) String() string {
   256  	return protoimpl.X.MessageStringOf(x)
   257  }
   258  
   259  func (*AuthConfigTemplate) ProtoMessage() {}
   260  
   261  func (x *AuthConfigTemplate) ProtoReflect() protoreflect.Message {
   262  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[1]
   263  	if protoimpl.UnsafeEnabled && x != nil {
   264  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   265  		if ms.LoadMessageInfo() == nil {
   266  			ms.StoreMessageInfo(mi)
   267  		}
   268  		return ms
   269  	}
   270  	return mi.MessageOf(x)
   271  }
   272  
   273  // Deprecated: Use AuthConfigTemplate.ProtoReflect.Descriptor instead.
   274  func (*AuthConfigTemplate) Descriptor() ([]byte, []int) {
   275  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{1}
   276  }
   277  
   278  func (x *AuthConfigTemplate) GetAuthType() AuthType {
   279  	if x != nil {
   280  		return x.AuthType
   281  	}
   282  	return AuthType_AUTH_TYPE_UNSPECIFIED
   283  }
   284  
   285  func (x *AuthConfigTemplate) GetConfigVariableTemplates() []*ConfigVariableTemplate {
   286  	if x != nil {
   287  		return x.ConfigVariableTemplates
   288  	}
   289  	return nil
   290  }
   291  
   292  // Parameters to support Username and Password Authentication.
   293  type AuthConfig_UserPassword struct {
   294  	state         protoimpl.MessageState
   295  	sizeCache     protoimpl.SizeCache
   296  	unknownFields protoimpl.UnknownFields
   297  
   298  	// Username.
   299  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
   300  	// Secret version reference containing the password.
   301  	Password *Secret `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
   302  }
   303  
   304  func (x *AuthConfig_UserPassword) Reset() {
   305  	*x = AuthConfig_UserPassword{}
   306  	if protoimpl.UnsafeEnabled {
   307  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[2]
   308  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   309  		ms.StoreMessageInfo(mi)
   310  	}
   311  }
   312  
   313  func (x *AuthConfig_UserPassword) String() string {
   314  	return protoimpl.X.MessageStringOf(x)
   315  }
   316  
   317  func (*AuthConfig_UserPassword) ProtoMessage() {}
   318  
   319  func (x *AuthConfig_UserPassword) ProtoReflect() protoreflect.Message {
   320  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[2]
   321  	if protoimpl.UnsafeEnabled && x != nil {
   322  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   323  		if ms.LoadMessageInfo() == nil {
   324  			ms.StoreMessageInfo(mi)
   325  		}
   326  		return ms
   327  	}
   328  	return mi.MessageOf(x)
   329  }
   330  
   331  // Deprecated: Use AuthConfig_UserPassword.ProtoReflect.Descriptor instead.
   332  func (*AuthConfig_UserPassword) Descriptor() ([]byte, []int) {
   333  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0, 0}
   334  }
   335  
   336  func (x *AuthConfig_UserPassword) GetUsername() string {
   337  	if x != nil {
   338  		return x.Username
   339  	}
   340  	return ""
   341  }
   342  
   343  func (x *AuthConfig_UserPassword) GetPassword() *Secret {
   344  	if x != nil {
   345  		return x.Password
   346  	}
   347  	return nil
   348  }
   349  
   350  // Parameters to support JSON Web Token (JWT) Profile for Oauth 2.0
   351  // Authorization Grant based authentication.
   352  // See https://tools.ietf.org/html/rfc7523 for more details.
   353  type AuthConfig_Oauth2JwtBearer struct {
   354  	state         protoimpl.MessageState
   355  	sizeCache     protoimpl.SizeCache
   356  	unknownFields protoimpl.UnknownFields
   357  
   358  	// Secret version reference containing a PKCS#8 PEM-encoded private
   359  	// key associated with the Client Certificate. This private key will be
   360  	// used to sign JWTs used for the jwt-bearer authorization grant.
   361  	// Specified in the form as: `projects/*/secrets/*/versions/*`.
   362  	ClientKey *Secret `protobuf:"bytes,1,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
   363  	// JwtClaims providers fields to generate the token.
   364  	JwtClaims *AuthConfig_Oauth2JwtBearer_JwtClaims `protobuf:"bytes,2,opt,name=jwt_claims,json=jwtClaims,proto3" json:"jwt_claims,omitempty"`
   365  }
   366  
   367  func (x *AuthConfig_Oauth2JwtBearer) Reset() {
   368  	*x = AuthConfig_Oauth2JwtBearer{}
   369  	if protoimpl.UnsafeEnabled {
   370  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[3]
   371  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   372  		ms.StoreMessageInfo(mi)
   373  	}
   374  }
   375  
   376  func (x *AuthConfig_Oauth2JwtBearer) String() string {
   377  	return protoimpl.X.MessageStringOf(x)
   378  }
   379  
   380  func (*AuthConfig_Oauth2JwtBearer) ProtoMessage() {}
   381  
   382  func (x *AuthConfig_Oauth2JwtBearer) ProtoReflect() protoreflect.Message {
   383  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[3]
   384  	if protoimpl.UnsafeEnabled && x != nil {
   385  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   386  		if ms.LoadMessageInfo() == nil {
   387  			ms.StoreMessageInfo(mi)
   388  		}
   389  		return ms
   390  	}
   391  	return mi.MessageOf(x)
   392  }
   393  
   394  // Deprecated: Use AuthConfig_Oauth2JwtBearer.ProtoReflect.Descriptor instead.
   395  func (*AuthConfig_Oauth2JwtBearer) Descriptor() ([]byte, []int) {
   396  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0, 1}
   397  }
   398  
   399  func (x *AuthConfig_Oauth2JwtBearer) GetClientKey() *Secret {
   400  	if x != nil {
   401  		return x.ClientKey
   402  	}
   403  	return nil
   404  }
   405  
   406  func (x *AuthConfig_Oauth2JwtBearer) GetJwtClaims() *AuthConfig_Oauth2JwtBearer_JwtClaims {
   407  	if x != nil {
   408  		return x.JwtClaims
   409  	}
   410  	return nil
   411  }
   412  
   413  // Parameters to support Oauth 2.0 Client Credentials Grant Authentication.
   414  // See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
   415  type AuthConfig_Oauth2ClientCredentials struct {
   416  	state         protoimpl.MessageState
   417  	sizeCache     protoimpl.SizeCache
   418  	unknownFields protoimpl.UnknownFields
   419  
   420  	// The client identifier.
   421  	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
   422  	// Secret version reference containing the client secret.
   423  	ClientSecret *Secret `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
   424  }
   425  
   426  func (x *AuthConfig_Oauth2ClientCredentials) Reset() {
   427  	*x = AuthConfig_Oauth2ClientCredentials{}
   428  	if protoimpl.UnsafeEnabled {
   429  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[4]
   430  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   431  		ms.StoreMessageInfo(mi)
   432  	}
   433  }
   434  
   435  func (x *AuthConfig_Oauth2ClientCredentials) String() string {
   436  	return protoimpl.X.MessageStringOf(x)
   437  }
   438  
   439  func (*AuthConfig_Oauth2ClientCredentials) ProtoMessage() {}
   440  
   441  func (x *AuthConfig_Oauth2ClientCredentials) ProtoReflect() protoreflect.Message {
   442  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[4]
   443  	if protoimpl.UnsafeEnabled && x != nil {
   444  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   445  		if ms.LoadMessageInfo() == nil {
   446  			ms.StoreMessageInfo(mi)
   447  		}
   448  		return ms
   449  	}
   450  	return mi.MessageOf(x)
   451  }
   452  
   453  // Deprecated: Use AuthConfig_Oauth2ClientCredentials.ProtoReflect.Descriptor instead.
   454  func (*AuthConfig_Oauth2ClientCredentials) Descriptor() ([]byte, []int) {
   455  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0, 2}
   456  }
   457  
   458  func (x *AuthConfig_Oauth2ClientCredentials) GetClientId() string {
   459  	if x != nil {
   460  		return x.ClientId
   461  	}
   462  	return ""
   463  }
   464  
   465  func (x *AuthConfig_Oauth2ClientCredentials) GetClientSecret() *Secret {
   466  	if x != nil {
   467  		return x.ClientSecret
   468  	}
   469  	return nil
   470  }
   471  
   472  // Parameters to support Ssh public key Authentication.
   473  type AuthConfig_SshPublicKey struct {
   474  	state         protoimpl.MessageState
   475  	sizeCache     protoimpl.SizeCache
   476  	unknownFields protoimpl.UnknownFields
   477  
   478  	// The user account used to authenticate.
   479  	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
   480  	// This is an optional field used in case client has enabled multi-factor
   481  	// authentication
   482  	Password *Secret `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
   483  	// SSH Client Cert. It should contain both public and private key.
   484  	SshClientCert *Secret `protobuf:"bytes,3,opt,name=ssh_client_cert,json=sshClientCert,proto3" json:"ssh_client_cert,omitempty"`
   485  	// Format of SSH Client cert.
   486  	CertType string `protobuf:"bytes,4,opt,name=cert_type,json=certType,proto3" json:"cert_type,omitempty"`
   487  	// Password (passphrase) for ssh client certificate if it has one.
   488  	SshClientCertPass *Secret `protobuf:"bytes,5,opt,name=ssh_client_cert_pass,json=sshClientCertPass,proto3" json:"ssh_client_cert_pass,omitempty"`
   489  }
   490  
   491  func (x *AuthConfig_SshPublicKey) Reset() {
   492  	*x = AuthConfig_SshPublicKey{}
   493  	if protoimpl.UnsafeEnabled {
   494  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[5]
   495  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   496  		ms.StoreMessageInfo(mi)
   497  	}
   498  }
   499  
   500  func (x *AuthConfig_SshPublicKey) String() string {
   501  	return protoimpl.X.MessageStringOf(x)
   502  }
   503  
   504  func (*AuthConfig_SshPublicKey) ProtoMessage() {}
   505  
   506  func (x *AuthConfig_SshPublicKey) ProtoReflect() protoreflect.Message {
   507  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[5]
   508  	if protoimpl.UnsafeEnabled && x != nil {
   509  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   510  		if ms.LoadMessageInfo() == nil {
   511  			ms.StoreMessageInfo(mi)
   512  		}
   513  		return ms
   514  	}
   515  	return mi.MessageOf(x)
   516  }
   517  
   518  // Deprecated: Use AuthConfig_SshPublicKey.ProtoReflect.Descriptor instead.
   519  func (*AuthConfig_SshPublicKey) Descriptor() ([]byte, []int) {
   520  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0, 3}
   521  }
   522  
   523  func (x *AuthConfig_SshPublicKey) GetUsername() string {
   524  	if x != nil {
   525  		return x.Username
   526  	}
   527  	return ""
   528  }
   529  
   530  func (x *AuthConfig_SshPublicKey) GetPassword() *Secret {
   531  	if x != nil {
   532  		return x.Password
   533  	}
   534  	return nil
   535  }
   536  
   537  func (x *AuthConfig_SshPublicKey) GetSshClientCert() *Secret {
   538  	if x != nil {
   539  		return x.SshClientCert
   540  	}
   541  	return nil
   542  }
   543  
   544  func (x *AuthConfig_SshPublicKey) GetCertType() string {
   545  	if x != nil {
   546  		return x.CertType
   547  	}
   548  	return ""
   549  }
   550  
   551  func (x *AuthConfig_SshPublicKey) GetSshClientCertPass() *Secret {
   552  	if x != nil {
   553  		return x.SshClientCertPass
   554  	}
   555  	return nil
   556  }
   557  
   558  // JWT claims used for the jwt-bearer authorization grant.
   559  type AuthConfig_Oauth2JwtBearer_JwtClaims struct {
   560  	state         protoimpl.MessageState
   561  	sizeCache     protoimpl.SizeCache
   562  	unknownFields protoimpl.UnknownFields
   563  
   564  	// Value for the "iss" claim.
   565  	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
   566  	// Value for the "sub" claim.
   567  	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
   568  	// Value for the "aud" claim.
   569  	Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"`
   570  }
   571  
   572  func (x *AuthConfig_Oauth2JwtBearer_JwtClaims) Reset() {
   573  	*x = AuthConfig_Oauth2JwtBearer_JwtClaims{}
   574  	if protoimpl.UnsafeEnabled {
   575  		mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[6]
   576  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   577  		ms.StoreMessageInfo(mi)
   578  	}
   579  }
   580  
   581  func (x *AuthConfig_Oauth2JwtBearer_JwtClaims) String() string {
   582  	return protoimpl.X.MessageStringOf(x)
   583  }
   584  
   585  func (*AuthConfig_Oauth2JwtBearer_JwtClaims) ProtoMessage() {}
   586  
   587  func (x *AuthConfig_Oauth2JwtBearer_JwtClaims) ProtoReflect() protoreflect.Message {
   588  	mi := &file_google_cloud_connectors_v1_authconfig_proto_msgTypes[6]
   589  	if protoimpl.UnsafeEnabled && x != nil {
   590  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   591  		if ms.LoadMessageInfo() == nil {
   592  			ms.StoreMessageInfo(mi)
   593  		}
   594  		return ms
   595  	}
   596  	return mi.MessageOf(x)
   597  }
   598  
   599  // Deprecated: Use AuthConfig_Oauth2JwtBearer_JwtClaims.ProtoReflect.Descriptor instead.
   600  func (*AuthConfig_Oauth2JwtBearer_JwtClaims) Descriptor() ([]byte, []int) {
   601  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP(), []int{0, 1, 0}
   602  }
   603  
   604  func (x *AuthConfig_Oauth2JwtBearer_JwtClaims) GetIssuer() string {
   605  	if x != nil {
   606  		return x.Issuer
   607  	}
   608  	return ""
   609  }
   610  
   611  func (x *AuthConfig_Oauth2JwtBearer_JwtClaims) GetSubject() string {
   612  	if x != nil {
   613  		return x.Subject
   614  	}
   615  	return ""
   616  }
   617  
   618  func (x *AuthConfig_Oauth2JwtBearer_JwtClaims) GetAudience() string {
   619  	if x != nil {
   620  		return x.Audience
   621  	}
   622  	return ""
   623  }
   624  
   625  var File_google_cloud_connectors_v1_authconfig_proto protoreflect.FileDescriptor
   626  
   627  var file_google_cloud_connectors_v1_authconfig_proto_rawDesc = []byte{
   628  	0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
   629  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74,
   630  	0x68, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67,
   631  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e,
   632  	0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   633  	0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f,
   634  	0x72, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
   635  	0x74, 0x6f, 0x22, 0xfe, 0x0a, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   636  	0x67, 0x12, 0x41, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
   637  	0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   638  	0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76,
   639  	0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68,
   640  	0x54, 0x79, 0x70, 0x65, 0x12, 0x5a, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x73,
   641  	0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f,
   642  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
   643  	0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e,
   644  	0x66, 0x69, 0x67, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
   645  	0x48, 0x00, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
   646  	0x12, 0x64, 0x0a, 0x11, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x6a, 0x77, 0x74, 0x5f, 0x62,
   647  	0x65, 0x61, 0x72, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f,
   648  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
   649  	0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e,
   650  	0x66, 0x69, 0x67, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x4a, 0x77, 0x74, 0x42, 0x65, 0x61,
   651  	0x72, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x4a, 0x77, 0x74,
   652  	0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x12, 0x7c, 0x0a, 0x19, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32,
   653  	0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
   654  	0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   655  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
   656  	0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   657  	0x67, 0x2e, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x72,
   658  	0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x17, 0x6f, 0x61, 0x75,
   659  	0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
   660  	0x69, 0x61, 0x6c, 0x73, 0x12, 0x5b, 0x0a, 0x0e, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x75, 0x62, 0x6c,
   661  	0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67,
   662  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e,
   663  	0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f,
   664  	0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x73, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
   665  	0x79, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x73, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
   666  	0x79, 0x12, 0x5d, 0x0a, 0x14, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f,
   667  	0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
   668  	0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
   669  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e,
   670  	0x66, 0x69, 0x67, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x13, 0x61, 0x64, 0x64,
   671  	0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73,
   672  	0x1a, 0x6a, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
   673  	0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
   674  	0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x08,
   675  	0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
   676  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
   677  	0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72,
   678  	0x65, 0x74, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x90, 0x02, 0x0a,
   679  	0x0f, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x4a, 0x77, 0x74, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72,
   680  	0x12, 0x41, 0x0a, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01,
   681  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   682  	0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76,
   683  	0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
   684  	0x4b, 0x65, 0x79, 0x12, 0x5f, 0x0a, 0x0a, 0x6a, 0x77, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d,
   685  	0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   686  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72,
   687  	0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   688  	0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x4a, 0x77, 0x74, 0x42, 0x65, 0x61, 0x72, 0x65, 0x72, 0x2e,
   689  	0x4a, 0x77, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x52, 0x09, 0x6a, 0x77, 0x74, 0x43, 0x6c,
   690  	0x61, 0x69, 0x6d, 0x73, 0x1a, 0x59, 0x0a, 0x09, 0x4a, 0x77, 0x74, 0x43, 0x6c, 0x61, 0x69, 0x6d,
   691  	0x73, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
   692  	0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62,
   693  	0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a,
   694  	0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x18,
   695  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x1a,
   696  	0x7f, 0x0a, 0x17, 0x4f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43,
   697  	0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c,
   698  	0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63,
   699  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e,
   700  	0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
   701  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f,
   702  	0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72,
   703  	0x65, 0x74, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
   704  	0x1a, 0xa8, 0x02, 0x0a, 0x0c, 0x53, 0x73, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65,
   705  	0x79, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
   706  	0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a,
   707  	0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
   708  	0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
   709  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63,
   710  	0x72, 0x65, 0x74, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x4a, 0x0a,
   711  	0x0f, 0x73, 0x73, 0x68, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74,
   712  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   713  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73,
   714  	0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x0d, 0x73, 0x73, 0x68, 0x43,
   715  	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x65, 0x72,
   716  	0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x65,
   717  	0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x73, 0x73, 0x68, 0x5f, 0x63, 0x6c,
   718  	0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x18, 0x05,
   719  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   720  	0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76,
   721  	0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x11, 0x73, 0x73, 0x68, 0x43, 0x6c, 0x69,
   722  	0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x50, 0x61, 0x73, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74,
   723  	0x79, 0x70, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66,
   724  	0x69, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x61, 0x75,
   725  	0x74, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e,
   726  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e,
   727  	0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x54,
   728  	0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x6e, 0x0a,
   729  	0x19, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65,
   730  	0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
   731  	0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   732  	0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
   733  	0x6e, 0x66, 0x69, 0x67, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d, 0x70,
   734  	0x6c, 0x61, 0x74, 0x65, 0x52, 0x17, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x61, 0x72, 0x69,
   735  	0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x2a, 0x82, 0x01,
   736  	0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55,
   737  	0x54, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
   738  	0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x50, 0x41,
   739  	0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x41, 0x55, 0x54,
   740  	0x48, 0x32, 0x5f, 0x4a, 0x57, 0x54, 0x5f, 0x42, 0x45, 0x41, 0x52, 0x45, 0x52, 0x10, 0x02, 0x12,
   741  	0x1d, 0x0a, 0x19, 0x4f, 0x41, 0x55, 0x54, 0x48, 0x32, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54,
   742  	0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x53, 0x10, 0x03, 0x12, 0x12,
   743  	0x0a, 0x0e, 0x53, 0x53, 0x48, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x4b, 0x45, 0x59,
   744  	0x10, 0x04, 0x42, 0x79, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   745  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72,
   746  	0x73, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   747  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   748  	0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
   749  	0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
   750  	0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f,
   751  	0x76, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70,
   752  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   753  }
   754  
   755  var (
   756  	file_google_cloud_connectors_v1_authconfig_proto_rawDescOnce sync.Once
   757  	file_google_cloud_connectors_v1_authconfig_proto_rawDescData = file_google_cloud_connectors_v1_authconfig_proto_rawDesc
   758  )
   759  
   760  func file_google_cloud_connectors_v1_authconfig_proto_rawDescGZIP() []byte {
   761  	file_google_cloud_connectors_v1_authconfig_proto_rawDescOnce.Do(func() {
   762  		file_google_cloud_connectors_v1_authconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_connectors_v1_authconfig_proto_rawDescData)
   763  	})
   764  	return file_google_cloud_connectors_v1_authconfig_proto_rawDescData
   765  }
   766  
   767  var file_google_cloud_connectors_v1_authconfig_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   768  var file_google_cloud_connectors_v1_authconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
   769  var file_google_cloud_connectors_v1_authconfig_proto_goTypes = []interface{}{
   770  	(AuthType)(0),                                // 0: google.cloud.connectors.v1.AuthType
   771  	(*AuthConfig)(nil),                           // 1: google.cloud.connectors.v1.AuthConfig
   772  	(*AuthConfigTemplate)(nil),                   // 2: google.cloud.connectors.v1.AuthConfigTemplate
   773  	(*AuthConfig_UserPassword)(nil),              // 3: google.cloud.connectors.v1.AuthConfig.UserPassword
   774  	(*AuthConfig_Oauth2JwtBearer)(nil),           // 4: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
   775  	(*AuthConfig_Oauth2ClientCredentials)(nil),   // 5: google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
   776  	(*AuthConfig_SshPublicKey)(nil),              // 6: google.cloud.connectors.v1.AuthConfig.SshPublicKey
   777  	(*AuthConfig_Oauth2JwtBearer_JwtClaims)(nil), // 7: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
   778  	(*ConfigVariable)(nil),                       // 8: google.cloud.connectors.v1.ConfigVariable
   779  	(*ConfigVariableTemplate)(nil),               // 9: google.cloud.connectors.v1.ConfigVariableTemplate
   780  	(*Secret)(nil),                               // 10: google.cloud.connectors.v1.Secret
   781  }
   782  var file_google_cloud_connectors_v1_authconfig_proto_depIdxs = []int32{
   783  	0,  // 0: google.cloud.connectors.v1.AuthConfig.auth_type:type_name -> google.cloud.connectors.v1.AuthType
   784  	3,  // 1: google.cloud.connectors.v1.AuthConfig.user_password:type_name -> google.cloud.connectors.v1.AuthConfig.UserPassword
   785  	4,  // 2: google.cloud.connectors.v1.AuthConfig.oauth2_jwt_bearer:type_name -> google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer
   786  	5,  // 3: google.cloud.connectors.v1.AuthConfig.oauth2_client_credentials:type_name -> google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials
   787  	6,  // 4: google.cloud.connectors.v1.AuthConfig.ssh_public_key:type_name -> google.cloud.connectors.v1.AuthConfig.SshPublicKey
   788  	8,  // 5: google.cloud.connectors.v1.AuthConfig.additional_variables:type_name -> google.cloud.connectors.v1.ConfigVariable
   789  	0,  // 6: google.cloud.connectors.v1.AuthConfigTemplate.auth_type:type_name -> google.cloud.connectors.v1.AuthType
   790  	9,  // 7: google.cloud.connectors.v1.AuthConfigTemplate.config_variable_templates:type_name -> google.cloud.connectors.v1.ConfigVariableTemplate
   791  	10, // 8: google.cloud.connectors.v1.AuthConfig.UserPassword.password:type_name -> google.cloud.connectors.v1.Secret
   792  	10, // 9: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.client_key:type_name -> google.cloud.connectors.v1.Secret
   793  	7,  // 10: google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.jwt_claims:type_name -> google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims
   794  	10, // 11: google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials.client_secret:type_name -> google.cloud.connectors.v1.Secret
   795  	10, // 12: google.cloud.connectors.v1.AuthConfig.SshPublicKey.password:type_name -> google.cloud.connectors.v1.Secret
   796  	10, // 13: google.cloud.connectors.v1.AuthConfig.SshPublicKey.ssh_client_cert:type_name -> google.cloud.connectors.v1.Secret
   797  	10, // 14: google.cloud.connectors.v1.AuthConfig.SshPublicKey.ssh_client_cert_pass:type_name -> google.cloud.connectors.v1.Secret
   798  	15, // [15:15] is the sub-list for method output_type
   799  	15, // [15:15] is the sub-list for method input_type
   800  	15, // [15:15] is the sub-list for extension type_name
   801  	15, // [15:15] is the sub-list for extension extendee
   802  	0,  // [0:15] is the sub-list for field type_name
   803  }
   804  
   805  func init() { file_google_cloud_connectors_v1_authconfig_proto_init() }
   806  func file_google_cloud_connectors_v1_authconfig_proto_init() {
   807  	if File_google_cloud_connectors_v1_authconfig_proto != nil {
   808  		return
   809  	}
   810  	file_google_cloud_connectors_v1_common_proto_init()
   811  	if !protoimpl.UnsafeEnabled {
   812  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   813  			switch v := v.(*AuthConfig); i {
   814  			case 0:
   815  				return &v.state
   816  			case 1:
   817  				return &v.sizeCache
   818  			case 2:
   819  				return &v.unknownFields
   820  			default:
   821  				return nil
   822  			}
   823  		}
   824  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   825  			switch v := v.(*AuthConfigTemplate); i {
   826  			case 0:
   827  				return &v.state
   828  			case 1:
   829  				return &v.sizeCache
   830  			case 2:
   831  				return &v.unknownFields
   832  			default:
   833  				return nil
   834  			}
   835  		}
   836  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   837  			switch v := v.(*AuthConfig_UserPassword); i {
   838  			case 0:
   839  				return &v.state
   840  			case 1:
   841  				return &v.sizeCache
   842  			case 2:
   843  				return &v.unknownFields
   844  			default:
   845  				return nil
   846  			}
   847  		}
   848  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   849  			switch v := v.(*AuthConfig_Oauth2JwtBearer); i {
   850  			case 0:
   851  				return &v.state
   852  			case 1:
   853  				return &v.sizeCache
   854  			case 2:
   855  				return &v.unknownFields
   856  			default:
   857  				return nil
   858  			}
   859  		}
   860  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   861  			switch v := v.(*AuthConfig_Oauth2ClientCredentials); i {
   862  			case 0:
   863  				return &v.state
   864  			case 1:
   865  				return &v.sizeCache
   866  			case 2:
   867  				return &v.unknownFields
   868  			default:
   869  				return nil
   870  			}
   871  		}
   872  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   873  			switch v := v.(*AuthConfig_SshPublicKey); i {
   874  			case 0:
   875  				return &v.state
   876  			case 1:
   877  				return &v.sizeCache
   878  			case 2:
   879  				return &v.unknownFields
   880  			default:
   881  				return nil
   882  			}
   883  		}
   884  		file_google_cloud_connectors_v1_authconfig_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   885  			switch v := v.(*AuthConfig_Oauth2JwtBearer_JwtClaims); i {
   886  			case 0:
   887  				return &v.state
   888  			case 1:
   889  				return &v.sizeCache
   890  			case 2:
   891  				return &v.unknownFields
   892  			default:
   893  				return nil
   894  			}
   895  		}
   896  	}
   897  	file_google_cloud_connectors_v1_authconfig_proto_msgTypes[0].OneofWrappers = []interface{}{
   898  		(*AuthConfig_UserPassword_)(nil),
   899  		(*AuthConfig_Oauth2JwtBearer_)(nil),
   900  		(*AuthConfig_Oauth2ClientCredentials_)(nil),
   901  		(*AuthConfig_SshPublicKey_)(nil),
   902  	}
   903  	type x struct{}
   904  	out := protoimpl.TypeBuilder{
   905  		File: protoimpl.DescBuilder{
   906  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   907  			RawDescriptor: file_google_cloud_connectors_v1_authconfig_proto_rawDesc,
   908  			NumEnums:      1,
   909  			NumMessages:   7,
   910  			NumExtensions: 0,
   911  			NumServices:   0,
   912  		},
   913  		GoTypes:           file_google_cloud_connectors_v1_authconfig_proto_goTypes,
   914  		DependencyIndexes: file_google_cloud_connectors_v1_authconfig_proto_depIdxs,
   915  		EnumInfos:         file_google_cloud_connectors_v1_authconfig_proto_enumTypes,
   916  		MessageInfos:      file_google_cloud_connectors_v1_authconfig_proto_msgTypes,
   917  	}.Build()
   918  	File_google_cloud_connectors_v1_authconfig_proto = out.File
   919  	file_google_cloud_connectors_v1_authconfig_proto_rawDesc = nil
   920  	file_google_cloud_connectors_v1_authconfig_proto_goTypes = nil
   921  	file_google_cloud_connectors_v1_authconfig_proto_depIdxs = nil
   922  }
   923  

View as plain text