public static final class ProductSearchResults.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.Builder> implements ProductSearchResultsOrBuilder
Results for a product search request.
Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllProductGroupedResults(Iterable<? extends ProductSearchResults.GroupedResult> values)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResult>
|
addAllResults(Iterable<? extends ProductSearchResults.Result> values)
public ProductSearchResults.Builder addAllResults(Iterable<? extends ProductSearchResults.Result> values)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>
|
addProductGroupedResults(ProductSearchResults.GroupedResult value)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
addProductGroupedResults(ProductSearchResults.GroupedResult.Builder builderForValue)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
addProductGroupedResults(int index, ProductSearchResults.GroupedResult value)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
addProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
addProductGroupedResultsBuilder()
public ProductSearchResults.GroupedResult.Builder 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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
addProductGroupedResultsBuilder(int index)
public ProductSearchResults.GroupedResult.Builder addProductGroupedResultsBuilder(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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addResults(ProductSearchResults.Result value)
public ProductSearchResults.Builder addResults(ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
addResults(ProductSearchResults.Result.Builder builderForValue)
public ProductSearchResults.Builder addResults(ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
addResults(int index, ProductSearchResults.Result value)
public ProductSearchResults.Builder addResults(int index, ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
addResults(int index, ProductSearchResults.Result.Builder builderForValue)
public ProductSearchResults.Builder addResults(int index, ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
addResultsBuilder()
public ProductSearchResults.Result.Builder addResultsBuilder()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
addResultsBuilder(int index)
public ProductSearchResults.Result.Builder addResultsBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Parameter |
Name |
Description |
index |
int
|
build()
public ProductSearchResults build()
buildPartial()
public ProductSearchResults buildPartial()
clear()
public ProductSearchResults.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProductSearchResults.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearIndexTime()
public ProductSearchResults.Builder 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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductSearchResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProductGroupedResults()
public ProductSearchResults.Builder 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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
clearResults()
public ProductSearchResults.Builder clearResults()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
clone()
public ProductSearchResults.Builder clone()
Overrides
getDefaultInstanceForType()
public ProductSearchResults getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
Type |
Description |
Timestamp |
The indexTime.
|
getIndexTimeBuilder()
public 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 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;
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Parameter |
Name |
Description |
index |
int
|
getProductGroupedResultsBuilder(int index)
public ProductSearchResults.GroupedResult.Builder getProductGroupedResultsBuilder(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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Parameter |
Name |
Description |
index |
int
|
getProductGroupedResultsBuilderList()
public List<ProductSearchResults.GroupedResult.Builder> 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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Returns |
Type |
Description |
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Parameter |
Name |
Description |
index |
int
|
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Returns |
Type |
Description |
List<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.GroupedResultOrBuilder> |
|
getResults(int index)
public ProductSearchResults.Result getResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Parameter |
Name |
Description |
index |
int
|
getResultsBuilder(int index)
public ProductSearchResults.Result.Builder getResultsBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Parameter |
Name |
Description |
index |
int
|
getResultsBuilderList()
public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
getResultsCount()
public int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns |
Type |
Description |
int |
|
getResultsList()
public List<ProductSearchResults.Result> getResultsList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
getResultsOrBuilder(int index)
public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Parameter |
Name |
Description |
index |
int
|
getResultsOrBuilderList()
public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns |
Type |
Description |
List<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder> |
|
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 |
Type |
Description |
boolean |
Whether the indexTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ProductSearchResults other)
public ProductSearchResults.Builder mergeFrom(ProductSearchResults other)
public ProductSearchResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ProductSearchResults.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeIndexTime(Timestamp value)
public ProductSearchResults.Builder mergeIndexTime(Timestamp value)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeProductGroupedResults(int index)
public ProductSearchResults.Builder removeProductGroupedResults(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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
Parameter |
Name |
Description |
index |
int
|
removeResults(int index)
public ProductSearchResults.Builder removeResults(int index)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setIndexTime(Timestamp value)
public ProductSearchResults.Builder setIndexTime(Timestamp value)
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(Timestamp.Builder builderForValue)
public ProductSearchResults.Builder setIndexTime(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;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setProductGroupedResults(int index, ProductSearchResults.GroupedResult value)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
setProductGroupedResults(int index, ProductSearchResults.GroupedResult.Builder builderForValue)
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.v1p3beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductSearchResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResults(int index, ProductSearchResults.Result value)
public ProductSearchResults.Builder setResults(int index, ProductSearchResults.Result value)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
setResults(int index, ProductSearchResults.Result.Builder builderForValue)
public ProductSearchResults.Builder setResults(int index, ProductSearchResults.Result.Builder builderForValue)
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides