Class: Google::Apis::ContentV2::Headers
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::Headers
 
- Defined in:
- generated/google/apis/content_v2/classes.rb,
 generated/google/apis/content_v2/representations.rb,
 generated/google/apis/content_v2/representations.rb
Overview
A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or locations must be set.
Instance Attribute Summary collapse
- 
  
    
      #locations  ⇒ Array<Google::Apis::ContentV2::LocationIdSet> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of location ID sets. 
- 
  
    
      #number_of_items  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of inclusive number of items upper bounds. 
- 
  
    
      #postal_code_group_names  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of postal group names. 
- 
  
    
      #prices  ⇒ Array<Google::Apis::ContentV2::Price> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of inclusive order price upper bounds. 
- 
  
    
      #weights  ⇒ Array<Google::Apis::ContentV2::Weight> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of inclusive order weight upper bounds. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Headers 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Headers. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Headers
Returns a new instance of Headers
| 2109 2110 2111 | # File 'generated/google/apis/content_v2/classes.rb', line 2109 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#locations ⇒ Array<Google::Apis::ContentV2::LocationIdSet>
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
| 2073 2074 2075 | # File 'generated/google/apis/content_v2/classes.rb', line 2073 def locations @locations end | 
#number_of_items ⇒ Array<String>
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". Must be non-empty. Can only be set if all other fields
are not set.
Corresponds to the JSON property numberOfItems
| 2081 2082 2083 | # File 'generated/google/apis/content_v2/classes.rb', line 2081 def number_of_items @number_of_items end | 
#postal_code_group_names ⇒ Array<String>
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
| 2089 2090 2091 | # File 'generated/google/apis/content_v2/classes.rb', line 2089 def postal_code_group_names @postal_code_group_names end | 
#prices ⇒ Array<Google::Apis::ContentV2::Price>
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". 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
| 2098 2099 2100 | # File 'generated/google/apis/content_v2/classes.rb', line 2098 def prices @prices end | 
#weights ⇒ Array<Google::Apis::ContentV2::Weight>
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". 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
| 2107 2108 2109 | # File 'generated/google/apis/content_v2/classes.rb', line 2107 def weights @weights end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2114 2115 2116 2117 2118 2119 2120 | # File 'generated/google/apis/content_v2/classes.rb', line 2114 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 |