Class DatabaseTableReference (0.21.0)

public final class DatabaseTableReference extends GeneratedMessage implements DatabaseTableReferenceOrBuilder

Message representing a table including its schema.

Protobuf type google.cloud.geminidataanalytics.v1beta.DatabaseTableReference

Static Fields

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

TABLE_ID_FIELD_NUMBER

public static final int TABLE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DatabaseTableReference getDefaultInstance()
Returns
Type Description
DatabaseTableReference

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DatabaseTableReference.Builder newBuilder()
Returns
Type Description
DatabaseTableReference.Builder

newBuilder(DatabaseTableReference prototype)

public static DatabaseTableReference.Builder newBuilder(DatabaseTableReference prototype)
Parameter
Name Description
prototype DatabaseTableReference
Returns
Type Description
DatabaseTableReference.Builder

parseDelimitedFrom(InputStream input)

public static DatabaseTableReference parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatabaseTableReference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DatabaseTableReference parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DatabaseTableReference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DatabaseTableReference parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DatabaseTableReference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DatabaseTableReference parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DatabaseTableReference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DatabaseTableReference parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DatabaseTableReference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DatabaseTableReference parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DatabaseTableReference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatabaseTableReference
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DatabaseTableReference> parser()
Returns
Type Description
Parser<DatabaseTableReference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DatabaseTableReference getDefaultInstanceForType()
Returns
Type Description
DatabaseTableReference

getParserForType()

public Parser<DatabaseTableReference> getParserForType()
Returns
Type Description
Parser<DatabaseTableReference>
Overrides

getSchema()

public Schema getSchema()

Optional. The schema of the table.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema

The schema.

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Optional. The schema of the table.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchemaOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTableId()

public String getTableId()

Required. The name of the table as defined in the database.

Note: The precise rules for table naming, including valid characters, length limits, and case sensitivity, are determined by the specific database system.

Requirements:

  • Exact Match: The provided name must be identical to the name stored in the database.
  • Case Sensitivity: Respect the case sensitivity rules of the specific database system and how the table was created. For example, "Orders" and "orders" may be distinct table names.
  • Special Characters/Keywords: If the table name includes spaces, special characters, or is a database reserved keyword, provide the literal name as it is stored. Do not add any database-specific identifier quoting characters (e.g., ", `, []).

    Examples:

  • Simple name: "orders", "UserActivity"
  • Case sensitive: "MyTable"
  • Name with spaces: "Order Details"
  • Name with other special characters: "user/data", "order-items"
  • Name that is a keyword: "Group", "Order"

    Permissions: The caller's credentials must have the necessary database permissions to access the table's schema and data.

string table_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tableId.

getTableIdBytes()

public ByteString getTableIdBytes()

Required. The name of the table as defined in the database.

Note: The precise rules for table naming, including valid characters, length limits, and case sensitivity, are determined by the specific database system.

Requirements:

  • Exact Match: The provided name must be identical to the name stored in the database.
  • Case Sensitivity: Respect the case sensitivity rules of the specific database system and how the table was created. For example, "Orders" and "orders" may be distinct table names.
  • Special Characters/Keywords: If the table name includes spaces, special characters, or is a database reserved keyword, provide the literal name as it is stored. Do not add any database-specific identifier quoting characters (e.g., ", `, []).

    Examples:

  • Simple name: "orders", "UserActivity"
  • Case sensitive: "MyTable"
  • Name with spaces: "Order Details"
  • Name with other special characters: "user/data", "order-items"
  • Name that is a keyword: "Group", "Order"

    Permissions: The caller's credentials must have the necessary database permissions to access the table's schema and data.

string table_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tableId.

hasSchema()

public boolean hasSchema()

Optional. The schema of the table.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the schema field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DatabaseTableReference.Builder newBuilderForType()
Returns
Type Description
DatabaseTableReference.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected DatabaseTableReference.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DatabaseTableReference.Builder
Overrides

toBuilder()

public DatabaseTableReference.Builder toBuilder()
Returns
Type Description
DatabaseTableReference.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException