Class SupplementalProductDataSource.Builder (0.9.0)

public static final class SupplementalProductDataSource.Builder extends GeneratedMessageV3.Builder<SupplementalProductDataSource.Builder> implements SupplementalProductDataSourceOrBuilder

The supplemental data source for local and online products. Supplemental API data sources must not have feedLabel and contentLanguage fields set. You can only use supplemental data sources to update existing products. For information about creating a supplemental data source, see Create a supplemental data source and link it to the primary data source.

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

Static Methods

getDescriptor()

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

Methods

addAllReferencingPrimaryDataSources(Iterable<? extends DataSourceReference> values)

public SupplementalProductDataSource.Builder addAllReferencingPrimaryDataSources(Iterable<? extends DataSourceReference> values)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.datasources.v1beta.DataSourceReference>
Returns
Type Description
SupplementalProductDataSource.Builder

addReferencingPrimaryDataSources(DataSourceReference value)

public SupplementalProductDataSource.Builder addReferencingPrimaryDataSources(DataSourceReference value)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DataSourceReference
Returns
Type Description
SupplementalProductDataSource.Builder

addReferencingPrimaryDataSources(DataSourceReference.Builder builderForValue)

public SupplementalProductDataSource.Builder addReferencingPrimaryDataSources(DataSourceReference.Builder builderForValue)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DataSourceReference.Builder
Returns
Type Description
SupplementalProductDataSource.Builder

addReferencingPrimaryDataSources(int index, DataSourceReference value)

public SupplementalProductDataSource.Builder addReferencingPrimaryDataSources(int index, DataSourceReference value)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value DataSourceReference
Returns
Type Description
SupplementalProductDataSource.Builder

addReferencingPrimaryDataSources(int index, DataSourceReference.Builder builderForValue)

public SupplementalProductDataSource.Builder addReferencingPrimaryDataSources(int index, DataSourceReference.Builder builderForValue)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue DataSourceReference.Builder
Returns
Type Description
SupplementalProductDataSource.Builder

addReferencingPrimaryDataSourcesBuilder()

public DataSourceReference.Builder addReferencingPrimaryDataSourcesBuilder()

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSourceReference.Builder

addReferencingPrimaryDataSourcesBuilder(int index)

public DataSourceReference.Builder addReferencingPrimaryDataSourcesBuilder(int index)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SupplementalProductDataSource build()
Returns
Type Description
SupplementalProductDataSource

buildPartial()

public SupplementalProductDataSource buildPartial()
Returns
Type Description
SupplementalProductDataSource

clear()

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

clearContentLanguage()

public SupplementalProductDataSource.Builder clearContentLanguage()

Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.

feedLabel and contentLanguage must be either both set or unset. The fields can only be unset for data sources without file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

clearFeedLabel()

public SupplementalProductDataSource.Builder clearFeedLabel()

Optional. Immutable. The feed label that is specified on the data source level.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

feedLabel and contentLanguage must be either both set or unset for data sources with product content type. They must be set for data sources with a file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferencingPrimaryDataSources()

public SupplementalProductDataSource.Builder clearReferencingPrimaryDataSources()

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SupplementalProductDataSource.Builder

clone()

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

getContentLanguage()

public String getContentLanguage()

Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.

feedLabel and contentLanguage must be either both set or unset. The fields can only be unset for data sources without file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.

feedLabel and contentLanguage must be either both set or unset. The fields can only be unset for data sources without file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for contentLanguage.

getDefaultInstanceForType()

public SupplementalProductDataSource getDefaultInstanceForType()
Returns
Type Description
SupplementalProductDataSource

getDescriptorForType()

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

getFeedLabel()

public String getFeedLabel()

Optional. Immutable. The feed label that is specified on the data source level.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

feedLabel and contentLanguage must be either both set or unset for data sources with product content type. They must be set for data sources with a file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Optional. Immutable. The feed label that is specified on the data source level.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

feedLabel and contentLanguage must be either both set or unset for data sources with product content type. They must be set for data sources with a file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for feedLabel.

getReferencingPrimaryDataSources(int index)

public DataSourceReference getReferencingPrimaryDataSources(int index)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference

getReferencingPrimaryDataSourcesBuilder(int index)

public DataSourceReference.Builder getReferencingPrimaryDataSourcesBuilder(int index)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference.Builder

getReferencingPrimaryDataSourcesBuilderList()

public List<DataSourceReference.Builder> getReferencingPrimaryDataSourcesBuilderList()

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getReferencingPrimaryDataSourcesCount()

public int getReferencingPrimaryDataSourcesCount()

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getReferencingPrimaryDataSourcesList()

public List<DataSourceReference> getReferencingPrimaryDataSourcesList()

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DataSourceReference>

getReferencingPrimaryDataSourcesOrBuilder(int index)

public DataSourceReferenceOrBuilder getReferencingPrimaryDataSourcesOrBuilder(int index)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReferenceOrBuilder

getReferencingPrimaryDataSourcesOrBuilderList()

public List<? extends DataSourceReferenceOrBuilder> getReferencingPrimaryDataSourcesOrBuilderList()

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.shopping.merchant.datasources.v1beta.DataSourceReferenceOrBuilder>

hasContentLanguage()

public boolean hasContentLanguage()

Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.

feedLabel and contentLanguage must be either both set or unset. The fields can only be unset for data sources without file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the contentLanguage field is set.

hasFeedLabel()

public boolean hasFeedLabel()

Optional. Immutable. The feed label that is specified on the data source level.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

feedLabel and contentLanguage must be either both set or unset for data sources with product content type. They must be set for data sources with a file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the feedLabel 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 SupplementalProductDataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SupplementalProductDataSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(SupplementalProductDataSource other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReferencingPrimaryDataSources(int index)

public SupplementalProductDataSource.Builder removeReferencingPrimaryDataSources(int index)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SupplementalProductDataSource.Builder

setContentLanguage(String value)

public SupplementalProductDataSource.Builder setContentLanguage(String value)

Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.

feedLabel and contentLanguage must be either both set or unset. The fields can only be unset for data sources without file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The contentLanguage to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setContentLanguageBytes(ByteString value)

public SupplementalProductDataSource.Builder setContentLanguageBytes(ByteString value)

Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.

feedLabel and contentLanguage must be either both set or unset. The fields can only be unset for data sources without file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for contentLanguage to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setFeedLabel(String value)

public SupplementalProductDataSource.Builder setFeedLabel(String value)

Optional. Immutable. The feed label that is specified on the data source level.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

feedLabel and contentLanguage must be either both set or unset for data sources with product content type. They must be set for data sources with a file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The feedLabel to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setFeedLabelBytes(ByteString value)

public SupplementalProductDataSource.Builder setFeedLabelBytes(ByteString value)

Optional. Immutable. The feed label that is specified on the data source level.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

feedLabel and contentLanguage must be either both set or unset for data sources with product content type. They must be set for data sources with a file input.

If set, the data source will only accept products matching this combination. If unset, the data source will accept produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for feedLabel to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setReferencingPrimaryDataSources(int index, DataSourceReference value)

public SupplementalProductDataSource.Builder setReferencingPrimaryDataSources(int index, DataSourceReference value)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value DataSourceReference
Returns
Type Description
SupplementalProductDataSource.Builder

setReferencingPrimaryDataSources(int index, DataSourceReference.Builder builderForValue)

public SupplementalProductDataSource.Builder setReferencingPrimaryDataSources(int index, DataSourceReference.Builder builderForValue)

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference referencing_primary_data_sources = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue DataSourceReference.Builder
Returns
Type Description
SupplementalProductDataSource.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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