Class ProductSearchResults.Result.Builder (2.1.2)

public static final class ProductSearchResults.Result.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.Result.Builder> implements ProductSearchResults.ResultOrBuilder

Information about a product.

Protobuf type google.cloud.vision.v1p4beta1.ProductSearchResults.Result

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.Result.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ProductSearchResults.Result.Builder
Overrides

build()

public ProductSearchResults.Result build()
Returns
TypeDescription
ProductSearchResults.Result

buildPartial()

public ProductSearchResults.Result buildPartial()
Returns
TypeDescription
ProductSearchResults.Result

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ProductSearchResults.Result.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ProductSearchResults.Result.Builder
Overrides

clearImage()

public ProductSearchResults.Result.Builder clearImage()

The resource name of the image from the product that is the closest match to the query.

string image = 3;

Returns
TypeDescription
ProductSearchResults.Result.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSearchResults.Result.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ProductSearchResults.Result.Builder
Overrides