Class 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.GeneratedMessageV3.Builder<DataSource.Builder>
    implements DataSourceOrBuilder
     Physical location of an entry.
     
    Protobuf type google.cloud.datacatalog.v1.DataSource
    • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public DataSource.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
      • setField

        public DataSource.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
      • clearField

        public DataSource.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
      • clearOneof

        public DataSource.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DataSource.Builder>
      • setRepeatedField

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

        public DataSource.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataSource.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • setUnknownFields

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

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