Class ProductSearchResults.Builder (2.1.4)

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
TypeDescription
Descriptor

Methods

addAllProducts(Iterable<? extends ProductSearchResults.ProductInfo> values)

public ProductSearchResults.Builder addAllProducts(Iterable<? extends ProductSearchResults.ProductInfo> values)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.Result>
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(ProductSearchResults.ProductInfo value)

public ProductSearchResults.Builder addProducts(ProductSearchResults.ProductInfo value)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
valueProductSearchResults.ProductInfo
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(ProductSearchResults.ProductInfo.Builder builderForValue)

public ProductSearchResults.Builder addProducts(ProductSearchResults.ProductInfo.Builder builderForValue)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
builderForValueProductSearchResults.ProductInfo.Builder
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(int index, ProductSearchResults.ProductInfo value)

public ProductSearchResults.Builder addProducts(int index, ProductSearchResults.ProductInfo value)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameters
NameDescription
indexint
valueProductSearchResults.ProductInfo
Returns
TypeDescription
ProductSearchResults.Builder

addProducts(int index, ProductSearchResults.ProductInfo.Builder builderForValue)

public ProductSearchResults.Builder addProducts(int index, ProductSearchResults.ProductInfo.Builder builderForValue)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

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

addProductsBuilder()

public ProductSearchResults.ProductInfo.Builder addProductsBuilder()

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

addProductsBuilder(int index)

public ProductSearchResults.ProductInfo.Builder addProductsBuilder(int index)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ProductInfo.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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

clearCategory()

public ProductSearchResults.Builder clearCategory()

Product category. [Deprecated] Use product_category.

.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;

Returns
TypeDescription
ProductSearchResults.Builder

This builder for chaining.

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. Changes made 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

clearProductCategory()

public ProductSearchResults.Builder clearProductCategory()

Product category. Supported values are bag and shoe. [Deprecated] product_category is provided in each Product.

string product_category = 4;

Returns
TypeDescription
ProductSearchResults.Builder

This builder for chaining.

clearProducts()

public ProductSearchResults.Builder clearProducts()

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

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

clone()

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

getCategory()

public ProductSearchCategory getCategory()

Product category. [Deprecated] Use product_category.

.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;

Returns
TypeDescription
ProductSearchCategory

The category.

getCategoryValue()

public int getCategoryValue()

Product category. [Deprecated] Use product_category.

.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for category.

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. Changes made 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. Changes made 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. Changes made after this time are not reflected in the current results.

.google.protobuf.Timestamp index_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getProductCategory()

public String getProductCategory()

Product category. Supported values are bag and shoe. [Deprecated] product_category is provided in each Product.

string product_category = 4;

Returns
TypeDescription
String

The productCategory.

getProductCategoryBytes()

public ByteString getProductCategoryBytes()

Product category. Supported values are bag and shoe. [Deprecated] product_category is provided in each Product.

string product_category = 4;

Returns
TypeDescription
ByteString

The bytes for productCategory.

getProducts(int index)

public ProductSearchResults.ProductInfo getProducts(int index)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ProductInfo

getProductsBuilder(int index)

public ProductSearchResults.ProductInfo.Builder getProductsBuilder(int index)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

getProductsBuilderList()

public List<ProductSearchResults.ProductInfo.Builder> getProductsBuilderList()

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Returns
TypeDescription
List<Builder>

getProductsCount()

public int getProductsCount()

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Returns
TypeDescription
int

getProductsList()

public List<ProductSearchResults.ProductInfo> getProductsList()

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Returns
TypeDescription
List<ProductInfo>

getProductsOrBuilder(int index)

public ProductSearchResults.ProductInfoOrBuilder getProductsOrBuilder(int index)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.ProductInfoOrBuilder

getProductsOrBuilderList()

public List<? extends ProductSearchResults.ProductInfoOrBuilder> getProductsOrBuilderList()

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfoOrBuilder>

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
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.v1p3beta1.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.v1p3beta1.ProductSearchResults.Result results = 5;

Returns
TypeDescription
List<Builder>

getResultsCount()

public int getResultsCount()

List of results, one for each product match.

repeated .google.cloud.vision.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.ProductSearchResults.Result results = 5;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p3beta1.ProductSearchResults.ResultOrBuilder>

hasIndexTime()

public boolean hasIndexTime()

Timestamp of the index which provided these results. Changes made 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. Changes made 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

removeProducts(int index)

public ProductSearchResults.Builder removeProducts(int index)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

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.v1p3beta1.ProductSearchResults.Result results = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSearchResults.Builder

setCategory(ProductSearchCategory value)

public ProductSearchResults.Builder setCategory(ProductSearchCategory value)

Product category. [Deprecated] Use product_category.

.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;

Parameter
NameDescription
valueProductSearchCategory

The category to set.

Returns
TypeDescription
ProductSearchResults.Builder

This builder for chaining.

setCategoryValue(int value)

public ProductSearchResults.Builder setCategoryValue(int value)

Product category. [Deprecated] Use product_category.

.google.cloud.vision.v1p3beta1.ProductSearchCategory category = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for category to set.

Returns
TypeDescription
ProductSearchResults.Builder

This builder for chaining.

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. Changes made 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. Changes made after this time are not reflected in the current results.

.google.protobuf.Timestamp index_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ProductSearchResults.Builder

setProductCategory(String value)

public ProductSearchResults.Builder setProductCategory(String value)

Product category. Supported values are bag and shoe. [Deprecated] product_category is provided in each Product.

string product_category = 4;

Parameter
NameDescription
valueString

The productCategory to set.

Returns
TypeDescription
ProductSearchResults.Builder

This builder for chaining.

setProductCategoryBytes(ByteString value)

public ProductSearchResults.Builder setProductCategoryBytes(ByteString value)

Product category. Supported values are bag and shoe. [Deprecated] product_category is provided in each Product.

string product_category = 4;

Parameter
NameDescription
valueByteString

The bytes for productCategory to set.

Returns
TypeDescription
ProductSearchResults.Builder

This builder for chaining.

setProducts(int index, ProductSearchResults.ProductInfo value)

public ProductSearchResults.Builder setProducts(int index, ProductSearchResults.ProductInfo value)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameters
NameDescription
indexint
valueProductSearchResults.ProductInfo
Returns
TypeDescription
ProductSearchResults.Builder

setProducts(int index, ProductSearchResults.ProductInfo.Builder builderForValue)

public ProductSearchResults.Builder setProducts(int index, ProductSearchResults.ProductInfo.Builder builderForValue)

List of detected products.

repeated .google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo products = 3;

Parameters
NameDescription
indexint
builderForValueProductSearchResults.ProductInfo.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.v1p3beta1.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.v1p3beta1.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