Class DataSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder>
com.google.cloud.dataplex.v1.DataSource.Builder
All Implemented Interfaces:
DataSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataSource

public static final class DataSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSource.Builder> implements DataSourceOrBuilder
 The data source for DataScan.
 
Protobuf type google.cloud.dataplex.v1.DataSource
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public DataSource.Builder mergeFrom(DataSource other)
    • isInitialized

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

      public DataSource.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<DataSource.Builder>
      Throws:
      IOException
    • getSourceCase

      public DataSource.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface DataSourceOrBuilder
    • clearSource

      public DataSource.Builder clearSource()
    • hasEntity

      public boolean hasEntity()
       Immutable. The Dataplex Universal Catalog entity that represents the data
       source (e.g. BigQuery table) for DataScan, of the form:
       `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
       
      string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasEntity in interface DataSourceOrBuilder
      Returns:
      Whether the entity field is set.
    • getEntity

      public String getEntity()
       Immutable. The Dataplex Universal Catalog entity that represents the data
       source (e.g. BigQuery table) for DataScan, of the form:
       `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
       
      string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntity in interface DataSourceOrBuilder
      Returns:
      The entity.
    • getEntityBytes

      public com.google.protobuf.ByteString getEntityBytes()
       Immutable. The Dataplex Universal Catalog entity that represents the data
       source (e.g. BigQuery table) for DataScan, of the form:
       `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
       
      string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getEntityBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for entity.
    • setEntity

      public DataSource.Builder setEntity(String value)
       Immutable. The Dataplex Universal Catalog entity that represents the data
       source (e.g. BigQuery table) for DataScan, of the form:
       `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
       
      string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The entity to set.
      Returns:
      This builder for chaining.
    • clearEntity

      public DataSource.Builder clearEntity()
       Immutable. The Dataplex Universal Catalog entity that represents the data
       source (e.g. BigQuery table) for DataScan, of the form:
       `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
       
      string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setEntityBytes

      public DataSource.Builder setEntityBytes(com.google.protobuf.ByteString value)
       Immutable. The Dataplex Universal Catalog entity that represents the data
       source (e.g. BigQuery table) for DataScan, of the form:
       `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
       
      string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for entity to set.
      Returns:
      This builder for chaining.
    • hasResource

      public boolean hasResource()
       Immutable. The service-qualified full resource name of the cloud resource
       for a DataScan job to scan against. The field could either be: Cloud
       Storage bucket for DataDiscoveryScan Format:
       //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
       or
       BigQuery table of type "TABLE" for
       DataProfileScan/DataQualityScan/DataDocumentationScan Format:
       //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
       
      string resource = 101 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasResource in interface DataSourceOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public String getResource()
       Immutable. The service-qualified full resource name of the cloud resource
       for a DataScan job to scan against. The field could either be: Cloud
       Storage bucket for DataDiscoveryScan Format:
       //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
       or
       BigQuery table of type "TABLE" for
       DataProfileScan/DataQualityScan/DataDocumentationScan Format:
       //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
       
      string resource = 101 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getResource in interface DataSourceOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Immutable. The service-qualified full resource name of the cloud resource
       for a DataScan job to scan against. The field could either be: Cloud
       Storage bucket for DataDiscoveryScan Format:
       //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
       or
       BigQuery table of type "TABLE" for
       DataProfileScan/DataQualityScan/DataDocumentationScan Format:
       //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
       
      string resource = 101 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getResourceBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public DataSource.Builder setResource(String value)
       Immutable. The service-qualified full resource name of the cloud resource
       for a DataScan job to scan against. The field could either be: Cloud
       Storage bucket for DataDiscoveryScan Format:
       //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
       or
       BigQuery table of type "TABLE" for
       DataProfileScan/DataQualityScan/DataDocumentationScan Format:
       //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
       
      string resource = 101 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public DataSource.Builder clearResource()
       Immutable. The service-qualified full resource name of the cloud resource
       for a DataScan job to scan against. The field could either be: Cloud
       Storage bucket for DataDiscoveryScan Format:
       //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
       or
       BigQuery table of type "TABLE" for
       DataProfileScan/DataQualityScan/DataDocumentationScan Format:
       //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
       
      string resource = 101 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setResourceBytes

      public DataSource.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Immutable. The service-qualified full resource name of the cloud resource
       for a DataScan job to scan against. The field could either be: Cloud
       Storage bucket for DataDiscoveryScan Format:
       //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
       or
       BigQuery table of type "TABLE" for
       DataProfileScan/DataQualityScan/DataDocumentationScan Format:
       //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
       
      string resource = 101 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.