Class RunTaskRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RunTaskRequest.Builder>
com.google.cloud.dataplex.v1.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.GeneratedMessage.Builder<RunTaskRequest.Builder> implements RunTaskRequestOrBuilder
Protobuf type google.cloud.dataplex.v1.RunTaskRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<RunTaskRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<RunTaskRequest.Builder>
    • internalGetFieldAccessorTable

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

      public RunTaskRequest.Builder mergeFrom(RunTaskRequest other)
    • isInitialized

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

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels 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
    • clearLabels

      public RunTaskRequest.Builder clearLabels()
    • 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
    • getArgs

      @Deprecated public Map<String,String> getArgs()
      Deprecated.
      Use getArgsMap() instead.
      Specified by:
      getArgs 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
    • clearArgs

      public RunTaskRequest.Builder clearArgs()
    • 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];