Class RunTaskRequest.Builder

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

    public static final class RunTaskRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RunTaskRequest.Builder>
    implements RunTaskRequestOrBuilder
    Protobuf type google.cloud.dataplex.v1.RunTaskRequest
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RunTaskRequest.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RunTaskRequest.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RunTaskRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public RunTaskRequest.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<RunTaskRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The resource name of the task:
         `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface RunTaskRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the task:
         `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface RunTaskRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public RunTaskRequest.Builder setName​(String value)
         Required. The resource name of the task:
         `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public RunTaskRequest.Builder clearName()
         Required. The resource name of the task:
         `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public RunTaskRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The resource name of the task:
         `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: RunTaskRequestOrBuilder
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface RunTaskRequestOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface RunTaskRequestOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface RunTaskRequestOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface RunTaskRequestOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface RunTaskRequestOrBuilder
      • removeLabels

        public RunTaskRequest.Builder removeLabels​(String key)
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public RunTaskRequest.Builder putLabels​(String key,
                                                String value)
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        public RunTaskRequest.Builder putAllLabels​(Map<String,​String> values)
         Optional. User-defined labels for the task. If the map is left empty, the
         task will run with existing labels from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         labels. If the map contains an entry with an existing label key in task
         definition, the task will run with new label value for that entry. Clearing
         an existing label will require label value to be explicitly set to a hyphen
         "-". The label value cannot be empty.
         
        map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getArgsCount

        public int getArgsCount()
        Description copied from interface: RunTaskRequestOrBuilder
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArgsCount in interface RunTaskRequestOrBuilder
      • containsArgs

        public boolean containsArgs​(String key)
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsArgs in interface RunTaskRequestOrBuilder
      • getArgsMap

        public Map<String,​String> getArgsMap()
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArgsMap in interface RunTaskRequestOrBuilder
      • getArgsOrDefault

        public String getArgsOrDefault​(String key,
                                       String defaultValue)
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArgsOrDefault in interface RunTaskRequestOrBuilder
      • getArgsOrThrow

        public String getArgsOrThrow​(String key)
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArgsOrThrow in interface RunTaskRequestOrBuilder
      • removeArgs

        public RunTaskRequest.Builder removeArgs​(String key)
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableArgs

        @Deprecated
        public Map<String,​String> getMutableArgs()
        Deprecated.
        Use alternate mutation accessors instead.
      • putArgs

        public RunTaskRequest.Builder putArgs​(String key,
                                              String value)
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
      • putAllArgs

        public RunTaskRequest.Builder putAllArgs​(Map<String,​String> values)
         Optional. Execution spec arguments. If the map is left empty, the task will
         run with existing execution spec args from task definition. If the map
         contains an entry with a new key, the same will be added to existing set of
         args. If the map contains an entry with an existing arg key in task
         definition, the task will run with new arg value for that entry. Clearing
         an existing arg will require arg value to be explicitly set to a hyphen
         "-". The arg value cannot be empty.
         
        map<string, string> args = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

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

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