Class 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.GeneratedMessageV3.Builder<EventConfig.Builder>
    implements EventConfigOrBuilder
     Config for video event human labeling task.
     
    Protobuf type google.cloud.datalabeling.v1beta1.EventConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public EventConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>
      • setField

        public EventConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>
      • clearField

        public EventConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>
      • clearOneof

        public EventConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>
      • setRepeatedField

        public EventConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>
      • addRepeatedField

        public EventConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final EventConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>
      • mergeUnknownFields

        public final EventConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventConfig.Builder>