Package cloud.google.com/go/bigquery/connection/apiv1beta1/connectionpb (v1.59.1)

Variables

CloudSqlProperties_DatabaseType_name, CloudSqlProperties_DatabaseType_value

var (
	CloudSqlProperties_DatabaseType_name = map[int32]string{
		0: "DATABASE_TYPE_UNSPECIFIED",
		1: "POSTGRES",
		2: "MYSQL",
	}
	CloudSqlProperties_DatabaseType_value = map[string]int32{
		"DATABASE_TYPE_UNSPECIFIED": 0,
		"POSTGRES":                  1,
		"MYSQL":                     2,
	}
)

Enum value maps for CloudSqlProperties_DatabaseType.

File_google_cloud_bigquery_connection_v1beta1_connection_proto

var File_google_cloud_bigquery_connection_v1beta1_connection_proto protoreflect.FileDescriptor

Functions

func RegisterConnectionServiceServer

func RegisterConnectionServiceServer(s *grpc.Server, srv ConnectionServiceServer)

CloudSqlCredential

type CloudSqlCredential struct {

	// The username for the credential.
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// The password for the credential.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Credential info for the Cloud SQL.

func (*CloudSqlCredential) Descriptor

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

Deprecated: Use CloudSqlCredential.ProtoReflect.Descriptor instead.

func (*CloudSqlCredential) GetPassword

func (x *CloudSqlCredential) GetPassword() string

func (*CloudSqlCredential) GetUsername

func (x *CloudSqlCredential) GetUsername() string

func (*CloudSqlCredential) ProtoMessage

func (*CloudSqlCredential) ProtoMessage()

func (*CloudSqlCredential) ProtoReflect

func (x *CloudSqlCredential) ProtoReflect() protoreflect.Message

func (*CloudSqlCredential) Reset

func (x *CloudSqlCredential) Reset()

func (*CloudSqlCredential) String

func (x *CloudSqlCredential) String() string

CloudSqlProperties

type CloudSqlProperties struct {
	InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`

	Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`

	Type CloudSqlProperties_DatabaseType "" /* 140 byte string literal not displayed */

	Credential *CloudSqlCredential `protobuf:"bytes,4,opt,name=credential,proto3" json:"credential,omitempty"`

	ServiceAccountId string `protobuf:"bytes,5,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`

}

Connection properties specific to the Cloud SQL.

func (*CloudSqlProperties) Descriptor

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

Deprecated: Use CloudSqlProperties.ProtoReflect.Descriptor instead.

func (*CloudSqlProperties) GetCredential

func (x *CloudSqlProperties) GetCredential() *CloudSqlCredential

func (*CloudSqlProperties) GetDatabase

func (x *CloudSqlProperties) GetDatabase() string

func (*CloudSqlProperties) GetInstanceId

func (x *CloudSqlProperties) GetInstanceId() string

func (*CloudSqlProperties) GetServiceAccountId

func (x *CloudSqlProperties) GetServiceAccountId() string

func (*CloudSqlProperties) GetType

func (*CloudSqlProperties) ProtoMessage

func (*CloudSqlProperties) ProtoMessage()

func (*CloudSqlProperties) ProtoReflect

func (x *CloudSqlProperties) ProtoReflect() protoreflect.Message

func (*CloudSqlProperties) Reset

func (x *CloudSqlProperties) Reset()

func (*CloudSqlProperties) String

func (x *CloudSqlProperties) String() string

CloudSqlProperties_DatabaseType

type CloudSqlProperties_DatabaseType int32

Supported Cloud SQL database types.

CloudSqlProperties_DATABASE_TYPE_UNSPECIFIED, CloudSqlProperties_POSTGRES, CloudSqlProperties_MYSQL

const (
	// Unspecified database type.
	CloudSqlProperties_DATABASE_TYPE_UNSPECIFIED CloudSqlProperties_DatabaseType = 0
	// Cloud SQL for PostgreSQL.
	CloudSqlProperties_POSTGRES CloudSqlProperties_DatabaseType = 1
	// Cloud SQL for MySQL.
	CloudSqlProperties_MYSQL CloudSqlProperties_DatabaseType = 2
)

func (CloudSqlProperties_DatabaseType) Descriptor

func (CloudSqlProperties_DatabaseType) Enum

func (CloudSqlProperties_DatabaseType) EnumDescriptor

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

Deprecated: Use CloudSqlProperties_DatabaseType.Descriptor instead.

func (CloudSqlProperties_DatabaseType) Number

func (CloudSqlProperties_DatabaseType) String

func (CloudSqlProperties_DatabaseType) Type

Connection

type Connection struct {

	// The resource name of the connection in the form of:
	// `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User provided display name for the connection.
	FriendlyName