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
Type Description
int

PRODUCT_ID_FIELD_NUMBER

public static final int PRODUCT_ID_FIELD_NUMBER
Field Value
Type Description
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductSearchResults.ProductInfo getDefaultInstance()
Returns
Type Description
ProductSearchResults.ProductInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ProductSearchResults.ProductInfo.Builder newBuilder()
Returns
Type Description
ProductSearchResults.ProductInfo.Builder

newBuilder(ProductSearchResults.ProductInfo prototype)

public static ProductSearchResults.ProductInfo.Builder newBuilder(ProductSearchResults.ProductInfo prototype)
Parameter
Name Description
prototype ProductSearchResults.ProductInfo
Returns
Type Description
ProductSearchResults.ProductInfo.Builder

parseDelimitedFrom(InputStream input)

public static ProductSearchResults.ProductInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.ProductInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProductSearchResults.ProductInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.ProductInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductSearchResults.ProductInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.ProductInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductSearchResults.ProductInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.ProductInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProductSearchResults.ProductInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.ProductInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProductSearchResults.ProductInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.ProductInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.ProductInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ProductSearchResults.ProductInfo getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for imageUri.

getParserForType()

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

getProductId()

public String getProductId()

Product ID.

string product_id = 1;

Returns
Type Description
String

The productId.

getProductIdBytes()

public ByteString getProductIdBytes()

Product ID.

string product_id = 1;

Returns
Type Description
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
Type Description
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductSearchResults.ProductInfo.Builder newBuilderForType()
Returns
Type Description
ProductSearchResults.ProductInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductSearchResults.ProductInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductSearchResults.ProductInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProductSearchResults.ProductInfo.Builder toBuilder()
Returns
Type Description
ProductSearchResults.ProductInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException