public static final class ProductSearchResults.Result.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder> implements ProductSearchResults.ResultOrBuilder
Information about a product.Protobuf type
google.cloud.vision.v1p4beta1.ProductSearchResults.Result
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ProductSearchResults.Result build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ProductSearchResults.Result buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ProductSearchResults.Result.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder mergeFrom(ProductSearchResults.Result other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public ProductSearchResults.Result.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ProductSearchResults.Result.Builder>
IOException
public boolean hasProduct()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
hasProduct
in interface ProductSearchResults.ResultOrBuilder
public Product getProduct()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
getProduct
in interface ProductSearchResults.ResultOrBuilder
public ProductSearchResults.Result.Builder setProduct(Product value)
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
public ProductSearchResults.Result.Builder setProduct(Product.Builder builderForValue)
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
public ProductSearchResults.Result.Builder mergeProduct(Product value)
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
public ProductSearchResults.Result.Builder clearProduct()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
public Product.Builder getProductBuilder()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
public ProductOrBuilder getProductOrBuilder()
The Product.
.google.cloud.vision.v1p4beta1.Product product = 1;
getProductOrBuilder
in interface ProductSearchResults.ResultOrBuilder
public float getScore()
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;
getScore
in interface ProductSearchResults.ResultOrBuilder
public ProductSearchResults.Result.Builder setScore(float value)
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;
value
- The score to set.public ProductSearchResults.Result.Builder clearScore()
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
float score = 2;
public String getImage()
The resource name of the image from the product that is the closest match to the query.
string image = 3;
getImage
in interface ProductSearchResults.ResultOrBuilder
public ByteString getImageBytes()
The resource name of the image from the product that is the closest match to the query.
string image = 3;
getImageBytes
in interface ProductSearchResults.ResultOrBuilder
public ProductSearchResults.Result.Builder setImage(String value)
The resource name of the image from the product that is the closest match to the query.
string image = 3;
value
- The image to set.public ProductSearchResults.Result.Builder clearImage()
The resource name of the image from the product that is the closest match to the query.
string image = 3;
public ProductSearchResults.Result.Builder setImageBytes(ByteString value)
The resource name of the image from the product that is the closest match to the query.
string image = 3;
value
- The bytes for image to set.public final ProductSearchResults.Result.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
public final ProductSearchResults.Result.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder>
Copyright © 2022 Google LLC. All rights reserved.