Class LocalInventoryDataSource.Builder (0.4.0)

public static final class LocalInventoryDataSource.Builder extends GeneratedMessageV3.Builder<LocalInventoryDataSource.Builder> implements LocalInventoryDataSourceOrBuilder

The local inventory data source.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocalInventoryDataSource build()
Returns
Type Description
LocalInventoryDataSource

buildPartial()

public LocalInventoryDataSource buildPartial()
Returns
Type Description
LocalInventoryDataSource

clear()

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

clearContentLanguage()

public LocalInventoryDataSource.Builder clearContentLanguage()

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

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

Returns
Type Description
LocalInventoryDataSource.Builder

This builder for chaining.

clearFeedLabel()

public LocalInventoryDataSource.Builder clearFeedLabel()

Required. Immutable. The feed label of the offers to which the local 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
Type Description
LocalInventoryDataSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContentLanguage()

public String getContentLanguage()

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

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

Returns
Type Description
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

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

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

Returns
Type Description
ByteString

The bytes for contentLanguage.

getDefaultInstanceForType()

public LocalInventoryDataSource getDefaultInstanceForType()
Returns
Type Description
LocalInventoryDataSource

getDescriptorForType()

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

getFeedLabel()

public String getFeedLabel()

Required. Immutable. The feed label of the offers to which the local 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
Type Description
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Required. Immutable. The feed label of the offers to which the local 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
Type Description
ByteString

The bytes for feedLabel.

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

mergeFrom(Message other)

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

mergeFrom(LocalInventoryDataSource other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContentLanguage(String value)

public LocalInventoryDataSource.Builder setContentLanguage(String value)

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

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

Parameter
Name Description
value String

The contentLanguage to set.

Returns
Type Description
LocalInventoryDataSource.Builder

This builder for chaining.

setContentLanguageBytes(ByteString value)

public LocalInventoryDataSource.Builder setContentLanguageBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for contentLanguage to set.

Returns
Type Description
LocalInventoryDataSource.Builder

This builder for chaining.

setFeedLabel(String value)

public LocalInventoryDataSource.Builder setFeedLabel(String value)

Required. Immutable. The feed label of the offers to which the local 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
Name Description
value String

The feedLabel to set.

Returns
Type Description
LocalInventoryDataSource.Builder

This builder for chaining.

setFeedLabelBytes(ByteString value)

public LocalInventoryDataSource.Builder setFeedLabelBytes(ByteString value)

Required. Immutable. The feed label of the offers to which the local 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
Name Description
value ByteString

The bytes for feedLabel to set.

Returns
Type Description
LocalInventoryDataSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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