Class RegionalInventoryDataSource.Builder (0.20.0)

public static final class RegionalInventoryDataSource.Builder extends GeneratedMessageV3.Builder<RegionalInventoryDataSource.Builder> implements RegionalInventoryDataSourceOrBuilder

The regional inventory data source.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RegionalInventoryDataSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

build()

public RegionalInventoryDataSource build()
Returns
TypeDescription
RegionalInventoryDataSource

buildPartial()

public RegionalInventoryDataSource buildPartial()
Returns
TypeDescription
RegionalInventoryDataSource

clear()

public RegionalInventoryDataSource.Builder clear()
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

clearContentLanguage()

public RegionalInventoryDataSource.Builder clearContentLanguage()

Required. Immutable. The two-letter ISO 639-1 language of the items to which the regional inventory is provided.

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

Returns
TypeDescription
RegionalInventoryDataSource.Builder

This builder for chaining.

clearFeedLabel()

public RegionalInventoryDataSource.Builder clearFeedLabel()

Required. Immutable. The feed label of the offers to which the regional inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

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

Returns
TypeDescription
RegionalInventoryDataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RegionalInventoryDataSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RegionalInventoryDataSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

clone()

public RegionalInventoryDataSource.Builder clone()
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

getContentLanguage()

public String getContentLanguage()

Required. Immutable. The two-letter ISO 639-1 language of the items to which the regional inventory is provided.

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

Returns
TypeDescription
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Required. Immutable. The two-letter ISO 639-1 language of the items to which the regional inventory is provided.

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

Returns
TypeDescription
ByteString

The bytes for contentLanguage.

getDefaultInstanceForType()

public RegionalInventoryDataSource getDefaultInstanceForType()
Returns
TypeDescription
RegionalInventoryDataSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeedLabel()

public String getFeedLabel()

Required. Immutable. The feed label of the offers to which the regional inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

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

Returns
TypeDescription
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Required. Immutable. The feed label of the offers to which the regional inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

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

Returns
TypeDescription
ByteString

The bytes for feedLabel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RegionalInventoryDataSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RegionalInventoryDataSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

mergeFrom(RegionalInventoryDataSource other)

public RegionalInventoryDataSource.Builder mergeFrom(RegionalInventoryDataSource other)
Parameter
NameDescription
otherRegionalInventoryDataSource
Returns
TypeDescription
RegionalInventoryDataSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RegionalInventoryDataSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

setContentLanguage(String value)

public RegionalInventoryDataSource.Builder setContentLanguage(String value)

Required. Immutable. The two-letter ISO 639-1 language of the items to which the regional inventory is provided.

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

Parameter
NameDescription
valueString

The contentLanguage to set.

Returns
TypeDescription
RegionalInventoryDataSource.Builder

This builder for chaining.

setContentLanguageBytes(ByteString value)

public RegionalInventoryDataSource.Builder setContentLanguageBytes(ByteString value)

Required. Immutable. The two-letter ISO 639-1 language of the items to which the regional inventory is provided.

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

Parameter
NameDescription
valueByteString

The bytes for contentLanguage to set.

Returns
TypeDescription
RegionalInventoryDataSource.Builder

This builder for chaining.

setFeedLabel(String value)

public RegionalInventoryDataSource.Builder setFeedLabel(String value)

Required. Immutable. The feed label of the offers to which the regional inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

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

Parameter
NameDescription
valueString

The feedLabel to set.

Returns
TypeDescription
RegionalInventoryDataSource.Builder

This builder for chaining.

setFeedLabelBytes(ByteString value)

public RegionalInventoryDataSource.Builder setFeedLabelBytes(ByteString value)

Required. Immutable. The feed label of the offers to which the regional inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

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

Parameter
NameDescription
valueByteString

The bytes for feedLabel to set.

Returns
TypeDescription
RegionalInventoryDataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RegionalInventoryDataSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

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

public RegionalInventoryDataSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RegionalInventoryDataSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RegionalInventoryDataSource.Builder
Overrides