Class DataSource.Builder (1.7.2)

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

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.

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

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.

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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