Package com.google.cloud.vision.v1
Interface Product.KeyValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Product.KeyValue,Product.KeyValue.Builder
- Enclosing class:
- Product
public static interface Product.KeyValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()The key of the label attached to the product.com.google.protobuf.ByteStringThe key of the label attached to the product.getValue()The value of the label attached to the product.com.google.protobuf.ByteStringThe value of the label attached to the product.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getKey
String getKey()The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string key = 1;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string key = 1;- Returns:
- The bytes for key.
-
getValue
String getValue()The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string value = 2;- Returns:
- The value.
-
getValueBytes
com.google.protobuf.ByteString getValueBytes()The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string value = 2;- Returns:
- The bytes for value.
-