Class Headers (0.4.0)

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

Implements

HeadersOrBuilder

Static Fields

LOCATIONS_FIELD_NUMBER

public static final int LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

NUMBER_OF_ITEMS_FIELD_NUMBER

public static final int NUMBER_OF_ITEMS_FIELD_NUMBER
Field Value
Type Description
int

POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER

public static final int POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER
Field Value
Type Description
int

PRICES_FIELD_NUMBER

public static final int PRICES_FIELD_NUMBER
Field Value
Type Description
int

WEIGHTS_FIELD_NUMBER

public static final int WEIGHTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Headers getDefaultInstance()
Returns
Type Description
Headers

getDescriptor()

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

newBuilder()

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

newBuilder(Headers prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Headers getDefaultInstanceForType()
Returns
Type Description
Headers

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

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.

getParserForType()

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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>

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 Headers.Builder newBuilderForType()
Returns
Type Description
Headers.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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