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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ProductSearchResults.GroupedResult.Builder newBuilder()
newBuilder(ProductSearchResults.GroupedResult prototype)
public static ProductSearchResults.GroupedResult.Builder newBuilder(ProductSearchResults.GroupedResult prototype)
public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input)
public static ProductSearchResults.GroupedResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ProductSearchResults.GroupedResult parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ProductSearchResults.GroupedResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input)
public static ProductSearchResults.GroupedResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(InputStream input)
public static ProductSearchResults.GroupedResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductSearchResults.GroupedResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ProductSearchResults.GroupedResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
The bounding polygon around the product detected in the query image.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 1;
getDefaultInstanceForType()
public ProductSearchResults.GroupedResult getDefaultInstanceForType()
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
|
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;
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
|
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()
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
|
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;
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
|
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ProductSearchResults.GroupedResult.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProductSearchResults.GroupedResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ProductSearchResults.GroupedResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides