Class StreamAnnotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
com.google.cloud.visionai.v1.StreamAnnotation.Builder
All Implemented Interfaces:
StreamAnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StreamAnnotation

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

      public StreamAnnotation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
    • getDefaultInstanceForType

      public StreamAnnotation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public StreamAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamAnnotation.Builder>
    • mergeFrom

      public StreamAnnotation.Builder mergeFrom(StreamAnnotation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
    • mergeFrom

      public StreamAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamAnnotation.Builder>
      Throws:
      IOException
    • getAnnotationPayloadCase

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

      public StreamAnnotation.Builder clearAnnotationPayload()
    • 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.
    • setActiveZone

      public StreamAnnotation.Builder setActiveZone(NormalizedPolygon value)
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
    • setActiveZone

      public StreamAnnotation.Builder setActiveZone(NormalizedPolygon.Builder builderForValue)
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
    • mergeActiveZone

      public StreamAnnotation.Builder mergeActiveZone(NormalizedPolygon value)
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
    • clearActiveZone

      public StreamAnnotation.Builder clearActiveZone()
       Annotation for type ACTIVE_ZONE
       
      .google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;
    • getActiveZoneBuilder

      public NormalizedPolygon.Builder getActiveZoneBuilder()
       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;
      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.
    • setCrossingLine

      public StreamAnnotation.Builder setCrossingLine(NormalizedPolyline value)
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
    • setCrossingLine

      public StreamAnnotation.Builder setCrossingLine(NormalizedPolyline.Builder builderForValue)
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
    • mergeCrossingLine

      public StreamAnnotation.Builder mergeCrossingLine(NormalizedPolyline value)
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
    • clearCrossingLine

      public StreamAnnotation.Builder clearCrossingLine()
       Annotation for type CROSSING_LINE
       
      .google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;
    • getCrossingLineBuilder

      public NormalizedPolyline.Builder getCrossingLineBuilder()
       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;
      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.
    • setId

      public StreamAnnotation.Builder setId(String value)
       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;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public StreamAnnotation.Builder clearId()
       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:
      This builder for chaining.
    • setIdBytes

      public StreamAnnotation.Builder setIdBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDisplayName

      public StreamAnnotation.Builder setDisplayName(String value)
       User-friendly name for the annotation.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public StreamAnnotation.Builder clearDisplayName()
       User-friendly name for the annotation.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public StreamAnnotation.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       User-friendly name for the annotation.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSourceStream

      public StreamAnnotation.Builder setSourceStream(String value)
       The Vision AI stream resource name.
       
      string source_stream = 3;
      Parameters:
      value - The sourceStream to set.
      Returns:
      This builder for chaining.
    • clearSourceStream

      public StreamAnnotation.Builder clearSourceStream()
       The Vision AI stream resource name.
       
      string source_stream = 3;
      Returns:
      This builder for chaining.
    • setSourceStreamBytes

      public StreamAnnotation.Builder setSourceStreamBytes(com.google.protobuf.ByteString value)
       The Vision AI stream resource name.
       
      string source_stream = 3;
      Parameters:
      value - The bytes for sourceStream to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTypeValue

      public StreamAnnotation.Builder setTypeValue(int value)
       The actual type of Annotation.
       
      .google.cloud.visionai.v1.StreamAnnotationType type = 4;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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.
    • setType

       The actual type of Annotation.
       
      .google.cloud.visionai.v1.StreamAnnotationType type = 4;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public StreamAnnotation.Builder clearType()
       The actual type of Annotation.
       
      .google.cloud.visionai.v1.StreamAnnotationType type = 4;
      Returns:
      This builder for chaining.