Class: Google::Cloud::Vision::V1::Product::KeyValue

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/product_search_service.rb

Overview

A product label represented as a key-value pair.

Instance Attribute Summary collapse

Instance Attribute Details

#key::String

Returns 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.



75
76
77
78
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 75

class KeyValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#value::String

Returns 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.



75
76
77
78
# File 'proto_docs/google/cloud/vision/v1/product_search_service.rb', line 75

class KeyValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end