public final class RateGroup extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int APPLICABLE_SHIPPING_LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CARRIER_RATES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MAIN_TABLE_FIELD_NUMBER
public static final int MAIN_TABLE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SINGLE_VALUE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SUBTABLES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static RateGroup getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static RateGroup.Builder newBuilder()
public static RateGroup.Builder newBuilder(RateGroup prototype)
Parameter |
Name |
Description |
prototype |
RateGroup
|
public static RateGroup parseDelimitedFrom(InputStream input)
public static RateGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RateGroup parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static RateGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RateGroup parseFrom(ByteString data)
public static RateGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RateGroup parseFrom(CodedInputStream input)
public static RateGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RateGroup parseFrom(InputStream input)
public static RateGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RateGroup parseFrom(ByteBuffer data)
public static RateGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<RateGroup> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
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.
|
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.
|
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.
|
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
|
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 |
|
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];
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
|
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> |
|
public RateGroup getDefaultInstanceForType()
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.
|
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;
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.
|
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.
|
public Parser<RateGroup> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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;
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 |
|
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 |
|
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];
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
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RateGroup.Builder newBuilderForType()
protected RateGroup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public RateGroup.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides