Class PrimaryProductDataSource.DefaultRule.Builder (0.10.0)

public static final class PrimaryProductDataSource.DefaultRule.Builder extends GeneratedMessageV3.Builder<PrimaryProductDataSource.DefaultRule.Builder> implements PrimaryProductDataSource.DefaultRuleOrBuilder

Default rule management of the data source.

Protobuf type google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRule

Static Methods

getDescriptor()

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

Methods

addAllTakeFromDataSources(Iterable<? extends DataSourceReference> values)

public PrimaryProductDataSource.DefaultRule.Builder addAllTakeFromDataSources(Iterable<? extends DataSourceReference> values)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTakeFromDataSources(DataSourceReference value)

public PrimaryProductDataSource.DefaultRule.Builder addTakeFromDataSources(DataSourceReference value)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataSourceReference
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

addTakeFromDataSources(DataSourceReference.Builder builderForValue)

public PrimaryProductDataSource.DefaultRule.Builder addTakeFromDataSources(DataSourceReference.Builder builderForValue)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataSourceReference.Builder
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

addTakeFromDataSources(int index, DataSourceReference value)

public PrimaryProductDataSource.DefaultRule.Builder addTakeFromDataSources(int index, DataSourceReference value)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DataSourceReference
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

addTakeFromDataSources(int index, DataSourceReference.Builder builderForValue)

public PrimaryProductDataSource.DefaultRule.Builder addTakeFromDataSources(int index, DataSourceReference.Builder builderForValue)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DataSourceReference.Builder
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

addTakeFromDataSourcesBuilder()

public DataSourceReference.Builder addTakeFromDataSourcesBuilder()

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSourceReference.Builder

addTakeFromDataSourcesBuilder(int index)

public DataSourceReference.Builder addTakeFromDataSourcesBuilder(int index)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference.Builder

build()

public PrimaryProductDataSource.DefaultRule build()
Returns
Type Description
PrimaryProductDataSource.DefaultRule

buildPartial()

public PrimaryProductDataSource.DefaultRule buildPartial()
Returns
Type Description
PrimaryProductDataSource.DefaultRule

clear()

public PrimaryProductDataSource.DefaultRule.Builder clear()
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTakeFromDataSources()

public PrimaryProductDataSource.DefaultRule.Builder clearTakeFromDataSources()

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

clone()

public PrimaryProductDataSource.DefaultRule.Builder clone()
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder
Overrides

getDefaultInstanceForType()

public PrimaryProductDataSource.DefaultRule getDefaultInstanceForType()
Returns
Type Description
PrimaryProductDataSource.DefaultRule

getDescriptorForType()

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

getTakeFromDataSources(int index)

public DataSourceReference getTakeFromDataSources(int index)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference

getTakeFromDataSourcesBuilder(int index)

public DataSourceReference.Builder getTakeFromDataSourcesBuilder(int index)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReference.Builder

getTakeFromDataSourcesBuilderList()

public List<DataSourceReference.Builder> getTakeFromDataSourcesBuilderList()

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getTakeFromDataSourcesCount()

public int getTakeFromDataSourcesCount()

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getTakeFromDataSourcesList()

public List<DataSourceReference> getTakeFromDataSourcesList()

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<DataSourceReference>

getTakeFromDataSourcesOrBuilder(int index)

public DataSourceReferenceOrBuilder getTakeFromDataSourcesOrBuilder(int index)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataSourceReferenceOrBuilder

getTakeFromDataSourcesOrBuilderList()

public List<? extends DataSourceReferenceOrBuilder> getTakeFromDataSourcesOrBuilderList()

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

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

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

mergeFrom(Message other)

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

mergeFrom(PrimaryProductDataSource.DefaultRule other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTakeFromDataSources(int index)

public PrimaryProductDataSource.DefaultRule.Builder removeTakeFromDataSources(int index)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTakeFromDataSources(int index, DataSourceReference value)

public PrimaryProductDataSource.DefaultRule.Builder setTakeFromDataSources(int index, DataSourceReference value)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DataSourceReference
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

setTakeFromDataSources(int index, DataSourceReference.Builder builderForValue)

public PrimaryProductDataSource.DefaultRule.Builder setTakeFromDataSources(int index, DataSourceReference.Builder builderForValue)

Required. The list of data sources linked in the default rule. This list is ordered by the default rule priority of joining the data. It might include none or multiple references to self and supplemental data sources.

The list must not be empty.

To link the data source to the default rule, you need to add a new reference to this list (in sequential order).

To unlink the data source from the default rule, you need to remove the given reference from this list. To create attribute rules that are different from the default rule, see Set up your attribute rules.

Changing the order of this list will result in changing the priority of data sources in the default rule.

For example, providing the following list: [1001, self] will take attribute values from supplemental data source 1001, and fallback to self if the attribute is not set in 1001.

repeated .google.shopping.merchant.datasources.v1beta.DataSourceReference take_from_data_sources = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DataSourceReference.Builder
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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