Class DataSourceReference.Builder (0.7.0)

public static final class DataSourceReference.Builder extends GeneratedMessageV3.Builder<DataSourceReference.Builder> implements DataSourceReferenceOrBuilder

Data source reference can be used to manage related data sources within the data source service.

Protobuf type google.shopping.merchant.datasources.v1beta.DataSourceReference

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSourceReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceReference.Builder
Overrides

build()

public DataSourceReference build()
Returns
Type Description
DataSourceReference

buildPartial()

public DataSourceReference buildPartial()
Returns
Type Description
DataSourceReference

clear()

public DataSourceReference.Builder clear()
Returns
Type Description
DataSourceReference.Builder
Overrides

clearDataSourceId()

public DataSourceReference.Builder clearDataSourceId()
Returns
Type Description
DataSourceReference.Builder

clearField(Descriptors.FieldDescriptor field)

public DataSourceReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSourceReference.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSourceReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSourceReference.Builder
Overrides

clearPrimaryDataSourceName()

public DataSourceReference.Builder clearPrimaryDataSourceName()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

clearSelf()

public DataSourceReference.Builder clearSelf()

Self should be used to reference the primary data source itself.

bool self = 1;

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

clearSupplementalDataSourceName()

public DataSourceReference.Builder clearSupplementalDataSourceName()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

clone()

public DataSourceReference.Builder clone()
Returns
Type Description
DataSourceReference.Builder
Overrides

getDataSourceIdCase()

public DataSourceReference.DataSourceIdCase getDataSourceIdCase()
Returns
Type Description
DataSourceReference.DataSourceIdCase

getDefaultInstanceForType()

public DataSourceReference getDefaultInstanceForType()
Returns
Type Description
DataSourceReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrimaryDataSourceName()

public String getPrimaryDataSourceName()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The primaryDataSourceName.

getPrimaryDataSourceNameBytes()

public ByteString getPrimaryDataSourceNameBytes()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for primaryDataSourceName.

getSelf()

public boolean getSelf()

Self should be used to reference the primary data source itself.

bool self = 1;

Returns
Type Description
boolean

The self.

getSupplementalDataSourceName()

public String getSupplementalDataSourceName()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The supplementalDataSourceName.

getSupplementalDataSourceNameBytes()

public ByteString getSupplementalDataSourceNameBytes()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for supplementalDataSourceName.

hasPrimaryDataSourceName()

public boolean hasPrimaryDataSourceName()

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the primaryDataSourceName field is set.

hasSelf()

public boolean hasSelf()

Self should be used to reference the primary data source itself.

bool self = 1;

Returns
Type Description
boolean

Whether the self field is set.

hasSupplementalDataSourceName()

public boolean hasSupplementalDataSourceName()

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the supplementalDataSourceName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSourceReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceReference.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSourceReference.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSourceReference.Builder
Overrides

mergeFrom(DataSourceReference other)

public DataSourceReference.Builder mergeFrom(DataSourceReference other)
Parameter
Name Description
other DataSourceReference
Returns
Type Description
DataSourceReference.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSourceReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DataSourceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceReference.Builder
Overrides

setPrimaryDataSourceName(String value)

public DataSourceReference.Builder setPrimaryDataSourceName(String value)

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The primaryDataSourceName to set.

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

setPrimaryDataSourceNameBytes(ByteString value)

public DataSourceReference.Builder setPrimaryDataSourceNameBytes(ByteString value)

Optional. The name of the primary data source. Format: accounts/{account}/dataSources/{datasource}

string primary_data_source_name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for primaryDataSourceName to set.

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

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

public DataSourceReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSourceReference.Builder
Overrides

setSelf(boolean value)

public DataSourceReference.Builder setSelf(boolean value)

Self should be used to reference the primary data source itself.

bool self = 1;

Parameter
Name Description
value boolean

The self to set.

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

setSupplementalDataSourceName(String value)

public DataSourceReference.Builder setSupplementalDataSourceName(String value)

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The supplementalDataSourceName to set.

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

setSupplementalDataSourceNameBytes(ByteString value)

public DataSourceReference.Builder setSupplementalDataSourceNameBytes(ByteString value)

Optional. The name of the supplemental data source. Format: accounts/{account}/dataSources/{datasource}

string supplemental_data_source_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for supplementalDataSourceName to set.

Returns
Type Description
DataSourceReference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSourceReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceReference.Builder
Overrides