Package com.google.cloud.vision.v1
Class ProductSearchResults
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vision.v1.ProductSearchResults
- All Implemented Interfaces:
ProductSearchResultsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProductSearchResults
extends com.google.protobuf.GeneratedMessage
implements ProductSearchResultsOrBuilder
Results for a product search request.Protobuf type
google.cloud.vision.v1.ProductSearchResults- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResults for a product search request.static final classInformation about the products similar to a single product in a query image.static interfacestatic final classPrediction for what the object in the bounding box is.static interfacestatic final classInformation about a product.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ProductSearchResultsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTimestamp of the index which provided these results.com.google.protobuf.TimestampOrBuilderTimestamp of the index which provided these results.com.google.protobuf.Parser<ProductSearchResults>getProductGroupedResults(int index) List of results grouped by products detected in the query image.intList of results grouped by products detected in the query image.List of results grouped by products detected in the query image.getProductGroupedResultsOrBuilder(int index) List of results grouped by products detected in the query image.List<? extends ProductSearchResults.GroupedResultOrBuilder>List of results grouped by products detected in the query image.getResults(int index) List of results, one for each product match.intList of results, one for each product match.List of results, one for each product match.getResultsOrBuilder(int index) List of results, one for each product match.List<? extends ProductSearchResults.ResultOrBuilder>List of results, one for each product match.intinthashCode()booleanTimestamp of the index which provided these results.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ProductSearchResults.Builderstatic ProductSearchResults.BuildernewBuilder(ProductSearchResults prototype) protected ProductSearchResults.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProductSearchResultsparseDelimitedFrom(InputStream input) static ProductSearchResultsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductSearchResultsparseFrom(byte[] data) static ProductSearchResultsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductSearchResultsparseFrom(com.google.protobuf.ByteString data) static ProductSearchResultsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductSearchResultsparseFrom(com.google.protobuf.CodedInputStream input) static ProductSearchResultsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductSearchResultsparseFrom(InputStream input) static ProductSearchResultsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProductSearchResultsparseFrom(ByteBuffer data) static ProductSearchResultsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProductSearchResults>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INDEX_TIME_FIELD_NUMBER
public static final int INDEX_TIME_FIELD_NUMBER- See Also:
-
RESULTS_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER- See Also:
-
PRODUCT_GROUPED_RESULTS_FIELD_NUMBER
public static final int PRODUCT_GROUPED_RESULTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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;- Specified by:
hasIndexTimein interfaceProductSearchResultsOrBuilder- Returns:
- Whether the indexTime field is set.
-
getIndexTime
public com.google.protobuf.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;- Specified by:
getIndexTimein interfaceProductSearchResultsOrBuilder- Returns:
- The indexTime.
-
getIndexTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getIndexTimeOrBuilderin interfaceProductSearchResultsOrBuilder
-
getResultsList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsListin interfaceProductSearchResultsOrBuilder
-
getResultsOrBuilderList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsOrBuilderListin interfaceProductSearchResultsOrBuilder
-
getResultsCount
public int getResultsCount()List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsCountin interfaceProductSearchResultsOrBuilder
-
getResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsin interfaceProductSearchResultsOrBuilder
-
getResultsOrBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsOrBuilderin interfaceProductSearchResultsOrBuilder
-
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.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;- Specified by:
getProductGroupedResultsListin interfaceProductSearchResultsOrBuilder
-
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.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;- Specified by:
getProductGroupedResultsOrBuilderListin interfaceProductSearchResultsOrBuilder
-
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.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;- Specified by:
getProductGroupedResultsCountin interfaceProductSearchResultsOrBuilder
-
getProductGroupedResults
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.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;- Specified by:
getProductGroupedResultsin interfaceProductSearchResultsOrBuilder
-
getProductGroupedResultsOrBuilder
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.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;- Specified by:
getProductGroupedResultsOrBuilderin interfaceProductSearchResultsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProductSearchResults parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductSearchResults parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductSearchResults parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductSearchResults parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductSearchResults parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProductSearchResults parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProductSearchResults parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProductSearchResults parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProductSearchResults parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProductSearchResults.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-