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.datacatalog.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
 Physical location of an entry.
 
Protobuf type google.cloud.datacatalog.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
    • getPropertiesCase

      public DataSource.PropertiesCase getPropertiesCase()
      Specified by:
      getPropertiesCase in interface DataSourceOrBuilder
    • clearProperties

      public DataSource.Builder clearProperties()
    • getServiceValue

      public int getServiceValue()
       Service that physically stores the data.
       
      .google.cloud.datacatalog.v1.DataSource.Service service = 1;
      Specified by:
      getServiceValue in interface DataSourceOrBuilder
      Returns:
      The enum numeric value on the wire for service.
    • setServiceValue

      public DataSource.Builder setServiceValue(int value)
       Service that physically stores the data.
       
      .google.cloud.datacatalog.v1.DataSource.Service service = 1;
      Parameters:
      value - The enum numeric value on the wire for service to set.
      Returns:
      This builder for chaining.
    • getService

      public DataSource.Service getService()
       Service that physically stores the data.
       
      .google.cloud.datacatalog.v1.DataSource.Service service = 1;
      Specified by:
      getService in interface DataSourceOrBuilder
      Returns:
      The service.
    • setService

      public DataSource.Builder setService(DataSource.Service value)
       Service that physically stores the data.
       
      .google.cloud.datacatalog.v1.DataSource.Service service = 1;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public DataSource.Builder clearService()
       Service that physically stores the data.
       
      .google.cloud.datacatalog.v1.DataSource.Service service = 1;
      Returns:
      This builder for chaining.
    • getResource

      public String getResource()
       Full name of a resource as defined by the service. For example:
      
       `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
       
      string resource = 2;
      Specified by:
      getResource in interface DataSourceOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Full name of a resource as defined by the service. For example:
      
       `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
       
      string resource = 2;
      Specified by:
      getResourceBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public DataSource.Builder setResource(String value)
       Full name of a resource as defined by the service. For example:
      
       `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
       
      string resource = 2;
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public DataSource.Builder clearResource()
       Full name of a resource as defined by the service. For example:
      
       `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
       
      string resource = 2;
      Returns:
      This builder for chaining.
    • setResourceBytes

      public DataSource.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Full name of a resource as defined by the service. For example:
      
       `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
       
      string resource = 2;
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getSourceEntry

      public String getSourceEntry()
       Output only. Data Catalog entry name, if applicable.
       
      string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceEntry in interface DataSourceOrBuilder
      Returns:
      The sourceEntry.
    • getSourceEntryBytes

      public com.google.protobuf.ByteString getSourceEntryBytes()
       Output only. Data Catalog entry name, if applicable.
       
      string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSourceEntryBytes in interface DataSourceOrBuilder
      Returns:
      The bytes for sourceEntry.
    • setSourceEntry

      public DataSource.Builder setSourceEntry(String value)
       Output only. Data Catalog entry name, if applicable.
       
      string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sourceEntry to set.
      Returns:
      This builder for chaining.
    • clearSourceEntry

      public DataSource.Builder clearSourceEntry()
       Output only. Data Catalog entry name, if applicable.
       
      string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSourceEntryBytes

      public DataSource.Builder setSourceEntryBytes(com.google.protobuf.ByteString value)
       Output only. Data Catalog entry name, if applicable.
       
      string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for sourceEntry to set.
      Returns:
      This builder for chaining.
    • hasStorageProperties

      public boolean hasStorageProperties()
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
      Specified by:
      hasStorageProperties in interface DataSourceOrBuilder
      Returns:
      Whether the storageProperties field is set.
    • getStorageProperties

      public StorageProperties getStorageProperties()
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
      Specified by:
      getStorageProperties in interface DataSourceOrBuilder
      Returns:
      The storageProperties.
    • setStorageProperties

      public DataSource.Builder setStorageProperties(StorageProperties value)
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
    • setStorageProperties

      public DataSource.Builder setStorageProperties(StorageProperties.Builder builderForValue)
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
    • mergeStorageProperties

      public DataSource.Builder mergeStorageProperties(StorageProperties value)
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
    • clearStorageProperties

      public DataSource.Builder clearStorageProperties()
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
    • getStoragePropertiesBuilder

      public StorageProperties.Builder getStoragePropertiesBuilder()
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
    • getStoragePropertiesOrBuilder

      public StoragePropertiesOrBuilder getStoragePropertiesOrBuilder()
       Detailed properties of the underlying storage.
       
      .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;
      Specified by:
      getStoragePropertiesOrBuilder in interface DataSourceOrBuilder