Class ProductSearchResults.ProductInfo (2.0.29)

public static final class ProductSearchResults.ProductInfo extends GeneratedMessageV3 implements ProductSearchResults.ProductInfoOrBuilder

Information about a product.

Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ProductSearchResults.ProductInfo

Static Fields

IMAGE_URI_FIELD_NUMBER

public static final int IMAGE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_ID_FIELD_NUMBER

public static final int PRODUCT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProductSearchResults.ProductInfo getDefaultInstance()
Returns
TypeDescription
ProductSearchResults.ProductInfo

getDescriptor()

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

newBuilder()

public static ProductSearchResults.ProductInfo.Builder newBuilder()
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

newBuilder(ProductSearchResults.ProductInfo prototype)

public static ProductSearchResults.ProductInfo.Builder newBuilder(ProductSearchResults.ProductInfo prototype)
Parameter
NameDescription
prototypeProductSearchResults.ProductInfo
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

parseDelimitedFrom(InputStream input)

public static ProductSearchResults.ProductInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProductSearchResults.ProductInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ProductSearchResults.ProductInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ProductSearchResults.ProductInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ProductSearchResults.ProductInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ProductSearchResults.ProductInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ProductSearchResults.ProductInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProductSearchResults.ProductInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ProductSearchResults.ProductInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ProductSearchResults.ProductInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ProductSearchResults.ProductInfo> parser()
Returns
TypeDescription
Parser<ProductInfo>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ProductSearchResults.ProductInfo getDefaultInstanceForType()
Returns
TypeDescription
ProductSearchResults.ProductInfo

getImageUri()

public String getImageUri()

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Returns
TypeDescription
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Returns
TypeDescription
ByteString

The bytes for imageUri.

getParserForType()

public Parser<ProductSearchResults.ProductInfo> getParserForType()
Returns
TypeDescription
Parser<ProductInfo>
Overrides

getProductId()

public String getProductId()

Product ID.

string product_id = 1;

Returns
TypeDescription
String

The productId.

getProductIdBytes()

public ByteString getProductIdBytes()

Product ID.

string product_id = 1;

Returns
TypeDescription
ByteString

The bytes for productId.

getScore()

public float getScore()

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). This field is returned only if view is set to FULL in the request.

float score = 3;

Returns
TypeDescription
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 ProductSearchResults.ProductInfo.Builder newBuilderForType()
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductSearchResults.ProductInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ProductSearchResults.ProductInfo.Builder toBuilder()
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

writeTo(CodedOutputStream output)

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