public static final class Product.KeyValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder> implements Product.KeyValueOrBuilder
A product label represented as a key-value pair.Protobuf type
google.cloud.vision.v1p3beta1.Product.KeyValue| Modifier and Type | Method and Description |
|---|---|
Product.KeyValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Product.KeyValue |
build() |
Product.KeyValue |
buildPartial() |
Product.KeyValue.Builder |
clear() |
Product.KeyValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Product.KeyValue.Builder |
clearKey()
The key of the label attached to the product.
|
Product.KeyValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Product.KeyValue.Builder |
clearValue()
The value of the label attached to the product.
|
Product.KeyValue.Builder |
clone() |
Product.KeyValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKey()
The key of the label attached to the product.
|
com.google.protobuf.ByteString |
getKeyBytes()
The key of the label attached to the product.
|
String |
getValue()
The value of the label attached to the product.
|
com.google.protobuf.ByteString |
getValueBytes()
The value of the label attached to the product.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Product.KeyValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Product.KeyValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
Product.KeyValue.Builder |
mergeFrom(Product.KeyValue other) |
Product.KeyValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Product.KeyValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Product.KeyValue.Builder |
setKey(String value)
The key of the label attached to the product.
|
Product.KeyValue.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
The key of the label attached to the product.
|
Product.KeyValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Product.KeyValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Product.KeyValue.Builder |
setValue(String value)
The value of the label attached to the product.
|
Product.KeyValue.Builder |
setValueBytes(com.google.protobuf.ByteString value)
The value of the label attached to the product.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Product.KeyValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Product.KeyValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Product.KeyValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder mergeFrom(Product.KeyValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public Product.KeyValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.KeyValue.Builder>IOExceptionpublic String getKey()
The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string key = 1;getKey in interface Product.KeyValueOrBuilderpublic 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;getKeyBytes in interface Product.KeyValueOrBuilderpublic Product.KeyValue.Builder setKey(String value)
The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string key = 1;value - The key to set.public Product.KeyValue.Builder clearKey()
The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string key = 1;public Product.KeyValue.Builder setKeyBytes(com.google.protobuf.ByteString value)
The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string key = 1;value - The bytes for key to set.public String getValue()
The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string value = 2;getValue in interface Product.KeyValueOrBuilderpublic 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;getValueBytes in interface Product.KeyValueOrBuilderpublic Product.KeyValue.Builder setValue(String value)
The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string value = 2;value - The value to set.public Product.KeyValue.Builder clearValue()
The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string value = 2;public Product.KeyValue.Builder setValueBytes(com.google.protobuf.ByteString value)
The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
string value = 2;value - The bytes for value to set.public final Product.KeyValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>public final Product.KeyValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Product.KeyValue.Builder>Copyright © 2023 Google LLC. All rights reserved.