public static final class MinimumOrderValueTable.StoreCodeSetWithMov.Builder extends GeneratedMessage.Builder<MinimumOrderValueTable.StoreCodeSetWithMov.Builder> implements MinimumOrderValueTable.StoreCodeSetWithMovOrBuilderA 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.v1.MinimumOrderValueTable.StoreCodeSetWithMov
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MinimumOrderValueTable.StoreCodeSetWithMov.BuilderStatic 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. |
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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
getDefaultInstanceForType()
public MinimumOrderValueTable.StoreCodeSetWithMov getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MinimumOrderValueTable.StoreCodeSetWithMov |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
mergeFrom(MinimumOrderValueTable.StoreCodeSetWithMov other)
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder mergeFrom(MinimumOrderValueTable.StoreCodeSetWithMov other)| Parameter | |
|---|---|
| Name | Description |
other |
MinimumOrderValueTable.StoreCodeSetWithMov |
| Returns | |
|---|---|
| Type | Description |
MinimumOrderValueTable.StoreCodeSetWithMov.Builder |
|
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 |
|
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 |
intThe index to set the value at. |
value |
StringThe storeCodes to set. |
| Returns | |
|---|---|
| Type | Description |
MinimumOrderValueTable.StoreCodeSetWithMov.Builder |
This builder for chaining. |
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 |
|