Package com.google.cloud.vision.v1
Class ProductSearchResults.Result.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Result.Builder>
com.google.cloud.vision.v1.ProductSearchResults.Result.Builder
- All Implemented Interfaces:
ProductSearchResults.ResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProductSearchResults.Result
public static final class ProductSearchResults.Result.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Result.Builder>
implements ProductSearchResults.ResultOrBuilder
Information about a product.Protobuf type
google.cloud.vision.v1.ProductSearchResults.Result-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The resource name of the image from the product that is the closest match to the query.The Product.A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetImage()The resource name of the image from the product that is the closest match to the query.com.google.protobuf.ByteStringThe resource name of the image from the product that is the closest match to the query.The Product.The Product.The Product.floatgetScore()A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).booleanThe Product.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProduct(Product value) The Product.The resource name of the image from the product that is the closest match to the query.setImageBytes(com.google.protobuf.ByteString value) The resource name of the image from the product that is the closest match to the query.setProduct(Product value) The Product.setProduct(Product.Builder builderForValue) The Product.setScore(float value) A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Result.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Result.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Result.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductSearchResults.Result.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Result.Builder>
-
mergeFrom
public ProductSearchResults.Result.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductSearchResults.Result.Builder>- Throws:
IOException
-
hasProduct
public boolean hasProduct()The Product.
.google.cloud.vision.v1.Product product = 1;- Specified by:
hasProductin interfaceProductSearchResults.ResultOrBuilder- Returns:
- Whether the product field is set.
-
getProduct
The Product.
.google.cloud.vision.v1.Product product = 1;- Specified by:
getProductin interfaceProductSearchResults.ResultOrBuilder- Returns:
- The product.
-
setProduct
The Product.
.google.cloud.vision.v1.Product product = 1; -
setProduct
The Product.
.google.cloud.vision.v1.Product product = 1; -
mergeProduct
The Product.
.google.cloud.vision.v1.Product product = 1; -
clearProduct
The Product.
.google.cloud.vision.v1.Product product = 1; -
getProductBuilder
The Product.
.google.cloud.vision.v1.Product product = 1; -
getProductOrBuilder
The Product.
.google.cloud.vision.v1.Product product = 1;- Specified by:
getProductOrBuilderin interfaceProductSearchResults.ResultOrBuilder
-
getScore
public float getScore()A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;- Specified by:
getScorein interfaceProductSearchResults.ResultOrBuilder- Returns:
- The score.
-
setScore
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;- Returns:
- This builder for chaining.
-
getImage
The resource name of the image from the product that is the closest match to the query.
string image = 3;- Specified by:
getImagein interfaceProductSearchResults.ResultOrBuilder- Returns:
- The image.
-
getImageBytes
public com.google.protobuf.ByteString getImageBytes()The resource name of the image from the product that is the closest match to the query.
string image = 3;- Specified by:
getImageBytesin interfaceProductSearchResults.ResultOrBuilder- Returns:
- The bytes for image.
-
setImage
The resource name of the image from the product that is the closest match to the query.
string image = 3;- Parameters:
value- The image to set.- Returns:
- This builder for chaining.
-
clearImage
The resource name of the image from the product that is the closest match to the query.
string image = 3;- Returns:
- This builder for chaining.
-
setImageBytes
The resource name of the image from the product that is the closest match to the query.
string image = 3;- Parameters:
value- The bytes for image to set.- Returns:
- This builder for chaining.
-