Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public BigQueryDateShardedSpec.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>
      • clearField

        public BigQueryDateShardedSpec.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>
      • clearOneof

        public BigQueryDateShardedSpec.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>
      • setRepeatedField

        public BigQueryDateShardedSpec.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>
      • addRepeatedField

        public BigQueryDateShardedSpec.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final BigQueryDateShardedSpec.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>
      • mergeUnknownFields

        public final BigQueryDateShardedSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BigQueryDateShardedSpec.Builder>