Class VideoActionRecognitionPredictionParams.Builder (2.8.9)

public static final class VideoActionRecognitionPredictionParams.Builder extends GeneratedMessageV3.Builder<VideoActionRecognitionPredictionParams.Builder> implements VideoActionRecognitionPredictionParamsOrBuilder

Prediction model parameters for Video Action Recognition.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoActionRecognitionPredictionParams build()
Returns
TypeDescription
VideoActionRecognitionPredictionParams

buildPartial()

public VideoActionRecognitionPredictionParams buildPartial()
Returns
TypeDescription
VideoActionRecognitionPredictionParams

clear()

public VideoActionRecognitionPredictionParams.Builder clear()
Returns
TypeDescription
VideoActionRecognitionPredictionParams.Builder
Overrides

clearConfidenceThreshold()

public VideoActionRecognitionPredictionParams.Builder clearConfidenceThreshold()

The Model only returns predictions with at least this confidence score. Default value is 0.0

float confidence_threshold = 1;

Returns
TypeDescription
VideoActionRecognitionPredictionParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMaxPredictions()

public VideoActionRecognitionPredictionParams.Builder clearMaxPredictions()

The model only returns up to that many top, by confidence score, predictions per frame of the video. If this number is very high, the Model may return fewer predictions per frame. Default value is 50.

int32 max_predictions = 2;

Returns
TypeDescription
VideoActionRecognitionPredictionParams.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 frame of the video. If this number is very high, the Model may return fewer predictions per frame. Default value is 50.

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(VideoActionRecognitionPredictionParams other)

public VideoActionRecognitionPredictionParams.Builder mergeFrom(VideoActionRecognitionPredictionParams other)
Parameter
NameDescription
otherVideoActionRecognitionPredictionParams
Returns
TypeDescription
VideoActionRecognitionPredictionParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoActionRecognitionPredictionParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoActionRecognitionPredictionParams.Builder
Overrides

setConfidenceThreshold(float value)

public VideoActionRecognitionPredictionParams.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
VideoActionRecognitionPredictionParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxPredictions(int value)

public VideoActionRecognitionPredictionParams.Builder setMaxPredictions(int value)

The model only returns up to that many top, by confidence score, predictions per frame of the video. If this number is very high, the Model may return fewer predictions per frame. Default value is 50.

int32 max_predictions = 2;

Parameter
NameDescription
valueint

The maxPredictions to set.

Returns
TypeDescription
VideoActionRecognitionPredictionParams.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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