Class BigQueryDateShardedSpec.Builder (1.9.0)

public static final class BigQueryDateShardedSpec.Builder extends GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder> implements BigQueryDateShardedSpecOrBuilder

Specification for a group of BigQuery tables with the [prefix]YYYYMMDD name pattern. For more information, see Introduction to partitioned tables.

Protobuf type google.cloud.datacatalog.v1.BigQueryDateShardedSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BigQueryDateShardedSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

build()

public BigQueryDateShardedSpec build()
Returns
TypeDescription
BigQueryDateShardedSpec

buildPartial()

public BigQueryDateShardedSpec buildPartial()
Returns
TypeDescription
BigQueryDateShardedSpec

clear()

public BigQueryDateShardedSpec.Builder clear()
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

clearDataset()

public BigQueryDateShardedSpec.Builder clearDataset()

Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}.

string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BigQueryDateShardedSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

clearLatestShardResource()

public BigQueryDateShardedSpec.Builder clearLatestShardResource()

Output only. BigQuery resource name of the latest shard.

string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BigQueryDateShardedSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

clearShardCount()

public BigQueryDateShardedSpec.Builder clearShardCount()

Output only. Total number of shards.

int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

clearTablePrefix()

public BigQueryDateShardedSpec.Builder clearTablePrefix()

Output only. The table name prefix of the shards. The name of any given shard is [table_prefix]YYYYMMDD. For example, for the MyTable20180101 shard, the table_prefix is MyTable.

string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

clone()

public BigQueryDateShardedSpec.Builder clone()
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

getDataset()

public String getDataset()

Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}.

string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}.

string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for dataset.

getDefaultInstanceForType()

public BigQueryDateShardedSpec getDefaultInstanceForType()
Returns
TypeDescription
BigQueryDateShardedSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLatestShardResource()

public String getLatestShardResource()

Output only. BigQuery resource name of the latest shard.

string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The latestShardResource.

getLatestShardResourceBytes()

public ByteString getLatestShardResourceBytes()

Output only. BigQuery resource name of the latest shard.

string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for latestShardResource.

getShardCount()

public long getShardCount()

Output only. Total number of shards.

int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The shardCount.

getTablePrefix()

public String getTablePrefix()

Output only. The table name prefix of the shards. The name of any given shard is [table_prefix]YYYYMMDD. For example, for the MyTable20180101 shard, the table_prefix is MyTable.

string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The tablePrefix.

getTablePrefixBytes()

public ByteString getTablePrefixBytes()

Output only. The table name prefix of the shards. The name of any given shard is [table_prefix]YYYYMMDD. For example, for the MyTable20180101 shard, the table_prefix is MyTable.

string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for tablePrefix.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BigQueryDateShardedSpec other)

public BigQueryDateShardedSpec.Builder mergeFrom(BigQueryDateShardedSpec other)
Parameter
NameDescription
otherBigQueryDateShardedSpec
Returns
TypeDescription
BigQueryDateShardedSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BigQueryDateShardedSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BigQueryDateShardedSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryDateShardedSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

setDataset(String value)

public BigQueryDateShardedSpec.Builder setDataset(String value)

Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}.

string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The dataset to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public BigQueryDateShardedSpec.Builder setDatasetBytes(ByteString value)

Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}.

string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for dataset to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BigQueryDateShardedSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

setLatestShardResource(String value)

public BigQueryDateShardedSpec.Builder setLatestShardResource(String value)

Output only. BigQuery resource name of the latest shard.

string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The latestShardResource to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setLatestShardResourceBytes(ByteString value)

public BigQueryDateShardedSpec.Builder setLatestShardResourceBytes(ByteString value)

Output only. BigQuery resource name of the latest shard.

string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for latestShardResource to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BigQueryDateShardedSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides

setShardCount(long value)

public BigQueryDateShardedSpec.Builder setShardCount(long value)

Output only. Total number of shards.

int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuelong

The shardCount to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setTablePrefix(String value)

public BigQueryDateShardedSpec.Builder setTablePrefix(String value)

Output only. The table name prefix of the shards. The name of any given shard is [table_prefix]YYYYMMDD. For example, for the MyTable20180101 shard, the table_prefix is MyTable.

string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The tablePrefix to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setTablePrefixBytes(ByteString value)

public BigQueryDateShardedSpec.Builder setTablePrefixBytes(ByteString value)

Output only. The table name prefix of the shards. The name of any given shard is [table_prefix]YYYYMMDD. For example, for the MyTable20180101 shard, the table_prefix is MyTable.

string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for tablePrefix to set.

Returns
TypeDescription
BigQueryDateShardedSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BigQueryDateShardedSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BigQueryDateShardedSpec.Builder
Overrides