public static final class ProductSearchResults.GroupedResult extends GeneratedMessageV3 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 Fields
BOUNDING_POLY_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
Field Value
OBJECT_ANNOTATIONS_FIELD_NUMBER
public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER
Field Value
RESULTS_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ProductSearchResults.GroupedResult getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ProductSearchResults.GroupedResult.Builder newBuilder()
Returns
newBuilder(ProductSearchResults.GroupedResult prototype)
public static ProductSearchResults.GroupedResult.Builder newBuilder(ProductSearchResults.GroupedResult prototype)
Parameter
Returns
public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ProductSearchResults.GroupedResult parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ProductSearchResults.GroupedResult parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ProductSearchResults.GroupedResult parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ProductSearchResults.GroupedResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ProductSearchResults.GroupedResult> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
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
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
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> | |
getParserForType()
public Parser<ProductSearchResults.GroupedResult> getParserForType()
Returns
Overrides
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
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> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ProductSearchResults.GroupedResult.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProductSearchResults.GroupedResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ProductSearchResults.GroupedResult.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions