public final class ProductSearchResults extends GeneratedMessageV3 implements ProductSearchResultsOrBuilder
Results for a product search request.Protobuf type
google.cloud.vision.v1p4beta1.ProductSearchResults
Modifier and Type | Class and Description |
---|---|
static class |
ProductSearchResults.Builder
Results for a product search request.
|
static class |
ProductSearchResults.GroupedResult
Information about the products similar to a single product in a query
image.
|
static interface |
ProductSearchResults.GroupedResultOrBuilder |
static class |
ProductSearchResults.ObjectAnnotation
Prediction for what the object in the bounding box is.
|
static interface |
ProductSearchResults.ObjectAnnotationOrBuilder |
static class |
ProductSearchResults.Result
Information about a product.
|
static interface |
ProductSearchResults.ResultOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
INDEX_TIME_FIELD_NUMBER |
static int |
PRODUCT_GROUPED_RESULTS_FIELD_NUMBER |
static int |
RESULTS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int INDEX_TIME_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
hasIndexTime
in interface ProductSearchResultsOrBuilder
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;
getIndexTime
in interface ProductSearchResultsOrBuilder
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;
getIndexTimeOrBuilder
in interface ProductSearchResultsOrBuilder
public List<ProductSearchResults.Result> getResultsList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
getResultsList
in interface ProductSearchResultsOrBuilder
public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
getResultsOrBuilderList
in interface ProductSearchResultsOrBuilder
public int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
getResultsCount
in interface ProductSearchResultsOrBuilder
public ProductSearchResults.Result getResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
getResults
in interface ProductSearchResultsOrBuilder
public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p4beta1.ProductSearchResults.Result results = 5;
getResultsOrBuilder
in interface ProductSearchResultsOrBuilder
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;
getProductGroupedResultsList
in interface ProductSearchResultsOrBuilder
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;
getProductGroupedResultsOrBuilderList
in interface ProductSearchResultsOrBuilder
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;
getProductGroupedResultsCount
in interface ProductSearchResultsOrBuilder
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;
getProductGroupedResults
in interface ProductSearchResultsOrBuilder
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;
getProductGroupedResultsOrBuilder
in interface ProductSearchResultsOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ProductSearchResults parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ProductSearchResults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ProductSearchResults parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ProductSearchResults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ProductSearchResults parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ProductSearchResults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ProductSearchResults parseFrom(InputStream input) throws IOException
IOException
public static ProductSearchResults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProductSearchResults parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ProductSearchResults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProductSearchResults parseFrom(CodedInputStream input) throws IOException
IOException
public static ProductSearchResults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ProductSearchResults.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ProductSearchResults.Builder newBuilder()
public static ProductSearchResults.Builder newBuilder(ProductSearchResults prototype)
public ProductSearchResults.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ProductSearchResults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ProductSearchResults getDefaultInstance()
public static Parser<ProductSearchResults> parser()
public Parser<ProductSearchResults> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ProductSearchResults getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.