mdx

package
v1.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (*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 (*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) Enum

func (MetadataExchangeRequest_ClientProtocolType) Number

func (MetadataExchangeRequest_ClientProtocolType) String

func (MetadataExchangeRequest_ClientProtocolType) Type

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

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 (*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 (*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) Enum

func (MetadataExchangeResponse_ResponseStatusCode) Number

func (MetadataExchangeResponse_ResponseStatusCode) String

func (MetadataExchangeResponse_ResponseStatusCode) Type

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL