Package cloud.google.com/go/alloydb/connectors/apiv1beta/connectorspb (v1.12.1)

Variables

MetadataExchangeRequest_AuthType_name, MetadataExchangeRequest_AuthType_value

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.

MetadataExchangeResponse_ResponseCode_name, MetadataExchangeResponse_ResponseCode_value

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.

File_google_cloud_alloydb_connectors_v1beta_resources_proto

var File_google_cloud_alloydb_connectors_v1beta_resources_proto protoreflect.FileDescriptor

MetadataExchangeRequest

type MetadataExchangeRequest struct {
	UserAgent string `protobuf:"bytes,1,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`

	AuthType MetadataExchangeRequest_AuthType "" /* 163 byte string literal not displayed */

	Oauth2Token string `protobuf:"bytes,3,opt,name=oauth2_token,json=oauth2Token,proto3" json:"oauth2_token,omitempty"`

}

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

func (*MetadataExchangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use MetadataExchangeRequest.ProtoReflect.Descriptor instead.

func (*MetadataExchangeRequest) GetAuthType

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

MetadataExchangeRequest_AuthType

type MetadataExchangeRequest_AuthType int32

AuthType contains all supported authentication types.

MetadataExchangeRequest_AUTH_TYPE_UNSPECIFIED, MetadataExchangeRequest_DB_NATIVE, MetadataExchangeRequest_AUTO_IAM

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

func (MetadataExchangeRequest_AuthType) EnumDescriptor

func (MetadataExchangeRequest_AuthType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetadataExchangeRequest_AuthType.Descriptor instead.

func (MetadataExchangeRequest_AuthType) Number

func (MetadataExchangeRequest_AuthType) String

func (MetadataExchangeRequest_AuthType) Type

MetadataExchangeResponse

type MetadataExchangeResponse struct {
	ResponseCode MetadataExchangeResponse_ResponseCode "" /* 180 byte string literal not displayed */

	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`

}

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

func (*MetadataExchangeResponse) Descriptor() ([]byte, []int)

Deprecated: Use MetadataExchangeResponse.ProtoReflect.Descriptor instead.

func (*MetadataExchangeResponse) GetError

func (x *MetadataExchangeResponse) GetError() string

func (*MetadataExchangeResponse) GetResponseCode

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

MetadataExchangeResponse_ResponseCode

type MetadataExchangeResponse_ResponseCode int32

Response code.

MetadataExchangeResponse_RESPONSE_CODE_UNSPECIFIED, MetadataExchangeResponse_OK, MetadataExchangeResponse_ERROR

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

func (MetadataExchangeResponse_ResponseCode) EnumDescriptor

func (MetadataExchangeResponse_ResponseCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetadataExchangeResponse_ResponseCode.Descriptor instead.

func (MetadataExchangeResponse_ResponseCode) Number

func (MetadataExchangeResponse_ResponseCode) String

func (MetadataExchangeResponse_ResponseCode) Type