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.v1p3beta1.ProductSearchResults.GroupedResult
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllObjectAnnotations(Iterable<? extends ProductSearchResults.ObjectAnnotation> values)
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.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation>
|
Returns
addAllResults(Iterable<? extends ProductSearchResults.Result> values)
public ProductSearchResults.GroupedResult.Builder addAllResults(Iterable<? extends ProductSearchResults.Result> values)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>
|
Returns
addObjectAnnotations(ProductSearchResults.ObjectAnnotation value)
public ProductSearchResults.GroupedResult.Builder addObjectAnnotations(ProductSearchResults.ObjectAnnotation value)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
addObjectAnnotations(ProductSearchResults.ObjectAnnotation.Builder builderForValue)
public ProductSearchResults.GroupedResult.Builder addObjectAnnotations(ProductSearchResults.ObjectAnnotation.Builder builderForValue)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
addObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation value)
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.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameters
Returns
addObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation.Builder builderForValue)
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.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameters
Returns
addObjectAnnotationsBuilder()
public ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Returns
addObjectAnnotationsBuilder(int index)
public ProductSearchResults.ObjectAnnotation.Builder addObjectAnnotationsBuilder(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.GroupedResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addResults(ProductSearchResults.Result value)
public ProductSearchResults.GroupedResult.Builder addResults(ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
addResults(ProductSearchResults.Result.Builder builderForValue)
public ProductSearchResults.GroupedResult.Builder addResults(ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
addResults(int index, ProductSearchResults.Result value)
public ProductSearchResults.GroupedResult.Builder addResults(int index, ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameters
Returns
addResults(int index, ProductSearchResults.Result.Builder builderForValue)
public ProductSearchResults.GroupedResult.Builder addResults(int index, ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameters
Returns
addResultsBuilder()
public ProductSearchResults.Result.Builder addResultsBuilder()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Returns
addResultsBuilder(int index)
public ProductSearchResults.Result.Builder addResultsBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
build()
public ProductSearchResults.GroupedResult build()
Returns
buildPartial()
public ProductSearchResults.GroupedResult buildPartial()
Returns
clear()
public ProductSearchResults.GroupedResult.Builder clear()
Returns
Overrides
clearBoundingPoly()
public ProductSearchResults.GroupedResult.Builder clearBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ProductSearchResults.GroupedResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearObjectAnnotations()
public ProductSearchResults.GroupedResult.Builder clearObjectAnnotations()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductSearchResults.GroupedResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResults()
public ProductSearchResults.GroupedResult.Builder clearResults()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Returns
clone()
public ProductSearchResults.GroupedResult.Builder clone()
Returns
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Returns
getBoundingPolyBuilder()
public BoundingPoly.Builder getBoundingPolyBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Returns
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Returns
getDefaultInstanceForType()
public ProductSearchResults.GroupedResult getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getObjectAnnotations(int index)
public ProductSearchResults.ObjectAnnotation getObjectAnnotations(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
getObjectAnnotationsBuilder(int index)
public ProductSearchResults.ObjectAnnotation.Builder getObjectAnnotationsBuilder(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
getObjectAnnotationsBuilderList()
public List<ProductSearchResults.ObjectAnnotation.Builder> getObjectAnnotationsBuilderList()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Returns
getObjectAnnotationsCount()
public int getObjectAnnotationsCount()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Returns
getObjectAnnotationsList()
public List<ProductSearchResults.ObjectAnnotation> getObjectAnnotationsList()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Returns
getObjectAnnotationsOrBuilder(int index)
public ProductSearchResults.ObjectAnnotationOrBuilder getObjectAnnotationsOrBuilder(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
getObjectAnnotationsOrBuilderList()
public List<? extends ProductSearchResults.ObjectAnnotationOrBuilder> getObjectAnnotationsOrBuilderList()
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotationOrBuilder> | |
getResults(int index)
public ProductSearchResults.Result getResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
getResultsBuilder(int index)
public ProductSearchResults.Result.Builder getResultsBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
getResultsBuilderList()
public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Returns
getResultsCount()
public int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Returns
getResultsList()
public List<ProductSearchResults.Result> getResultsList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Returns
getResultsOrBuilder(int index)
public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
getResultsOrBuilderList()
public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> | |
hasBoundingPoly()
public boolean hasBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Returns
Type | Description |
boolean | Whether the boundingPoly field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeBoundingPoly(BoundingPoly value)
public ProductSearchResults.GroupedResult.Builder mergeBoundingPoly(BoundingPoly value)
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Parameter
Returns
mergeFrom(ProductSearchResults.GroupedResult other)
public ProductSearchResults.GroupedResult.Builder mergeFrom(ProductSearchResults.GroupedResult other)
Parameter
Returns
public ProductSearchResults.GroupedResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ProductSearchResults.GroupedResult.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.GroupedResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeObjectAnnotations(int index)
public ProductSearchResults.GroupedResult.Builder removeObjectAnnotations(int index)
List of generic predictions for the object in the bounding box.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameter
Returns
removeResults(int index)
public ProductSearchResults.GroupedResult.Builder removeResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameter
Returns
setBoundingPoly(BoundingPoly value)
public ProductSearchResults.GroupedResult.Builder setBoundingPoly(BoundingPoly value)
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Parameter
Returns
setBoundingPoly(BoundingPoly.Builder builderForValue)
public ProductSearchResults.GroupedResult.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.GroupedResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation value)
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.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameters
Returns
setObjectAnnotations(int index, ProductSearchResults.ObjectAnnotation.Builder builderForValue)
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.v1p3beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductSearchResults.GroupedResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setResults(int index, ProductSearchResults.Result value)
public ProductSearchResults.GroupedResult.Builder setResults(int index, ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameters
Returns
setResults(int index, ProductSearchResults.Result.Builder builderForValue)
public ProductSearchResults.GroupedResult.Builder setResults(int index, ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.GroupedResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides