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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addResultsBuilder()
public ProductSearchResults.Result.Builder addResultsBuilder()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns
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
Returns
build()
public ProductSearchResults build()
Returns
buildPartial()
public ProductSearchResults buildPartial()
Returns
clear()
public ProductSearchResults.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ProductSearchResults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductSearchResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
clearResults()
public ProductSearchResults.Builder clearResults()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns
clone()
public ProductSearchResults.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ProductSearchResults getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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;
Returns
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;
Returns
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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
Returns
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
Returns
getResultsBuilderList()
public List<ProductSearchResults.Result.Builder> getResultsBuilderList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns
getResultsCount()
public int getResultsCount()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns
getResultsList()
public List<ProductSearchResults.Result> getResultsList()
List of results, one for each product match.
repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ProductSearchResults other)
public ProductSearchResults.Builder mergeFrom(ProductSearchResults other)
Parameter
Returns
public ProductSearchResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ProductSearchResults.Builder mergeFrom(Message other)
Parameter
Returns
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ProductSearchResults.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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
|
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductSearchResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductSearchResults.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides