public static final class ImageClassificationPredictionParams.Builder extends GeneratedMessageV3.Builder<ImageClassificationPredictionParams.Builder> implements ImageClassificationPredictionParamsOrBuilder
Prediction model parameters for Image Classification.
Protobuf type
google.cloud.aiplatform.v1beta1.schema.predict.params.ImageClassificationPredictionParams
Methods
public ImageClassificationPredictionParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ImageClassificationPredictionParams build()
Returns
public ImageClassificationPredictionParams buildPartial()
Returns
public ImageClassificationPredictionParams.Builder clear()
Returns
Overrides
public ImageClassificationPredictionParams.Builder clearConfidenceThreshold()
The Model only returns predictions with at least this confidence score.
Default value is 0.0
float confidence_threshold = 1;
Returns
public ImageClassificationPredictionParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ImageClassificationPredictionParams.Builder clearMaxPredictions()
The Model only returns up to that many top, by confidence score,
predictions per instance. If this number is very high, the Model may return
fewer predictions. Default value is 10.
int32 max_predictions = 2;
Returns
public ImageClassificationPredictionParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ImageClassificationPredictionParams.Builder clone()
Returns
Overrides
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.
|
public ImageClassificationPredictionParams getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public int getMaxPredictions()
The Model only returns up to that many top, by confidence score,
predictions per instance. If this number is very high, the Model may return
fewer predictions. Default value is 10.
int32 max_predictions = 2;
Returns
Type | Description |
int | The maxPredictions.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ImageClassificationPredictionParams.Builder mergeFrom(ImageClassificationPredictionParams other)
Parameter
Returns
public ImageClassificationPredictionParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ImageClassificationPredictionParams.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final ImageClassificationPredictionParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ImageClassificationPredictionParams.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
public ImageClassificationPredictionParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ImageClassificationPredictionParams.Builder setMaxPredictions(int value)
The Model only returns up to that many top, by confidence score,
predictions per instance. If this number is very high, the Model may return
fewer predictions. Default value is 10.
int32 max_predictions = 2;
Parameter
Name | Description |
value | int
The maxPredictions to set.
|
Returns
public ImageClassificationPredictionParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ImageClassificationPredictionParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides