Class Headers.Builder (0.3.0)

public static final class Headers.Builder extends GeneratedMessageV3.Builder<Headers.Builder> 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

Implements

HeadersOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllLocations(Iterable<? extends LocationIdSet> values)

public Headers.Builder addAllLocations(Iterable<? extends LocationIdSet> values)

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
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.LocationIdSet>
Returns
Type Description
Headers.Builder

addAllNumberOfItems(Iterable<String> values)

public Headers.Builder addAllNumberOfItems(Iterable<String> values)

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
values Iterable<String>

The numberOfItems to add.

Returns
Type Description
Headers.Builder

This builder for chaining.

addAllPostalCodeGroupNames(Iterable<String> values)

public Headers.Builder addAllPostalCodeGroupNames(Iterable<String> values)

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
values Iterable<String>

The postalCodeGroupNames to add.

Returns
Type Description
Headers.Builder

This builder for chaining.

addAllPrices(Iterable<? extends Price> values)

public Headers.Builder addAllPrices(Iterable<? extends Price> values)

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
values Iterable<? extends com.google.shopping.type.Price>
Returns
Type Description
Headers.Builder

addAllWeights(Iterable<? extends Weight> values)

public Headers.Builder addAllWeights(Iterable<? extends Weight> values)

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
values Iterable<? extends com.google.shopping.type.Weight>
Returns
Type Description
Headers.Builder

addLocations(LocationIdSet value)

public Headers.Builder addLocations(LocationIdSet value)

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
value LocationIdSet
Returns
Type Description
Headers.Builder

addLocations(LocationIdSet.Builder builderForValue)

public Headers.Builder addLocations(LocationIdSet.Builder builderForValue)

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
builderForValue LocationIdSet.Builder
Returns
Type Description
Headers.Builder

addLocations(int index, LocationIdSet value)

public Headers.Builder addLocations(int index, LocationIdSet value)

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];

Parameters
Name Description
index int
value LocationIdSet
Returns
Type Description
Headers.Builder

addLocations(int index, LocationIdSet.Builder builderForValue)

public Headers.Builder addLocations(int index, LocationIdSet.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue LocationIdSet.Builder
Returns
Type Description
Headers.Builder

addLocationsBuilder()

public LocationIdSet.Builder addLocationsBuilder()

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
LocationIdSet.Builder

addLocationsBuilder(int index)

public LocationIdSet.Builder addLocationsBuilder(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
Returns
Type Description
LocationIdSet.Builder

addNumberOfItems(String value)

public Headers.Builder addNumberOfItems(String value)

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
value String

The numberOfItems to add.

Returns
Type Description
Headers.Builder

This builder for chaining.

addNumberOfItemsBytes(ByteString value)

public Headers.Builder addNumberOfItemsBytes(ByteString value)

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
value ByteString

The bytes of the numberOfItems to add.

Returns
Type Description
Headers.Builder

This builder for chaining.

addPostalCodeGroupNames(String value)

public Headers.Builder addPostalCodeGroupNames(String value)

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
value String

The postalCodeGroupNames to add.

Returns
Type Description
Headers.Builder

This builder for chaining.

addPostalCodeGroupNamesBytes(ByteString value)

public Headers.Builder addPostalCodeGroupNamesBytes(ByteString value)

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
value ByteString

The bytes of the postalCodeGroupNames to add.

Returns
Type Description
Headers.Builder

This builder for chaining.

addPrices(Price value)

public Headers.Builder addPrices(Price value)

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
value com.google.shopping.type.Price
Returns
Type Description
Headers.Builder

addPrices(Price.Builder builderForValue)

public Headers.Builder addPrices(Price.Builder builderForValue)

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
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Headers.Builder

addPrices(int index, Price value)

public Headers.Builder addPrices(int index, Price value)

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];

Parameters
Name Description
index int
value com.google.shopping.type.Price
Returns
Type Description
Headers.Builder

addPrices(int index, Price.Builder builderForValue)

public Headers.Builder addPrices(int index, Price.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Headers.Builder

addPricesBuilder()

public Price.Builder addPricesBuilder()

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
com.google.shopping.type.Price.Builder

addPricesBuilder(int index)

public Price.Builder addPricesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWeights(Weight value)

public Headers.Builder addWeights(Weight value)

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
value com.google.shopping.type.Weight
Returns
Type Description
Headers.Builder

addWeights(Weight.Builder builderForValue)

public Headers.Builder addWeights(Weight.Builder builderForValue)

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
builderForValue com.google.shopping.type.Weight.Builder
Returns
Type Description
Headers.Builder

addWeights(int index, Weight value)

public Headers.Builder addWeights(int index, Weight value)

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];

Parameters
Name Description
index int
value com.google.shopping.type.Weight
Returns
Type Description
Headers.Builder

addWeights(int index, Weight.Builder builderForValue)

public Headers.Builder addWeights(int index, Weight.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue com.google.shopping.type.Weight.Builder
Returns
Type Description
Headers.Builder

addWeightsBuilder()

public Weight.Builder addWeightsBuilder()

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
com.google.shopping.type.Weight.Builder

addWeightsBuilder(int index)

public Weight.Builder addWeightsBuilder(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.Builder

build()

public Headers build()
Returns
Type Description
Headers

buildPartial()

public Headers buildPartial()
Returns
Type Description
Headers

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLocations()

public Headers.Builder clearLocations()

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
Headers.Builder

clearNumberOfItems()

public Headers.Builder clearNumberOfItems()

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
Headers.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostalCodeGroupNames()

public Headers.Builder clearPostalCodeGroupNames()

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
Headers.Builder

This builder for chaining.

clearPrices()

public Headers.Builder clearPrices()

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
Headers.Builder

clearWeights()

public Headers.Builder clearWeights()

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
Headers.Builder

clone()

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

getDefaultInstanceForType()

public Headers getDefaultInstanceForType()
Returns
Type Description
Headers

getDescriptorForType()

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

getLocations(int index)

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
Returns
Type Description
LocationIdSet

getLocationsBuilder(int index)

public LocationIdSet.Builder getLocationsBuilder(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
Returns
Type Description
LocationIdSet.Builder

getLocationsBuilderList()

public List<LocationIdSet.Builder> getLocationsBuilderList()

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<Builder>

getLocationsCount()

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

getLocationsList()

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];

Returns
Type Description
List<LocationIdSet>

getLocationsOrBuilder(int index)

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
Returns
Type Description
LocationIdSetOrBuilder

getLocationsOrBuilderList()

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>

getNumberOfItems(int index)

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.

getNumberOfItemsBytes(int 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.

getNumberOfItemsCount()

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.

getNumberOfItemsList()

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];

Returns
Type Description
ProtocolStringList

A list containing the numberOfItems.

getPostalCodeGroupNames(int index)

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.

getPostalCodeGroupNamesBytes(int 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.

getPostalCodeGroupNamesCount()

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.

getPostalCodeGroupNamesList()

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];

Returns
Type Description
ProtocolStringList

A list containing the postalCodeGroupNames.

getPrices(int index)

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

getPricesBuilder(int index)

public Price.Builder getPricesBuilder(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.Builder

getPricesBuilderList()

public List<Price.Builder> getPricesBuilderList()

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.Builder>

getPricesCount()

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

getPricesList()

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>

getPricesOrBuilder(int index)

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

getPricesOrBuilderList()

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>

getWeights(int index)

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

getWeightsBuilder(int index)

public Weight.Builder getWeightsBuilder(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.Builder

getWeightsBuilderList()

public List<Weight.Builder> getWeightsBuilderList()

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.Builder>

getWeightsCount()

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

getWeightsList()

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>

getWeightsOrBuilder(int index)

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

getWeightsOrBuilderList()

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>

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

mergeFrom(Message other)

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

mergeFrom(Headers other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLocations(int index)

public Headers.Builder removeLocations(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
Returns
Type Description
Headers.Builder

removePrices(int index)

public Headers.Builder removePrices(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
Headers.Builder

removeWeights(int index)

public Headers.Builder removeWeights(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
Headers.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocations(int index, LocationIdSet value)

public Headers.Builder setLocations(int index, LocationIdSet value)

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];

Parameters
Name Description
index int
value LocationIdSet
Returns
Type Description
Headers.Builder

setLocations(int index, LocationIdSet.Builder builderForValue)

public Headers.Builder setLocations(int index, LocationIdSet.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue LocationIdSet.Builder
Returns
Type Description
Headers.Builder

setNumberOfItems(int index, String value)

public Headers.Builder setNumberOfItems(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The numberOfItems to set.

Returns
Type Description
Headers.Builder

This builder for chaining.

setPostalCodeGroupNames(int index, String value)

public Headers.Builder setPostalCodeGroupNames(int index, String value)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The postalCodeGroupNames to set.

Returns
Type Description
Headers.Builder

This builder for chaining.

setPrices(int index, Price value)

public Headers.Builder setPrices(int index, Price value)

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];

Parameters
Name Description
index int
value com.google.shopping.type.Price
Returns
Type Description
Headers.Builder

setPrices(int index, Price.Builder builderForValue)

public Headers.Builder setPrices(int index, Price.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue com.google.shopping.type.Price.Builder
Returns
Type Description
Headers.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWeights(int index, Weight value)

public Headers.Builder setWeights(int index, Weight value)

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];

Parameters
Name Description
index int
value com.google.shopping.type.Weight
Returns
Type Description
Headers.Builder

setWeights(int index, Weight.Builder builderForValue)

public Headers.Builder setWeights(int index, Weight.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue com.google.shopping.type.Weight.Builder
Returns
Type Description
Headers.Builder