Class ProductRecognizerConfig.Builder (0.40.0)

public static final class ProductRecognizerConfig.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.

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.