Class VideoClassificationPredictionParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
com.google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.Builder
- All Implemented Interfaces:
VideoClassificationPredictionParamsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoClassificationPredictionParams
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Model only returns predictions with at least this confidence score.The Model only returns up to that many top, by confidence score, predictions per instance.Set to true to request classification for a video at one-second intervals.Set to true to request segment-level classification.Set to true to request shot-level classification.floatThe Model only returns predictions with at least this confidence score.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe Model only returns up to that many top, by confidence score, predictions per instance.booleanSet to true to request classification for a video at one-second intervals.booleanSet to true to request segment-level classification.booleanSet to true to request shot-level classification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConfidenceThreshold(float value) The Model only returns predictions with at least this confidence score.setMaxPredictions(int value) The Model only returns up to that many top, by confidence score, predictions per instance.setOneSecIntervalClassification(boolean value) Set to true to request classification for a video at one-second intervals.setSegmentClassification(boolean value) Set to true to request segment-level classification.setShotClassification(boolean value) Set to true to request shot-level classification.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionParams.Builder>
-
mergeFrom
public VideoClassificationPredictionParams.Builder mergeFrom(VideoClassificationPredictionParams other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
-
mergeFrom
public VideoClassificationPredictionParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionParams.Builder>- Throws:
IOException
-
getConfidenceThreshold
public float getConfidenceThreshold()The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;- Specified by:
getConfidenceThresholdin interfaceVideoClassificationPredictionParamsOrBuilder- Returns:
- The confidenceThreshold.
-
setConfidenceThreshold
The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;- Parameters:
value- The confidenceThreshold to set.- Returns:
- This builder for chaining.
-
clearConfidenceThreshold
The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;- Returns:
- This builder for chaining.
-
getMaxPredictions
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;- Specified by:
getMaxPredictionsin interfaceVideoClassificationPredictionParamsOrBuilder- Returns:
- The maxPredictions.
-
setMaxPredictions
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;- Parameters:
value- The maxPredictions to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getSegmentClassification
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;- Specified by:
getSegmentClassificationin interfaceVideoClassificationPredictionParamsOrBuilder- Returns:
- The segmentClassification.
-
setSegmentClassification
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;- Parameters:
value- The segmentClassification to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getShotClassification
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;- Specified by:
getShotClassificationin interfaceVideoClassificationPredictionParamsOrBuilder- Returns:
- The shotClassification.
-
setShotClassification
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;- Parameters:
value- The shotClassification to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getOneSecIntervalClassification
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;- Specified by:
getOneSecIntervalClassificationin interfaceVideoClassificationPredictionParamsOrBuilder- Returns:
- The oneSecIntervalClassification.
-
setOneSecIntervalClassification
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;- Parameters:
value- The oneSecIntervalClassification to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-