Class SupplementalProductDataSource.Builder (0.1.0)

public static final class SupplementalProductDataSource.Builder extends GeneratedMessageV3.Builder<SupplementalProductDataSource.Builder> implements SupplementalProductDataSourceOrBuilder

The supplemental data source for local and online products.

Protobuf type google.shopping.merchant.datasources.v1beta.SupplementalProductDataSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SupplementalProductDataSource build()
Returns
Type Description
SupplementalProductDataSource

buildPartial()

public SupplementalProductDataSource buildPartial()
Returns
Type Description
SupplementalProductDataSource

clear()

public SupplementalProductDataSource.Builder clear()
Returns
Type Description
SupplementalProductDataSource.Builder
Overrides

clearContentLanguage()

public SupplementalProductDataSource.Builder clearContentLanguage()

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 produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

clearFeedLabel()

public SupplementalProductDataSource.Builder clearFeedLabel()

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 produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SupplementalProductDataSource.Builder clone()
Returns
Type Description
SupplementalProductDataSource.Builder
Overrides

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 produts 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 produts 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.

getDefaultInstanceForType()

public SupplementalProductDataSource getDefaultInstanceForType()
Returns
Type Description
SupplementalProductDataSource

getDescriptorForType()

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

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 produts 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 produts 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 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 produts 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.

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 produts 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.

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

mergeFrom(Message other)

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

mergeFrom(SupplementalProductDataSource other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContentLanguage(String value)

public SupplementalProductDataSource.Builder setContentLanguage(String value)

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 produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The contentLanguage to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setContentLanguageBytes(ByteString value)

public SupplementalProductDataSource.Builder setContentLanguageBytes(ByteString value)

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 produts without that restriction.

optional string content_language = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for contentLanguage to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setFeedLabel(String value)

public SupplementalProductDataSource.Builder setFeedLabel(String value)

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 produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The feedLabel to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setFeedLabelBytes(ByteString value)

public SupplementalProductDataSource.Builder setFeedLabelBytes(ByteString value)

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 produts without that restriction.

optional string feed_label = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for feedLabel to set.

Returns
Type Description
SupplementalProductDataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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