public static final class VideoClassificationPredictionParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder> implements VideoClassificationPredictionParamsOrBuilder
Prediction model parameters for Video Classification.Protobuf type
google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams| Modifier and Type | Method and Description |
|---|---|
VideoClassificationPredictionParams |
build() |
VideoClassificationPredictionParams |
buildPartial() |
VideoClassificationPredictionParams.Builder |
clear() |
VideoClassificationPredictionParams.Builder |
clearConfidenceThreshold()
The Model only returns predictions with at least this confidence score.
|
VideoClassificationPredictionParams.Builder |
clearMaxPredictions()
The Model only returns up to that many top, by confidence score,
predictions per instance.
|
VideoClassificationPredictionParams.Builder |
clearOneSecIntervalClassification()
Set to true to request classification for a video at one-second intervals.
|
VideoClassificationPredictionParams.Builder |
clearSegmentClassification()
Set to true to request segment-level classification.
|
VideoClassificationPredictionParams.Builder |
clearShotClassification()
Set to true to request shot-level classification.
|
float |
getConfidenceThreshold()
The Model only returns predictions with at least this confidence score.
|
VideoClassificationPredictionParams |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMaxPredictions()
The Model only returns up to that many top, by confidence score,
predictions per instance.
|
boolean |
getOneSecIntervalClassification()
Set to true to request classification for a video at one-second intervals.
|
boolean |
getSegmentClassification()
Set to true to request segment-level classification.
|
boolean |
getShotClassification()
Set to true to request shot-level classification.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VideoClassificationPredictionParams.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
VideoClassificationPredictionParams.Builder |
mergeFrom(com.google.protobuf.Message other) |
VideoClassificationPredictionParams.Builder |
mergeFrom(VideoClassificationPredictionParams other) |
VideoClassificationPredictionParams.Builder |
setConfidenceThreshold(float value)
The Model only returns predictions with at least this confidence score.
|
VideoClassificationPredictionParams.Builder |
setMaxPredictions(int value)
The Model only returns up to that many top, by confidence score,
predictions per instance.
|
VideoClassificationPredictionParams.Builder |
setOneSecIntervalClassification(boolean value)
Set to true to request classification for a video at one-second intervals.
|
VideoClassificationPredictionParams.Builder |
setSegmentClassification(boolean value)
Set to true to request segment-level classification.
|
VideoClassificationPredictionParams.Builder |
setShotClassification(boolean value)
Set to true to request shot-level classification.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic VideoClassificationPredictionParams build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic VideoClassificationPredictionParams buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic VideoClassificationPredictionParams.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder mergeFrom(VideoClassificationPredictionParams other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionParams.Builder>IOExceptionpublic float getConfidenceThreshold()
The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;getConfidenceThreshold in interface VideoClassificationPredictionParamsOrBuilderpublic VideoClassificationPredictionParams.Builder setConfidenceThreshold(float value)
The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;value - The confidenceThreshold to set.public VideoClassificationPredictionParams.Builder clearConfidenceThreshold()
The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;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,000.
int32 max_predictions = 2;getMaxPredictions in interface VideoClassificationPredictionParamsOrBuilderpublic VideoClassificationPredictionParams.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,000.
int32 max_predictions = 2;value - The maxPredictions to set.public VideoClassificationPredictionParams.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,000.
int32 max_predictions = 2;public boolean getSegmentClassification()
Set to true to request segment-level classification. Vertex AI returns labels and their confidence scores for the entire time segment of the video that user specified in the input instance. Default value is true
bool segment_classification = 3;getSegmentClassification in interface VideoClassificationPredictionParamsOrBuilderpublic VideoClassificationPredictionParams.Builder setSegmentClassification(boolean value)
Set to true to request segment-level classification. Vertex AI returns labels and their confidence scores for the entire time segment of the video that user specified in the input instance. Default value is true
bool segment_classification = 3;value - The segmentClassification to set.public VideoClassificationPredictionParams.Builder clearSegmentClassification()
Set to true to request segment-level classification. Vertex AI returns labels and their confidence scores for the entire time segment of the video that user specified in the input instance. Default value is true
bool segment_classification = 3;public boolean getShotClassification()
Set to true to request shot-level classification. Vertex AI determines the boundaries for each camera shot in the entire time segment of the video that user specified in the input instance. Vertex AI then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on the training data, but there are no metrics provided to describe that quality. Default value is false
bool shot_classification = 4;getShotClassification in interface VideoClassificationPredictionParamsOrBuilderpublic VideoClassificationPredictionParams.Builder setShotClassification(boolean value)
Set to true to request shot-level classification. Vertex AI determines the boundaries for each camera shot in the entire time segment of the video that user specified in the input instance. Vertex AI then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on the training data, but there are no metrics provided to describe that quality. Default value is false
bool shot_classification = 4;value - The shotClassification to set.public VideoClassificationPredictionParams.Builder clearShotClassification()
Set to true to request shot-level classification. Vertex AI determines the boundaries for each camera shot in the entire time segment of the video that user specified in the input instance. Vertex AI then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on the training data, but there are no metrics provided to describe that quality. Default value is false
bool shot_classification = 4;public boolean getOneSecIntervalClassification()
Set to true to request classification for a video at one-second intervals. Vertex AI returns labels and their confidence scores for each second of the entire time segment of the video that user specified in the input WARNING: Model evaluation is not done for this classification type, the quality of it depends on the training data, but there are no metrics provided to describe that quality. Default value is false
bool one_sec_interval_classification = 5;getOneSecIntervalClassification in interface VideoClassificationPredictionParamsOrBuilderpublic VideoClassificationPredictionParams.Builder setOneSecIntervalClassification(boolean value)
Set to true to request classification for a video at one-second intervals. Vertex AI returns labels and their confidence scores for each second of the entire time segment of the video that user specified in the input WARNING: Model evaluation is not done for this classification type, the quality of it depends on the training data, but there are no metrics provided to describe that quality. Default value is false
bool one_sec_interval_classification = 5;value - The oneSecIntervalClassification to set.public VideoClassificationPredictionParams.Builder clearOneSecIntervalClassification()
Set to true to request classification for a video at one-second intervals. Vertex AI returns labels and their confidence scores for each second of the entire time segment of the video that user specified in the input WARNING: Model evaluation is not done for this classification type, the quality of it depends on the training data, but there are no metrics provided to describe that quality. Default value is false
bool one_sec_interval_classification = 5;Copyright © 2026 Google LLC. All rights reserved.