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.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(VideoClassificationPredictionParams other)
VideoClassificationPredictionParams.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VideoClassificationPredictionParams.Builder
mergeFrom(com.google.protobuf.Message 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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
clear
public VideoClassificationPredictionParams.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
getDefaultInstanceForType
public VideoClassificationPredictionParams getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VideoClassificationPredictionParams build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VideoClassificationPredictionParams buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VideoClassificationPredictionParams.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
setField
public VideoClassificationPredictionParams.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
clearField
public VideoClassificationPredictionParams.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
clearOneof
public VideoClassificationPredictionParams.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
setRepeatedField
public VideoClassificationPredictionParams.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
addRepeatedField
public VideoClassificationPredictionParams.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
mergeFrom
public VideoClassificationPredictionParams.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionParams.Builder>
-
mergeFrom
public VideoClassificationPredictionParams.Builder mergeFrom(VideoClassificationPredictionParams other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getConfidenceThreshold
in 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:
getMaxPredictions
in 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:
getSegmentClassification
in 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:
getShotClassification
in 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:
getOneSecIntervalClassification
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
mergeUnknownFields
public final VideoClassificationPredictionParams.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionParams.Builder>
-
-