Class: Google::Shopping::Type::Weight

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/type/types.rb

Overview

The weight represented as the value in string and the unit.

Defined Under Namespace

Modules: WeightUnit

Instance Attribute Summary collapse

Instance Attribute Details

#amount_micros::Integer

Returns Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.

Returns:

  • (::Integer)

    Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'proto_docs/google/shopping/type/types.rb', line 35

class Weight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The weight unit.
  module WeightUnit
    # unit unspecified
    WEIGHT_UNIT_UNSPECIFIED = 0

    # lb unit.
    POUND = 1

    # kg unit.
    KILOGRAM = 2
  end
end

#unit::Google::Shopping::Type::Weight::WeightUnit

Returns Required. The weight unit. Acceptable values are: kg and lb.

Returns:



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'proto_docs/google/shopping/type/types.rb', line 35

class Weight
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The weight unit.
  module WeightUnit
    # unit unspecified
    WEIGHT_UNIT_UNSPECIFIED = 0

    # lb unit.
    POUND = 1

    # kg unit.
    KILOGRAM = 2
  end
end