Constructs a new Product.
Optional
properties:
IProduct
Properties to set
Product productId.
Static
create
Creates a new Product instance using the specified properties.
Optional
properties:
IProduct
Properties to set
Product instance
Static
decode
Decodes a Product message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
Product
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a Product message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
Product
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Static
encodeStatic
fromCreates a Product message from a plain object. Also converts values to their respective internal types.
Plain object
Product
Static
toCreates a plain object from a Product message. Also converts values to other types if specified.
Product
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a Product.