Class DataAttributeBinding

  • All Implemented Interfaces:
    DataAttributeBindingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DataAttributeBinding
    extends com.google.protobuf.GeneratedMessageV3
    implements DataAttributeBindingOrBuilder
     DataAttributeBinding represents binding of attributes to resources. Eg: Bind
     'CustomerInfo' entity with 'PII' attribute.
     
    Protobuf type google.cloud.dataplex.v1.DataAttributeBinding
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. The relative resource name of the Data Attribute Binding, of
         the form:
         projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface DataAttributeBindingOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The relative resource name of the Data Attribute Binding, of
         the form:
         projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface DataAttributeBindingOrBuilder
        Returns:
        The bytes for name.
      • getUid

        public String getUid()
         Output only. System generated globally unique ID for the
         DataAttributeBinding. This ID will be different if the DataAttributeBinding
         is deleted and re-created with the same name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface DataAttributeBindingOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. System generated globally unique ID for the
         DataAttributeBinding. This ID will be different if the DataAttributeBinding
         is deleted and re-created with the same name.
         
        string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface DataAttributeBindingOrBuilder
        Returns:
        The bytes for uid.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when the DataAttributeBinding was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface DataAttributeBindingOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the DataAttributeBinding was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface DataAttributeBindingOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the DataAttributeBinding was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface DataAttributeBindingOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time when the DataAttributeBinding was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface DataAttributeBindingOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when the DataAttributeBinding was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface DataAttributeBindingOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when the DataAttributeBinding was last updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface DataAttributeBindingOrBuilder
      • getDescription

        public String getDescription()
         Optional. Description of the DataAttributeBinding.
         
        string description = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface DataAttributeBindingOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Description of the DataAttributeBinding.
         
        string description = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface DataAttributeBindingOrBuilder
        Returns:
        The bytes for description.
      • getDisplayName

        public String getDisplayName()
         Optional. User friendly display name.
         
        string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayName in interface DataAttributeBindingOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Optional. User friendly display name.
         
        string display_name = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayNameBytes in interface DataAttributeBindingOrBuilder
        Returns:
        The bytes for displayName.
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. User-defined labels for the DataAttributeBinding.
         
        map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface DataAttributeBindingOrBuilder
      • getEtag

        public String getEtag()
         This checksum is computed by the server based on the value of other
         fields, and may be sent on update and delete requests to ensure the
         client has an up-to-date value before proceeding.
         Etags must be used when calling the DeleteDataAttributeBinding and the
         UpdateDataAttributeBinding method.
         
        string etag = 8;
        Specified by:
        getEtag in interface DataAttributeBindingOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         This checksum is computed by the server based on the value of other
         fields, and may be sent on update and delete requests to ensure the
         client has an up-to-date value before proceeding.
         Etags must be used when calling the DeleteDataAttributeBinding and the
         UpdateDataAttributeBinding method.
         
        string etag = 8;
        Specified by:
        getEtagBytes in interface DataAttributeBindingOrBuilder
        Returns:
        The bytes for etag.
      • hasResource

        public boolean hasResource()
         Optional. Immutable. The resource name of the resource that is associated
         to attributes. Presently, only entity resource is supported in the form:
         projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id}
         Must belong in the same project and region as the attribute binding, and
         there can only exist one active binding for a resource.
         
        string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasResource in interface DataAttributeBindingOrBuilder
        Returns:
        Whether the resource field is set.
      • getResource

        public String getResource()
         Optional. Immutable. The resource name of the resource that is associated
         to attributes. Presently, only entity resource is supported in the form:
         projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id}
         Must belong in the same project and region as the attribute binding, and
         there can only exist one active binding for a resource.
         
        string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getResource in interface DataAttributeBindingOrBuilder
        Returns:
        The resource.
      • getResourceBytes

        public com.google.protobuf.ByteString getResourceBytes()
         Optional. Immutable. The resource name of the resource that is associated
         to attributes. Presently, only entity resource is supported in the form:
         projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id}
         Must belong in the same project and region as the attribute binding, and
         there can only exist one active binding for a resource.
         
        string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getResourceBytes in interface DataAttributeBindingOrBuilder
        Returns:
        The bytes for resource.
      • getAttributesList

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

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

        public String getAttributes​(int index)
         Optional. List of attributes to be associated with the resource, provided
         in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getAttributes in interface DataAttributeBindingOrBuilder
        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 resource, provided
         in the form:
         projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}
         
        repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getAttributesBytes in interface DataAttributeBindingOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the attributes at the given index.
      • getPathsList

        public List<DataAttributeBinding.Path> getPathsList()
         Optional. The list of paths for items within the associated resource (eg.
         columns and partitions within a table) along with attribute bindings.
         
        repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPathsList in interface DataAttributeBindingOrBuilder
      • getPathsOrBuilderList

        public List<? extends DataAttributeBinding.PathOrBuilder> getPathsOrBuilderList()
         Optional. The list of paths for items within the associated resource (eg.
         columns and partitions within a table) along with attribute bindings.
         
        repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPathsOrBuilderList in interface DataAttributeBindingOrBuilder
      • getPathsCount

        public int getPathsCount()
         Optional. The list of paths for items within the associated resource (eg.
         columns and partitions within a table) along with attribute bindings.
         
        repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPathsCount in interface DataAttributeBindingOrBuilder
      • getPaths

        public DataAttributeBinding.Path getPaths​(int index)
         Optional. The list of paths for items within the associated resource (eg.
         columns and partitions within a table) along with attribute bindings.
         
        repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPaths in interface DataAttributeBindingOrBuilder
      • getPathsOrBuilder

        public DataAttributeBinding.PathOrBuilder getPathsOrBuilder​(int index)
         Optional. The list of paths for items within the associated resource (eg.
         columns and partitions within a table) along with attribute bindings.
         
        repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPathsOrBuilder in interface DataAttributeBindingOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DataAttributeBinding parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataAttributeBinding parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataAttributeBinding parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataAttributeBinding parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataAttributeBinding parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DataAttributeBinding parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public DataAttributeBinding.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DataAttributeBinding.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DataAttributeBinding.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<DataAttributeBinding> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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