Class StreamWithAnnotation.Builder

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

public static final class StreamWithAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamWithAnnotation.Builder> implements StreamWithAnnotationOrBuilder
 Message describing Vision AI stream with application specific annotations.
 All the StreamAnnotation object inside this message MUST have unique id.
 
Protobuf type google.cloud.visionai.v1.StreamWithAnnotation
  • 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<StreamWithAnnotation.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<StreamWithAnnotation.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<StreamWithAnnotation.Builder>
    • getDefaultInstanceForType

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

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

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

      public StreamWithAnnotation.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<StreamWithAnnotation.Builder>
    • mergeFrom

    • isInitialized

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

      public StreamWithAnnotation.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<StreamWithAnnotation.Builder>
      Throws:
      IOException
    • getStream

      public String getStream()
       Vision AI Stream resource name.
       
      string stream = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getStream in interface StreamWithAnnotationOrBuilder
      Returns:
      The stream.
    • getStreamBytes

      public com.google.protobuf.ByteString getStreamBytes()
       Vision AI Stream resource name.
       
      string stream = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getStreamBytes in interface StreamWithAnnotationOrBuilder
      Returns:
      The bytes for stream.
    • setStream

      public StreamWithAnnotation.Builder setStream(String value)
       Vision AI Stream resource name.
       
      string stream = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The stream to set.
      Returns:
      This builder for chaining.
    • clearStream

      public StreamWithAnnotation.Builder clearStream()
       Vision AI Stream resource name.
       
      string stream = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setStreamBytes

      public StreamWithAnnotation.Builder setStreamBytes(com.google.protobuf.ByteString value)
       Vision AI Stream resource name.
       
      string stream = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for stream to set.
      Returns:
      This builder for chaining.
    • getApplicationAnnotationsList

      public List<StreamAnnotation> getApplicationAnnotationsList()
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
      Specified by:
      getApplicationAnnotationsList in interface StreamWithAnnotationOrBuilder
    • getApplicationAnnotationsCount

      public int getApplicationAnnotationsCount()
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
      Specified by:
      getApplicationAnnotationsCount in interface StreamWithAnnotationOrBuilder
    • getApplicationAnnotations

      public StreamAnnotation getApplicationAnnotations(int index)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
      Specified by:
      getApplicationAnnotations in interface StreamWithAnnotationOrBuilder
    • setApplicationAnnotations

      public StreamWithAnnotation.Builder setApplicationAnnotations(int index, StreamAnnotation value)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • setApplicationAnnotations

      public StreamWithAnnotation.Builder setApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • addApplicationAnnotations

      public StreamWithAnnotation.Builder addApplicationAnnotations(StreamAnnotation value)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • addApplicationAnnotations

      public StreamWithAnnotation.Builder addApplicationAnnotations(int index, StreamAnnotation value)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • addApplicationAnnotations

      public StreamWithAnnotation.Builder addApplicationAnnotations(StreamAnnotation.Builder builderForValue)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • addApplicationAnnotations

      public StreamWithAnnotation.Builder addApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • addAllApplicationAnnotations

      public StreamWithAnnotation.Builder addAllApplicationAnnotations(Iterable<? extends StreamAnnotation> values)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • clearApplicationAnnotations

      public StreamWithAnnotation.Builder clearApplicationAnnotations()
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • removeApplicationAnnotations

      public StreamWithAnnotation.Builder removeApplicationAnnotations(int index)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • getApplicationAnnotationsBuilder

      public StreamAnnotation.Builder getApplicationAnnotationsBuilder(int index)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • getApplicationAnnotationsOrBuilder

      public StreamAnnotationOrBuilder getApplicationAnnotationsOrBuilder(int index)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
      Specified by:
      getApplicationAnnotationsOrBuilder in interface StreamWithAnnotationOrBuilder
    • getApplicationAnnotationsOrBuilderList

      public List<? extends StreamAnnotationOrBuilder> getApplicationAnnotationsOrBuilderList()
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
      Specified by:
      getApplicationAnnotationsOrBuilderList in interface StreamWithAnnotationOrBuilder
    • addApplicationAnnotationsBuilder

      public StreamAnnotation.Builder addApplicationAnnotationsBuilder()
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • addApplicationAnnotationsBuilder

      public StreamAnnotation.Builder addApplicationAnnotationsBuilder(int index)
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • getApplicationAnnotationsBuilderList

      public List<StreamAnnotation.Builder> getApplicationAnnotationsBuilderList()
       Annotations that will be applied to the whole application.
       
      repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 2;
    • getNodeAnnotationsList

      public List<StreamWithAnnotation.NodeAnnotation> getNodeAnnotationsList()
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
      Specified by:
      getNodeAnnotationsList in interface StreamWithAnnotationOrBuilder
    • getNodeAnnotationsCount

      public int getNodeAnnotationsCount()
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
      Specified by:
      getNodeAnnotationsCount in interface StreamWithAnnotationOrBuilder
    • getNodeAnnotations

      public StreamWithAnnotation.NodeAnnotation getNodeAnnotations(int index)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
      Specified by:
      getNodeAnnotations in interface StreamWithAnnotationOrBuilder
    • setNodeAnnotations

      public StreamWithAnnotation.Builder setNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation value)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • setNodeAnnotations

      public StreamWithAnnotation.Builder setNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation.Builder builderForValue)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • addNodeAnnotations

       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • addNodeAnnotations

      public StreamWithAnnotation.Builder addNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation value)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • addNodeAnnotations

       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • addNodeAnnotations

      public StreamWithAnnotation.Builder addNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation.Builder builderForValue)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • addAllNodeAnnotations

      public StreamWithAnnotation.Builder addAllNodeAnnotations(Iterable<? extends StreamWithAnnotation.NodeAnnotation> values)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • clearNodeAnnotations

      public StreamWithAnnotation.Builder clearNodeAnnotations()
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • removeNodeAnnotations

      public StreamWithAnnotation.Builder removeNodeAnnotations(int index)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • getNodeAnnotationsBuilder

      public StreamWithAnnotation.NodeAnnotation.Builder getNodeAnnotationsBuilder(int index)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • getNodeAnnotationsOrBuilder

      public StreamWithAnnotation.NodeAnnotationOrBuilder getNodeAnnotationsOrBuilder(int index)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
      Specified by:
      getNodeAnnotationsOrBuilder in interface StreamWithAnnotationOrBuilder
    • getNodeAnnotationsOrBuilderList

      public List<? extends StreamWithAnnotation.NodeAnnotationOrBuilder> getNodeAnnotationsOrBuilderList()
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
      Specified by:
      getNodeAnnotationsOrBuilderList in interface StreamWithAnnotationOrBuilder
    • addNodeAnnotationsBuilder

      public StreamWithAnnotation.NodeAnnotation.Builder addNodeAnnotationsBuilder()
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • addNodeAnnotationsBuilder

      public StreamWithAnnotation.NodeAnnotation.Builder addNodeAnnotationsBuilder(int index)
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
    • getNodeAnnotationsBuilderList

      public List<StreamWithAnnotation.NodeAnnotation.Builder> getNodeAnnotationsBuilderList()
       Annotations that will be applied to the specific node of the application.
       If the same type of the annotations is applied to both application and
       node, the node annotation will be added in addition to the global
       application one.
       For example, if there is one active zone annotation for the whole
       application and one active zone annotation for the Occupancy Analytic
       processor, then the Occupancy Analytic processor will have two active zones
       defined.
       
      repeated .google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;