public static final class PrimaryProductDataSource.DefaultRule extends GeneratedMessageV3 implements PrimaryProductDataSource.DefaultRuleOrBuilder
Default rule management of the data source.
Protobuf type
google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int TAKE_FROM_DATA_SOURCES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static PrimaryProductDataSource.DefaultRule getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static PrimaryProductDataSource.DefaultRule.Builder newBuilder()
public static PrimaryProductDataSource.DefaultRule.Builder newBuilder(PrimaryProductDataSource.DefaultRule prototype)
public static PrimaryProductDataSource.DefaultRule parseDelimitedFrom(InputStream input)
public static PrimaryProductDataSource.DefaultRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource.DefaultRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static PrimaryProductDataSource.DefaultRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource.DefaultRule parseFrom(ByteString data)
public static PrimaryProductDataSource.DefaultRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource.DefaultRule parseFrom(CodedInputStream input)
public static PrimaryProductDataSource.DefaultRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource.DefaultRule parseFrom(InputStream input)
public static PrimaryProductDataSource.DefaultRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource.DefaultRule parseFrom(ByteBuffer data)
public static PrimaryProductDataSource.DefaultRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<PrimaryProductDataSource.DefaultRule> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public PrimaryProductDataSource.DefaultRule getDefaultInstanceForType()
public Parser<PrimaryProductDataSource.DefaultRule> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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
|
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 |
|
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];
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
|
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> |
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PrimaryProductDataSource.DefaultRule.Builder newBuilderForType()
protected PrimaryProductDataSource.DefaultRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public PrimaryProductDataSource.DefaultRule.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides