Class StreamAnnotation (0.12.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 0.12.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  StreamAnnotation   extends   GeneratedMessageV3   implements   StreamAnnotationOrBuilder  
   
   message about annotations about Vision AI stream resource.
 Protobuf type google.cloud.visionai.v1.StreamAnnotation
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  ACTIVE_ZONE_FIELD_NUMBER 
  
    
public   static   final   int   ACTIVE_ZONE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  CROSSING_LINE_FIELD_NUMBER 
  
    
public   static   final   int   CROSSING_LINE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  ID_FIELD_NUMBER 
  
    
public   static   final   int   ID_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  SOURCE_STREAM_FIELD_NUMBER 
  
    
public   static   final   int   SOURCE_STREAM_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  TYPE_FIELD_NUMBER 
  
    
public   static   final   int   TYPE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   StreamAnnotation   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   StreamAnnotation . Builder   newBuilder ()  
   
  
   
  newBuilder(StreamAnnotation prototype) 
  
    
public   static   StreamAnnotation . Builder   newBuilder ( StreamAnnotation   prototype )  
   
  
  
   
  
  
    
public   static   StreamAnnotation   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   StreamAnnotation   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   StreamAnnotation   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamAnnotation   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   StreamAnnotation   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamAnnotation   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   StreamAnnotation   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   StreamAnnotation   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   StreamAnnotation   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   StreamAnnotation   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   StreamAnnotation   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamAnnotation   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<StreamAnnotation>   parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getActiveZone() 
  
    
public   NormalizedPolygon   getActiveZone ()  
   
   Annotation for type ACTIVE_ZONE
 .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
 
  
   
  getActiveZoneOrBuilder() 
  
    
public   NormalizedPolygonOrBuilder   getActiveZoneOrBuilder ()  
   
   Annotation for type ACTIVE_ZONE
 .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
 
  
   
  getAnnotationPayloadCase() 
  
    
public   StreamAnnotation . AnnotationPayloadCase   getAnnotationPayloadCase ()  
   
  
   
  getCrossingLine() 
  
    
public   NormalizedPolyline   getCrossingLine ()  
   
   Annotation for type CROSSING_LINE
 .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
 
  
   
  getCrossingLineOrBuilder() 
  
    
public   NormalizedPolylineOrBuilder   getCrossingLineOrBuilder ()  
   
   Annotation for type CROSSING_LINE
 .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
 
  
   
  getDefaultInstanceForType() 
  
    
public   StreamAnnotation   getDefaultInstanceForType ()  
   
  
   
  getDisplayName() 
  
    
public   String   getDisplayName ()  
   
   User-friendly name for the annotation.
 string display_name = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The displayName.
 
       
     
  
   
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   
   User-friendly name for the annotation.
 string display_name = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for displayName.
 
       
     
  
   
  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;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The id.
 
       
     
  
   
  getIdBytes() 
  
    
public   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;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for id.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<StreamAnnotation>   getParserForType ()  
   
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  getSourceStream() 
  
    
public   String   getSourceStream ()  
   
   The Vision AI stream resource name.
 string source_stream = 3;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The sourceStream.
 
       
     
  
   
  getSourceStreamBytes() 
  
    
public   ByteString   getSourceStreamBytes ()  
   
   The Vision AI stream resource name.
 string source_stream = 3;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for sourceStream.
 
       
     
  
   
  getType() 
  
    
public   StreamAnnotationType   getType ()  
   
   The actual type of Annotation.
 .google.cloud.visionai.v1.StreamAnnotationType type = 4;
 
  
   
  getTypeValue() 
  
    
public   int   getTypeValue ()  
   
   The actual type of Annotation.
 .google.cloud.visionai.v1.StreamAnnotationType type = 4;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The enum numeric value on the wire for type.
 
       
     
  
   
  hasActiveZone() 
  
    
public   boolean   hasActiveZone ()  
   
   Annotation for type ACTIVE_ZONE
 .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the activeZone field is set.
 
       
     
  
   
  hasCrossingLine() 
  
    
public   boolean   hasCrossingLine ()  
   
   Annotation for type CROSSING_LINE
 .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the crossingLine field is set.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   StreamAnnotation . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   StreamAnnotation . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   StreamAnnotation . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]