Class ImageObjectDetectionPredictionParams.Builder (3.3.0)

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

Prediction model parameters for Image Object Detection.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageObjectDetectionPredictionParams build()
Returns
TypeDescription
ImageObjectDetectionPredictionParams

buildPartial()

public ImageObjectDetectionPredictionParams buildPartial()
Returns
TypeDescription
ImageObjectDetectionPredictionParams

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

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
TypeDescription
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImageObjectDetectionPredictionParams.Builder clone()
Returns
TypeDescription
ImageObjectDetectionPredictionParams.Builder
Overrides

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
TypeDescription
float

The confidenceThreshold.

getDefaultInstanceForType()

public ImageObjectDetectionPredictionParams getDefaultInstanceForType()
Returns
TypeDescription
ImageObjectDetectionPredictionParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
int

The maxPredictions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageObjectDetectionPredictionParams other)

public ImageObjectDetectionPredictionParams.Builder mergeFrom(ImageObjectDetectionPredictionParams other)
Parameter
NameDescription
otherImageObjectDetectionPredictionParams
Returns
TypeDescription
ImageObjectDetectionPredictionParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The confidenceThreshold to set.

Returns
TypeDescription
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueint

The maxPredictions to set.

Returns
TypeDescription
ImageObjectDetectionPredictionParams.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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