public static final class BigQueryDateShardedSpec.Builder extends GeneratedMessage.Builder<BigQueryDateShardedSpec.Builder> implements BigQueryDateShardedSpecOrBuilder Spec for a group of BigQuery tables with name pattern [prefix]YYYYMMDD.
Context:
https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding
Protobuf type google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BigQueryDateShardedSpec.BuilderImplements
BigQueryDateShardedSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public BigQueryDateShardedSpec build()| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec |
|
buildPartial()
public BigQueryDateShardedSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec |
|
clear()
public BigQueryDateShardedSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
|
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 | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
This builder for chaining. |
clearShardCount()
public BigQueryDateShardedSpec.Builder clearShardCount()Output only. Total number of shards.
int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
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 shard MyTable20180101, the
table_prefix is MyTable.
string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for dataset. |
getDefaultInstanceForType()
public BigQueryDateShardedSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getShardCount()
public long getShardCount()Output only. Total number of shards.
int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
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 shard MyTable20180101, the
table_prefix is MyTable.
string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
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 shard MyTable20180101, the
table_prefix is MyTable.
string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tablePrefix. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BigQueryDateShardedSpec other)
public BigQueryDateShardedSpec.Builder mergeFrom(BigQueryDateShardedSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
BigQueryDateShardedSpec |
| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BigQueryDateShardedSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BigQueryDateShardedSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe dataset to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dataset to set. |
| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
value |
longThe shardCount to set. |
| Returns | |
|---|---|
| Type | Description |
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 shard MyTable20180101, the
table_prefix is MyTable.
string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tablePrefix to set. |
| Returns | |
|---|---|
| Type | Description |
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 shard MyTable20180101, the
table_prefix is MyTable.
string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tablePrefix to set. |
| Returns | |
|---|---|
| Type | Description |
BigQueryDateShardedSpec.Builder |
This builder for chaining. |