Class VideoClassificationPredictionResult.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public VideoClassificationPredictionResult 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationPredictionResult.Builder>
      • 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.
      • 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

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

        public VideoClassificationPredictionResult.Builder setType​(String 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 type to set.
        Returns:
        This builder for chaining.
      • clearType

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

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