Class ProductSearchResults.GroupedResult (3.43.0)

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.v1.ProductSearchResults.GroupedResult

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ProductSearchResults.GroupedResult

Static Fields

BOUNDING_POLY_FIELD_NUMBER

public static final int BOUNDING_POLY_FIELD_NUMBER
Field Value
Type Description
int

OBJECT_ANNOTATIONS_FIELD_NUMBER

public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

RESULTS_FIELD_NUMBER

public static final int RESULTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductSearchResults.GroupedResult getDefaultInstance()
Returns
Type Description
ProductSearchResults.GroupedResult

getDescriptor()

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

newBuilder()

public static ProductSearchResults.GroupedResult.Builder newBuilder()
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

newBuilder(ProductSearchResults.GroupedResult prototype)

public static ProductSearchResults.GroupedResult.Builder newBuilder(ProductSearchResults.GroupedResult prototype)
Parameter
Name Description
prototype ProductSearchResults.GroupedResult
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

parseDelimitedFrom(InputStream input)

public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProductSearchResults.GroupedResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductSearchResults.GroupedResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProductSearchResults.GroupedResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.GroupedResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProductSearchResults.GroupedResult> parser()
Returns
Type Description
Parser<GroupedResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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

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>

getParserForType()

public Parser<ProductSearchResults.GroupedResult> getParserForType()
Returns
Type Description
Parser<GroupedResult>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProductSearchResults.GroupedResult.Builder newBuilderForType()
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductSearchResults.GroupedResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProductSearchResults.GroupedResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProductSearchResults.GroupedResult.Builder toBuilder()
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException