Class VertexAutoMLVisionConfig.Builder (0.40.0)

public static final class VertexAutoMLVisionConfig.Builder extends GeneratedMessage.Builder<VertexAutoMLVisionConfig.Builder> implements VertexAutoMLVisionConfigOrBuilder

Message of configurations of Vertex AutoML Vision Processors.

Protobuf type google.cloud.visionai.v1.VertexAutoMLVisionConfig

Static Methods

getDescriptor()

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

Methods

build()

public VertexAutoMLVisionConfig build()
Returns
Type Description
VertexAutoMLVisionConfig

buildPartial()

public VertexAutoMLVisionConfig buildPartial()
Returns
Type Description
VertexAutoMLVisionConfig

clear()

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

clearConfidenceThreshold()

public VertexAutoMLVisionConfig.Builder clearConfidenceThreshold()

Only entities with higher score than the threshold will be returned. Value 0.0 means to return all the detected entities.

float confidence_threshold = 1;

Returns
Type Description
VertexAutoMLVisionConfig.Builder

This builder for chaining.

clearMaxPredictions()

public VertexAutoMLVisionConfig.Builder clearMaxPredictions()

At most this many predictions will be returned per output frame. Value 0 means to return all the detected entities.

int32 max_predictions = 2;

Returns
Type Description
VertexAutoMLVisionConfig.Builder

This builder for chaining.

getConfidenceThreshold()

public float getConfidenceThreshold()

Only entities with higher score than the threshold will be returned. Value 0.0 means to return all the detected entities.

float confidence_threshold = 1;

Returns
Type Description
float

The confidenceThreshold.

getDefaultInstanceForType()

public VertexAutoMLVisionConfig getDefaultInstanceForType()
Returns
Type Description
VertexAutoMLVisionConfig

getDescriptorForType()

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

getMaxPredictions()

public int getMaxPredictions()

At most this many predictions will be returned per output frame. Value 0 means to return all the detected entities.

int32 max_predictions = 2;

Returns
Type Description
int

The maxPredictions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VertexAutoMLVisionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConfidenceThreshold(float value)

public VertexAutoMLVisionConfig.Builder setConfidenceThreshold(float value)

Only entities with higher score than the threshold will be returned. Value 0.0 means to return all the detected entities.

float confidence_threshold = 1;

Parameter
Name Description
value float

The confidenceThreshold to set.

Returns
Type Description
VertexAutoMLVisionConfig.Builder

This builder for chaining.

setMaxPredictions(int value)

public VertexAutoMLVisionConfig.Builder setMaxPredictions(int value)

At most this many predictions will be returned per output frame. Value 0 means to return all the detected entities.

int32 max_predictions = 2;

Parameter
Name Description
value int

The maxPredictions to set.

Returns
Type Description
VertexAutoMLVisionConfig.Builder

This builder for chaining.