Class ProductSearchResults.GroupedResult (3.32.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.v1p4beta1.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
TypeDescription
int

OBJECT_ANNOTATIONS_FIELD_NUMBER

public static final int OBJECT_ANNOTATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

RESULTS_FIELD_NUMBER

public static final int RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProductSearchResults.GroupedResult getDefaultInstance()
Returns
TypeDescription
ProductSearchResults.GroupedResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ProductSearchResults.GroupedResult.Builder newBuilder()
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

newBuilder(ProductSearchResults.GroupedResult prototype)

public static ProductSearchResults.GroupedResult.Builder newBuilder(ProductSearchResults.GroupedResult prototype)
Parameter
NameDescription
prototypeProductSearchResults.GroupedResult
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

parseDelimitedFrom(InputStream input)

public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ProductSearchResults.GroupedResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProductSearchResults.GroupedResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ProductSearchResults.GroupedResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.GroupedResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBoundingPoly()

public BoundingPoly getBoundingPoly()

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

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

Returns
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public BoundingPolyOrBuilder getBoundingPolyOrBuilder()

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

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

Returns
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ProductSearchResults.GroupedResult getDefaultInstanceForType()
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ObjectAnnotation

getObjectAnnotationsCount()

public int getObjectAnnotationsCount()

List of generic predictions for the object in the bounding box.

repeated .google.cloud.vision.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.ProductSearchResults.ObjectAnnotation object_annotations = 3;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ObjectAnnotationOrBuilder>

getParserForType()

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

getResults(int index)

public ProductSearchResults.Result getResults(int index)

List of results, one for each product match.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Result

getResultsCount()

public int getResultsCount()

List of results, one for each product match.

repeated .google.cloud.vision.v1p4beta1.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.v1p4beta1.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.v1p4beta1.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.v1p4beta1.ProductSearchResults.Result results = 2;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.ResultOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasBoundingPoly()

public boolean hasBoundingPoly()

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

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

Returns
TypeDescription
boolean

Whether the boundingPoly field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ProductSearchResults.GroupedResult.Builder newBuilderForType()
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProductSearchResults.GroupedResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ProductSearchResults.GroupedResult.Builder toBuilder()
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException