Class ProductSearchResults.ProductInfo.Builder (2.1.4)

public static final class ProductSearchResults.ProductInfo.Builder extends GeneratedMessageV3.Builder<ProductSearchResults.ProductInfo.Builder> implements ProductSearchResults.ProductInfoOrBuilder

Information about a product.

Protobuf type google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.ProductInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSearchResults.ProductInfo.Builder
Overrides

build()

public ProductSearchResults.ProductInfo build()
Returns
Type Description
ProductSearchResults.ProductInfo

buildPartial()

public ProductSearchResults.ProductInfo buildPartial()
Returns
Type Description
ProductSearchResults.ProductInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ProductSearchResults.ProductInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProductSearchResults.ProductInfo.Builder
Overrides

clearImageUri()

public ProductSearchResults.ProductInfo.Builder clearImageUri()

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductSearchResults.ProductInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductSearchResults.ProductInfo.Builder
Overrides

clearProductId()

public ProductSearchResults.ProductInfo.Builder clearProductId()

Product ID.

string product_id = 1;

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

clearScore()

public ProductSearchResults.ProductInfo.Builder clearScore()

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). This field is returned only if view is set to FULL in the request.

float score = 3;

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProductSearchResults.ProductInfo getDefaultInstanceForType()
Returns
Type Description
ProductSearchResults.ProductInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageUri()

public String getImageUri()

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Returns
Type Description
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Returns
Type Description
ByteString

The bytes for imageUri.

getProductId()

public String getProductId()

Product ID.

string product_id = 1;

Returns
Type Description
String

The productId.

getProductIdBytes()

public ByteString getProductIdBytes()

Product ID.

string product_id = 1;

Returns
Type Description
ByteString

The bytes for productId.

getScore()

public float getScore()

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). This field is returned only if view is set to FULL in the request.

float score = 3;

Returns
Type Description
float

The score.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductSearchResults.ProductInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.ProductInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductSearchResults.ProductInfo.Builder
Overrides

setImageUri(String value)

public ProductSearchResults.ProductInfo.Builder setImageUri(String value)

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Parameter
Name Description
value String

The imageUri to set.

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setImageUriBytes(ByteString value)

public ProductSearchResults.ProductInfo.Builder setImageUriBytes(ByteString value)

The URI of the image which matched the query image. This field is returned only if view is set to FULL in the request.

string image_uri = 2;

Parameter
Name Description
value ByteString

The bytes for imageUri to set.

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setProductId(String value)

public ProductSearchResults.ProductInfo.Builder setProductId(String value)

Product ID.

string product_id = 1;

Parameter
Name Description
value String

The productId to set.

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setProductIdBytes(ByteString value)

public ProductSearchResults.ProductInfo.Builder setProductIdBytes(ByteString value)

Product ID.

string product_id = 1;

Parameter
Name Description
value ByteString

The bytes for productId to set.

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

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

public ProductSearchResults.ProductInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductSearchResults.ProductInfo.Builder
Overrides

setScore(float value)

public ProductSearchResults.ProductInfo.Builder setScore(float value)

A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence). This field is returned only if view is set to FULL in the request.

float score = 3;

Parameter
Name Description
value float

The score to set.

Returns
Type Description
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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