Package com.google.cloud.vision.v1
Class ProductSearchResults.GroupedResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.GroupedResult.Builder>
com.google.cloud.vision.v1.ProductSearchResults.GroupedResult.Builder
- All Implemented Interfaces:
ProductSearchResults.GroupedResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProductSearchResults.GroupedResult
public static final class ProductSearchResults.GroupedResult.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllObjectAnnotations(Iterable<? extends ProductSearchResults.ObjectAnnotation> values) List of generic predictions for the object in the bounding box.addAllResults(Iterable<? extends ProductSearchResults.Result> values) List of results, one for each product match.addObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation value) List of generic predictions for the object in the bounding box.addObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation.Builder builderForValue) List of generic predictions for the object in the bounding box.List of generic predictions for the object in the bounding box.addObjectAnnotations(ProductSearchResults.ObjectAnnotation.Builder builderForValue) List of generic predictions for the object in the bounding box.List of generic predictions for the object in the bounding box.addObjectAnnotationsBuilder(int index) List of generic predictions for the object in the bounding box.addResults(int index, ProductSearchResults.Result value) List of results, one for each product match.addResults(int index, ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.List of results, one for each product match.addResults(ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.List of results, one for each product match.addResultsBuilder(int index) List of results, one for each product match.build()clear()The bounding polygon around the product detected in the query image.List of generic predictions for the object in the bounding box.List of results, one for each product match.The bounding polygon around the product detected in the query image.The bounding polygon around the product detected in the query image.The bounding polygon around the product detected in the query image.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetObjectAnnotations(int index) List of generic predictions for the object in the bounding box.getObjectAnnotationsBuilder(int index) List of generic predictions for the object in the bounding box.List of generic predictions for the object in the bounding box.intList of generic predictions for the object in the bounding box.List of generic predictions for the object in the bounding box.getObjectAnnotationsOrBuilder(int index) List of generic predictions for the object in the bounding box.List of generic predictions for the object in the bounding box.getResults(int index) List of results, one for each product match.getResultsBuilder(int index) List of results, one for each product match.List of results, one for each product match.intList of results, one for each product match.List of results, one for each product match.getResultsOrBuilder(int index) List of results, one for each product match.List<? extends ProductSearchResults.ResultOrBuilder>List of results, one for each product match.booleanThe bounding polygon around the product detected in the query image.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingPoly(BoundingPoly value) The bounding polygon around the product detected in the query image.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeObjectAnnotations(int index) List of generic predictions for the object in the bounding box.removeResults(int index) List of results, one for each product match.setBoundingPoly(BoundingPoly value) The bounding polygon around the product detected in the query image.setBoundingPoly(BoundingPoly.Builder builderForValue) The bounding polygon around the product detected in the query image.setObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation value) List of generic predictions for the object in the bounding box.setObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation.Builder builderForValue) List of generic predictions for the object in the bounding box.setResults(int index, ProductSearchResults.Result value) List of results, one for each product match.setResults(int index, ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.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.GroupedResult.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.GroupedResult.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.GroupedResult.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.GroupedResult.Builder>
-
mergeFrom
public ProductSearchResults.GroupedResult.Builder mergeFrom(ProductSearchResults.GroupedResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.GroupedResult.Builder>
-
mergeFrom
public ProductSearchResults.GroupedResult.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.GroupedResult.Builder>- Throws:
IOException
-
hasBoundingPoly
public boolean hasBoundingPoly()The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;- Specified by:
hasBoundingPolyin interfaceProductSearchResults.GroupedResultOrBuilder- Returns:
- Whether the boundingPoly field is set.
-
getBoundingPoly
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;- Specified by:
getBoundingPolyin interfaceProductSearchResults.GroupedResultOrBuilder- Returns:
- The boundingPoly.
-
setBoundingPoly
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1; -
setBoundingPoly
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; -
mergeBoundingPoly
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1; -
clearBoundingPoly
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1; -
getBoundingPolyBuilder
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1; -
getBoundingPolyOrBuilder
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;- Specified by:
getBoundingPolyOrBuilderin interfaceProductSearchResults.GroupedResultOrBuilder
-
getResultsList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;- Specified by:
getResultsListin interfaceProductSearchResults.GroupedResultOrBuilder
-
getResultsCount
public int getResultsCount()List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;- Specified by:
getResultsCountin interfaceProductSearchResults.GroupedResultOrBuilder
-
getResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;- Specified by:
getResultsin interfaceProductSearchResults.GroupedResultOrBuilder
-
setResults
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; -
setResults
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; -
addResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
addResults
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; -
addResults
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; -
addResults
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; -
addAllResults
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; -
clearResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
removeResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
getResultsBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
getResultsOrBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;- Specified by:
getResultsOrBuilderin interfaceProductSearchResults.GroupedResultOrBuilder
-
getResultsOrBuilderList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;- Specified by:
getResultsOrBuilderListin interfaceProductSearchResults.GroupedResultOrBuilder
-
addResultsBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
addResultsBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
getResultsBuilderList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2; -
getObjectAnnotationsList
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;- Specified by:
getObjectAnnotationsListin interfaceProductSearchResults.GroupedResultOrBuilder
-
getObjectAnnotationsCount
public int getObjectAnnotationsCount()List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;- Specified by:
getObjectAnnotationsCountin interfaceProductSearchResults.GroupedResultOrBuilder
-
getObjectAnnotations
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;- Specified by:
getObjectAnnotationsin interfaceProductSearchResults.GroupedResultOrBuilder
-
setObjectAnnotations
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; -
setObjectAnnotations
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; -
addObjectAnnotations
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; -
addObjectAnnotations
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; -
addObjectAnnotations
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; -
addObjectAnnotations
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; -
addAllObjectAnnotations
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; -
clearObjectAnnotations
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; -
removeObjectAnnotations
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; -
getObjectAnnotationsBuilder
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; -
getObjectAnnotationsOrBuilder
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;- Specified by:
getObjectAnnotationsOrBuilderin interfaceProductSearchResults.GroupedResultOrBuilder
-
getObjectAnnotationsOrBuilderList
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;- Specified by:
getObjectAnnotationsOrBuilderListin interfaceProductSearchResults.GroupedResultOrBuilder
-
addObjectAnnotationsBuilder
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; -
addObjectAnnotationsBuilder
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3; -
getObjectAnnotationsBuilderList
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
-