Class LabelAnnotation

  • All Implemented Interfaces:
    LabelAnnotationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class LabelAnnotation
    extends com.google.protobuf.GeneratedMessageV3
    implements LabelAnnotationOrBuilder
     Label annotation.
     
    Protobuf type google.cloud.videointelligence.v1beta2.LabelAnnotation
    See Also:
    Serialized Form
    • 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
      • hasEntity

        public boolean hasEntity()
         Detected entity.
         
        .google.cloud.videointelligence.v1beta2.Entity entity = 1;
        Specified by:
        hasEntity in interface LabelAnnotationOrBuilder
        Returns:
        Whether the entity field is set.
      • getEntity

        public Entity getEntity()
         Detected entity.
         
        .google.cloud.videointelligence.v1beta2.Entity entity = 1;
        Specified by:
        getEntity in interface LabelAnnotationOrBuilder
        Returns:
        The entity.
      • getCategoryEntitiesList

        public List<Entity> getCategoryEntitiesList()
         Common categories for the detected entity.
         E.g. when the label is `Terrier` the category is likely `dog`. And in some
         cases there might be more than one categories e.g. `Terrier` could also be
         a `pet`.
         
        repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;
        Specified by:
        getCategoryEntitiesList in interface LabelAnnotationOrBuilder
      • getCategoryEntitiesOrBuilderList

        public List<? extends EntityOrBuilder> getCategoryEntitiesOrBuilderList()
         Common categories for the detected entity.
         E.g. when the label is `Terrier` the category is likely `dog`. And in some
         cases there might be more than one categories e.g. `Terrier` could also be
         a `pet`.
         
        repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;
        Specified by:
        getCategoryEntitiesOrBuilderList in interface LabelAnnotationOrBuilder
      • getCategoryEntitiesCount

        public int getCategoryEntitiesCount()
         Common categories for the detected entity.
         E.g. when the label is `Terrier` the category is likely `dog`. And in some
         cases there might be more than one categories e.g. `Terrier` could also be
         a `pet`.
         
        repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;
        Specified by:
        getCategoryEntitiesCount in interface LabelAnnotationOrBuilder
      • getCategoryEntities

        public Entity getCategoryEntities​(int index)
         Common categories for the detected entity.
         E.g. when the label is `Terrier` the category is likely `dog`. And in some
         cases there might be more than one categories e.g. `Terrier` could also be
         a `pet`.
         
        repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;
        Specified by:
        getCategoryEntities in interface LabelAnnotationOrBuilder
      • getCategoryEntitiesOrBuilder

        public EntityOrBuilder getCategoryEntitiesOrBuilder​(int index)
         Common categories for the detected entity.
         E.g. when the label is `Terrier` the category is likely `dog`. And in some
         cases there might be more than one categories e.g. `Terrier` could also be
         a `pet`.
         
        repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;
        Specified by:
        getCategoryEntitiesOrBuilder in interface LabelAnnotationOrBuilder
      • getSegmentsCount

        public int getSegmentsCount()
         All video segments where a label was detected.
         
        repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;
        Specified by:
        getSegmentsCount in interface LabelAnnotationOrBuilder
      • getSegments

        public LabelSegment getSegments​(int index)
         All video segments where a label was detected.
         
        repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;
        Specified by:
        getSegments in interface LabelAnnotationOrBuilder
      • getFramesCount

        public int getFramesCount()
         All video frames where a label was detected.
         
        repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;
        Specified by:
        getFramesCount in interface LabelAnnotationOrBuilder
      • getFrames

        public LabelFrame getFrames​(int index)
         All video frames where a label was detected.
         
        repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;
        Specified by:
        getFrames in interface LabelAnnotationOrBuilder
      • 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 LabelAnnotation parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LabelAnnotation parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static LabelAnnotation parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static LabelAnnotation parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public LabelAnnotation.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public LabelAnnotation.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected LabelAnnotation.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<LabelAnnotation> parser()
      • getParserForType

        public com.google.protobuf.Parser<LabelAnnotation> 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 LabelAnnotation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder