public static final class ProductSearchResults.ProductInfo extends GeneratedMessageV3 implements ProductSearchResults.ProductInfoOrBuilder
Information about a product.
Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo
Static Fields
IMAGE_URI_FIELD_NUMBER
public static final int IMAGE_URI_FIELD_NUMBER
Field Value
PRODUCT_ID_FIELD_NUMBER
public static final int PRODUCT_ID_FIELD_NUMBER
Field Value
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ProductSearchResults.ProductInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ProductSearchResults.ProductInfo.Builder newBuilder()
Returns
newBuilder(ProductSearchResults.ProductInfo prototype)
public static ProductSearchResults.ProductInfo.Builder newBuilder(ProductSearchResults.ProductInfo prototype)
Parameter
Returns
public static ProductSearchResults.ProductInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProductSearchResults.ProductInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ProductSearchResults.ProductInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.ProductInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ProductSearchResults.ProductInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.ProductInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProductSearchResults.ProductInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ProductSearchResults.ProductInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProductSearchResults.ProductInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProductSearchResults.ProductInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ProductSearchResults.ProductInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.ProductInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ProductSearchResults.ProductInfo> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ProductSearchResults.ProductInfo getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<ProductSearchResults.ProductInfo> getParserForType()
Returns
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
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ProductSearchResults.ProductInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProductSearchResults.ProductInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ProductSearchResults.ProductInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions