Class ClassificationProto.VideoClassificationAnnotation

    • Field Detail

      • CLASSIFICATION_ANNOTATION_FIELD_NUMBER

        public static final int CLASSIFICATION_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TIME_SEGMENT_FIELD_NUMBER

        public static final int TIME_SEGMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getType

        public String getType()
         Output only. Expresses the type of video classification. Possible values:
        
         *  `segment` - Classification done on a specified by user
                time segment of a video. AnnotationSpec is answered to be present
                in that time segment, if it is present in any part of it. The video
                ML model evaluations are done only for this type of classification.
        
         *  `shot`- Shot-level classification.
                AutoML Video Intelligence determines the boundaries
                for each camera shot in the entire segment of the video that user
                specified in the request configuration. AutoML Video Intelligence
                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 training data, but there are no
                metrics provided to describe that quality.
        
         *  `1s_interval` - AutoML Video Intelligence returns labels and their
                confidence scores for each second of the entire segment of the video
                that user specified in the request configuration.
                WARNING: Model evaluation is not done for this classification type,
                the quality of it depends on training data, but there are no
                metrics provided to describe that quality.
         
        string type = 1;
        Specified by:
        getType in interface ClassificationProto.VideoClassificationAnnotationOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Output only. Expresses the type of video classification. Possible values:
        
         *  `segment` - Classification done on a specified by user
                time segment of a video. AnnotationSpec is answered to be present
                in that time segment, if it is present in any part of it. The video
                ML model evaluations are done only for this type of classification.
        
         *  `shot`- Shot-level classification.
                AutoML Video Intelligence determines the boundaries
                for each camera shot in the entire segment of the video that user
                specified in the request configuration. AutoML Video Intelligence
                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 training data, but there are no
                metrics provided to describe that quality.
        
         *  `1s_interval` - AutoML Video Intelligence returns labels and their
                confidence scores for each second of the entire segment of the video
                that user specified in the request configuration.
                WARNING: Model evaluation is not done for this classification type,
                the quality of it depends on training data, but there are no
                metrics provided to describe that quality.
         
        string type = 1;
        Specified by:
        getTypeBytes in interface ClassificationProto.VideoClassificationAnnotationOrBuilder
        Returns:
        The bytes for type.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ClassificationProto.VideoClassificationAnnotation parseFrom​(com.google.protobuf.ByteString data)
                                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClassificationProto.VideoClassificationAnnotation parseFrom​(com.google.protobuf.ByteString data,
                                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClassificationProto.VideoClassificationAnnotation parseFrom​(byte[] data,
                                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • getParserForType

        public com.google.protobuf.Parser<ClassificationProto.VideoClassificationAnnotation> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ClassificationProto.VideoClassificationAnnotation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder