Class ExecuteAirflowCommandRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExecuteAirflowCommandRequest.Builder>
com.google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest.Builder
All Implemented Interfaces:
ExecuteAirflowCommandRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExecuteAirflowCommandRequest

public static final class ExecuteAirflowCommandRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExecuteAirflowCommandRequest.Builder> implements ExecuteAirflowCommandRequestOrBuilder
 Execute Airflow Command request.
 
Protobuf type google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandRequest
  • 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<ExecuteAirflowCommandRequest.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<ExecuteAirflowCommandRequest.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<ExecuteAirflowCommandRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public ExecuteAirflowCommandRequest.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<ExecuteAirflowCommandRequest.Builder>
      Throws:
      IOException
    • getEnvironment

      public String getEnvironment()
       The resource name of the environment in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
       
      string environment = 1;
      Specified by:
      getEnvironment in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The environment.
    • getEnvironmentBytes

      public com.google.protobuf.ByteString getEnvironmentBytes()
       The resource name of the environment in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
       
      string environment = 1;
      Specified by:
      getEnvironmentBytes in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The bytes for environment.
    • setEnvironment

      public ExecuteAirflowCommandRequest.Builder setEnvironment(String value)
       The resource name of the environment in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
       
      string environment = 1;
      Parameters:
      value - The environment to set.
      Returns:
      This builder for chaining.
    • clearEnvironment

      public ExecuteAirflowCommandRequest.Builder clearEnvironment()
       The resource name of the environment in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
       
      string environment = 1;
      Returns:
      This builder for chaining.
    • setEnvironmentBytes

      public ExecuteAirflowCommandRequest.Builder setEnvironmentBytes(com.google.protobuf.ByteString value)
       The resource name of the environment in the form:
       "projects/{projectId}/locations/{locationId}/environments/{environmentId}".
       
      string environment = 1;
      Parameters:
      value - The bytes for environment to set.
      Returns:
      This builder for chaining.
    • getCommand

      public String getCommand()
       Airflow command.
       
      string command = 2;
      Specified by:
      getCommand in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
       Airflow command.
       
      string command = 2;
      Specified by:
      getCommandBytes in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The bytes for command.
    • setCommand

      public ExecuteAirflowCommandRequest.Builder setCommand(String value)
       Airflow command.
       
      string command = 2;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public ExecuteAirflowCommandRequest.Builder clearCommand()
       Airflow command.
       
      string command = 2;
      Returns:
      This builder for chaining.
    • setCommandBytes

      public ExecuteAirflowCommandRequest.Builder setCommandBytes(com.google.protobuf.ByteString value)
       Airflow command.
       
      string command = 2;
      Parameters:
      value - The bytes for command to set.
      Returns:
      This builder for chaining.
    • getSubcommand

      public String getSubcommand()
       Airflow subcommand.
       
      string subcommand = 3;
      Specified by:
      getSubcommand in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The subcommand.
    • getSubcommandBytes

      public com.google.protobuf.ByteString getSubcommandBytes()
       Airflow subcommand.
       
      string subcommand = 3;
      Specified by:
      getSubcommandBytes in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The bytes for subcommand.
    • setSubcommand

      public ExecuteAirflowCommandRequest.Builder setSubcommand(String value)
       Airflow subcommand.
       
      string subcommand = 3;
      Parameters:
      value - The subcommand to set.
      Returns:
      This builder for chaining.
    • clearSubcommand

      public ExecuteAirflowCommandRequest.Builder clearSubcommand()
       Airflow subcommand.
       
      string subcommand = 3;
      Returns:
      This builder for chaining.
    • setSubcommandBytes

      public ExecuteAirflowCommandRequest.Builder setSubcommandBytes(com.google.protobuf.ByteString value)
       Airflow subcommand.
       
      string subcommand = 3;
      Parameters:
      value - The bytes for subcommand to set.
      Returns:
      This builder for chaining.
    • getParametersList

      public com.google.protobuf.ProtocolStringList getParametersList()
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Specified by:
      getParametersList in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      A list containing the parameters.
    • getParametersCount

      public int getParametersCount()
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Specified by:
      getParametersCount in interface ExecuteAirflowCommandRequestOrBuilder
      Returns:
      The count of parameters.
    • getParameters

      public String getParameters(int index)
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Specified by:
      getParameters in interface ExecuteAirflowCommandRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The parameters at the given index.
    • getParametersBytes

      public com.google.protobuf.ByteString getParametersBytes(int index)
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Specified by:
      getParametersBytes in interface ExecuteAirflowCommandRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the parameters at the given index.
    • setParameters

      public ExecuteAirflowCommandRequest.Builder setParameters(int index, String value)
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Parameters:
      index - The index to set the value at.
      value - The parameters to set.
      Returns:
      This builder for chaining.
    • addParameters

      public ExecuteAirflowCommandRequest.Builder addParameters(String value)
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Parameters:
      value - The parameters to add.
      Returns:
      This builder for chaining.
    • addAllParameters

      public ExecuteAirflowCommandRequest.Builder addAllParameters(Iterable<String> values)
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Parameters:
      values - The parameters to add.
      Returns:
      This builder for chaining.
    • clearParameters

      public ExecuteAirflowCommandRequest.Builder clearParameters()
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Returns:
      This builder for chaining.
    • addParametersBytes

      public ExecuteAirflowCommandRequest.Builder addParametersBytes(com.google.protobuf.ByteString value)
       Parameters for the Airflow command/subcommand as an array of arguments.
       It may contain positional arguments like `["my-dag-id"]`, key-value
       parameters like `["--foo=bar"]` or `["--foo","bar"]`,
       or other flags like `["-f"]`.
       
      repeated string parameters = 4;
      Parameters:
      value - The bytes of the parameters to add.
      Returns:
      This builder for chaining.