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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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>
|
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.GroupedResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
addResultsBuilder()
public ProductSearchResults.Result.Builder addResultsBuilder()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
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 |
---|
Name | Description |
index | int
|
build()
public ProductSearchResults.GroupedResult build()
buildPartial()
public ProductSearchResults.GroupedResult buildPartial()
clear()
public ProductSearchResults.GroupedResult.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public ProductSearchResults.GroupedResult.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductSearchResults.GroupedResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResults()
public ProductSearchResults.GroupedResult.Builder clearResults()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
clone()
public ProductSearchResults.GroupedResult.Builder clone()
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
getBoundingPolyBuilder()
public BoundingPoly.Builder getBoundingPolyBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
getDefaultInstanceForType()
public ProductSearchResults.GroupedResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
getResultsBuilderList()
public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 2;
getResultsCount()
public int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.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.v1p3beta1.ProductSearchResults.Result results = 2;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(ProductSearchResults.GroupedResult other)
public ProductSearchResults.GroupedResult.Builder mergeFrom(ProductSearchResults.GroupedResult other)
public ProductSearchResults.GroupedResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ProductSearchResults.GroupedResult.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.GroupedResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.GroupedResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductSearchResults.GroupedResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.GroupedResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides