Class ConnectionProto.Connection (2.6.0)

public static final class ConnectionProto.Connection extends GeneratedMessageV3 implements ConnectionProto.ConnectionOrBuilder

Configuration parameters to establish connection with an external data source, except the credential attributes.

Protobuf type google.cloud.bigquery.connection.v1beta1.Connection

Static Fields

CLOUD_SQL_FIELD_NUMBER

public static final int CLOUD_SQL_FIELD_NUMBER
Field Value
TypeDescription
int

CREATION_TIME_FIELD_NUMBER

public static final int CREATION_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

FRIENDLY_NAME_FIELD_NUMBER

public static final int FRIENDLY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

HAS_CREDENTIAL_FIELD_NUMBER

public static final int HAS_CREDENTIAL_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_MODIFIED_TIME_FIELD_NUMBER

public static final int LAST_MODIFIED_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConnectionProto.Connection getDefaultInstance()
Returns
TypeDescription
ConnectionProto.Connection

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConnectionProto.Connection.Builder newBuilder()
Returns
TypeDescription
ConnectionProto.Connection.Builder

newBuilder(ConnectionProto.Connection prototype)

public static ConnectionProto.Connection.Builder newBuilder(ConnectionProto.Connection prototype)
Parameter
NameDescription
prototypeConnectionProto.Connection
Returns
TypeDescription
ConnectionProto.Connection.Builder

parseDelimitedFrom(InputStream input)

public static ConnectionProto.Connection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionProto.Connection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConnectionProto.Connection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConnectionProto.Connection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConnectionProto.Connection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConnectionProto.Connection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConnectionProto.Connection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionProto.Connection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConnectionProto.Connection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionProto.Connection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConnectionProto.Connection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConnectionProto.Connection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConnectionProto.Connection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConnectionProto.Connection> parser()
Returns
TypeDescription
Parser<Connection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCloudSql()

public ConnectionProto.CloudSqlProperties getCloudSql()

Cloud SQL properties.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4;

Returns
TypeDescription
ConnectionProto.CloudSqlProperties

The cloudSql.

getCloudSqlOrBuilder()

public ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder()

Cloud SQL properties.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4;

Returns
TypeDescription
ConnectionProto.CloudSqlPropertiesOrBuilder

getCreationTime()

public long getCreationTime()

Output only. The creation timestamp of the connection.

int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The creationTime.

getDefaultInstanceForType()

public ConnectionProto.Connection getDefaultInstanceForType()
Returns
TypeDescription
ConnectionProto.Connection

getDescription()

public String getDescription()

User provided description.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

User provided description.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getFriendlyName()

public String getFriendlyName()

User provided display name for the connection.

string friendly_name = 2;

Returns
TypeDescription
String

The friendlyName.

getFriendlyNameBytes()

public ByteString getFriendlyNameBytes()

User provided display name for the connection.

string friendly_name = 2;

Returns
TypeDescription
ByteString

The bytes for friendlyName.

getHasCredential()

public boolean getHasCredential()

Output only. True, if credential is configured for this connection.

bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The hasCredential.

getLastModifiedTime()

public long getLastModifiedTime()

Output only. The last update timestamp of the connection.

int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The lastModifiedTime.

getName()

public String getName()

The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/connections/{connection_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<ConnectionProto.Connection> getParserForType()
Returns
TypeDescription
Parser<Connection>
Overrides

getPropertiesCase()

public ConnectionProto.Connection.PropertiesCase getPropertiesCase()
Returns
TypeDescription
ConnectionProto.Connection.PropertiesCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCloudSql()

public boolean hasCloudSql()

Cloud SQL properties.

.google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4;

Returns
TypeDescription
boolean

Whether the cloudSql field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConnectionProto.Connection.Builder newBuilderForType()
Returns
TypeDescription
ConnectionProto.Connection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConnectionProto.Connection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConnectionProto.Connection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConnectionProto.Connection.Builder toBuilder()
Returns
TypeDescription
ConnectionProto.Connection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException