public final class Headers extends GeneratedMessageV3 implements HeadersOrBuilder
A non-empty list of row or column headers for a table.
Exactly one of prices
, weights
,
num_items
, postal_code_group_names
, or
location
must be set.
Protobuf type google.shopping.merchant.accounts.v1beta.Headers
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 LOCATIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NUMBER_OF_ITEMS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PRICES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int WEIGHTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Headers getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Headers.Builder newBuilder()
public static Headers.Builder newBuilder(Headers prototype)
Parameter |
Name |
Description |
prototype |
Headers
|
public static Headers parseDelimitedFrom(InputStream input)
public static Headers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Headers parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static Headers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Headers parseFrom(ByteString data)
public static Headers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Headers parseFrom(CodedInputStream input)
public static Headers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Headers parseFrom(InputStream input)
public static Headers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Headers parseFrom(ByteBuffer data)
public static Headers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Headers> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public Headers getDefaultInstanceForType()
public LocationIdSet getLocations(int index)
Required. A list of location ID sets. Must be non-empty. Can only be set if
all other fields are not set.
repeated .google.shopping.merchant.accounts.v1beta.LocationIdSet locations = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public int getLocationsCount()
Required. A list of location ID sets. Must be non-empty. Can only be set if
all other fields are not set.
repeated .google.shopping.merchant.accounts.v1beta.LocationIdSet locations = 5 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
public List<LocationIdSet> getLocationsList()
Required. A list of location ID sets. Must be non-empty. Can only be set if
all other fields are not set.
repeated .google.shopping.merchant.accounts.v1beta.LocationIdSet locations = 5 [(.google.api.field_behavior) = REQUIRED];
public LocationIdSetOrBuilder getLocationsOrBuilder(int index)
Required. A list of location ID sets. Must be non-empty. Can only be set if
all other fields are not set.
repeated .google.shopping.merchant.accounts.v1beta.LocationIdSet locations = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
public List<? extends LocationIdSetOrBuilder> getLocationsOrBuilderList()
Required. A list of location ID sets. Must be non-empty. Can only be set if
all other fields are not set.
repeated .google.shopping.merchant.accounts.v1beta.LocationIdSet locations = 5 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.shopping.merchant.accounts.v1beta.LocationIdSetOrBuilder> |
|
public String getNumberOfItems(int index)
Required. A list of inclusive number of items upper bounds. The last value
can be
"infinity"
. For example
["10", "50", "infinity"]
represents the headers
"<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
only be set if all other fields are not set.
repeated string number_of_items = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The numberOfItems at the given index.
|
public ByteString getNumberOfItemsBytes(int index)
Required. A list of inclusive number of items upper bounds. The last value
can be
"infinity"
. For example
["10", "50", "infinity"]
represents the headers
"<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
only be set if all other fields are not set.
repeated string number_of_items = 3 [(.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 numberOfItems at the given index.
|
public int getNumberOfItemsCount()
Required. A list of inclusive number of items upper bounds. The last value
can be
"infinity"
. For example
["10", "50", "infinity"]
represents the headers
"<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
only be set if all other fields are not set.
repeated string number_of_items = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The count of numberOfItems.
|
public ProtocolStringList getNumberOfItemsList()
Required. A list of inclusive number of items upper bounds. The last value
can be
"infinity"
. For example
["10", "50", "infinity"]
represents the headers
"<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can
only be set if all other fields are not set.
repeated string number_of_items = 3 [(.google.api.field_behavior) = REQUIRED];
public Parser<Headers> getParserForType()
Overrides
public String getPostalCodeGroupNames(int index)
Required. A list of postal group names. The last value can be
"all other locations"
. Example:
["zone 1", "zone 2", "all other locations"]
. The referred
postal code groups must match the delivery country of the service. Must
be non-empty. Can only be set if all other fields are not set.
repeated string postal_code_group_names = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The postalCodeGroupNames at the given index.
|
public ByteString getPostalCodeGroupNamesBytes(int index)
Required. A list of postal group names. The last value can be
"all other locations"
. Example:
["zone 1", "zone 2", "all other locations"]
. The referred
postal code groups must match the delivery country of the service. Must
be non-empty. Can only be set if all other fields are not set.
repeated string postal_code_group_names = 4 [(.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 postalCodeGroupNames at the given index.
|
public int getPostalCodeGroupNamesCount()
Required. A list of postal group names. The last value can be
"all other locations"
. Example:
["zone 1", "zone 2", "all other locations"]
. The referred
postal code groups must match the delivery country of the service. Must
be non-empty. Can only be set if all other fields are not set.
repeated string postal_code_group_names = 4 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The count of postalCodeGroupNames.
|
public ProtocolStringList getPostalCodeGroupNamesList()
Required. A list of postal group names. The last value can be
"all other locations"
. Example:
["zone 1", "zone 2", "all other locations"]
. The referred
postal code groups must match the delivery country of the service. Must
be non-empty. Can only be set if all other fields are not set.
repeated string postal_code_group_names = 4 [(.google.api.field_behavior) = REQUIRED];
public Price getPrices(int index)
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]
represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
repeated .google.shopping.type.Price prices = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
com.google.shopping.type.Price |
|
public int getPricesCount()
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]
represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
repeated .google.shopping.type.Price prices = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
public List<Price> getPricesList()
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]
represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
repeated .google.shopping.type.Price prices = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<com.google.shopping.type.Price> |
|
public PriceOrBuilder getPricesOrBuilder(int index)
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]
represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
repeated .google.shopping.type.Price prices = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
com.google.shopping.type.PriceOrBuilder |
|
public List<? extends PriceOrBuilder> getPricesOrBuilderList()
Required. A list of inclusive order price upper bounds. The last price's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "currency_code": "USD"},
{"amount_micros": 500000000, "currency_code": "USD"},
{"amount_micros": -1, "currency_code": "USD"}]
represents the headers
"<= $10", "<= $500", and "> $500". All prices within a service must have
the same currency. Must be non-empty. Must be positive except -1. Can only
be set if all other fields are not set.
repeated .google.shopping.type.Price prices = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.shopping.type.PriceOrBuilder> |
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public Weight getWeights(int index)
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]
represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
repeated .google.shopping.type.Weight weights = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
com.google.shopping.type.Weight |
|
public int getWeightsCount()
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]
represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
repeated .google.shopping.type.Weight weights = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
public List<Weight> getWeightsList()
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]
represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
repeated .google.shopping.type.Weight weights = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<com.google.shopping.type.Weight> |
|
public WeightOrBuilder getWeightsOrBuilder(int index)
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]
represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
repeated .google.shopping.type.Weight weights = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
com.google.shopping.type.WeightOrBuilder |
|
public List<? extends WeightOrBuilder> getWeightsOrBuilderList()
Required. A list of inclusive order weight upper bounds. The last weight's
value can be infinity by setting price amount_micros = -1. For example
[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": 50000000,
"unit": "kg"},
{"amount_micros": -1, "unit": "kg"}]
represents the headers
"<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have
the same unit. Must be non-empty. Must be positive except -1. Can only be
set if all other fields are not set.
repeated .google.shopping.type.Weight weights = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.shopping.type.WeightOrBuilder> |
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Headers.Builder newBuilderForType()
protected Headers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Headers.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides