Class ProductSearchResults.GroupedResult.Builder (3.51.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation>
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1.ProductSearchResults.Result>
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
value ProductSearchResults.ObjectAnnotation
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
builderForValue ProductSearchResults.ObjectAnnotation.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameters
Name Description
index int
value ProductSearchResults.ObjectAnnotation
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameters
Name Description
index int
builderForValue ProductSearchResults.ObjectAnnotation.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

addObjectAnnotationsBuilder()

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;

Returns
Type Description
ProductSearchResults.ObjectAnnotation.Builder

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.ObjectAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.GroupedResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
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.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
value ProductSearchResults.Result
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
builderForValue ProductSearchResults.Result.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.Result results = 2;

Parameters
Name Description
index int
value ProductSearchResults.Result
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.Result results = 2;

Parameters
Name Description
index int
builderForValue ProductSearchResults.Result.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

addResultsBuilder()

public ProductSearchResults.Result.Builder addResultsBuilder()

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Returns
Type Description
ProductSearchResults.Result.Builder

addResultsBuilder(int index)

public ProductSearchResults.Result.Builder addResultsBuilder(int index)

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.Result.Builder

build()

public ProductSearchResults.GroupedResult build()
Returns
Type Description
ProductSearchResults.GroupedResult

buildPartial()

public ProductSearchResults.GroupedResult buildPartial()
Returns
Type Description
ProductSearchResults.GroupedResult

clear()

public ProductSearchResults.GroupedResult.Builder clear()
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides

clearBoundingPoly()

public ProductSearchResults.GroupedResult.Builder clearBoundingPoly()

The bounding polygon around the product detected in the query image.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
Type Description
ProductSearchResults.GroupedResult.Builder

clearField(Descriptors.FieldDescriptor field)

public ProductSearchResults.GroupedResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides

clearObjectAnnotations()

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;

Returns
Type Description
ProductSearchResults.GroupedResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSearchResults.GroupedResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides

clearResults()

public ProductSearchResults.GroupedResult.Builder clearResults()

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Returns
Type Description
ProductSearchResults.GroupedResult.Builder

clone()

public ProductSearchResults.GroupedResult.Builder clone()
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides

getBoundingPoly()

public BoundingPoly getBoundingPoly()

The bounding polygon around the product detected in the query image.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
Type Description
BoundingPoly

The boundingPoly.

getBoundingPolyBuilder()

public BoundingPoly.Builder getBoundingPolyBuilder()

The bounding polygon around the product detected in the query image.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
Type Description
BoundingPoly.Builder

getBoundingPolyOrBuilder()

public BoundingPolyOrBuilder getBoundingPolyOrBuilder()

The bounding polygon around the product detected in the query image.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
Type Description
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ProductSearchResults.GroupedResult getDefaultInstanceForType()
Returns
Type Description
ProductSearchResults.GroupedResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.ObjectAnnotation

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.ObjectAnnotation.Builder

getObjectAnnotationsBuilderList()

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

getObjectAnnotationsList()

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;

Returns
Type Description
List<ObjectAnnotation>

getObjectAnnotationsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.ObjectAnnotationOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotationOrBuilder>

getResults(int index)

public ProductSearchResults.Result getResults(int index)

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.Result

getResultsBuilder(int index)

public ProductSearchResults.Result.Builder getResultsBuilder(int index)

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.Result.Builder

getResultsBuilderList()

public List<ProductSearchResults.Result.Builder> getResultsBuilderList()

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Returns
Type Description
List<Builder>

getResultsCount()

public int getResultsCount()

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Returns
Type Description
int

getResultsList()

public List<ProductSearchResults.Result> getResultsList()

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Returns
Type Description
List<Result>

getResultsOrBuilder(int index)

public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.ResultOrBuilder

getResultsOrBuilderList()

public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Returns
Type Description
List<? extends com.google.cloud.vision.v1.ProductSearchResults.ResultOrBuilder>

hasBoundingPoly()

public boolean hasBoundingPoly()

The bounding polygon around the product detected in the query image.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;

Returns
Type Description
boolean

Whether the boundingPoly field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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.v1.BoundingPoly bounding_poly = 1;

Parameter
Name Description
value BoundingPoly
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

mergeFrom(ProductSearchResults.GroupedResult other)

public ProductSearchResults.GroupedResult.Builder mergeFrom(ProductSearchResults.GroupedResult other)
Parameter
Name Description
other ProductSearchResults.GroupedResult
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductSearchResults.GroupedResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductSearchResults.GroupedResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.GroupedResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

removeResults(int index)

public ProductSearchResults.GroupedResult.Builder removeResults(int index)

List of results, one for each product match.

repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 2;

Parameter
Name Description
index int
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

setBoundingPoly(BoundingPoly value)

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;

Parameter
Name Description
value BoundingPoly
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.BoundingPoly bounding_poly = 1;

Parameter
Name Description
builderForValue BoundingPoly.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.GroupedResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameters
Name Description
index int
value ProductSearchResults.ObjectAnnotation
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameters
Name Description
index int
builderForValue ProductSearchResults.ObjectAnnotation.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductSearchResults.GroupedResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
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.v1.ProductSearchResults.Result results = 2;

Parameters
Name Description
index int
value ProductSearchResults.Result
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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.v1.ProductSearchResults.Result results = 2;

Parameters
Name Description
index int
builderForValue ProductSearchResults.Result.Builder
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.GroupedResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides