Class VideoClassificationPredictionResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.Builder>
com.google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.Builder
All Implemented Interfaces:
VideoClassificationPredictionResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VideoClassificationPredictionResult

public static final class VideoClassificationPredictionResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoClassificationPredictionResult.Builder> implements VideoClassificationPredictionResultOrBuilder
 Prediction output format for Video Classification.
 
Protobuf type google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult
  • 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<VideoClassificationPredictionResult.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<VideoClassificationPredictionResult.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<VideoClassificationPredictionResult.Builder>
    • getDefaultInstanceForType

      public VideoClassificationPredictionResult 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 VideoClassificationPredictionResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VideoClassificationPredictionResult.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<VideoClassificationPredictionResult.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<VideoClassificationPredictionResult.Builder>
    • mergeFrom

      public VideoClassificationPredictionResult.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<VideoClassificationPredictionResult.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The resource ID of the AnnotationSpec that had been identified.
       
      string id = 1;
      Specified by:
      getId in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The resource ID of the AnnotationSpec that had been identified.
       
      string id = 1;
      Specified by:
      getIdBytes in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The bytes for id.
    • setId

       The resource ID of the AnnotationSpec that had been identified.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

       The resource ID of the AnnotationSpec that had been identified.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public VideoClassificationPredictionResult.Builder setIdBytes(com.google.protobuf.ByteString value)
       The resource ID of the AnnotationSpec that had been identified.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name of the AnnotationSpec that had been identified.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the AnnotationSpec that had been identified.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public VideoClassificationPredictionResult.Builder setDisplayName(String value)
       The display name of the AnnotationSpec that had been identified.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

       The display name of the AnnotationSpec that had been identified.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public VideoClassificationPredictionResult.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the AnnotationSpec that had been identified.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       The type of the prediction. The requested types can be configured
       via parameters. This will be one of
       - segment-classification
       - shot-classification
       - one-sec-interval-classification
       
      string type = 3;
      Specified by:
      getType in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of the prediction. The requested types can be configured
       via parameters. This will be one of
       - segment-classification
       - shot-classification
       - one-sec-interval-classification
       
      string type = 3;
      Specified by:
      getTypeBytes in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The bytes for type.
    • setType

       The type of the prediction. The requested types can be configured
       via parameters. This will be one of
       - segment-classification
       - shot-classification
       - one-sec-interval-classification
       
      string type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The type of the prediction. The requested types can be configured
       via parameters. This will be one of
       - segment-classification
       - shot-classification
       - one-sec-interval-classification
       
      string type = 3;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public VideoClassificationPredictionResult.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of the prediction. The requested types can be configured
       via parameters. This will be one of
       - segment-classification
       - shot-classification
       - one-sec-interval-classification
       
      string type = 3;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasTimeSegmentStart

      public boolean hasTimeSegmentStart()
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
      Specified by:
      hasTimeSegmentStart in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      Whether the timeSegmentStart field is set.
    • getTimeSegmentStart

      public com.google.protobuf.Duration getTimeSegmentStart()
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
      Specified by:
      getTimeSegmentStart in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The timeSegmentStart.
    • setTimeSegmentStart

      public VideoClassificationPredictionResult.Builder setTimeSegmentStart(com.google.protobuf.Duration value)
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
    • setTimeSegmentStart

      public VideoClassificationPredictionResult.Builder setTimeSegmentStart(com.google.protobuf.Duration.Builder builderForValue)
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
    • mergeTimeSegmentStart

      public VideoClassificationPredictionResult.Builder mergeTimeSegmentStart(com.google.protobuf.Duration value)
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
    • clearTimeSegmentStart

      public VideoClassificationPredictionResult.Builder clearTimeSegmentStart()
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
    • getTimeSegmentStartBuilder

      public com.google.protobuf.Duration.Builder getTimeSegmentStartBuilder()
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
    • getTimeSegmentStartOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeSegmentStartOrBuilder()
       The beginning, inclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentStart' from the input instance, for other types it is the
       start of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_start = 4;
      Specified by:
      getTimeSegmentStartOrBuilder in interface VideoClassificationPredictionResultOrBuilder
    • hasTimeSegmentEnd

      public boolean hasTimeSegmentEnd()
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
      Specified by:
      hasTimeSegmentEnd in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      Whether the timeSegmentEnd field is set.
    • getTimeSegmentEnd

      public com.google.protobuf.Duration getTimeSegmentEnd()
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
      Specified by:
      getTimeSegmentEnd in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The timeSegmentEnd.
    • setTimeSegmentEnd

      public VideoClassificationPredictionResult.Builder setTimeSegmentEnd(com.google.protobuf.Duration value)
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
    • setTimeSegmentEnd

      public VideoClassificationPredictionResult.Builder setTimeSegmentEnd(com.google.protobuf.Duration.Builder builderForValue)
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
    • mergeTimeSegmentEnd

      public VideoClassificationPredictionResult.Builder mergeTimeSegmentEnd(com.google.protobuf.Duration value)
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
    • clearTimeSegmentEnd

      public VideoClassificationPredictionResult.Builder clearTimeSegmentEnd()
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
    • getTimeSegmentEndBuilder

      public com.google.protobuf.Duration.Builder getTimeSegmentEndBuilder()
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
    • getTimeSegmentEndOrBuilder

      public com.google.protobuf.DurationOrBuilder getTimeSegmentEndOrBuilder()
       The end, exclusive, of the video's time segment in which the
       AnnotationSpec has been identified. Expressed as a number of seconds as
       measured from the start of the video, with fractions up to a microsecond
       precision, and with "s" appended at the end. Note that for
       'segment-classification' prediction type, this equals the original
       'timeSegmentEnd' from the input instance, for other types it is the end
       of a shot or a 1 second interval respectively.
       
      .google.protobuf.Duration time_segment_end = 5;
      Specified by:
      getTimeSegmentEndOrBuilder in interface VideoClassificationPredictionResultOrBuilder
    • hasConfidence

      public boolean hasConfidence()
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
      Specified by:
      hasConfidence in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      Whether the confidence field is set.
    • getConfidence

      public com.google.protobuf.FloatValue getConfidence()
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
      Specified by:
      getConfidence in interface VideoClassificationPredictionResultOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public VideoClassificationPredictionResult.Builder setConfidence(com.google.protobuf.FloatValue value)
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
    • setConfidence

      public VideoClassificationPredictionResult.Builder setConfidence(com.google.protobuf.FloatValue.Builder builderForValue)
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
    • mergeConfidence

      public VideoClassificationPredictionResult.Builder mergeConfidence(com.google.protobuf.FloatValue value)
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
    • clearConfidence

       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
    • getConfidenceBuilder

      public com.google.protobuf.FloatValue.Builder getConfidenceBuilder()
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
    • getConfidenceOrBuilder

      public com.google.protobuf.FloatValueOrBuilder getConfidenceOrBuilder()
       The Model's confidence in correction of this prediction, higher
       value means higher confidence.
       
      .google.protobuf.FloatValue confidence = 6;
      Specified by:
      getConfidenceOrBuilder in interface VideoClassificationPredictionResultOrBuilder