Class ProductSearchResults.Builder (3.13.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.v1p4beta1.ProductSearchResults

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResult>
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.Result>
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
valueProductSearchResults.GroupedResult
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
builderForValueProductSearchResults.GroupedResult.Builder
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameters
NameDescription
indexint
valueProductSearchResults.GroupedResult
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameters
NameDescription
indexint
builderForValueProductSearchResults.GroupedResult.Builder
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.GroupedResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameter
NameDescription
valueProductSearchResults.Result
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameter
NameDescription
builderForValueProductSearchResults.Result.Builder
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameters
NameDescription
indexint
valueProductSearchResults.Result
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameters
NameDescription
indexint
builderForValueProductSearchResults.Result.Builder
Returns
TypeDescription
ProductSearchResults.Builder

addResultsBuilder()

public ProductSearchResults.Result.Builder addResultsBuilder()

List of results, one for each product match.

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

Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Result.Builder

build()

public ProductSearchResults build()
Returns
TypeDescription
ProductSearchResults

buildPartial()

public ProductSearchResults buildPartial()
Returns
TypeDescription
ProductSearchResults

clear()

public ProductSearchResults.Builder clear()
Returns
TypeDescription
ProductSearchResults.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ProductSearchResults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ProductSearchResults.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSearchResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
ProductSearchResults.Builder

clearResults()

public ProductSearchResults.Builder clearResults()

List of results, one for each product match.

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

Returns
TypeDescription
ProductSearchResults.Builder

clone()

public ProductSearchResults.Builder clone()
Returns
TypeDescription
ProductSearchResults.Builder
Overrides

getDefaultInstanceForType()

public ProductSearchResults getDefaultInstanceForType()
Returns
TypeDescription
ProductSearchResults

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.ProductSearchResults.GroupedResultOrBuilder>

getResults(int index)

public ProductSearchResults.Result getResults(int index)

List of results, one for each product match.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Result

getResultsBuilder(int index)

public ProductSearchResults.Result.Builder getResultsBuilder(int index)

List of results, one for each product match.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Result.Builder

getResultsBuilderList()

public List<ProductSearchResults.Result.Builder> getResultsBuilderList()

List of results, one for each product match.

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

Returns
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

List of results, one for each product match.

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

Returns
TypeDescription
int

getResultsList()

public List<ProductSearchResults.Result> getResultsList()

List of results, one for each product match.

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

Returns
TypeDescription
List<Result>

getResultsOrBuilder(int index)

public ProductSearchResults.ResultOrBuilder getResultsOrBuilder(int index)

List of results, one for each product match.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ResultOrBuilder

getResultsOrBuilderList()

public List<? extends ProductSearchResults.ResultOrBuilder> getResultsOrBuilderList()

List of results, one for each product match.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p4beta1.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
TypeDescription
boolean

Whether the indexTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProductSearchResults other)

public ProductSearchResults.Builder mergeFrom(ProductSearchResults other)
Parameter
NameDescription
otherProductSearchResults
Returns
TypeDescription
ProductSearchResults.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductSearchResults.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProductSearchResults.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ProductSearchResults.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ProductSearchResults.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Builder

removeResults(int index)

public ProductSearchResults.Builder removeResults(int index)

List of results, one for each product match.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameters
NameDescription
indexint
valueProductSearchResults.GroupedResult
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.GroupedResult product_grouped_results = 6;

Parameters
NameDescription
indexint
builderForValueProductSearchResults.GroupedResult.Builder
Returns
TypeDescription
ProductSearchResults.Builder

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

public ProductSearchResults.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameters
NameDescription
indexint
valueProductSearchResults.Result
Returns
TypeDescription
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.v1p4beta1.ProductSearchResults.Result results = 5;

Parameters
NameDescription
indexint
builderForValueProductSearchResults.Result.Builder
Returns
TypeDescription
ProductSearchResults.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductSearchResults.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ProductSearchResults.Builder
Overrides