Interface PrimaryProductDataSourceOrBuilder (0.8.0)

public interface PrimaryProductDataSourceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getChannel()

public abstract PrimaryProductDataSource.Channel getChannel()

Required. Immutable. Specifies the type of data source channel.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Channel channel = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PrimaryProductDataSource.Channel

The channel.

getChannelValue()

public abstract int getChannelValue()

Required. Immutable. Specifies the type of data source channel.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Channel channel = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for channel.

getContentLanguage()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the countries.

getDefaultRule()

public abstract 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 abstract 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

getFeedLabel()

public abstract 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 abstract 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.

hasContentLanguage()

public abstract 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 abstract 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 abstract 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.