Class ProductSearchResults.GroupedResult.Builder (3.34.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.ProductSearchResults.Result>
Returns
TypeDescription
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
NameDescription
valueProductSearchResults.ObjectAnnotation
Returns
TypeDescription
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
NameDescription
builderForValueProductSearchResults.ObjectAnnotation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueProductSearchResults.ObjectAnnotation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProductSearchResults.ObjectAnnotation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ObjectAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.GroupedResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueProductSearchResults.Result
Returns
TypeDescription
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
NameDescription
builderForValueProductSearchResults.Result.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueProductSearchResults.Result
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProductSearchResults.Result.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Result.Builder

build()

public ProductSearchResults.GroupedResult build()
Returns
TypeDescription
ProductSearchResults.GroupedResult

buildPartial()

public ProductSearchResults.GroupedResult buildPartial()
Returns
TypeDescription
ProductSearchResults.GroupedResult

clear()

public ProductSearchResults.GroupedResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
ProductSearchResults.GroupedResult.Builder

clearField(Descriptors.FieldDescriptor field)

public ProductSearchResults.GroupedResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ProductSearchResults.GroupedResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSearchResults.GroupedResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ProductSearchResults.GroupedResult.Builder

clone()

public ProductSearchResults.GroupedResult.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ProductSearchResults.GroupedResult getDefaultInstanceForType()
Returns
TypeDescription
ProductSearchResults.GroupedResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

List of results, one for each product match.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the boundingPoly field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBoundingPoly
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

mergeFrom(ProductSearchResults.GroupedResult other)

public ProductSearchResults.GroupedResult.Builder mergeFrom(ProductSearchResults.GroupedResult other)
Parameter
NameDescription
otherProductSearchResults.GroupedResult
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductSearchResults.GroupedResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProductSearchResults.GroupedResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.GroupedResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueBoundingPoly
Returns
TypeDescription
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
NameDescription
builderForValueBoundingPoly.Builder
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.GroupedResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueProductSearchResults.ObjectAnnotation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProductSearchResults.ObjectAnnotation.Builder
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

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

public ProductSearchResults.GroupedResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueProductSearchResults.Result
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProductSearchResults.Result.Builder
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.GroupedResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder
Overrides