Class Product.KeyValue (3.10.0)

public static final class Product.KeyValue extends GeneratedMessageV3 implements Product.KeyValueOrBuilder

A product label represented as a key-value pair.

Protobuf type google.cloud.vision.v1p3beta1.Product.KeyValue

Static Fields

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Product.KeyValue getDefaultInstance()
Returns
TypeDescription
Product.KeyValue

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Product.KeyValue.Builder newBuilder()
Returns
TypeDescription
Product.KeyValue.Builder

newBuilder(Product.KeyValue prototype)

public static Product.KeyValue.Builder newBuilder(Product.KeyValue prototype)
Parameter
NameDescription
prototypeProduct.KeyValue
Returns
TypeDescription
Product.KeyValue.Builder

parseDelimitedFrom(InputStream input)

public static Product.KeyValue parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Product.KeyValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Product.KeyValue parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Product.KeyValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Product.KeyValue parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Product.KeyValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Product.KeyValue parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Product.KeyValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Product.KeyValue parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Product.KeyValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Product.KeyValue parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Product.KeyValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Product.KeyValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Product.KeyValue> parser()
Returns
TypeDescription
Parser<KeyValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Product.KeyValue getDefaultInstanceForType()
Returns
TypeDescription
Product.KeyValue

getKey()

public String getKey()

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getParserForType()

public Parser<Product.KeyValue> getParserForType()
Returns
TypeDescription
Parser<KeyValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public String getValue()

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

string value = 2;

Returns
TypeDescription
ByteString

The bytes for value.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Product.KeyValue.Builder newBuilderForType()
Returns
TypeDescription
Product.KeyValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Product.KeyValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Product.KeyValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Product.KeyValue.Builder toBuilder()
Returns
TypeDescription
Product.KeyValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException