Class ImageSegmentationPredictionParams.Builder (3.3.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.v1.schema.predict.params.ImageSegmentationPredictionParams

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageSegmentationPredictionParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides

build()

public ImageSegmentationPredictionParams build()
Returns
TypeDescription
ImageSegmentationPredictionParams

buildPartial()

public ImageSegmentationPredictionParams buildPartial()
Returns
TypeDescription
ImageSegmentationPredictionParams

clear()

public ImageSegmentationPredictionParams.Builder clear()
Returns
TypeDescription
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
TypeDescription
ImageSegmentationPredictionParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImageSegmentationPredictionParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageSegmentationPredictionParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides

clone()

public ImageSegmentationPredictionParams.Builder clone()
Returns
TypeDescription
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
TypeDescription
float

The confidenceThreshold.

getDefaultInstanceForType()

public ImageSegmentationPredictionParams getDefaultInstanceForType()
Returns
TypeDescription
ImageSegmentationPredictionParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageSegmentationPredictionParams other)

public ImageSegmentationPredictionParams.Builder mergeFrom(ImageSegmentationPredictionParams other)
Parameter
NameDescription
otherImageSegmentationPredictionParams
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageSegmentationPredictionParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImageSegmentationPredictionParams.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageSegmentationPredictionParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuefloat

The confidenceThreshold to set.

Returns
TypeDescription
ImageSegmentationPredictionParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImageSegmentationPredictionParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides

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

public ImageSegmentationPredictionParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageSegmentationPredictionParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageSegmentationPredictionParams.Builder
Overrides