Class Partition.Builder

  • All Implemented Interfaces:
    PartitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Partition

    public static final class Partition.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
    implements PartitionOrBuilder
     Represents partition metadata contained within entity instances.
     
    Protobuf type google.cloud.dataplex.v1.Partition
    • 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<Partition.Builder>
      • clear

        public Partition.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<Partition.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<Partition.Builder>
      • getDefaultInstanceForType

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

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

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

        public Partition.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<Partition.Builder>
      • setField

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

        public Partition.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<Partition.Builder>
      • clearOneof

        public Partition.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<Partition.Builder>
      • setRepeatedField

        public Partition.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<Partition.Builder>
      • addRepeatedField

        public Partition.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<Partition.Builder>
      • mergeFrom

        public Partition.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<Partition.Builder>
      • isInitialized

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

        public Partition.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<Partition.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. Partition values used in the HTTP URL must be
         double encoded. For example, `url_encode(url_encode(value))` can be used
         to encode "US:CA/CA#Sunnyvale so that the request URL ends
         with "/partitions/US%253ACA/CA%2523Sunnyvale".
         The name field in the response retains the encoded format.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface PartitionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Partition values used in the HTTP URL must be
         double encoded. For example, `url_encode(url_encode(value))` can be used
         to encode "US:CA/CA#Sunnyvale so that the request URL ends
         with "/partitions/US%253ACA/CA%2523Sunnyvale".
         The name field in the response retains the encoded format.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface PartitionOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Partition.Builder setName​(String value)
         Output only. Partition values used in the HTTP URL must be
         double encoded. For example, `url_encode(url_encode(value))` can be used
         to encode "US:CA/CA#Sunnyvale so that the request URL ends
         with "/partitions/US%253ACA/CA%2523Sunnyvale".
         The name field in the response retains the encoded format.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Partition.Builder clearName()
         Output only. Partition values used in the HTTP URL must be
         double encoded. For example, `url_encode(url_encode(value))` can be used
         to encode "US:CA/CA#Sunnyvale so that the request URL ends
         with "/partitions/US%253ACA/CA%2523Sunnyvale".
         The name field in the response retains the encoded format.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public Partition.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Partition values used in the HTTP URL must be
         double encoded. For example, `url_encode(url_encode(value))` can be used
         to encode "US:CA/CA#Sunnyvale so that the request URL ends
         with "/partitions/US%253ACA/CA%2523Sunnyvale".
         The name field in the response retains the encoded format.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getValuesList

        public com.google.protobuf.ProtocolStringList getValuesList()
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getValuesList in interface PartitionOrBuilder
        Returns:
        A list containing the values.
      • getValuesCount

        public int getValuesCount()
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getValuesCount in interface PartitionOrBuilder
        Returns:
        The count of values.
      • getValues

        public String getValues​(int index)
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getValues in interface PartitionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The values at the given index.
      • getValuesBytes

        public com.google.protobuf.ByteString getValuesBytes​(int index)
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getValuesBytes in interface PartitionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the values at the given index.
      • setValues

        public Partition.Builder setValues​(int index,
                                           String value)
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        index - The index to set the value at.
        value - The values to set.
        Returns:
        This builder for chaining.
      • addValues

        public Partition.Builder addValues​(String value)
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The values to add.
        Returns:
        This builder for chaining.
      • addAllValues

        public Partition.Builder addAllValues​(Iterable<String> values)
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        values - The values to add.
        Returns:
        This builder for chaining.
      • clearValues

        public Partition.Builder clearValues()
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • addValuesBytes

        public Partition.Builder addValuesBytes​(com.google.protobuf.ByteString value)
         Required. Immutable. The set of values representing the partition, which
         correspond to the partition schema defined in the parent entity.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes of the values to add.
        Returns:
        This builder for chaining.
      • getLocation

        public String getLocation()
         Required. Immutable. The location of the entity data within the partition,
         for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
         `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
         
        string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getLocation in interface PartitionOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         Required. Immutable. The location of the entity data within the partition,
         for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
         `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
         
        string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getLocationBytes in interface PartitionOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public Partition.Builder setLocation​(String value)
         Required. Immutable. The location of the entity data within the partition,
         for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
         `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
         
        string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public Partition.Builder clearLocation()
         Required. Immutable. The location of the entity data within the partition,
         for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
         `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
         
        string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setLocationBytes

        public Partition.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         Required. Immutable. The location of the entity data within the partition,
         for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
         `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
         
        string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • getEtag

        @Deprecated
        public String getEtag()
        Deprecated.
        google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513
         Optional. The etag for this partition.
         
        string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEtag in interface PartitionOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        @Deprecated
        public com.google.protobuf.ByteString getEtagBytes()
        Deprecated.
        google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513
         Optional. The etag for this partition.
         
        string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEtagBytes in interface PartitionOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        @Deprecated
        public Partition.Builder setEtag​(String value)
        Deprecated.
        google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513
         Optional. The etag for this partition.
         
        string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        @Deprecated
        public Partition.Builder clearEtag()
        Deprecated.
        google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513
         Optional. The etag for this partition.
         
        string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setEtagBytes

        @Deprecated
        public Partition.Builder setEtagBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513
         Optional. The etag for this partition.
         
        string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Partition.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<Partition.Builder>
      • mergeUnknownFields

        public final Partition.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<Partition.Builder>