public static final class VideoClassificationPredictionParams.Builder extends com.google.protobuf.GeneratedMessageV3.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
VideoClassificationPredictionParams |
build() |
VideoClassificationPredictionParams |
buildPartial() |
VideoClassificationPredictionParams.Builder |
clear() |
VideoClassificationPredictionParams.Builder |
clearConfidenceThreshold()
The Model only returns predictions with at least this confidence score.
|
VideoClassificationPredictionParams.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
VideoClassificationPredictionParams.Builder |
clearMaxPredictions()
The Model only returns up to that many top, by confidence score,
predictions per instance.
|
VideoClassificationPredictionParams.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.
|
VideoClassificationPredictionParams.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
VideoClassificationPredictionParams.Builder |
setConfidenceThreshold(float value)
The Model only returns predictions with at least this confidence score.
|
VideoClassificationPredictionParams.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
VideoClassificationPredictionParams.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public VideoClassificationPredictionParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public 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.GeneratedMessageV3.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;public final VideoClassificationPredictionParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>public final VideoClassificationPredictionParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>Copyright © 2023 Google LLC. All rights reserved.