public final class PrimaryProductDataSource extends GeneratedMessageV3 implements PrimaryProductDataSourceOrBuilder
The primary data source for local and online products.
Protobuf type google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PrimaryProductDataSourceImplements
PrimaryProductDataSourceOrBuilderInherited Members
Static Fields
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CONTENT_LANGUAGE_FIELD_NUMBER
public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
COUNTRIES_FIELD_NUMBER
public static final int COUNTRIES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DEFAULT_RULE_FIELD_NUMBER
public static final int DEFAULT_RULE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
FEED_LABEL_FIELD_NUMBER
public static final int FEED_LABEL_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static PrimaryProductDataSource getDefaultInstance()
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static PrimaryProductDataSource.Builder newBuilder()
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Builder |
newBuilder(PrimaryProductDataSource prototype)
public static PrimaryProductDataSource.Builder newBuilder(PrimaryProductDataSource prototype)
Parameter | |
---|---|
Name | Description |
prototype |
PrimaryProductDataSource |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Builder |
parseDelimitedFrom(InputStream input)
public static PrimaryProductDataSource parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static PrimaryProductDataSource parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PrimaryProductDataSource parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PrimaryProductDataSource parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static PrimaryProductDataSource parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PrimaryProductDataSource parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrimaryProductDataSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PrimaryProductDataSource> parser()
Returns | |
---|---|
Type | Description |
Parser<PrimaryProductDataSource> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getChannel()
public PrimaryProductDataSource.Channel getChannel()
Optional. Immutable. Specifies the type of data source channel.
.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Channel channel = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Channel |
The channel. |
getChannelValue()
public int getChannelValue()
Optional. Immutable. Specifies the type of data source channel.
.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Channel channel = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for channel. |
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 products 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 products 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. |
getCountries(int index)
public String getCountries(int index)
Optional. The countries where the items may be displayed. Represented as a CLDR territory code.
repeated string countries = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The countries at the given index. |
getCountriesBytes(int index)
public ByteString getCountriesBytes(int index)
Optional. The countries where the items may be displayed. Represented as a CLDR territory code.
repeated string countries = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the countries at the given index. |
getCountriesCount()
public int getCountriesCount()
Optional. The countries where the items may be displayed. Represented as a CLDR territory code.
repeated string countries = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The count of countries. |
getCountriesList()
public ProtocolStringList getCountriesList()
Optional. The countries where the items may be displayed. Represented as a CLDR territory code.
repeated string countries = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the countries. |
getDefaultInstanceForType()
public PrimaryProductDataSource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource |
getDefaultRule()
public PrimaryProductDataSource.DefaultRule getDefaultRule()
Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRule default_rule = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.DefaultRule |
The defaultRule. |
getDefaultRuleOrBuilder()
public PrimaryProductDataSource.DefaultRuleOrBuilder getDefaultRuleOrBuilder()
Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRule default_rule = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.DefaultRuleOrBuilder |
getDestinations(int index)
public PrimaryProductDataSource.Destination getDestinations(int index)
Optional. A list of destinations describing where products of the data source can be shown.
When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account.
Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source.
If unset, during creation, the destinations will be inherited based on the account level program participation.
If set, during creation or update, the data source will be set only for the specified destinations.
Updating this field requires at least one destination.
repeated .google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination destinations = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Destination |
getDestinationsCount()
public int getDestinationsCount()
Optional. A list of destinations describing where products of the data source can be shown.
When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account.
Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source.
If unset, during creation, the destinations will be inherited based on the account level program participation.
If set, during creation or update, the data source will be set only for the specified destinations.
Updating this field requires at least one destination.
repeated .google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination destinations = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getDestinationsList()
public List<PrimaryProductDataSource.Destination> getDestinationsList()
Optional. A list of destinations describing where products of the data source can be shown.
When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account.
Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source.
If unset, during creation, the destinations will be inherited based on the account level program participation.
If set, during creation or update, the data source will be set only for the specified destinations.
Updating this field requires at least one destination.
repeated .google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination destinations = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Destination> |
getDestinationsOrBuilder(int index)
public PrimaryProductDataSource.DestinationOrBuilder getDestinationsOrBuilder(int index)
Optional. A list of destinations describing where products of the data source can be shown.
When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account.
Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source.
If unset, during creation, the destinations will be inherited based on the account level program participation.
If set, during creation or update, the data source will be set only for the specified destinations.
Updating this field requires at least one destination.
repeated .google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination destinations = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.DestinationOrBuilder |
getDestinationsOrBuilderList()
public List<? extends PrimaryProductDataSource.DestinationOrBuilder> getDestinationsOrBuilderList()
Optional. A list of destinations describing where products of the data source can be shown.
When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account.
Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source.
If unset, during creation, the destinations will be inherited based on the account level program participation.
If set, during creation or update, the data source will be set only for the specified destinations.
Updating this field requires at least one destination.
repeated .google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination destinations = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DestinationOrBuilder> |
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 products 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 products 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. |
getParserForType()
public Parser<PrimaryProductDataSource> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<PrimaryProductDataSource> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 products 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. |
hasDefaultRule()
public boolean hasDefaultRule()
Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.DefaultRule default_rule = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the defaultRule 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 products 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. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public PrimaryProductDataSource.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PrimaryProductDataSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public PrimaryProductDataSource.Builder toBuilder()
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |