public static final class ProductSearchResults.GroupedResult.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder> implements ProductSearchResults.GroupedResultOrBuilder
Information about the products similar to a single product in a query image.Protobuf type
google.cloud.vision.v1.ProductSearchResults.GroupedResult
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.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ProductSearchResults.GroupedResult build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ProductSearchResults.GroupedResult buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ProductSearchResults.GroupedResult.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder mergeFrom(ProductSearchResults.GroupedResult other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public ProductSearchResults.GroupedResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ProductSearchResults.GroupedResult.Builder>
IOException
public boolean hasBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
hasBoundingPoly
in interface ProductSearchResults.GroupedResultOrBuilder
public BoundingPoly getBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getBoundingPoly
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.GroupedResult.Builder setBoundingPoly(BoundingPoly value)
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
public ProductSearchResults.GroupedResult.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
public ProductSearchResults.GroupedResult.Builder mergeBoundingPoly(BoundingPoly value)
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
public ProductSearchResults.GroupedResult.Builder clearBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
public BoundingPoly.Builder getBoundingPolyBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getBoundingPolyOrBuilder
in interface ProductSearchResults.GroupedResultOrBuilder
public List<ProductSearchResults.Result> getResultsList()
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
getResultsList
in interface ProductSearchResults.GroupedResultOrBuilder
public int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
getResultsCount
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.Result getResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
getResults
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.GroupedResult.Builder setResults(int index, ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder setResults(int index, ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder addResults(ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder addResults(int index, ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder addResults(ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder addResults(int index, ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder addAllResults(Iterable<? extends ProductSearchResults.Result> values)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder clearResults()
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.GroupedResult.Builder removeResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.Result.Builder getResultsBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
getResultsOrBuilder
in interface ProductSearchResults.GroupedResultOrBuilder
public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
getResultsOrBuilderList
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.Result.Builder addResultsBuilder()
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public ProductSearchResults.Result.Builder addResultsBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;
public List<ProductSearchResults.ObjectAnnotation> getObjectAnnotationsList()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
getObjectAnnotationsList
in interface ProductSearchResults.GroupedResultOrBuilder
public int getObjectAnnotationsCount()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
getObjectAnnotationsCount
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
getObjectAnnotations
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.GroupedResult.Builder setObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation value)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder setObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation.Builder builderForValue)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder addObjectAnnotations(ProductSearchResults.ObjectAnnotation value)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder addObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation value)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder addObjectAnnotations(ProductSearchResults.ObjectAnnotation.Builder builderForValue)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder addObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation.Builder builderForValue)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder addAllObjectAnnotations(Iterable<? extends ProductSearchResults.ObjectAnnotation> values)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder clearObjectAnnotations()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.GroupedResult.Builder removeObjectAnnotations(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
getObjectAnnotationsOrBuilder
in interface ProductSearchResults.GroupedResultOrBuilder
public List<? extends ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
getObjectAnnotationsOrBuilderList
in interface ProductSearchResults.GroupedResultOrBuilder
public ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public List<ProductSearchResults.ObjectAnnotation.Builder> getObjectAnnotationsBuilderList()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
public final ProductSearchResults.GroupedResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
public final ProductSearchResults.GroupedResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ProductSearchResults.GroupedResult.Builder>
Copyright © 2022 Google LLC. All rights reserved.