Class ImageObjectDetectionPredictionParams.Builder (3.84.0)

public static final class ImageObjectDetectionPredictionParams.Builder extends GeneratedMessage.Builder<ImageObjectDetectionPredictionParams.Builder> implements ImageObjectDetectionPredictionParamsOrBuilder

Prediction model parameters for Image Object Detection.

Protobuf type google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams

Static Methods

getDescriptor()

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

Methods

build()

public ImageObjectDetectionPredictionParams build()
Returns
Type Description
ImageObjectDetectionPredictionParams

buildPartial()

public ImageObjectDetectionPredictionParams buildPartial()
Returns
Type Description
ImageObjectDetectionPredictionParams

clear()

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

clearConfidenceThreshold()

public ImageObjectDetectionPredictionParams.Builder clearConfidenceThreshold()

The Model only returns predictions with at least this confidence score. Default value is 0.0

float confidence_threshold = 1;

Returns
Type Description
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.

clearMaxPredictions()

public ImageObjectDetectionPredictionParams.Builder clearMaxPredictions()

The Model only returns up to that many top, by confidence score, predictions per instance. Note that number of returned predictions is also limited by metadata's predictionsLimit. Default value is 10.

int32 max_predictions = 2;

Returns
Type Description
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.

getConfidenceThreshold()

public float getConfidenceThreshold()

The Model only returns predictions with at least this confidence score. Default value is 0.0

float confidence_threshold = 1;

Returns
Type Description
float

The confidenceThreshold.

getDefaultInstanceForType()

public ImageObjectDetectionPredictionParams getDefaultInstanceForType()
Returns
Type Description
ImageObjectDetectionPredictionParams

getDescriptorForType()

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

getMaxPredictions()

public int getMaxPredictions()

The Model only returns up to that many top, by confidence score, predictions per instance. Note that number of returned predictions is also limited by metadata's predictionsLimit. Default value is 10.

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(ImageObjectDetectionPredictionParams other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConfidenceThreshold(float value)

public ImageObjectDetectionPredictionParams.Builder setConfidenceThreshold(float value)

The Model only returns predictions with at least this confidence score. Default value is 0.0

float confidence_threshold = 1;

Parameter
Name Description
value float

The confidenceThreshold to set.

Returns
Type Description
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.

setMaxPredictions(int value)

public ImageObjectDetectionPredictionParams.Builder setMaxPredictions(int value)

The Model only returns up to that many top, by confidence score, predictions per instance. Note that number of returned predictions is also limited by metadata's predictionsLimit. Default value is 10.

int32 max_predictions = 2;

Parameter
Name Description
value int

The maxPredictions to set.

Returns
Type Description
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.