Class LabelVideoRequest.Builder

  • All Implemented Interfaces:
    LabelVideoRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LabelVideoRequest

    public static final class LabelVideoRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LabelVideoRequest.Builder>
    implements LabelVideoRequestOrBuilder
     Request message for LabelVideo.
     
    Protobuf type google.cloud.datalabeling.v1beta1.LabelVideoRequest
    • 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<LabelVideoRequest.Builder>
      • clear

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

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

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

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

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
      • setField

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
      • clearField

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
      • clearOneof

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
      • setRepeatedField

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
      • addRepeatedField

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

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
      • isInitialized

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

        public LabelVideoRequest.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<LabelVideoRequest.Builder>
        Throws:
        IOException
      • hasVideoClassificationConfig

        public boolean hasVideoClassificationConfig()
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
        Specified by:
        hasVideoClassificationConfig in interface LabelVideoRequestOrBuilder
        Returns:
        Whether the videoClassificationConfig field is set.
      • getVideoClassificationConfig

        public VideoClassificationConfig getVideoClassificationConfig()
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
        Specified by:
        getVideoClassificationConfig in interface LabelVideoRequestOrBuilder
        Returns:
        The videoClassificationConfig.
      • setVideoClassificationConfig

        public LabelVideoRequest.Builder setVideoClassificationConfig​(VideoClassificationConfig value)
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
      • setVideoClassificationConfig

        public LabelVideoRequest.Builder setVideoClassificationConfig​(VideoClassificationConfig.Builder builderForValue)
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
      • mergeVideoClassificationConfig

        public LabelVideoRequest.Builder mergeVideoClassificationConfig​(VideoClassificationConfig value)
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
      • clearVideoClassificationConfig

        public LabelVideoRequest.Builder clearVideoClassificationConfig()
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
      • getVideoClassificationConfigBuilder

        public VideoClassificationConfig.Builder getVideoClassificationConfigBuilder()
         Configuration for video classification task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;
      • hasObjectDetectionConfig

        public boolean hasObjectDetectionConfig()
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
        Specified by:
        hasObjectDetectionConfig in interface LabelVideoRequestOrBuilder
        Returns:
        Whether the objectDetectionConfig field is set.
      • getObjectDetectionConfig

        public ObjectDetectionConfig getObjectDetectionConfig()
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
        Specified by:
        getObjectDetectionConfig in interface LabelVideoRequestOrBuilder
        Returns:
        The objectDetectionConfig.
      • setObjectDetectionConfig

        public LabelVideoRequest.Builder setObjectDetectionConfig​(ObjectDetectionConfig value)
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
      • setObjectDetectionConfig

        public LabelVideoRequest.Builder setObjectDetectionConfig​(ObjectDetectionConfig.Builder builderForValue)
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
      • mergeObjectDetectionConfig

        public LabelVideoRequest.Builder mergeObjectDetectionConfig​(ObjectDetectionConfig value)
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
      • clearObjectDetectionConfig

        public LabelVideoRequest.Builder clearObjectDetectionConfig()
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
      • getObjectDetectionConfigBuilder

        public ObjectDetectionConfig.Builder getObjectDetectionConfigBuilder()
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
      • getObjectDetectionConfigOrBuilder

        public ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder()
         Configuration for video object detection task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;
        Specified by:
        getObjectDetectionConfigOrBuilder in interface LabelVideoRequestOrBuilder
      • hasObjectTrackingConfig

        public boolean hasObjectTrackingConfig()
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
        Specified by:
        hasObjectTrackingConfig in interface LabelVideoRequestOrBuilder
        Returns:
        Whether the objectTrackingConfig field is set.
      • getObjectTrackingConfig

        public ObjectTrackingConfig getObjectTrackingConfig()
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
        Specified by:
        getObjectTrackingConfig in interface LabelVideoRequestOrBuilder
        Returns:
        The objectTrackingConfig.
      • setObjectTrackingConfig

        public LabelVideoRequest.Builder setObjectTrackingConfig​(ObjectTrackingConfig value)
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
      • setObjectTrackingConfig

        public LabelVideoRequest.Builder setObjectTrackingConfig​(ObjectTrackingConfig.Builder builderForValue)
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
      • mergeObjectTrackingConfig

        public LabelVideoRequest.Builder mergeObjectTrackingConfig​(ObjectTrackingConfig value)
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
      • clearObjectTrackingConfig

        public LabelVideoRequest.Builder clearObjectTrackingConfig()
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
      • getObjectTrackingConfigBuilder

        public ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder()
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
      • getObjectTrackingConfigOrBuilder

        public ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder()
         Configuration for video object tracking task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;
        Specified by:
        getObjectTrackingConfigOrBuilder in interface LabelVideoRequestOrBuilder
      • hasEventConfig

        public boolean hasEventConfig()
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
        Specified by:
        hasEventConfig in interface LabelVideoRequestOrBuilder
        Returns:
        Whether the eventConfig field is set.
      • getEventConfig

        public EventConfig getEventConfig()
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
        Specified by:
        getEventConfig in interface LabelVideoRequestOrBuilder
        Returns:
        The eventConfig.
      • setEventConfig

        public LabelVideoRequest.Builder setEventConfig​(EventConfig value)
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      • setEventConfig

        public LabelVideoRequest.Builder setEventConfig​(EventConfig.Builder builderForValue)
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      • mergeEventConfig

        public LabelVideoRequest.Builder mergeEventConfig​(EventConfig value)
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      • clearEventConfig

        public LabelVideoRequest.Builder clearEventConfig()
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      • getEventConfigBuilder

        public EventConfig.Builder getEventConfigBuilder()
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      • getEventConfigOrBuilder

        public EventConfigOrBuilder getEventConfigOrBuilder()
         Configuration for video event task.
         One of video_classification_config, object_detection_config,
         object_tracking_config and event_config is required.
         
        .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
        Specified by:
        getEventConfigOrBuilder in interface LabelVideoRequestOrBuilder
      • getParent

        public String getParent()
         Required. Name of the dataset to request labeling task, format:
         projects/{project_id}/datasets/{dataset_id}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface LabelVideoRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. Name of the dataset to request labeling task, format:
         projects/{project_id}/datasets/{dataset_id}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface LabelVideoRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public LabelVideoRequest.Builder setParent​(String value)
         Required. Name of the dataset to request labeling task, format:
         projects/{project_id}/datasets/{dataset_id}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public LabelVideoRequest.Builder clearParent()
         Required. Name of the dataset to request labeling task, format:
         projects/{project_id}/datasets/{dataset_id}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public LabelVideoRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. Name of the dataset to request labeling task, format:
         projects/{project_id}/datasets/{dataset_id}
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasBasicConfig

        public boolean hasBasicConfig()
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasBasicConfig in interface LabelVideoRequestOrBuilder
        Returns:
        Whether the basicConfig field is set.
      • getBasicConfig

        public HumanAnnotationConfig getBasicConfig()
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getBasicConfig in interface LabelVideoRequestOrBuilder
        Returns:
        The basicConfig.
      • setBasicConfig

        public LabelVideoRequest.Builder setBasicConfig​(HumanAnnotationConfig value)
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • setBasicConfig

        public LabelVideoRequest.Builder setBasicConfig​(HumanAnnotationConfig.Builder builderForValue)
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeBasicConfig

        public LabelVideoRequest.Builder mergeBasicConfig​(HumanAnnotationConfig value)
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearBasicConfig

        public LabelVideoRequest.Builder clearBasicConfig()
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • getBasicConfigBuilder

        public HumanAnnotationConfig.Builder getBasicConfigBuilder()
         Required. Basic human annotation config.
         
        .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • getFeatureValue

        public int getFeatureValue()
         Required. The type of video labeling task.
         
        .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFeatureValue in interface LabelVideoRequestOrBuilder
        Returns:
        The enum numeric value on the wire for feature.
      • setFeatureValue

        public LabelVideoRequest.Builder setFeatureValue​(int value)
         Required. The type of video labeling task.
         
        .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for feature to set.
        Returns:
        This builder for chaining.
      • getFeature

        public LabelVideoRequest.Feature getFeature()
         Required. The type of video labeling task.
         
        .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFeature in interface LabelVideoRequestOrBuilder
        Returns:
        The feature.
      • setFeature

        public LabelVideoRequest.Builder setFeature​(LabelVideoRequest.Feature value)
         Required. The type of video labeling task.
         
        .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The feature to set.
        Returns:
        This builder for chaining.
      • clearFeature

        public LabelVideoRequest.Builder clearFeature()
         Required. The type of video labeling task.
         
        .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final LabelVideoRequest.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<LabelVideoRequest.Builder>
      • mergeUnknownFields

        public final LabelVideoRequest.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<LabelVideoRequest.Builder>