Cloud Vision V1 API - Class Google::Cloud::Vision::V1::Product::KeyValue (v0.15.0)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::Product::KeyValue.

A product label represented as a key-value pair.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#key

def key() -> ::String
Returns
  • (::String) — The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
Returns
  • (::String) — The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

#value

def value() -> ::String
Returns
  • (::String) — The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

#value=

def value=(value) -> ::String
Parameter
  • value (::String) — The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
Returns
  • (::String) — The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.