Package com.google.cloud.vision.v1
Class ProductSearchResults.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder>
com.google.cloud.vision.v1.ProductSearchResults.Builder
- All Implemented Interfaces:
ProductSearchResultsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProductSearchResults
public static final class ProductSearchResults.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder>
implements ProductSearchResultsOrBuilder
Results for a product search request.Protobuf type
google.cloud.vision.v1.ProductSearchResults-
Method Summary
Modifier and TypeMethodDescriptionaddAllProductGroupedResults(Iterable<? extends ProductSearchResults.GroupedResult> values) List of results grouped by products detected in the query image.addAllResults(Iterable<? extends ProductSearchResults.Result> values) List of results, one for each product match.addProductGroupedResults(int index, ProductSearchResults.GroupedResult value) List of results grouped by products detected in the query image.addProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue) List of results grouped by products detected in the query image.List of results grouped by products detected in the query image.addProductGroupedResults(ProductSearchResults.GroupedResult.Builder builderForValue) List of results grouped by products detected in the query image.List of results grouped by products detected in the query image.addProductGroupedResultsBuilder(int index) List of results grouped by products detected in the query image.addResults(int index, ProductSearchResults.Result value) List of results, one for each product match.addResults(int index, ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.List of results, one for each product match.addResults(ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.List of results, one for each product match.addResultsBuilder(int index) List of results, one for each product match.build()clear()Timestamp of the index which provided these results.List of results grouped by products detected in the query image.List of results, one for each product match.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTimestamp of the index which provided these results.com.google.protobuf.Timestamp.BuilderTimestamp of the index which provided these results.com.google.protobuf.TimestampOrBuilderTimestamp of the index which provided these results.getProductGroupedResults(int index) List of results grouped by products detected in the query image.getProductGroupedResultsBuilder(int index) List of results grouped by products detected in the query image.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.getResultsBuilder(int index) List of results, one for each product match.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.booleanTimestamp of the index which provided these results.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ProductSearchResults other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIndexTime(com.google.protobuf.Timestamp value) Timestamp of the index which provided these results.removeProductGroupedResults(int index) List of results grouped by products detected in the query image.removeResults(int index) List of results, one for each product match.setIndexTime(com.google.protobuf.Timestamp value) Timestamp of the index which provided these results.setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of the index which provided these results.setProductGroupedResults(int index, ProductSearchResults.GroupedResult value) List of results grouped by products detected in the query image.setProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue) List of results grouped by products detected in the query image.setResults(int index, ProductSearchResults.Result value) List of results, one for each product match.setResults(int index, ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<ProductSearchResults.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductSearchResults.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProductSearchResults.Builder>
-
mergeFrom
public ProductSearchResults.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductSearchResults.Builder>- Throws:
IOException
-
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.
-
setIndexTime
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; -
setIndexTime
public ProductSearchResults.Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) 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; -
mergeIndexTime
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; -
clearIndexTime
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; -
getIndexTimeBuilder
public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder()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
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
-
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
-
setResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
setResults
public ProductSearchResults.Builder setResults(int index, ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
addResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
addResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
addResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
addResults
public ProductSearchResults.Builder addResults(int index, ProductSearchResults.Result.Builder builderForValue) List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
addAllResults
public ProductSearchResults.Builder addAllResults(Iterable<? extends ProductSearchResults.Result> values) List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
clearResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
removeResults
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
getResultsBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
getResultsOrBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsOrBuilderin interfaceProductSearchResultsOrBuilder
-
getResultsOrBuilderList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5;- Specified by:
getResultsOrBuilderListin interfaceProductSearchResultsOrBuilder
-
addResultsBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
addResultsBuilder
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
getResultsBuilderList
List of results, one for each product match.
repeated .google.cloud.vision.v1.ProductSearchResults.Result results = 5; -
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
-
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
-
setProductGroupedResults
public ProductSearchResults.Builder setProductGroupedResults(int index, ProductSearchResults.GroupedResult value) 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; -
setProductGroupedResults
public ProductSearchResults.Builder setProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue) 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; -
addProductGroupedResults
public ProductSearchResults.Builder addProductGroupedResults(ProductSearchResults.GroupedResult value) 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; -
addProductGroupedResults
public ProductSearchResults.Builder addProductGroupedResults(int index, ProductSearchResults.GroupedResult value) 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; -
addProductGroupedResults
public ProductSearchResults.Builder addProductGroupedResults(ProductSearchResults.GroupedResult.Builder builderForValue) 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; -
addProductGroupedResults
public ProductSearchResults.Builder addProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue) 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; -
addAllProductGroupedResults
public ProductSearchResults.Builder addAllProductGroupedResults(Iterable<? extends ProductSearchResults.GroupedResult> values) 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; -
clearProductGroupedResults
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; -
removeProductGroupedResults
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; -
getProductGroupedResultsBuilder
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; -
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
-
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
-
addProductGroupedResultsBuilder
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; -
addProductGroupedResultsBuilder
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; -
getProductGroupedResultsBuilderList
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;
-