Class ResourceAnnotations.Builder

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

public static final class ResourceAnnotations.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceAnnotations.Builder> implements ResourceAnnotationsOrBuilder
 Message describing general annotation for resources.
 
Protobuf type google.cloud.visionai.v1.ResourceAnnotations
  • 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<ResourceAnnotations.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<ResourceAnnotations.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<ResourceAnnotations.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ResourceAnnotations.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<ResourceAnnotations.Builder>
      Throws:
      IOException
    • getApplicationAnnotationsList

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public List<ApplicationNodeAnnotation> 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.ApplicationNodeAnnotation node_annotations = 2;
      Specified by:
      getNodeAnnotationsList in interface ResourceAnnotationsOrBuilder
    • 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.ApplicationNodeAnnotation node_annotations = 2;
      Specified by:
      getNodeAnnotationsCount in interface ResourceAnnotationsOrBuilder
    • getNodeAnnotations

      public ApplicationNodeAnnotation 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.ApplicationNodeAnnotation node_annotations = 2;
      Specified by:
      getNodeAnnotations in interface ResourceAnnotationsOrBuilder
    • setNodeAnnotations

      public ResourceAnnotations.Builder setNodeAnnotations(int index, ApplicationNodeAnnotation 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.ApplicationNodeAnnotation node_annotations = 2;
    • setNodeAnnotations

      public ResourceAnnotations.Builder setNodeAnnotations(int index, ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;
    • addNodeAnnotations

      public ResourceAnnotations.Builder addNodeAnnotations(ApplicationNodeAnnotation 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.ApplicationNodeAnnotation node_annotations = 2;
    • addNodeAnnotations

      public ResourceAnnotations.Builder addNodeAnnotations(int index, ApplicationNodeAnnotation 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.ApplicationNodeAnnotation node_annotations = 2;
    • addNodeAnnotations

      public ResourceAnnotations.Builder addNodeAnnotations(ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;
    • addNodeAnnotations

      public ResourceAnnotations.Builder addNodeAnnotations(int index, ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;
    • addAllNodeAnnotations

      public ResourceAnnotations.Builder addAllNodeAnnotations(Iterable<? extends ApplicationNodeAnnotation> 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.ApplicationNodeAnnotation node_annotations = 2;
    • clearNodeAnnotations

      public ResourceAnnotations.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.ApplicationNodeAnnotation node_annotations = 2;
    • removeNodeAnnotations

      public ResourceAnnotations.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.ApplicationNodeAnnotation node_annotations = 2;
    • getNodeAnnotationsBuilder

      public ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;
    • getNodeAnnotationsOrBuilder

      public ApplicationNodeAnnotationOrBuilder 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.ApplicationNodeAnnotation node_annotations = 2;
      Specified by:
      getNodeAnnotationsOrBuilder in interface ResourceAnnotationsOrBuilder
    • getNodeAnnotationsOrBuilderList

      public List<? extends ApplicationNodeAnnotationOrBuilder> 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.ApplicationNodeAnnotation node_annotations = 2;
      Specified by:
      getNodeAnnotationsOrBuilderList in interface ResourceAnnotationsOrBuilder
    • addNodeAnnotationsBuilder

      public ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;
    • addNodeAnnotationsBuilder

      public ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;
    • getNodeAnnotationsBuilderList

      public List<ApplicationNodeAnnotation.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.ApplicationNodeAnnotation node_annotations = 2;