Send feedback
Class BigQueryDateShardedSpec.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.5.4 keyboard_arrow_down
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]
(https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
Protobuf type google.cloud.datacatalog.v1.BigQueryDateShardedSpec
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BigQueryDateShardedSpec . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public BigQueryDateShardedSpec build ()
Returns
buildPartial()
public BigQueryDateShardedSpec buildPartial ()
Returns
clear()
public BigQueryDateShardedSpec . Builder clear ()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public BigQueryDateShardedSpec . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BigQueryDateShardedSpec . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearShardCount()
public BigQueryDateShardedSpec . Builder clearShardCount ()
Output only. Total number of shards.
int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
clone()
public BigQueryDateShardedSpec . Builder clone ()
Returns
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
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
getDefaultInstanceForType()
public BigQueryDateShardedSpec getDefaultInstanceForType ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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 the `MyTable20180101` shard, 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 the `MyTable20180101` shard, 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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(BigQueryDateShardedSpec other)
public BigQueryDateShardedSpec . Builder mergeFrom ( BigQueryDateShardedSpec other )
Parameter
Returns
public BigQueryDateShardedSpec . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BigQueryDateShardedSpec . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BigQueryDateShardedSpec . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Name Description value String
The dataset to set.
Returns
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 ByteString
The bytes for dataset to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BigQueryDateShardedSpec . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BigQueryDateShardedSpec . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Name Description value long
The shardCount to set.
Returns
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
Name Description value String
The tablePrefix to set.
Returns
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
Name Description value ByteString
The bytes for tablePrefix to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final BigQueryDateShardedSpec . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]