Documentation
¶
Index ¶
- Variables
- type MetadataExchangeRequest
- func (x *MetadataExchangeRequest) ClearClientProtocolType()
- func (x *MetadataExchangeRequest) ClearUserAgent()
- func (x *MetadataExchangeRequest) GetClientProtocolType() MetadataExchangeRequest_ClientProtocolType
- func (x *MetadataExchangeRequest) GetUserAgent() string
- func (x *MetadataExchangeRequest) HasClientProtocolType() bool
- func (x *MetadataExchangeRequest) HasUserAgent() bool
- func (*MetadataExchangeRequest) ProtoMessage()
- func (x *MetadataExchangeRequest) ProtoReflect() protoreflect.Message
- func (x *MetadataExchangeRequest) Reset()
- func (x *MetadataExchangeRequest) SetClientProtocolType(v MetadataExchangeRequest_ClientProtocolType)
- func (x *MetadataExchangeRequest) SetUserAgent(v string)
- func (x *MetadataExchangeRequest) String() string
- type MetadataExchangeRequest_ClientProtocolType
- func (MetadataExchangeRequest_ClientProtocolType) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataExchangeRequest_ClientProtocolType) Enum() *MetadataExchangeRequest_ClientProtocolType
- func (x MetadataExchangeRequest_ClientProtocolType) Number() protoreflect.EnumNumber
- func (x MetadataExchangeRequest_ClientProtocolType) String() string
- func (MetadataExchangeRequest_ClientProtocolType) Type() protoreflect.EnumType
- type MetadataExchangeRequest_builder
- type MetadataExchangeResponse
- func (x *MetadataExchangeResponse) ClearErrorMessage()
- func (x *MetadataExchangeResponse) ClearResponseStatusCode()
- func (x *MetadataExchangeResponse) GetErrorMessage() string
- func (x *MetadataExchangeResponse) GetResponseStatusCode() MetadataExchangeResponse_ResponseStatusCode
- func (x *MetadataExchangeResponse) HasErrorMessage() bool
- func (x *MetadataExchangeResponse) HasResponseStatusCode() bool
- func (*MetadataExchangeResponse) ProtoMessage()
- func (x *MetadataExchangeResponse) ProtoReflect() protoreflect.Message
- func (x *MetadataExchangeResponse) Reset()
- func (x *MetadataExchangeResponse) SetErrorMessage(v string)
- func (x *MetadataExchangeResponse) SetResponseStatusCode(v MetadataExchangeResponse_ResponseStatusCode)
- func (x *MetadataExchangeResponse) String() string
- type MetadataExchangeResponse_ResponseStatusCode
- func (MetadataExchangeResponse_ResponseStatusCode) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataExchangeResponse_ResponseStatusCode) Enum() *MetadataExchangeResponse_ResponseStatusCode
- func (x MetadataExchangeResponse_ResponseStatusCode) Number() protoreflect.EnumNumber
- func (x MetadataExchangeResponse_ResponseStatusCode) String() string
- func (MetadataExchangeResponse_ResponseStatusCode) Type() protoreflect.EnumType
- type MetadataExchangeResponse_builder
Constants ¶
This section is empty.
Variables ¶
View Source
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.
View Source
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.
View Source
var File_internal_mdx_metadata_exchange_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MetadataExchangeRequest ¶
type MetadataExchangeRequest struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// 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) ClearClientProtocolType ¶ added in v1.20.2
func (x *MetadataExchangeRequest) ClearClientProtocolType()
func (*MetadataExchangeRequest) ClearUserAgent ¶ added in v1.20.2
func (x *MetadataExchangeRequest) ClearUserAgent()
func (*MetadataExchangeRequest) GetClientProtocolType ¶
func (x *MetadataExchangeRequest) GetClientProtocolType() MetadataExchangeRequest_ClientProtocolType
func (*MetadataExchangeRequest) GetUserAgent ¶
func (x *MetadataExchangeRequest) GetUserAgent() string
func (*MetadataExchangeRequest) HasClientProtocolType ¶ added in v1.20.2
func (x *MetadataExchangeRequest) HasClientProtocolType() bool
func (*MetadataExchangeRequest) HasUserAgent ¶ added in v1.20.2
func (x *MetadataExchangeRequest) HasUserAgent() bool
func (*MetadataExchangeRequest) ProtoMessage ¶
func (*MetadataExchangeRequest) ProtoMessage()
func (*MetadataExchangeRequest) ProtoReflect ¶
func (x *MetadataExchangeRequest) ProtoReflect() protoreflect.Message
func (*MetadataExchangeRequest) Reset ¶
func (x *MetadataExchangeRequest) Reset()
func (*MetadataExchangeRequest) SetClientProtocolType ¶ added in v1.20.2
func (x *MetadataExchangeRequest) SetClientProtocolType(v MetadataExchangeRequest_ClientProtocolType)
func (*MetadataExchangeRequest) SetUserAgent ¶ added in v1.20.2
func (x *MetadataExchangeRequest) SetUserAgent(v string)
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) 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 MetadataExchangeRequest_builder ¶ added in v1.20.2
type MetadataExchangeRequest_builder struct {
// User agent from the connector sending the request.
UserAgent *string
// 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
// contains filtered or unexported fields
}
func (MetadataExchangeRequest_builder) Build ¶ added in v1.20.2
func (b0 MetadataExchangeRequest_builder) Build() *MetadataExchangeRequest
type MetadataExchangeResponse ¶
type MetadataExchangeResponse struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
The response from the Cloud SQL instance back to the connector following an MetadataExchangeRequest.
func (*MetadataExchangeResponse) ClearErrorMessage ¶ added in v1.20.2
func (x *MetadataExchangeResponse) ClearErrorMessage()
func (*MetadataExchangeResponse) ClearResponseStatusCode ¶ added in v1.20.2
func (x *MetadataExchangeResponse) ClearResponseStatusCode()
func (*MetadataExchangeResponse) GetErrorMessage ¶
func (x *MetadataExchangeResponse) GetErrorMessage() string
func (*MetadataExchangeResponse) GetResponseStatusCode ¶
func (x *MetadataExchangeResponse) GetResponseStatusCode() MetadataExchangeResponse_ResponseStatusCode
func (*MetadataExchangeResponse) HasErrorMessage ¶ added in v1.20.2
func (x *MetadataExchangeResponse) HasErrorMessage() bool
func (*MetadataExchangeResponse) HasResponseStatusCode ¶ added in v1.20.2
func (x *MetadataExchangeResponse) HasResponseStatusCode() bool
func (*MetadataExchangeResponse) ProtoMessage ¶
func (*MetadataExchangeResponse) ProtoMessage()
func (*MetadataExchangeResponse) ProtoReflect ¶
func (x *MetadataExchangeResponse) ProtoReflect() protoreflect.Message
func (*MetadataExchangeResponse) Reset ¶
func (x *MetadataExchangeResponse) Reset()
func (*MetadataExchangeResponse) SetErrorMessage ¶ added in v1.20.2
func (x *MetadataExchangeResponse) SetErrorMessage(v string)
func (*MetadataExchangeResponse) SetResponseStatusCode ¶ added in v1.20.2
func (x *MetadataExchangeResponse) SetResponseStatusCode(v MetadataExchangeResponse_ResponseStatusCode)
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) 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
type MetadataExchangeResponse_builder ¶ added in v1.20.2
type MetadataExchangeResponse_builder struct {
// Status code.
ResponseStatusCode *MetadataExchangeResponse_ResponseStatusCode
// Error message.
ErrorMessage *string
// contains filtered or unexported fields
}
func (MetadataExchangeResponse_builder) Build ¶ added in v1.20.2
func (b0 MetadataExchangeResponse_builder) Build() *MetadataExchangeResponse
Click to show internal directories.
Click to hide internal directories.