Class PrimaryProductDataSource.DefaultRule (0.10.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PrimaryProductDataSource.DefaultRule

Static Fields

TAKE_FROM_DATA_SOURCES_FIELD_NUMBER

public static final int TAKE_FROM_DATA_SOURCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrimaryProductDataSource.DefaultRule getDefaultInstance()
Returns
Type Description
PrimaryProductDataSource.DefaultRule

getDescriptor()

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

newBuilder()

public static PrimaryProductDataSource.DefaultRule.Builder newBuilder()
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

newBuilder(PrimaryProductDataSource.DefaultRule prototype)

public static PrimaryProductDataSource.DefaultRule.Builder newBuilder(PrimaryProductDataSource.DefaultRule prototype)
Parameter
Name Description
prototype PrimaryProductDataSource.DefaultRule
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

parseDelimitedFrom(InputStream input)

public static PrimaryProductDataSource.DefaultRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimaryProductDataSource.DefaultRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PrimaryProductDataSource.DefaultRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrimaryProductDataSource.DefaultRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrimaryProductDataSource.DefaultRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrimaryProductDataSource.DefaultRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrimaryProductDataSource.DefaultRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimaryProductDataSource.DefaultRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PrimaryProductDataSource.DefaultRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrimaryProductDataSource.DefaultRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PrimaryProductDataSource.DefaultRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrimaryProductDataSource.DefaultRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrimaryProductDataSource.DefaultRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PrimaryProductDataSource.DefaultRule> parser()
Returns
Type Description
Parser<DefaultRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<PrimaryProductDataSource.DefaultRule> getParserForType()
Returns
Type Description
Parser<DefaultRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PrimaryProductDataSource.DefaultRule.Builder newBuilderForType()
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrimaryProductDataSource.DefaultRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PrimaryProductDataSource.DefaultRule.Builder toBuilder()
Returns
Type Description
PrimaryProductDataSource.DefaultRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException