Class Product.KeyValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Product.KeyValue.Builder>
com.google.cloud.vision.v1.Product.KeyValue.Builder
All Implemented Interfaces:
Product.KeyValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Product.KeyValue

public static final class Product.KeyValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<Product.KeyValue.Builder> implements Product.KeyValueOrBuilder
 A product label represented as a key-value pair.
 
Protobuf type google.cloud.vision.v1.Product.KeyValue
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The key of the label attached to the product.
    The value of the label attached to the product.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The key of the label attached to the product.
    com.google.protobuf.ByteString
    The key of the label attached to the product.
    The value of the label attached to the product.
    com.google.protobuf.ByteString
    The value of the label attached to the product.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setKey(String value)
    The key of the label attached to the product.
    setKeyBytes(com.google.protobuf.ByteString value)
    The key of the label attached to the product.
    The value of the label attached to the product.
    setValueBytes(com.google.protobuf.ByteString value)
    The value of the label attached to the product.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Product.KeyValue.Builder>
    • clear

      public Product.KeyValue.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Product.KeyValue.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Product.KeyValue.Builder>
    • getDefaultInstanceForType

      public Product.KeyValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Product.KeyValue build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Product.KeyValue buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Product.KeyValue.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.KeyValue.Builder>
    • mergeFrom

      public Product.KeyValue.Builder mergeFrom(Product.KeyValue other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Product.KeyValue.Builder>
    • mergeFrom

      public Product.KeyValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Product.KeyValue.Builder>
      Throws:
      IOException
    • getKey

      public String getKey()
       The key of the label attached to the product. Cannot be empty and cannot
       exceed 128 bytes.
       
      string key = 1;
      Specified by:
      getKey in interface Product.KeyValueOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public 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;
      Specified by:
      getKeyBytes in interface Product.KeyValueOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public 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;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      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;
      Returns:
      This builder for chaining.
    • setKeyBytes

      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;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       The value of the label attached to the product. Cannot be empty and
       cannot exceed 128 bytes.
       
      string value = 2;
      Specified by:
      getValue in interface Product.KeyValueOrBuilder
      Returns:
      The value.
    • getValueBytes

      public 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;
      Specified by:
      getValueBytes in interface Product.KeyValueOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public 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;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      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;
      Returns:
      This builder for chaining.
    • setValueBytes

      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;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.