public final class ProductSearchResults extends com.google.protobuf.GeneratedMessageV3 implements ProductSearchResultsOrBuilder
Results for a product search request.Protobuf type
google.cloud.vision.v1p3beta1.ProductSearchResults| Modifier and Type | Class and Description |
|---|---|
static class |
ProductSearchResults.Builder
Results for a product search request.
|
static class |
ProductSearchResults.ProductInfo
Information about a product.
|
static interface |
ProductSearchResults.ProductInfoOrBuilder |
static class |
ProductSearchResults.Result
Information about a product.
|
static interface |
ProductSearchResults.ResultOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CATEGORY_FIELD_NUMBER |
static int |
INDEX_TIME_FIELD_NUMBER |
static int |
PRODUCT_CATEGORY_FIELD_NUMBER |
static int |
PRODUCTS_FIELD_NUMBER |
static int |
RESULTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ProductSearchCategory |
getCategory()
Product category.
|
int |
getCategoryValue()
Product category.
|
static ProductSearchResults |
getDefaultInstance() |
ProductSearchResults |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getIndexTime()
Timestamp of the index which provided these results.
|
com.google.protobuf.TimestampOrBuilder |
getIndexTimeOrBuilder()
Timestamp of the index which provided these results.
|
com.google.protobuf.Parser<ProductSearchResults> |
getParserForType() |
String |
getProductCategory()
Product category.
|
com.google.protobuf.ByteString |
getProductCategoryBytes()
Product category.
|
ProductSearchResults.ProductInfo |
getProducts(int index)
List of detected products.
|
int |
getProductsCount()
List of detected products.
|
List<ProductSearchResults.ProductInfo> |
getProductsList()
List of detected products.
|
ProductSearchResults.ProductInfoOrBuilder |
getProductsOrBuilder(int index)
List of detected products.
|
List<? extends ProductSearchResults.ProductInfoOrBuilder> |
getProductsOrBuilderList()
List of detected products.
|
ProductSearchResults.Result |
getResults(int index)
List of results, one for each product match.
|
int |
getResultsCount()
List of results, one for each product match.
|
List<ProductSearchResults.Result> |
getResultsList()
List of results, one for each product match.
|
ProductSearchResults.ResultOrBuilder |
getResultsOrBuilder(int index)
List of results, one for each product match.
|
List<? extends ProductSearchResults.ResultOrBuilder> |
getResultsOrBuilderList()
List of results, one for each product match.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasIndexTime()
Timestamp of the index which provided these results.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ProductSearchResults.Builder |
newBuilder() |
static ProductSearchResults.Builder |
newBuilder(ProductSearchResults prototype) |
ProductSearchResults.Builder |
newBuilderForType() |
protected ProductSearchResults.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ProductSearchResults |
parseDelimitedFrom(InputStream input) |
static ProductSearchResults |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProductSearchResults |
parseFrom(byte[] data) |
static ProductSearchResults |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProductSearchResults |
parseFrom(ByteBuffer data) |
static ProductSearchResults |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProductSearchResults |
parseFrom(com.google.protobuf.ByteString data) |
static ProductSearchResults |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProductSearchResults |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ProductSearchResults |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProductSearchResults |
parseFrom(InputStream input) |
static ProductSearchResults |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ProductSearchResults> |
parser() |
ProductSearchResults.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CATEGORY_FIELD_NUMBER
public static final int PRODUCT_CATEGORY_FIELD_NUMBER
public static final int INDEX_TIME_FIELD_NUMBER
public static final int PRODUCTS_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getCategoryValue()
Product category. [Deprecated] Use `product_category`.
.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;getCategoryValue in interface ProductSearchResultsOrBuilderpublic ProductSearchCategory getCategory()
Product category. [Deprecated] Use `product_category`.
.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;getCategory in interface ProductSearchResultsOrBuilderpublic String getProductCategory()
Product category. Supported values are `bag` and `shoe`. [Deprecated] `product_category` is provided in each Product.
string product_category = 4;getProductCategory in interface ProductSearchResultsOrBuilderpublic com.google.protobuf.ByteString getProductCategoryBytes()
Product category. Supported values are `bag` and `shoe`. [Deprecated] `product_category` is provided in each Product.
string product_category = 4;getProductCategoryBytes in interface ProductSearchResultsOrBuilderpublic boolean hasIndexTime()
Timestamp of the index which provided these results. Changes made after this time are not reflected in the current results.
.google.protobuf.Timestamp index_time = 2;hasIndexTime in interface ProductSearchResultsOrBuilderpublic com.google.protobuf.Timestamp getIndexTime()
Timestamp of the index which provided these results. Changes made after this time are not reflected in the current results.
.google.protobuf.Timestamp index_time = 2;getIndexTime in interface ProductSearchResultsOrBuilderpublic com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder()
Timestamp of the index which provided these results. Changes made after this time are not reflected in the current results.
.google.protobuf.Timestamp index_time = 2;getIndexTimeOrBuilder in interface ProductSearchResultsOrBuilderpublic List<ProductSearchResults.ProductInfo> getProductsList()
List of detected products.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;
getProductsList in interface ProductSearchResultsOrBuilderpublic List<? extends ProductSearchResults.ProductInfoOrBuilder> getProductsOrBuilderList()
List of detected products.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;
getProductsOrBuilderList in interface ProductSearchResultsOrBuilderpublic int getProductsCount()
List of detected products.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;
getProductsCount in interface ProductSearchResultsOrBuilderpublic ProductSearchResults.ProductInfo getProducts(int index)
List of detected products.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;
getProducts in interface ProductSearchResultsOrBuilderpublic ProductSearchResults.ProductInfoOrBuilder getProductsOrBuilder(int index)
List of detected products.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;
getProductsOrBuilder in interface ProductSearchResultsOrBuilderpublic List<ProductSearchResults.Result> getResultsList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;getResultsList in interface ProductSearchResultsOrBuilderpublic List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;getResultsOrBuilderList in interface ProductSearchResultsOrBuilderpublic int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;getResultsCount in interface ProductSearchResultsOrBuilderpublic ProductSearchResults.Result getResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;getResults in interface ProductSearchResultsOrBuilderpublic ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;getResultsOrBuilder in interface ProductSearchResultsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ProductSearchResults parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProductSearchResults parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProductSearchResults parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProductSearchResults parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProductSearchResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProductSearchResults parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProductSearchResults parseFrom(InputStream input) throws IOException
IOExceptionpublic static ProductSearchResults parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ProductSearchResults parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ProductSearchResults parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ProductSearchResults parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ProductSearchResults parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ProductSearchResults.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ProductSearchResults.Builder newBuilder()
public static ProductSearchResults.Builder newBuilder(ProductSearchResults prototype)
public ProductSearchResults.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ProductSearchResults.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ProductSearchResults getDefaultInstance()
public static com.google.protobuf.Parser<ProductSearchResults> parser()
public com.google.protobuf.Parser<ProductSearchResults> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ProductSearchResults getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.