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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionParams.Builder>
    • getDefaultInstanceForType

      public VideoClassificationPredictionParams getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VideoClassificationPredictionParams buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VideoClassificationPredictionParams.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoClassificationPredictionParams.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface VideoClassificationPredictionParamsOrBuilder
      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 interface VideoClassificationPredictionParamsOrBuilder
      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 interface VideoClassificationPredictionParamsOrBuilder
      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 interface VideoClassificationPredictionParamsOrBuilder
      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 interface VideoClassificationPredictionParamsOrBuilder
      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.