Class DataAsset

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataplex.v1.DataAsset
All Implemented Interfaces:
DataAssetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DataAsset extends com.google.protobuf.GeneratedMessage implements DataAssetOrBuilder
 Represents a data asset resource that can be packaged and shared via a data
 product.
 
Protobuf type google.cloud.dataplex.v1.DataAsset
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

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

      public String getName()
       Identifier. Resource name of the data asset.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DataAssetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the data asset.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DataAssetOrBuilder
      Returns:
      The bytes for name.
    • getUid

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

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

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

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

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

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

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

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time at which the data asset was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DataAssetOrBuilder
    • getEtag

      public String getEtag()
       Optional. 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.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface DataAssetOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. 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.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface DataAssetOrBuilder
      Returns:
      The bytes for etag.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DataAssetOrBuilder
       Optional. User-defined labels for the data asset.
      
       Example:
       ```
       {
       "environment": "production",
       "billing": "marketing-department"
       }
       ```
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface DataAssetOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. User-defined labels for the data asset.
      
       Example:
       ```
       {
       "environment": "production",
       "billing": "marketing-department"
       }
       ```
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface DataAssetOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface DataAssetOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. User-defined labels for the data asset.
      
       Example:
       ```
       {
       "environment": "production",
       "billing": "marketing-department"
       }
       ```
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface DataAssetOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. User-defined labels for the data asset.
      
       Example:
       ```
       {
       "environment": "production",
       "billing": "marketing-department"
       }
       ```
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface DataAssetOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. User-defined labels for the data asset.
      
       Example:
       ```
       {
       "environment": "production",
       "billing": "marketing-department"
       }
       ```
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface DataAssetOrBuilder
    • getResource

      public String getResource()
       Required. Immutable. Full resource name of the cloud resource represented
       by the data asset. This must follow
       https://cloud.google.com/iam/docs/full-resource-names. Example:
       `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789`
       Only BigQuery tables and datasets are currently supported.
       Data asset creator must have getIamPolicy and setIamPolicy permissions on
       the resource. Data asset creator must also have resource specific get
       permission, for instance, bigquery.tables.get for BigQuery tables.
       
      string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResource in interface DataAssetOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Required. Immutable. Full resource name of the cloud resource represented
       by the data asset. This must follow
       https://cloud.google.com/iam/docs/full-resource-names. Example:
       `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789`
       Only BigQuery tables and datasets are currently supported.
       Data asset creator must have getIamPolicy and setIamPolicy permissions on
       the resource. Data asset creator must also have resource specific get
       permission, for instance, bigquery.tables.get for BigQuery tables.
       
      string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceBytes in interface DataAssetOrBuilder
      Returns:
      The bytes for resource.
    • getAccessGroupConfigsCount

      public int getAccessGroupConfigsCount()
      Description copied from interface: DataAssetOrBuilder
       Optional. Access groups configurations for this data asset.
      
       The key is `DataProduct.AccessGroup.id` and the value is
       `AccessGroupConfig`.
      
       Example:
       ```
       {
       "analyst": {
       "iamRoles": ["roles/bigquery.dataViewer"]
       }
       }
       ```
      
       Currently, at most one IAM role is allowed per access group. For providing
       multiple predefined IAM roles, wrap them in a custom IAM role as per
       https://cloud.google.com/iam/docs/creating-custom-roles.
       
      map<string, .google.cloud.dataplex.v1.DataAsset.AccessGroupConfig> access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessGroupConfigsCount in interface DataAssetOrBuilder
    • containsAccessGroupConfigs

      public boolean containsAccessGroupConfigs(String key)
       Optional. Access groups configurations for this data asset.
      
       The key is `DataProduct.AccessGroup.id` and the value is
       `AccessGroupConfig`.
      
       Example:
       ```
       {
       "analyst": {
       "iamRoles": ["roles/bigquery.dataViewer"]
       }
       }
       ```
      
       Currently, at most one IAM role is allowed per access group. For providing
       multiple predefined IAM roles, wrap them in a custom IAM role as per
       https://cloud.google.com/iam/docs/creating-custom-roles.
       
      map<string, .google.cloud.dataplex.v1.DataAsset.AccessGroupConfig> access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAccessGroupConfigs in interface DataAssetOrBuilder
    • getAccessGroupConfigs

      @Deprecated public Map<String,DataAsset.AccessGroupConfig> getAccessGroupConfigs()
      Deprecated.
      Specified by:
      getAccessGroupConfigs in interface DataAssetOrBuilder
    • getAccessGroupConfigsMap

      public Map<String,DataAsset.AccessGroupConfig> getAccessGroupConfigsMap()
       Optional. Access groups configurations for this data asset.
      
       The key is `DataProduct.AccessGroup.id` and the value is
       `AccessGroupConfig`.
      
       Example:
       ```
       {
       "analyst": {
       "iamRoles": ["roles/bigquery.dataViewer"]
       }
       }
       ```
      
       Currently, at most one IAM role is allowed per access group. For providing
       multiple predefined IAM roles, wrap them in a custom IAM role as per
       https://cloud.google.com/iam/docs/creating-custom-roles.
       
      map<string, .google.cloud.dataplex.v1.DataAsset.AccessGroupConfig> access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessGroupConfigsMap in interface DataAssetOrBuilder
    • getAccessGroupConfigsOrDefault

      public DataAsset.AccessGroupConfig getAccessGroupConfigsOrDefault(String key, DataAsset.AccessGroupConfig defaultValue)
       Optional. Access groups configurations for this data asset.
      
       The key is `DataProduct.AccessGroup.id` and the value is
       `AccessGroupConfig`.
      
       Example:
       ```
       {
       "analyst": {
       "iamRoles": ["roles/bigquery.dataViewer"]
       }
       }
       ```
      
       Currently, at most one IAM role is allowed per access group. For providing
       multiple predefined IAM roles, wrap them in a custom IAM role as per
       https://cloud.google.com/iam/docs/creating-custom-roles.
       
      map<string, .google.cloud.dataplex.v1.DataAsset.AccessGroupConfig> access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessGroupConfigsOrDefault in interface DataAssetOrBuilder
    • getAccessGroupConfigsOrThrow

      public DataAsset.AccessGroupConfig getAccessGroupConfigsOrThrow(String key)
       Optional. Access groups configurations for this data asset.
      
       The key is `DataProduct.AccessGroup.id` and the value is
       `AccessGroupConfig`.
      
       Example:
       ```
       {
       "analyst": {
       "iamRoles": ["roles/bigquery.dataViewer"]
       }
       }
       ```
      
       Currently, at most one IAM role is allowed per access group. For providing
       multiple predefined IAM roles, wrap them in a custom IAM role as per
       https://cloud.google.com/iam/docs/creating-custom-roles.
       
      map<string, .google.cloud.dataplex.v1.DataAsset.AccessGroupConfig> access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessGroupConfigsOrThrow in interface DataAssetOrBuilder
    • isInitialized

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

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 DataAsset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static DataAsset parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataAsset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataAsset parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataAsset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataAsset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataAsset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DataAsset.Builder newBuilder()
    • newBuilder

      public static DataAsset.Builder newBuilder(DataAsset prototype)
    • toBuilder

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

      protected DataAsset.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataAsset getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataAsset> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataAsset> 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.GeneratedMessage
    • getDefaultInstanceForType

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