# Cloud Vision V1p3beta1 API - Class Google::Cloud::Vision::V1p3beta1::Product::KeyValue (v0.20.0)

0.20.0 (latest) 0.19.1 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.1 0.12.2 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.0 0.5.5 Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::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.