Documentation ¶
Index ¶
- Variables
- type MetadataExchangeRequest
- func (*MetadataExchangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataExchangeRequest) GetAuthType() MetadataExchangeRequest_AuthType
- func (x *MetadataExchangeRequest) GetOauth2Token() string
- func (x *MetadataExchangeRequest) GetUserAgent() string
- func (*MetadataExchangeRequest) ProtoMessage()
- func (x *MetadataExchangeRequest) ProtoReflect() protoreflect.Message
- func (x *MetadataExchangeRequest) Reset()
- func (x *MetadataExchangeRequest) String() string
- type MetadataExchangeRequest_AuthType
- func (MetadataExchangeRequest_AuthType) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataExchangeRequest_AuthType) Enum() *MetadataExchangeRequest_AuthType
- func (MetadataExchangeRequest_AuthType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetadataExchangeRequest_AuthType) Number() protoreflect.EnumNumber
- func (x MetadataExchangeRequest_AuthType) String() string
- func (MetadataExchangeRequest_AuthType) Type() protoreflect.EnumType
- type MetadataExchangeResponse
- func (*MetadataExchangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataExchangeResponse) GetError() string
- func (x *MetadataExchangeResponse) GetResponseCode() MetadataExchangeResponse_ResponseCode
- func (*MetadataExchangeResponse) ProtoMessage()
- func (x *MetadataExchangeResponse) ProtoReflect() protoreflect.Message
- func (x *MetadataExchangeResponse) Reset()
- func (x *MetadataExchangeResponse) String() string
- type MetadataExchangeResponse_ResponseCode
- func (MetadataExchangeResponse_ResponseCode) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataExchangeResponse_ResponseCode) Enum() *MetadataExchangeResponse_ResponseCode
- func (MetadataExchangeResponse_ResponseCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetadataExchangeResponse_ResponseCode) Number() protoreflect.EnumNumber
- func (x MetadataExchangeResponse_ResponseCode) String() string
- func (MetadataExchangeResponse_ResponseCode) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( MetadataExchangeRequest_AuthType_name = map[int32]string{ 0: "AUTH_TYPE_UNSPECIFIED", 1: "DB_NATIVE", 2: "AUTO_IAM", } MetadataExchangeRequest_AuthType_value = map[string]int32{ "AUTH_TYPE_UNSPECIFIED": 0, "DB_NATIVE": 1, "AUTO_IAM": 2, } )
Enum value maps for MetadataExchangeRequest_AuthType.
var ( MetadataExchangeResponse_ResponseCode_name = map[int32]string{ 0: "RESPONSE_CODE_UNSPECIFIED", 1: "OK", 2: "ERROR", } MetadataExchangeResponse_ResponseCode_value = map[string]int32{ "RESPONSE_CODE_UNSPECIFIED": 0, "OK": 1, "ERROR": 2, } )
Enum value maps for MetadataExchangeResponse_ResponseCode.
var File_google_cloud_alloydb_connectors_v1beta_resources_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MetadataExchangeRequest ¶
type MetadataExchangeRequest struct { // Optional. Connector information. UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` // Authentication type. AuthType MetadataExchangeRequest_AuthType `` /* 163-byte string literal not displayed */ // IAM token used for both IAM user authentiation and // `alloydb.instances.connect` permission check. Oauth2Token string `protobuf:"bytes,3,opt,name=oauth2_token,json=oauth2Token,proto3" json:"oauth2_token,omitempty"` // contains filtered or unexported fields }
Message used by AlloyDB connectors to exchange client and connection metadata with the server after a successful TLS handshake. This metadata includes an IAM token, which is used to authenticate users based on their IAM identity. The sole purpose of this message is for the use of AlloyDB connectors. Clients should not rely on this message directly as there can be breaking changes in the future.
func (*MetadataExchangeRequest) Descriptor
deprecated
func (*MetadataExchangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeRequest.ProtoReflect.Descriptor instead.
func (*MetadataExchangeRequest) GetAuthType ¶
func (x *MetadataExchangeRequest) GetAuthType() MetadataExchangeRequest_AuthType
func (*MetadataExchangeRequest) GetOauth2Token ¶
func (x *MetadataExchangeRequest) GetOauth2Token() string
func (*MetadataExchangeRequest) GetUserAgent ¶
func (x *MetadataExchangeRequest) GetUserAgent() string
func (*MetadataExchangeRequest) ProtoMessage ¶
func (*MetadataExchangeRequest) ProtoMessage()
func (*MetadataExchangeRequest) ProtoReflect ¶
func (x *MetadataExchangeRequest) ProtoReflect() protoreflect.Message
func (*MetadataExchangeRequest) Reset ¶
func (x *MetadataExchangeRequest) Reset()
func (*MetadataExchangeRequest) String ¶
func (x *MetadataExchangeRequest) String() string
type MetadataExchangeRequest_AuthType ¶
type MetadataExchangeRequest_AuthType int32
AuthType contains all supported authentication types.
const ( // Authentication type is unspecified and DB_NATIVE is used by default MetadataExchangeRequest_AUTH_TYPE_UNSPECIFIED MetadataExchangeRequest_AuthType = 0 // Database native authentication (user/password) MetadataExchangeRequest_DB_NATIVE MetadataExchangeRequest_AuthType = 1 // Automatic IAM authentication MetadataExchangeRequest_AUTO_IAM MetadataExchangeRequest_AuthType = 2 )
func (MetadataExchangeRequest_AuthType) Descriptor ¶
func (MetadataExchangeRequest_AuthType) Descriptor() protoreflect.EnumDescriptor
func (MetadataExchangeRequest_AuthType) Enum ¶
func (x MetadataExchangeRequest_AuthType) Enum() *MetadataExchangeRequest_AuthType
func (MetadataExchangeRequest_AuthType) EnumDescriptor
deprecated
func (MetadataExchangeRequest_AuthType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeRequest_AuthType.Descriptor instead.
func (MetadataExchangeRequest_AuthType) Number ¶
func (x MetadataExchangeRequest_AuthType) Number() protoreflect.EnumNumber
func (MetadataExchangeRequest_AuthType) String ¶
func (x MetadataExchangeRequest_AuthType) String() string
func (MetadataExchangeRequest_AuthType) Type ¶
func (MetadataExchangeRequest_AuthType) Type() protoreflect.EnumType
type MetadataExchangeResponse ¶
type MetadataExchangeResponse struct { // Response code. ResponseCode MetadataExchangeResponse_ResponseCode `` /* 180-byte string literal not displayed */ // Optional. Error message. Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
Message for response to metadata exchange request. The sole purpose of this message is for the use of AlloyDB connectors. Clients should not rely on this message directly as there can be breaking changes in the future.
func (*MetadataExchangeResponse) Descriptor
deprecated
func (*MetadataExchangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeResponse.ProtoReflect.Descriptor instead.
func (*MetadataExchangeResponse) GetError ¶
func (x *MetadataExchangeResponse) GetError() string
func (*MetadataExchangeResponse) GetResponseCode ¶
func (x *MetadataExchangeResponse) GetResponseCode() MetadataExchangeResponse_ResponseCode
func (*MetadataExchangeResponse) ProtoMessage ¶
func (*MetadataExchangeResponse) ProtoMessage()
func (*MetadataExchangeResponse) ProtoReflect ¶
func (x *MetadataExchangeResponse) ProtoReflect() protoreflect.Message
func (*MetadataExchangeResponse) Reset ¶
func (x *MetadataExchangeResponse) Reset()
func (*MetadataExchangeResponse) String ¶
func (x *MetadataExchangeResponse) String() string
type MetadataExchangeResponse_ResponseCode ¶
type MetadataExchangeResponse_ResponseCode int32
Response code.
const ( // Unknown response code MetadataExchangeResponse_RESPONSE_CODE_UNSPECIFIED MetadataExchangeResponse_ResponseCode = 0 // Success MetadataExchangeResponse_OK MetadataExchangeResponse_ResponseCode = 1 // Failure MetadataExchangeResponse_ERROR MetadataExchangeResponse_ResponseCode = 2 )
func (MetadataExchangeResponse_ResponseCode) Descriptor ¶
func (MetadataExchangeResponse_ResponseCode) Descriptor() protoreflect.EnumDescriptor
func (MetadataExchangeResponse_ResponseCode) EnumDescriptor
deprecated
func (MetadataExchangeResponse_ResponseCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeResponse_ResponseCode.Descriptor instead.
func (MetadataExchangeResponse_ResponseCode) Number ¶
func (x MetadataExchangeResponse_ResponseCode) Number() protoreflect.EnumNumber
func (MetadataExchangeResponse_ResponseCode) String ¶
func (x MetadataExchangeResponse_ResponseCode) String() string
func (MetadataExchangeResponse_ResponseCode) Type ¶
func (MetadataExchangeResponse_ResponseCode) Type() protoreflect.EnumType