Class BigQueryDateShardedSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BigQueryDateShardedSpec.Builder>
com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder
All Implemented Interfaces:
BigQueryDateShardedSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BigQueryDateShardedSpec

public static final class BigQueryDateShardedSpec.Builder extends com.google.protobuf.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BigQueryDateShardedSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BigQueryDateShardedSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BigQueryDateShardedSpec.Builder>
    • getDefaultInstanceForType

      public BigQueryDateShardedSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BigQueryDateShardedSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BigQueryDateShardedSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BigQueryDateShardedSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BigQueryDateShardedSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BigQueryDateShardedSpec.Builder>
    • mergeFrom

      public BigQueryDateShardedSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BigQueryDateShardedSpec.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getDataset in interface BigQueryDateShardedSpecOrBuilder
      Returns:
      The dataset.
    • getDatasetBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getDatasetBytes in interface BigQueryDateShardedSpecOrBuilder
      Returns:
      The bytes for dataset.
    • setDataset

      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) = { ... }
      Parameters:
      value - The dataset to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDatasetBytes

      public BigQueryDateShardedSpec.Builder setDatasetBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for dataset to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getTablePrefix in interface BigQueryDateShardedSpecOrBuilder
      Returns:
      The tablePrefix.
    • getTablePrefixBytes

      public com.google.protobuf.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];
      Specified by:
      getTablePrefixBytes in interface BigQueryDateShardedSpecOrBuilder
      Returns:
      The bytes for tablePrefix.
    • setTablePrefix

      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];
      Parameters:
      value - The tablePrefix to set.
      Returns:
      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:
      This builder for chaining.
    • setTablePrefixBytes

      public BigQueryDateShardedSpec.Builder setTablePrefixBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for tablePrefix to set.
      Returns:
      This builder for chaining.
    • getShardCount

      public long getShardCount()
       Output only. Total number of shards.
       
      int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getShardCount in interface BigQueryDateShardedSpecOrBuilder
      Returns:
      The shardCount.
    • setShardCount

      public BigQueryDateShardedSpec.Builder setShardCount(long value)
       Output only. Total number of shards.
       
      int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The shardCount to set.
      Returns:
      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:
      This builder for chaining.