Class EventConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EventConfig.Builder>
com.google.cloud.datalabeling.v1beta1.EventConfig.Builder
All Implemented Interfaces:
EventConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EventConfig

public static final class EventConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventConfig.Builder> implements EventConfigOrBuilder
 Config for video event human labeling task.
 
Protobuf type google.cloud.datalabeling.v1beta1.EventConfig
  • 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<EventConfig.Builder>
    • clear

      public EventConfig.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<EventConfig.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<EventConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public EventConfig.Builder mergeFrom(EventConfig other)
    • isInitialized

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

      public EventConfig.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<EventConfig.Builder>
      Throws:
      IOException
    • getAnnotationSpecSetsList

      public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList()
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationSpecSetsList in interface EventConfigOrBuilder
      Returns:
      A list containing the annotationSpecSets.
    • getAnnotationSpecSetsCount

      public int getAnnotationSpecSetsCount()
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationSpecSetsCount in interface EventConfigOrBuilder
      Returns:
      The count of annotationSpecSets.
    • getAnnotationSpecSets

      public String getAnnotationSpecSets(int index)
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationSpecSets in interface EventConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The annotationSpecSets at the given index.
    • getAnnotationSpecSetsBytes

      public com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index)
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationSpecSetsBytes in interface EventConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the annotationSpecSets at the given index.
    • setAnnotationSpecSets

      public EventConfig.Builder setAnnotationSpecSets(int index, String value)
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The annotationSpecSets to set.
      Returns:
      This builder for chaining.
    • addAnnotationSpecSets

      public EventConfig.Builder addAnnotationSpecSets(String value)
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The annotationSpecSets to add.
      Returns:
      This builder for chaining.
    • addAllAnnotationSpecSets

      public EventConfig.Builder addAllAnnotationSpecSets(Iterable<String> values)
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The annotationSpecSets to add.
      Returns:
      This builder for chaining.
    • clearAnnotationSpecSets

      public EventConfig.Builder clearAnnotationSpecSets()
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addAnnotationSpecSetsBytes

      public EventConfig.Builder addAnnotationSpecSetsBytes(com.google.protobuf.ByteString value)
       Required. The list of annotation spec set resource name. Similar to video
       classification, we support selecting event from multiple AnnotationSpecSet
       at the same time.
       
      repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the annotationSpecSets to add.
      Returns:
      This builder for chaining.