Class ProductSearchResults.Builder (3.45.0)

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
Type Description
Descriptor

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
Type Description
ProductSearchResults.Builder

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
Type Description
ProductSearchResults.Builder

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
Name Description
value ProductSearchResults.GroupedResult
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
builderForValue ProductSearchResults.GroupedResult.Builder
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
index int
value ProductSearchResults.GroupedResult
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
index int
builderForValue ProductSearchResults.GroupedResult.Builder
Returns
Type Description
ProductSearchResults.Builder

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
Type Description
ProductSearchResults.GroupedResult.Builder

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
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSearchResults.Builder
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
Name Description
value ProductSearchResults.Result
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
builderForValue ProductSearchResults.Result.Builder
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
index int
value ProductSearchResults.Result
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
index int
builderForValue ProductSearchResults.Result.Builder
Returns
Type Description
ProductSearchResults.Builder

addResultsBuilder()

public ProductSearchResults.Result.Builder addResultsBuilder()

List of results, one for each product match.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;

Returns
Type Description
ProductSearchResults.Result.Builder

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
Returns
Type Description
ProductSearchResults.Result.Builder

build()

public ProductSearchResults build()
Returns
Type Description
ProductSearchResults

buildPartial()

public ProductSearchResults buildPartial()
Returns
Type Description
ProductSearchResults

clear()

public ProductSearchResults.Builder clear()
Returns
Type Description
ProductSearchResults.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProductSearchResults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductSearchResults.Builder
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
Type Description
ProductSearchResults.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSearchResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductSearchResults.Builder
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
Type Description
ProductSearchResults.Builder

clearResults()

public ProductSearchResults.Builder clearResults()

List of results, one for each product match.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.Result results = 5;

Returns
Type Description
ProductSearchResults.Builder

clone()

public ProductSearchResults.Builder clone()
Returns
Type Description
ProductSearchResults.Builder
Overrides

getDefaultInstanceForType()

public ProductSearchResults getDefaultInstanceForType()
Returns
Type Description
ProductSearchResults

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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;

Returns
Type Description
Builder

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
Type Description
TimestampOrBuilder

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
Returns
Type Description
ProductSearchResults.GroupedResult

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
Returns
Type Description
ProductSearchResults.GroupedResult.Builder

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
Type Description
List<Builder>

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;

Returns
Type Description
List<GroupedResult>

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
Returns
Type Description
ProductSearchResults.GroupedResultOrBuilder

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
Returns
Type Description
ProductSearchResults.Result

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
Returns
Type Description
ProductSearchResults.Result.Builder

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
Type Description
List<Builder>

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;

Returns
Type Description
List<Result>

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
Returns
Type Description
ProductSearchResults.ResultOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductSearchResults other)

public ProductSearchResults.Builder mergeFrom(ProductSearchResults other)
Parameter
Name Description
other ProductSearchResults
Returns
Type Description
ProductSearchResults.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductSearchResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductSearchResults.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductSearchResults.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductSearchResults.Builder
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
Name Description
value Timestamp
Returns
Type Description
ProductSearchResults.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductSearchResults.Builder
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
Returns
Type Description
ProductSearchResults.Builder

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
Returns
Type Description
ProductSearchResults.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSearchResults.Builder
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
Name Description
value Timestamp
Returns
Type Description
ProductSearchResults.Builder

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
Type Description
ProductSearchResults.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;

Parameters
Name Description
index int
value ProductSearchResults.GroupedResult
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
index int
builderForValue ProductSearchResults.GroupedResult.Builder
Returns
Type Description
ProductSearchResults.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductSearchResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductSearchResults.Builder
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
Name Description
index int
value ProductSearchResults.Result
Returns
Type Description
ProductSearchResults.Builder

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
Name Description
index int
builderForValue ProductSearchResults.Result.Builder
Returns
Type Description
ProductSearchResults.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductSearchResults.Builder
Overrides