Class RateGroup.Builder (0.3.0)

public static final class RateGroup.Builder extends GeneratedMessageV3.Builder<RateGroup.Builder> implements RateGroupOrBuilder

Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels, which means "everything else". The other applicable_shipping_labels must not overlap.

Protobuf type google.shopping.merchant.accounts.v1beta.RateGroup

Implements

RateGroupOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllApplicableShippingLabels(Iterable<String> values)

public RateGroup.Builder addAllApplicableShippingLabels(Iterable<String> values)

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The applicableShippingLabels to add.

Returns
Type Description
RateGroup.Builder

This builder for chaining.

addAllCarrierRates(Iterable<? extends CarrierRate> values)

public RateGroup.Builder addAllCarrierRates(Iterable<? extends CarrierRate> values)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.CarrierRate>
Returns
Type Description
RateGroup.Builder

addAllSubtables(Iterable<? extends Table> values)

public RateGroup.Builder addAllSubtables(Iterable<? extends Table> values)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Table>
Returns
Type Description
RateGroup.Builder

addApplicableShippingLabels(String value)

public RateGroup.Builder addApplicableShippingLabels(String value)

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The applicableShippingLabels to add.

Returns
Type Description
RateGroup.Builder

This builder for chaining.

addApplicableShippingLabelsBytes(ByteString value)

public RateGroup.Builder addApplicableShippingLabelsBytes(ByteString value)

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the applicableShippingLabels to add.

Returns
Type Description
RateGroup.Builder

This builder for chaining.

addCarrierRates(CarrierRate value)

public RateGroup.Builder addCarrierRates(CarrierRate value)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CarrierRate
Returns
Type Description
RateGroup.Builder

addCarrierRates(CarrierRate.Builder builderForValue)

public RateGroup.Builder addCarrierRates(CarrierRate.Builder builderForValue)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CarrierRate.Builder
Returns
Type Description
RateGroup.Builder

addCarrierRates(int index, CarrierRate value)

public RateGroup.Builder addCarrierRates(int index, CarrierRate value)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value CarrierRate
Returns
Type Description
RateGroup.Builder

addCarrierRates(int index, CarrierRate.Builder builderForValue)

public RateGroup.Builder addCarrierRates(int index, CarrierRate.Builder builderForValue)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue CarrierRate.Builder
Returns
Type Description
RateGroup.Builder

addCarrierRatesBuilder()

public CarrierRate.Builder addCarrierRatesBuilder()

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CarrierRate.Builder

addCarrierRatesBuilder(int index)

public CarrierRate.Builder addCarrierRatesBuilder(int index)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CarrierRate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubtables(Table value)

public RateGroup.Builder addSubtables(Table value)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Table
Returns
Type Description
RateGroup.Builder

addSubtables(Table.Builder builderForValue)

public RateGroup.Builder addSubtables(Table.Builder builderForValue)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Table.Builder
Returns
Type Description
RateGroup.Builder

addSubtables(int index, Table value)

public RateGroup.Builder addSubtables(int index, Table value)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Table
Returns
Type Description
RateGroup.Builder

addSubtables(int index, Table.Builder builderForValue)

public RateGroup.Builder addSubtables(int index, Table.Builder builderForValue)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Table.Builder
Returns
Type Description
RateGroup.Builder

addSubtablesBuilder()

public Table.Builder addSubtablesBuilder()

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Table.Builder

addSubtablesBuilder(int index)

public Table.Builder addSubtablesBuilder(int index)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Table.Builder

build()

public RateGroup build()
Returns
Type Description
RateGroup

buildPartial()

public RateGroup buildPartial()
Returns
Type Description
RateGroup

clear()

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

clearApplicableShippingLabels()

public RateGroup.Builder clearApplicableShippingLabels()

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RateGroup.Builder

This builder for chaining.

clearCarrierRates()

public RateGroup.Builder clearCarrierRates()

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RateGroup.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMainTable()

public RateGroup.Builder clearMainTable()

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Returns
Type Description
RateGroup.Builder

clearName()

public RateGroup.Builder clearName()

Optional. Name of the rate group. If set has to be unique within shipping service.

optional string name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RateGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSingleValue()

public RateGroup.Builder clearSingleValue()

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Returns
Type Description
RateGroup.Builder

clearSubtables()

public RateGroup.Builder clearSubtables()

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RateGroup.Builder

clone()

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

getApplicableShippingLabels(int index)

public String getApplicableShippingLabels(int index)

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The applicableShippingLabels at the given index.

getApplicableShippingLabelsBytes(int index)

public ByteString getApplicableShippingLabelsBytes(int index)

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the applicableShippingLabels at the given index.

getApplicableShippingLabelsCount()

public int getApplicableShippingLabelsCount()

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of applicableShippingLabels.

getApplicableShippingLabelsList()

public ProtocolStringList getApplicableShippingLabelsList()

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the applicableShippingLabels.

getCarrierRates(int index)

public CarrierRate getCarrierRates(int index)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CarrierRate

getCarrierRatesBuilder(int index)

public CarrierRate.Builder getCarrierRatesBuilder(int index)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CarrierRate.Builder

getCarrierRatesBuilderList()

public List<CarrierRate.Builder> getCarrierRatesBuilderList()

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getCarrierRatesCount()

public int getCarrierRatesCount()

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCarrierRatesList()

public List<CarrierRate> getCarrierRatesList()

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<CarrierRate>

getCarrierRatesOrBuilder(int index)

public CarrierRateOrBuilder getCarrierRatesOrBuilder(int index)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CarrierRateOrBuilder

getCarrierRatesOrBuilderList()

public List<? extends CarrierRateOrBuilder> getCarrierRatesOrBuilderList()

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.CarrierRateOrBuilder>

getDefaultInstanceForType()

public RateGroup getDefaultInstanceForType()
Returns
Type Description
RateGroup

getDescriptorForType()

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

getMainTable()

public Table getMainTable()

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Returns
Type Description
Table

The mainTable.

getMainTableBuilder()

public Table.Builder getMainTableBuilder()

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Returns
Type Description
Table.Builder

getMainTableOrBuilder()

public TableOrBuilder getMainTableOrBuilder()

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Returns
Type Description
TableOrBuilder

getName()

public String getName()

Optional. Name of the rate group. If set has to be unique within shipping service.

optional string name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the rate group. If set has to be unique within shipping service.

optional string name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getSingleValue()

public Value getSingleValue()

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Returns
Type Description
Value

The singleValue.

getSingleValueBuilder()

public Value.Builder getSingleValueBuilder()

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Returns
Type Description
Value.Builder

getSingleValueOrBuilder()

public ValueOrBuilder getSingleValueOrBuilder()

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Returns
Type Description
ValueOrBuilder

getSubtables(int index)

public Table getSubtables(int index)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Table

getSubtablesBuilder(int index)

public Table.Builder getSubtablesBuilder(int index)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Table.Builder

getSubtablesBuilderList()

public List<Table.Builder> getSubtablesBuilderList()

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSubtablesCount()

public int getSubtablesCount()

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSubtablesList()

public List<Table> getSubtablesList()

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Table>

getSubtablesOrBuilder(int index)

public TableOrBuilder getSubtablesOrBuilder(int index)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TableOrBuilder

getSubtablesOrBuilderList()

public List<? extends TableOrBuilder> getSubtablesOrBuilderList()

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.TableOrBuilder>

hasMainTable()

public boolean hasMainTable()

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Returns
Type Description
boolean

Whether the mainTable field is set.

hasName()

public boolean hasName()

Optional. Name of the rate group. If set has to be unique within shipping service.

optional string name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the name field is set.

hasSingleValue()

public boolean hasSingleValue()

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Returns
Type Description
boolean

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

mergeFrom(Message other)

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

mergeFrom(RateGroup other)

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

mergeMainTable(Table value)

public RateGroup.Builder mergeMainTable(Table value)

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Parameter
Name Description
value Table
Returns
Type Description
RateGroup.Builder

mergeSingleValue(Value value)

public RateGroup.Builder mergeSingleValue(Value value)

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Parameter
Name Description
value Value
Returns
Type Description
RateGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCarrierRates(int index)

public RateGroup.Builder removeCarrierRates(int index)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RateGroup.Builder

removeSubtables(int index)

public RateGroup.Builder removeSubtables(int index)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
RateGroup.Builder

setApplicableShippingLabels(int index, String value)

public RateGroup.Builder setApplicableShippingLabels(int index, String value)

Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.

repeated string applicable_shipping_labels = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The applicableShippingLabels to set.

Returns
Type Description
RateGroup.Builder

This builder for chaining.

setCarrierRates(int index, CarrierRate value)

public RateGroup.Builder setCarrierRates(int index, CarrierRate value)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value CarrierRate
Returns
Type Description
RateGroup.Builder

setCarrierRates(int index, CarrierRate.Builder builderForValue)

public RateGroup.Builder setCarrierRates(int index, CarrierRate.Builder builderForValue)

Optional. A list of carrier rates that can be referred to by main_table or single_value.

repeated .google.shopping.merchant.accounts.v1beta.CarrierRate carrier_rates = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue CarrierRate.Builder
Returns
Type Description
RateGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMainTable(Table value)

public RateGroup.Builder setMainTable(Table value)

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Parameter
Name Description
value Table
Returns
Type Description
RateGroup.Builder

setMainTable(Table.Builder builderForValue)

public RateGroup.Builder setMainTable(Table.Builder builderForValue)

A table defining the rate group, when single_value is not expressive enough. Can only be set if single_value is not set.

optional .google.shopping.merchant.accounts.v1beta.Table main_table = 3;

Parameter
Name Description
builderForValue Table.Builder
Returns
Type Description
RateGroup.Builder

setName(String value)

public RateGroup.Builder setName(String value)

Optional. Name of the rate group. If set has to be unique within shipping service.

optional string name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RateGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RateGroup.Builder setNameBytes(ByteString value)

Optional. Name of the rate group. If set has to be unique within shipping service.

optional string name = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RateGroup.Builder

This builder for chaining.

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

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

setSingleValue(Value value)

public RateGroup.Builder setSingleValue(Value value)

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Parameter
Name Description
value Value
Returns
Type Description
RateGroup.Builder

setSingleValue(Value.Builder builderForValue)

public RateGroup.Builder setSingleValue(Value.Builder builderForValue)

The value of the rate group (For example flat rate $10). Can only be set if main_table and subtables are not set.

optional .google.shopping.merchant.accounts.v1beta.Value single_value = 2;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
RateGroup.Builder

setSubtables(int index, Table value)

public RateGroup.Builder setSubtables(int index, Table value)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Table
Returns
Type Description
RateGroup.Builder

setSubtables(int index, Table.Builder builderForValue)

public RateGroup.Builder setSubtables(int index, Table.Builder builderForValue)

Optional. A list of subtables referred to by main_table. Can only be set if main_table is set.

repeated .google.shopping.merchant.accounts.v1beta.Table subtables = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Table.Builder
Returns
Type Description
RateGroup.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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