Class LabelAnnotation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.videointelligence.v1.LabelAnnotation
All Implemented Interfaces:
LabelAnnotationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class LabelAnnotation extends com.google.protobuf.GeneratedMessage implements LabelAnnotationOrBuilder
 Label annotation.
 
Protobuf type google.cloud.videointelligence.v1.LabelAnnotation
See Also:
  • Field Details

  • 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
    • hasEntity

      public boolean hasEntity()
       Detected entity.
       
      .google.cloud.videointelligence.v1.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.v1.Entity entity = 1;
      Specified by:
      getEntity in interface LabelAnnotationOrBuilder
      Returns:
      The entity.
    • getEntityOrBuilder

      public EntityOrBuilder getEntityOrBuilder()
       Detected entity.
       
      .google.cloud.videointelligence.v1.Entity entity = 1;
      Specified by:
      getEntityOrBuilder in interface LabelAnnotationOrBuilder
    • getCategoryEntitiesList

      public List<Entity> getCategoryEntitiesList()
       Common categories for the detected entity.
       For example, 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.v1.Entity category_entities = 2;
      Specified by:
      getCategoryEntitiesList in interface LabelAnnotationOrBuilder
    • getCategoryEntitiesOrBuilderList

      public List<? extends EntityOrBuilder> getCategoryEntitiesOrBuilderList()
       Common categories for the detected entity.
       For example, 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.v1.Entity category_entities = 2;
      Specified by:
      getCategoryEntitiesOrBuilderList in interface LabelAnnotationOrBuilder
    • getCategoryEntitiesCount

      public int getCategoryEntitiesCount()
       Common categories for the detected entity.
       For example, 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.v1.Entity category_entities = 2;
      Specified by:
      getCategoryEntitiesCount in interface LabelAnnotationOrBuilder
    • getCategoryEntities

      public Entity getCategoryEntities(int index)
       Common categories for the detected entity.
       For example, 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.v1.Entity category_entities = 2;
      Specified by:
      getCategoryEntities in interface LabelAnnotationOrBuilder
    • getCategoryEntitiesOrBuilder

      public EntityOrBuilder getCategoryEntitiesOrBuilder(int index)
       Common categories for the detected entity.
       For example, 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.v1.Entity category_entities = 2;
      Specified by:
      getCategoryEntitiesOrBuilder in interface LabelAnnotationOrBuilder
    • getSegmentsList

      public List<LabelSegment> getSegmentsList()
       All video segments where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
      Specified by:
      getSegmentsList in interface LabelAnnotationOrBuilder
    • getSegmentsOrBuilderList

      public List<? extends LabelSegmentOrBuilder> getSegmentsOrBuilderList()
       All video segments where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
      Specified by:
      getSegmentsOrBuilderList in interface LabelAnnotationOrBuilder
    • getSegmentsCount

      public int getSegmentsCount()
       All video segments where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.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.v1.LabelSegment segments = 3;
      Specified by:
      getSegments in interface LabelAnnotationOrBuilder
    • getSegmentsOrBuilder

      public LabelSegmentOrBuilder getSegmentsOrBuilder(int index)
       All video segments where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
      Specified by:
      getSegmentsOrBuilder in interface LabelAnnotationOrBuilder
    • getFramesList

      public List<LabelFrame> getFramesList()
       All video frames where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
      Specified by:
      getFramesList in interface LabelAnnotationOrBuilder
    • getFramesOrBuilderList

      public List<? extends LabelFrameOrBuilder> getFramesOrBuilderList()
       All video frames where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
      Specified by:
      getFramesOrBuilderList in interface LabelAnnotationOrBuilder
    • getFramesCount

      public int getFramesCount()
       All video frames where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.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.v1.LabelFrame frames = 4;
      Specified by:
      getFrames in interface LabelAnnotationOrBuilder
    • getFramesOrBuilder

      public LabelFrameOrBuilder getFramesOrBuilder(int index)
       All video frames where a label was detected.
       
      repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
      Specified by:
      getFramesOrBuilder in interface LabelAnnotationOrBuilder
    • getVersion

      public String getVersion()
       Feature version.
       
      string version = 5;
      Specified by:
      getVersion in interface LabelAnnotationOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Feature version.
       
      string version = 5;
      Specified by:
      getVersionBytes in interface LabelAnnotationOrBuilder
      Returns:
      The bytes for version.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LabelAnnotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LabelAnnotation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LabelAnnotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LabelAnnotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static LabelAnnotation.Builder newBuilder()
    • newBuilder

      public static LabelAnnotation.Builder newBuilder(LabelAnnotation prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static LabelAnnotation getDefaultInstance()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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