Packages

final case class Weight(amountMicros: Option[Long] = _root_.scala.None, unit: WeightUnit = com.google.shopping.`type`.types.Weight.WeightUnit.WEIGHT_UNIT_UNSPECIFIED, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Weight] with Product with Serializable

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

amountMicros

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.

unit

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

Annotations
@SerialVersionUID()
Source
Weight.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Weight
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Weight(amountMicros: Option[Long] = _root_.scala.None, unit: WeightUnit = com.google.shopping.`type`.types.Weight.WeightUnit.WEIGHT_UNIT_UNSPECIFIED, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    amountMicros

    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.

    unit

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val amountMicros: Option[Long]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clearAmountMicros: Weight
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def companion: Weight.type
    Definition Classes
    Weight → GeneratedMessage
  9. def discardUnknownFields: Weight
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def getAmountMicros: Long
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Weight → GeneratedMessage
  15. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Weight → GeneratedMessage
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def productElementNames: Iterator[String]
    Definition Classes
    Product
  21. def serializedSize: Int
    Definition Classes
    Weight → GeneratedMessage
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  24. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  25. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  26. def toProtoString: String
    Definition Classes
    Weight → GeneratedMessage
  27. val unit: WeightUnit
  28. val unknownFields: UnknownFieldSet
  29. def update(ms: (Lens[Weight, Weight]) => Mutation[Weight]*): Weight
    Definition Classes
    Updatable
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. def withAmountMicros(__v: Long): Weight
  34. def withUnit(__v: WeightUnit): Weight
  35. def withUnknownFields(__v: UnknownFieldSet): Weight
  36. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  37. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Weight → GeneratedMessage
  38. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[Weight]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped