Class ImageSegmentationPredictionParams.Builder (3.52.0)

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

Prediction model parameters for Image Segmentation.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageSegmentationPredictionParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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