Class MinimumOrderValueTable.StoreCodeSetWithMov.Builder (0.1.0)

public static final class MinimumOrderValueTable.StoreCodeSetWithMov.Builder extends GeneratedMessageV3.Builder<MinimumOrderValueTable.StoreCodeSetWithMov.Builder> implements MinimumOrderValueTable.StoreCodeSetWithMovOrBuilder

A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.

Protobuf type google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov

Static Methods

getDescriptor()

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

Methods

addAllStoreCodes(Iterable<String> values)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder addAllStoreCodes(Iterable<String> values)

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The storeCodes to add.

Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStoreCodes(String value)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder addStoreCodes(String value)

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The storeCodes to add.

Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

This builder for chaining.

addStoreCodesBytes(ByteString value)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder addStoreCodesBytes(ByteString value)

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the storeCodes to add.

Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

This builder for chaining.

build()

public MinimumOrderValueTable.StoreCodeSetWithMov build()
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov

buildPartial()

public MinimumOrderValueTable.StoreCodeSetWithMov buildPartial()
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov

clear()

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clear()
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStoreCodes()

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clearStoreCodes()

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

This builder for chaining.

clearValue()

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clearValue()

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

clone()

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clone()
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder
Overrides

getDefaultInstanceForType()

public MinimumOrderValueTable.StoreCodeSetWithMov getDefaultInstanceForType()
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov

getDescriptorForType()

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

getStoreCodes(int index)

public String getStoreCodes(int index)

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The storeCodes at the given index.

getStoreCodesBytes(int index)

public ByteString getStoreCodesBytes(int index)

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.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 storeCodes at the given index.

getStoreCodesCount()

public int getStoreCodesCount()

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of storeCodes.

getStoreCodesList()

public ProtocolStringList getStoreCodesList()

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the storeCodes.

getValue()

public Price getValue()

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Returns
Type Description
com.google.shopping.type.Price

The value.

getValueBuilder()

public Price.Builder getValueBuilder()

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Returns
Type Description
com.google.shopping.type.Price.Builder

getValueOrBuilder()

public PriceOrBuilder getValueOrBuilder()

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

hasValue()

public boolean hasValue()

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Returns
Type Description
boolean

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

mergeFrom(Message other)

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

mergeFrom(MinimumOrderValueTable.StoreCodeSetWithMov other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeValue(Price value)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder mergeValue(Price value)

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStoreCodes(int index, String value)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder setStoreCodes(int index, String value)

Optional. A list of unique store codes or empty for the catch all.

repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The storeCodes to set.

Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(Price value)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder setValue(Price value)

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Parameter
Name Description
value com.google.shopping.type.Price
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder

setValue(Price.Builder builderForValue)

public MinimumOrderValueTable.StoreCodeSetWithMov.Builder setValue(Price.Builder builderForValue)

The minimum order value for the given stores.

optional .google.shopping.type.Price value = 2;

Parameter
Name Description
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
MinimumOrderValueTable.StoreCodeSetWithMov.Builder