Class ProductSearchResults.ProductInfo.Builder (2.1.2)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProductId()

public ProductSearchResults.ProductInfo.Builder clearProductId()

Product ID.

string product_id = 1;

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProductSearchResults.ProductInfo getDefaultInstanceForType()
Returns
TypeDescription
ProductSearchResults.ProductInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for imageUri.

getProductId()

public String getProductId()

Product ID.

string product_id = 1;

Returns
TypeDescription
String

The productId.

getProductIdBytes()

public ByteString getProductIdBytes()

Product ID.

string product_id = 1;

Returns
TypeDescription
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
TypeDescription
float

The score.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProductSearchResults.ProductInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ProductSearchResults.ProductInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ProductSearchResults.ProductInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The imageUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for imageUri to set.

Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setProductId(String value)

public ProductSearchResults.ProductInfo.Builder setProductId(String value)

Product ID.

string product_id = 1;

Parameter
NameDescription
valueString

The productId to set.

Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setProductIdBytes(ByteString value)

public ProductSearchResults.ProductInfo.Builder setProductIdBytes(ByteString value)

Product ID.

string product_id = 1;

Parameter
NameDescription
valueByteString

The bytes for productId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The score to set.

Returns
TypeDescription
ProductSearchResults.ProductInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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