Class DataSourceReference.Builder (1.13.0)

public static final class DataSourceReference.Builder extends GeneratedMessage.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.v1.DataSourceReference

Static Methods

getDescriptor()

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

Methods

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

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.

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 GeneratedMessage.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

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.

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.