Class DataSource.Builder (1.28.0)

public static final class DataSource.Builder extends GeneratedMessageV3.Builder<DataSource.Builder> implements DataSourceOrBuilder

Physical location of an entry.

Protobuf type google.cloud.datacatalog.v1.DataSource

Implements

DataSourceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataSource.Builder
Overrides

build()

public DataSource build()
Returns
TypeDescription
DataSource

buildPartial()

public DataSource buildPartial()
Returns
TypeDescription
DataSource

clear()

public DataSource.Builder clear()
Returns
TypeDescription
DataSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DataSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DataSource.Builder
Overrides

clearProperties()

public DataSource.Builder clearProperties()
Returns
TypeDescription
DataSource.Builder

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
TypeDescription
DataSource.Builder

This builder for chaining.

clearService()

public DataSource.Builder clearService()

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Returns
TypeDescription
DataSource.Builder

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
TypeDescription
DataSource.Builder

This builder for chaining.

clearStorageProperties()

public DataSource.Builder clearStorageProperties()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
TypeDescription
DataSource.Builder

clone()

public DataSource.Builder clone()
Returns
TypeDescription
DataSource.Builder
Overrides

getDefaultInstanceForType()

public DataSource getDefaultInstanceForType()
Returns
TypeDescription
DataSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPropertiesCase()

public DataSource.PropertiesCase getPropertiesCase()
Returns
TypeDescription
DataSource.PropertiesCase

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;

Returns
TypeDescription
String

The resource.

getResourceBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for resource.

getService()

public DataSource.Service getService()

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Returns
TypeDescription
DataSource.Service

The service.

getServiceValue()

public int getServiceValue()

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for service.

getSourceEntry()

public String getSourceEntry()

Output only. Data Catalog entry name, if applicable.

string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The sourceEntry.

getSourceEntryBytes()

public ByteString getSourceEntryBytes()

Output only. Data Catalog entry name, if applicable.

string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for sourceEntry.

getStorageProperties()

public StorageProperties getStorageProperties()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
TypeDescription
StorageProperties

The storageProperties.

getStoragePropertiesBuilder()

public StorageProperties.Builder getStoragePropertiesBuilder()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
TypeDescription
StorageProperties.Builder

getStoragePropertiesOrBuilder()

public StoragePropertiesOrBuilder getStoragePropertiesOrBuilder()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
TypeDescription
StoragePropertiesOrBuilder

hasStorageProperties()

public boolean hasStorageProperties()

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Returns
TypeDescription
boolean

Whether the storageProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataSource other)

public DataSource.Builder mergeFrom(DataSource other)
Parameter
NameDescription
otherDataSource
Returns
TypeDescription
DataSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DataSource.Builder
Overrides

mergeStorageProperties(StorageProperties value)

public DataSource.Builder mergeStorageProperties(StorageProperties value)

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Parameter
NameDescription
valueStorageProperties
Returns
TypeDescription
DataSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DataSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataSource.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataSource.Builder
Overrides

setResource(String value)

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;

Parameter
NameDescription
valueString

The resource to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public DataSource.Builder setResourceBytes(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;

Parameter
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setService(DataSource.Service value)

public DataSource.Builder setService(DataSource.Service value)

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Parameter
NameDescription
valueDataSource.Service

The service to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setServiceValue(int value)

public DataSource.Builder setServiceValue(int value)

Service that physically stores the data.

.google.cloud.datacatalog.v1.DataSource.Service service = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for service to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setSourceEntry(String value)

public DataSource.Builder setSourceEntry(String value)

Output only. Data Catalog entry name, if applicable.

string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The sourceEntry to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setSourceEntryBytes(ByteString value)

public DataSource.Builder setSourceEntryBytes(ByteString value)

Output only. Data Catalog entry name, if applicable.

string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for sourceEntry to set.

Returns
TypeDescription
DataSource.Builder

This builder for chaining.

setStorageProperties(StorageProperties value)

public DataSource.Builder setStorageProperties(StorageProperties value)

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Parameter
NameDescription
valueStorageProperties
Returns
TypeDescription
DataSource.Builder

setStorageProperties(StorageProperties.Builder builderForValue)

public DataSource.Builder setStorageProperties(StorageProperties.Builder builderForValue)

Detailed properties of the underlying storage.

.google.cloud.datacatalog.v1.StorageProperties storage_properties = 4;

Parameter
NameDescription
builderForValueStorageProperties.Builder
Returns
TypeDescription
DataSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataSource.Builder
Overrides