Class ImageSegmentationPredictionParams.Builder (3.84.0)

public static final class ImageSegmentationPredictionParams.Builder extends GeneratedMessage.Builder<ImageSegmentationPredictionParams.Builder> implements ImageSegmentationPredictionParamsOrBuilder

Prediction model parameters for Image Segmentation.

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

Static Methods

getDescriptor()

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

Methods

build()

public ImageSegmentationPredictionParams build()
Returns
Type Description
ImageSegmentationPredictionParams

buildPartial()

public ImageSegmentationPredictionParams buildPartial()
Returns
Type Description
ImageSegmentationPredictionParams

clear()

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

clearConfidenceThreshold()

public ImageSegmentationPredictionParams.Builder clearConfidenceThreshold()

When the model predicts category of pixels of the image, it will only provide predictions for pixels that it is at least this much confident about. All other pixels will be classified as background. Default value is 0.5.

float confidence_threshold = 1;

Returns
Type Description
ImageSegmentationPredictionParams.Builder

This builder for chaining.

getConfidenceThreshold()

public float getConfidenceThreshold()

When the model predicts category of pixels of the image, it will only provide predictions for pixels that it is at least this much confident about. All other pixels will be classified as background. Default value is 0.5.

float confidence_threshold = 1;

Returns
Type Description
float

The confidenceThreshold.

getDefaultInstanceForType()

public ImageSegmentationPredictionParams getDefaultInstanceForType()
Returns
Type Description
ImageSegmentationPredictionParams

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImageSegmentationPredictionParams other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConfidenceThreshold(float value)

public ImageSegmentationPredictionParams.Builder setConfidenceThreshold(float value)

When the model predicts category of pixels of the image, it will only provide predictions for pixels that it is at least this much confident about. All other pixels will be classified as background. Default value is 0.5.

float confidence_threshold = 1;

Parameter
Name Description
value float

The confidenceThreshold to set.

Returns
Type Description
ImageSegmentationPredictionParams.Builder

This builder for chaining.