Class RateGroup (0.7.0)

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

Implements

RateGroupOrBuilder

Static Fields

APPLICABLE_SHIPPING_LABELS_FIELD_NUMBER

public static final int APPLICABLE_SHIPPING_LABELS_FIELD_NUMBER
Field Value
Type Description
int

CARRIER_RATES_FIELD_NUMBER

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

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SINGLE_VALUE_FIELD_NUMBER

public static final int SINGLE_VALUE_FIELD_NUMBER
Field Value
Type Description
int

SUBTABLES_FIELD_NUMBER

public static final int SUBTABLES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RateGroup getDefaultInstance()
Returns
Type Description
RateGroup

getDescriptor()

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

newBuilder()

public static RateGroup.Builder newBuilder()
Returns
Type Description
RateGroup.Builder

newBuilder(RateGroup prototype)

public static RateGroup.Builder newBuilder(RateGroup prototype)
Parameter
Name Description
prototype RateGroup
Returns
Type Description
RateGroup.Builder

parseDelimitedFrom(InputStream input)

public static RateGroup parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RateGroup
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RateGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RateGroup
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RateGroup parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RateGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RateGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RateGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RateGroup parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RateGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RateGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RateGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RateGroup parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RateGroup
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RateGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RateGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RateGroup parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RateGroup
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RateGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RateGroup
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RateGroup parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RateGroup
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RateGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RateGroup
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RateGroup> parser()
Returns
Type Description
Parser<RateGroup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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;

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.

getParserForType()

public Parser<RateGroup> getParserForType()
Returns
Type Description
Parser<RateGroup>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RateGroup.Builder newBuilderForType()
Returns
Type Description
RateGroup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RateGroup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RateGroup.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RateGroup.Builder toBuilder()
Returns
Type Description
RateGroup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException