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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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.
|
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public MinimumOrderValueTable.StoreCodeSetWithMov build()
public MinimumOrderValueTable.StoreCodeSetWithMov buildPartial()
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clear()
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clearValue()
The minimum order value for the given stores.
optional .google.shopping.type.Price value = 2;
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder clone()
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
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.
|
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];
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.
|
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 |
|
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 |
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder mergeFrom(MinimumOrderValueTable.StoreCodeSetWithMov other)
public final MinimumOrderValueTable.StoreCodeSetWithMov.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MinimumOrderValueTable.StoreCodeSetWithMov.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.
|
public final MinimumOrderValueTable.StoreCodeSetWithMov.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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
|