Class StreamAnnotation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.StreamAnnotation
All Implemented Interfaces:
StreamAnnotationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class StreamAnnotation extends com.google.protobuf.GeneratedMessage implements StreamAnnotationOrBuilder
 message about annotations about Vision AI stream resource.
 
Protobuf type google.cloud.visionai.v1.StreamAnnotation
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
    • getAnnotationPayloadCase

      public StreamAnnotation.AnnotationPayloadCase getAnnotationPayloadCase()
      Specified by:
      getAnnotationPayloadCase in interface StreamAnnotationOrBuilder
    • hasActiveZone

      public boolean hasActiveZone()
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
      Specified by:
      hasActiveZone in interface StreamAnnotationOrBuilder
      Returns:
      Whether the activeZone field is set.
    • getActiveZone

      public NormalizedPolygon getActiveZone()
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
      Specified by:
      getActiveZone in interface StreamAnnotationOrBuilder
      Returns:
      The activeZone.
    • getActiveZoneOrBuilder

      public NormalizedPolygonOrBuilder getActiveZoneOrBuilder()
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
      Specified by:
      getActiveZoneOrBuilder in interface StreamAnnotationOrBuilder
    • hasCrossingLine

      public boolean hasCrossingLine()
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
      Specified by:
      hasCrossingLine in interface StreamAnnotationOrBuilder
      Returns:
      Whether the crossingLine field is set.
    • getCrossingLine

      public NormalizedPolyline getCrossingLine()
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
      Specified by:
      getCrossingLine in interface StreamAnnotationOrBuilder
      Returns:
      The crossingLine.
    • getCrossingLineOrBuilder

      public NormalizedPolylineOrBuilder getCrossingLineOrBuilder()
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
      Specified by:
      getCrossingLineOrBuilder in interface StreamAnnotationOrBuilder
    • getId

      public String getId()
       ID of the annotation. It must be unique when used in the certain context.
       For example, all the annotations to one input streams of a Vision AI
       application.
       
      string id = 1;
      Specified by:
      getId in interface StreamAnnotationOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       ID of the annotation. It must be unique when used in the certain context.
       For example, all the annotations to one input streams of a Vision AI
       application.
       
      string id = 1;
      Specified by:
      getIdBytes in interface StreamAnnotationOrBuilder
      Returns:
      The bytes for id.
    • getDisplayName

      public String getDisplayName()
       User-friendly name for the annotation.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface StreamAnnotationOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       User-friendly name for the annotation.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface StreamAnnotationOrBuilder
      Returns:
      The bytes for displayName.
    • getSourceStream

      public String getSourceStream()
       The Vision AI stream resource name.
       
      string source_stream = 3;
      Specified by:
      getSourceStream in interface StreamAnnotationOrBuilder
      Returns:
      The sourceStream.
    • getSourceStreamBytes

      public com.google.protobuf.ByteString getSourceStreamBytes()
       The Vision AI stream resource name.
       
      string source_stream = 3;
      Specified by:
      getSourceStreamBytes in interface StreamAnnotationOrBuilder
      Returns:
      The bytes for sourceStream.
    • getTypeValue

      public int getTypeValue()
       The actual type of Annotation.
       
      .google.cloud.visionai.v1.StreamAnnotationType type = 4;
      Specified by:
      getTypeValue in interface StreamAnnotationOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public StreamAnnotationType getType()
       The actual type of Annotation.
       
      .google.cloud.visionai.v1.StreamAnnotationType type = 4;
      Specified by:
      getType in interface StreamAnnotationOrBuilder
      Returns:
      The type.
    • 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 StreamAnnotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static StreamAnnotation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static StreamAnnotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static StreamAnnotation.Builder newBuilder()
    • newBuilder

      public static StreamAnnotation.Builder newBuilder(StreamAnnotation prototype)
    • toBuilder

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

      protected StreamAnnotation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static StreamAnnotation getDefaultInstance()
    • parser

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

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