Class DataAttributeBinding.Path.Builder

  • All Implemented Interfaces:
    DataAttributeBinding.PathOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DataAttributeBinding.Path

    public static final class DataAttributeBinding.Path.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DataAttributeBinding.Path.Builder>
    implements DataAttributeBinding.PathOrBuilder
     Represents a subresource of the given resource, and associated bindings
     with it. Currently supported subresources are column and partition schema
     fields within a table.
     
    Protobuf type google.cloud.dataplex.v1.DataAttributeBinding.Path
    • 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<DataAttributeBinding.Path.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<DataAttributeBinding.Path.Builder>
      • getDefaultInstanceForType

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

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

        public DataAttributeBinding.Path buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

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

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

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

        public String getName()
         Required. The name identifier of the path.
         Nested columns should be of the form: 'address.city'.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface DataAttributeBinding.PathOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name identifier of the path.
         Nested columns should be of the form: 'address.city'.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface DataAttributeBinding.PathOrBuilder
        Returns:
        The bytes for name.
      • setName

        public DataAttributeBinding.Path.Builder setName​(String value)
         Required. The name identifier of the path.
         Nested columns should be of the form: 'address.city'.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public DataAttributeBinding.Path.Builder clearName()
         Required. The name identifier of the path.
         Nested columns should be of the form: 'address.city'.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public DataAttributeBinding.Path.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name identifier of the path.
         Nested columns should be of the form: 'address.city'.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getAttributesList

        public com.google.protobuf.ProtocolStringList getAttributesList()
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getAttributesList in interface DataAttributeBinding.PathOrBuilder
        Returns:
        A list containing the attributes.
      • getAttributesCount

        public int getAttributesCount()
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getAttributesCount in interface DataAttributeBinding.PathOrBuilder
        Returns:
        The count of attributes.
      • getAttributes

        public String getAttributes​(int index)
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getAttributes in interface DataAttributeBinding.PathOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The attributes at the given index.
      • getAttributesBytes

        public com.google.protobuf.ByteString getAttributesBytes​(int index)
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getAttributesBytes in interface DataAttributeBinding.PathOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the attributes at the given index.
      • setAttributes

        public DataAttributeBinding.Path.Builder setAttributes​(int index,
                                                               String value)
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The attributes to set.
        Returns:
        This builder for chaining.
      • addAttributes

        public DataAttributeBinding.Path.Builder addAttributes​(String value)
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The attributes to add.
        Returns:
        This builder for chaining.
      • addAllAttributes

        public DataAttributeBinding.Path.Builder addAllAttributes​(Iterable<String> values)
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        values - The attributes to add.
        Returns:
        This builder for chaining.
      • clearAttributes

        public DataAttributeBinding.Path.Builder clearAttributes()
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addAttributesBytes

        public DataAttributeBinding.Path.Builder addAttributesBytes​(com.google.protobuf.ByteString value)
         Optional. List of attributes to be associated with the path of the
         resource, provided in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the attributes to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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