Class ProductRecognizerConfig.Builder (0.9.0)

public static final class ProductRecognizerConfig.Builder extends GeneratedMessageV3.Builder<ProductRecognizerConfig.Builder> implements ProductRecognizerConfigOrBuilder

Message describing ProductRecognizerConfig.

Protobuf type google.cloud.visionai.v1.ProductRecognizerConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProductRecognizerConfig build()
Returns
Type Description
ProductRecognizerConfig

buildPartial()

public ProductRecognizerConfig buildPartial()
Returns
Type Description
ProductRecognizerConfig

clear()

public ProductRecognizerConfig.Builder clear()
Returns
Type Description
ProductRecognizerConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecognitionConfidenceThreshold()

public ProductRecognizerConfig.Builder clearRecognitionConfidenceThreshold()

Confidence threshold to filter detection results. If not set, a system default value will be used.

float recognition_confidence_threshold = 2;

Returns
Type Description
ProductRecognizerConfig.Builder

This builder for chaining.

clearRetailEndpoint()

public ProductRecognizerConfig.Builder clearRetailEndpoint()

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Returns
Type Description
ProductRecognizerConfig.Builder

This builder for chaining.

clone()

public ProductRecognizerConfig.Builder clone()
Returns
Type Description
ProductRecognizerConfig.Builder
Overrides

getDefaultInstanceForType()

public ProductRecognizerConfig getDefaultInstanceForType()
Returns
Type Description
ProductRecognizerConfig

getDescriptorForType()

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

getRecognitionConfidenceThreshold()

public float getRecognitionConfidenceThreshold()

Confidence threshold to filter detection results. If not set, a system default value will be used.

float recognition_confidence_threshold = 2;

Returns
Type Description
float

The recognitionConfidenceThreshold.

getRetailEndpoint()

public String getRetailEndpoint()

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Returns
Type Description
String

The retailEndpoint.

getRetailEndpointBytes()

public ByteString getRetailEndpointBytes()

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Returns
Type Description
ByteString

The bytes for retailEndpoint.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductRecognizerConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecognitionConfidenceThreshold(float value)

public ProductRecognizerConfig.Builder setRecognitionConfidenceThreshold(float value)

Confidence threshold to filter detection results. If not set, a system default value will be used.

float recognition_confidence_threshold = 2;

Parameter
Name Description
value float

The recognitionConfidenceThreshold to set.

Returns
Type Description
ProductRecognizerConfig.Builder

This builder for chaining.

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

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

setRetailEndpoint(String value)

public ProductRecognizerConfig.Builder setRetailEndpoint(String value)

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Parameter
Name Description
value String

The retailEndpoint to set.

Returns
Type Description
ProductRecognizerConfig.Builder

This builder for chaining.

setRetailEndpointBytes(ByteString value)

public ProductRecognizerConfig.Builder setRetailEndpointBytes(ByteString value)

The resource name of retail endpoint to use.

string retail_endpoint = 1;

Parameter
Name Description
value ByteString

The bytes for retailEndpoint to set.

Returns
Type Description
ProductRecognizerConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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