Send feedback
Class ProductSearchResults.ProductInfo.Builder (2.1.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.4 keyboard_arrow_down
public static final class ProductSearchResults . ProductInfo . Builder extends GeneratedMessageV3 . Builder<ProductSearchResults . ProductInfo . Builder > implements ProductSearchResults . ProductInfoOrBuilder
Information about a product.
Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults . ProductInfo . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ProductSearchResults . ProductInfo build ()
Returns
buildPartial()
public ProductSearchResults . ProductInfo buildPartial ()
Returns
clear()
public ProductSearchResults . ProductInfo . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProductSearchResults . ProductInfo . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearImageUri()
public ProductSearchResults . ProductInfo . Builder clearImageUri ()
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductSearchResults . ProductInfo . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearProductId()
public ProductSearchResults . ProductInfo . Builder clearProductId ()
Product ID.
string product_id = 1;
Returns
clearScore()
public ProductSearchResults . ProductInfo . Builder clearScore ()
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
clone()
public ProductSearchResults . ProductInfo . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ProductSearchResults . ProductInfo getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ProductSearchResults.ProductInfo other)
public ProductSearchResults . ProductInfo . Builder mergeFrom ( ProductSearchResults . ProductInfo other )
Parameter
Returns
public ProductSearchResults . ProductInfo . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ProductSearchResults . ProductInfo . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults . ProductInfo . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults . ProductInfo . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setImageUri(String value)
public ProductSearchResults . ProductInfo . Builder setImageUri ( String value )
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;
Parameter
Name Description value String
The imageUri to set.
Returns
setImageUriBytes(ByteString value)
public ProductSearchResults . ProductInfo . Builder setImageUriBytes ( ByteString value )
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;
Parameter
Name Description value ByteString
The bytes for imageUri to set.
Returns
setProductId(String value)
public ProductSearchResults . ProductInfo . Builder setProductId ( String value )
Product ID.
string product_id = 1;
Parameter
Name Description value String
The productId to set.
Returns
setProductIdBytes(ByteString value)
public ProductSearchResults . ProductInfo . Builder setProductIdBytes ( ByteString value )
Product ID.
string product_id = 1;
Parameter
Name Description value ByteString
The bytes for productId to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductSearchResults . ProductInfo . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setScore(float value)
public ProductSearchResults . ProductInfo . Builder setScore ( float value )
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;
Parameter
Name Description value float
The score to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults . ProductInfo . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]