class Google::Apis::ContentV2_1::Headers

A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set.

Attributes

locations[RW]

A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. Corresponds to the JSON property `locations` @return [Array<Google::Apis::ContentV2_1::LocationIdSet>]

number_of_items[RW]

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. Corresponds to the JSON property `numberOfItems` @return [Array<String>]

postal_code_group_names[RW]

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. Corresponds to the JSON property `postalCodeGroupNames` @return [Array<String>]

prices[RW]

A list of inclusive order price upper bounds. The last price's value can be `“ infinity”`. For example `[`“value”: “10”, “currency”: “USD”`, `“value”: “500”, “currency”: “USD”`, `“value”: “infinity”, “currency”: “USD”`]` represents the headers “<= $10”, “<= $500”, and “> $500”. All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set. Corresponds to the JSON property `prices` @return [Array<Google::Apis::ContentV2_1::Price>]

weights[RW]

A list of inclusive order weight upper bounds. The last weight's value can be ` “infinity”`. For example `[`“value”: “10”, “unit”: “kg”`, `“value”: “50”, “ unit”: “kg”`, `“value”: “infinity”, “unit”: “kg”`]` represents the headers “<= 10kg”, “<= 50kg”, and “> 50kg”. All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set. Corresponds to the JSON property `weights` @return [Array<Google::Apis::ContentV2_1::Weight>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 3444
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 3449
def update!(**args)
  @locations = args[:locations] if args.key?(:locations)
  @number_of_items = args[:number_of_items] if args.key?(:number_of_items)
  @postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
  @prices = args[:prices] if args.key?(:prices)
  @weights = args[:weights] if args.key?(:weights)
end