Class ProductSearchResults (3.26.0)

public final class ProductSearchResults extends GeneratedMessageV3 implements ProductSearchResultsOrBuilder

Results for a product search request.

Protobuf type google.cloud.vision.v1p4beta1.ProductSearchResults

Static Fields

INDEX_TIME_FIELD_NUMBER

public static final int INDEX_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_GROUPED_RESULTS_FIELD_NUMBER

public static final int PRODUCT_GROUPED_RESULTS_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 getDefaultInstance()
Returns
TypeDescription
ProductSearchResults

getDescriptor()

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

newBuilder()

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

newBuilder(ProductSearchResults prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ProductSearchResults getDefaultInstanceForType()
Returns
TypeDescription
ProductSearchResults

getIndexTime()

public Timestamp getIndexTime()

Timestamp of the index which provided these results. Products added to the product set and products removed from the product set after this time are not reflected in the current results.

.google.protobuf.Timestamp index_time = 2;

Returns
TypeDescription
Timestamp

The indexTime.

getIndexTimeOrBuilder()

public TimestampOrBuilder getIndexTimeOrBuilder()

Timestamp of the index which provided these results. Products added to the product set and products removed from the product set after this time are not reflected in the current results.

.google.protobuf.Timestamp index_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

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

getProductGroupedResults(int index)

public ProductSearchResults.GroupedResult getProductGroupedResults(int index)

List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.GroupedResult

getProductGroupedResultsCount()

public int getProductGroupedResultsCount()

List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
int

getProductGroupedResultsList()

public List<ProductSearchResults.GroupedResult> getProductGroupedResultsList()

List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
List<GroupedResult>

getProductGroupedResultsOrBuilder(int index)

public ProductSearchResults.GroupedResultOrBuilder getProductGroupedResultsOrBuilder(int index)

List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.GroupedResultOrBuilder

getProductGroupedResultsOrBuilderList()

public List<? extends ProductSearchResults.GroupedResultOrBuilder> getProductGroupedResultsOrBuilderList()

List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

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

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 = 5;

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 = 5;

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 = 5;

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 = 5;

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 = 5;

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasIndexTime()

public boolean hasIndexTime()

Timestamp of the index which provided these results. Products added to the product set and products removed from the product set after this time are not reflected in the current results.

.google.protobuf.Timestamp index_time = 2;

Returns
TypeDescription
boolean

Whether the indexTime 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.Builder newBuilderForType()
Returns
TypeDescription
ProductSearchResults.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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