Documentation
¶
Index ¶
- Variables
- type MetadataExchangeRequest
- func (*MetadataExchangeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataExchangeRequest) GetClientProtocolType() MetadataExchangeRequest_ClientProtocolType
- 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_ClientProtocolType
- func (MetadataExchangeRequest_ClientProtocolType) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataExchangeRequest_ClientProtocolType) Enum() *MetadataExchangeRequest_ClientProtocolType
- func (MetadataExchangeRequest_ClientProtocolType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetadataExchangeRequest_ClientProtocolType) Number() protoreflect.EnumNumber
- func (x MetadataExchangeRequest_ClientProtocolType) String() string
- func (MetadataExchangeRequest_ClientProtocolType) Type() protoreflect.EnumType
- type MetadataExchangeResponse
- func (*MetadataExchangeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetadataExchangeResponse) GetErrorMessage() string
- func (x *MetadataExchangeResponse) GetResponseStatusCode() MetadataExchangeResponse_ResponseStatusCode
- func (*MetadataExchangeResponse) ProtoMessage()
- func (x *MetadataExchangeResponse) ProtoReflect() protoreflect.Message
- func (x *MetadataExchangeResponse) Reset()
- func (x *MetadataExchangeResponse) String() string
- type MetadataExchangeResponse_ResponseStatusCode
- func (MetadataExchangeResponse_ResponseStatusCode) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataExchangeResponse_ResponseStatusCode) Enum() *MetadataExchangeResponse_ResponseStatusCode
- func (MetadataExchangeResponse_ResponseStatusCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetadataExchangeResponse_ResponseStatusCode) Number() protoreflect.EnumNumber
- func (x MetadataExchangeResponse_ResponseStatusCode) String() string
- func (MetadataExchangeResponse_ResponseStatusCode) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( MetadataExchangeRequest_ClientProtocolType_name = map[int32]string{ 0: "CLIENT_PROTOCOL_TYPE_UNSPECIFIED", 1: "TCP", 2: "TLS", 3: "UDS", } MetadataExchangeRequest_ClientProtocolType_value = map[string]int32{ "CLIENT_PROTOCOL_TYPE_UNSPECIFIED": 0, "TCP": 1, "TLS": 2, "UDS": 3, } )
Enum value maps for MetadataExchangeRequest_ClientProtocolType.
var ( MetadataExchangeResponse_ResponseStatusCode_name = map[int32]string{ 0: "RESPONSE_STATUS_CODE_UNSPECIFIED", 1: "OK", 2: "ERROR", } MetadataExchangeResponse_ResponseStatusCode_value = map[string]int32{ "RESPONSE_STATUS_CODE_UNSPECIFIED": 0, "OK": 1, "ERROR": 2, } )
Enum value maps for MetadataExchangeResponse_ResponseStatusCode.
var File_internal_mdx_metadata_exchange_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MetadataExchangeRequest ¶
type MetadataExchangeRequest struct {
// User agent from the connector sending the request.
UserAgent *string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3,oneof" json:"user_agent,omitempty"`
// Client protocol type, the network protocol used by the database driver to
// connect, which can affect the database login protocol as it does in MySQL.
// The client should set this field when the
// ConnectSettings.mdx_protocol_support field contains CLIENT_PROTOCOL_TYPE.
ClientProtocolType *MetadataExchangeRequest_ClientProtocolType `` /* 176-byte string literal not displayed */
// contains filtered or unexported fields
}
Message used by Cloud SQL connectors, including the Cloud SQL Auth Proxy and the Cloud SQL Language Connectors, to exchange client and connection metadata.
func (*MetadataExchangeRequest) Descriptor
deprecated
func (*MetadataExchangeRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeRequest.ProtoReflect.Descriptor instead.
func (*MetadataExchangeRequest) GetClientProtocolType ¶
func (x *MetadataExchangeRequest) GetClientProtocolType() MetadataExchangeRequest_ClientProtocolType
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_ClientProtocolType ¶
type MetadataExchangeRequest_ClientProtocolType int32
Indicates the socket-level protocol used by the database client, useful for the MySQL caching_sha2_password, which detects the socket type as part of the authentication protocol.
const ( // Client protocol type is unspecified, TCP is used as default. MetadataExchangeRequest_CLIENT_PROTOCOL_TYPE_UNSPECIFIED MetadataExchangeRequest_ClientProtocolType = 0 // TCP socket connection, used for connections through the auth proxy's // TCP ports. MetadataExchangeRequest_TCP MetadataExchangeRequest_ClientProtocolType = 1 // TLS socket over TCP, used in the connectors which pass an already // connected TCP socket with a complete handshake to the mysql driver. MetadataExchangeRequest_TLS MetadataExchangeRequest_ClientProtocolType = 2 // Unix Domain socket connection, used for connections through the auth // proxy's unix sockets. MetadataExchangeRequest_UDS MetadataExchangeRequest_ClientProtocolType = 3 )
func (MetadataExchangeRequest_ClientProtocolType) Descriptor ¶
func (MetadataExchangeRequest_ClientProtocolType) Descriptor() protoreflect.EnumDescriptor
func (MetadataExchangeRequest_ClientProtocolType) EnumDescriptor
deprecated
func (MetadataExchangeRequest_ClientProtocolType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeRequest_ClientProtocolType.Descriptor instead.
func (MetadataExchangeRequest_ClientProtocolType) Number ¶
func (x MetadataExchangeRequest_ClientProtocolType) Number() protoreflect.EnumNumber
func (MetadataExchangeRequest_ClientProtocolType) String ¶
func (x MetadataExchangeRequest_ClientProtocolType) String() string
func (MetadataExchangeRequest_ClientProtocolType) Type ¶
func (MetadataExchangeRequest_ClientProtocolType) Type() protoreflect.EnumType
type MetadataExchangeResponse ¶
type MetadataExchangeResponse struct {
// Status code.
ResponseStatusCode *MetadataExchangeResponse_ResponseStatusCode `` /* 177-byte string literal not displayed */
// Error message.
ErrorMessage *string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
The response from the Cloud SQL instance back to the connector following an MetadataExchangeRequest.
func (*MetadataExchangeResponse) Descriptor
deprecated
func (*MetadataExchangeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeResponse.ProtoReflect.Descriptor instead.
func (*MetadataExchangeResponse) GetErrorMessage ¶
func (x *MetadataExchangeResponse) GetErrorMessage() string
func (*MetadataExchangeResponse) GetResponseStatusCode ¶
func (x *MetadataExchangeResponse) GetResponseStatusCode() MetadataExchangeResponse_ResponseStatusCode
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_ResponseStatusCode ¶
type MetadataExchangeResponse_ResponseStatusCode int32
The status of the server metadata exchange.
const ( // Unknown response code MetadataExchangeResponse_RESPONSE_STATUS_CODE_UNSPECIFIED MetadataExchangeResponse_ResponseStatusCode = 0 // Success MetadataExchangeResponse_OK MetadataExchangeResponse_ResponseStatusCode = 1 // Failure MetadataExchangeResponse_ERROR MetadataExchangeResponse_ResponseStatusCode = 2 )
func (MetadataExchangeResponse_ResponseStatusCode) Descriptor ¶
func (MetadataExchangeResponse_ResponseStatusCode) Descriptor() protoreflect.EnumDescriptor
func (MetadataExchangeResponse_ResponseStatusCode) EnumDescriptor
deprecated
func (MetadataExchangeResponse_ResponseStatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetadataExchangeResponse_ResponseStatusCode.Descriptor instead.
func (MetadataExchangeResponse_ResponseStatusCode) Number ¶
func (x MetadataExchangeResponse_ResponseStatusCode) Number() protoreflect.EnumNumber
func (MetadataExchangeResponse_ResponseStatusCode) String ¶
func (x MetadataExchangeResponse_ResponseStatusCode) String() string
func (MetadataExchangeResponse_ResponseStatusCode) Type ¶
func (MetadataExchangeResponse_ResponseStatusCode) Type() protoreflect.EnumType