Class VideoClassificationPredictionParams.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder> implements VideoClassificationPredictionParamsOrBuilder
Prediction model parameters for Video Classification.
Protobuf typegoogle.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoClassificationPredictionParams.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VideoClassificationPredictionParamsbuild()VideoClassificationPredictionParamsbuildPartial()VideoClassificationPredictionParams.Builderclear()VideoClassificationPredictionParams.BuilderclearConfidenceThreshold()The Model only returns predictions with at least this confidence score.VideoClassificationPredictionParams.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VideoClassificationPredictionParams.BuilderclearMaxPredictions()The Model only returns up to that many top, by confidence score, predictions per instance.VideoClassificationPredictionParams.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VideoClassificationPredictionParams.BuilderclearOneSecIntervalClassification()Set to true to request classification for a video at one-second intervals.VideoClassificationPredictionParams.BuilderclearSegmentClassification()Set to true to request segment-level classification.VideoClassificationPredictionParams.BuilderclearShotClassification()Set to true to request shot-level classification.VideoClassificationPredictionParams.Builderclone()floatgetConfidenceThreshold()The Model only returns predictions with at least this confidence score.VideoClassificationPredictionParamsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetMaxPredictions()The Model only returns up to that many top, by confidence score, predictions per instance.booleangetOneSecIntervalClassification()Set to true to request classification for a video at one-second intervals.booleangetSegmentClassification()Set to true to request segment-level classification.booleangetShotClassification()Set to true to request shot-level classification.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VideoClassificationPredictionParams.BuildermergeFrom(VideoClassificationPredictionParams other)VideoClassificationPredictionParams.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VideoClassificationPredictionParams.BuildermergeFrom(com.google.protobuf.Message other)VideoClassificationPredictionParams.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VideoClassificationPredictionParams.BuildersetConfidenceThreshold(float value)The Model only returns predictions with at least this confidence score.VideoClassificationPredictionParams.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VideoClassificationPredictionParams.BuildersetMaxPredictions(int value)The Model only returns up to that many top, by confidence score, predictions per instance.VideoClassificationPredictionParams.BuildersetOneSecIntervalClassification(boolean value)Set to true to request classification for a video at one-second intervals.VideoClassificationPredictionParams.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VideoClassificationPredictionParams.BuildersetSegmentClassification(boolean value)Set to true to request segment-level classification.VideoClassificationPredictionParams.BuildersetShotClassification(boolean value)Set to true to request shot-level classification.VideoClassificationPredictionParams.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
clear
public VideoClassificationPredictionParams.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
getDefaultInstanceForType
public VideoClassificationPredictionParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoClassificationPredictionParams build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoClassificationPredictionParams buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoClassificationPredictionParams.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
setField
public VideoClassificationPredictionParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
clearField
public VideoClassificationPredictionParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
clearOneof
public VideoClassificationPredictionParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
setRepeatedField
public VideoClassificationPredictionParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
addRepeatedField
public VideoClassificationPredictionParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
mergeFrom
public VideoClassificationPredictionParams.Builder mergeFrom(com.google.protobuf.Message other)
- 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.GeneratedMessageV3.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
public 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;- Parameters:
value- The confidenceThreshold to set.- Returns:
- This builder for chaining.
-
clearConfidenceThreshold
public VideoClassificationPredictionParams.Builder 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
public 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;- Parameters:
value- The maxPredictions to set.- Returns:
- This builder for chaining.
-
clearMaxPredictions
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;- 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
public 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;- Parameters:
value- The segmentClassification to set.- Returns:
- This builder for chaining.
-
clearSegmentClassification
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;- 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
public 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;- Parameters:
value- The shotClassification to set.- Returns:
- This builder for chaining.
-
clearShotClassification
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;- 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
public 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;- Parameters:
value- The oneSecIntervalClassification to set.- Returns:
- This builder for chaining.
-
clearOneSecIntervalClassification
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final VideoClassificationPredictionParams.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
mergeUnknownFields
public final VideoClassificationPredictionParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
-