Class Command.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Command.Builder>
com.google.cloud.workloadmanager.v1.Command.Builder
All Implemented Interfaces:
CommandOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Command

public static final class Command.Builder extends com.google.protobuf.GeneratedMessage.Builder<Command.Builder> implements CommandOrBuilder
 Command specifies the type of command to execute.
 
Protobuf type google.cloud.workloadmanager.v1.Command
  • 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<Command.Builder>
    • clear

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

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

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

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

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

      public Command.Builder mergeFrom(Command other)
    • isInitialized

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

      public Command.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<Command.Builder>
      Throws:
      IOException
    • getCommandTypeCase

      public Command.CommandTypeCase getCommandTypeCase()
      Specified by:
      getCommandTypeCase in interface CommandOrBuilder
    • clearCommandType

      public Command.Builder clearCommandType()
    • hasAgentCommand

      public boolean hasAgentCommand()
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
      Specified by:
      hasAgentCommand in interface CommandOrBuilder
      Returns:
      Whether the agentCommand field is set.
    • getAgentCommand

      public AgentCommand getAgentCommand()
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
      Specified by:
      getAgentCommand in interface CommandOrBuilder
      Returns:
      The agentCommand.
    • setAgentCommand

      public Command.Builder setAgentCommand(AgentCommand value)
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
    • setAgentCommand

      public Command.Builder setAgentCommand(AgentCommand.Builder builderForValue)
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
    • mergeAgentCommand

      public Command.Builder mergeAgentCommand(AgentCommand value)
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
    • clearAgentCommand

      public Command.Builder clearAgentCommand()
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
    • getAgentCommandBuilder

      public AgentCommand.Builder getAgentCommandBuilder()
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
    • getAgentCommandOrBuilder

      public AgentCommandOrBuilder getAgentCommandOrBuilder()
       AgentCommand specifies a one-time executable program for the agent to
       run.
       
      .google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;
      Specified by:
      getAgentCommandOrBuilder in interface CommandOrBuilder
    • hasShellCommand

      public boolean hasShellCommand()
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
      Specified by:
      hasShellCommand in interface CommandOrBuilder
      Returns:
      Whether the shellCommand field is set.
    • getShellCommand

      public ShellCommand getShellCommand()
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
      Specified by:
      getShellCommand in interface CommandOrBuilder
      Returns:
      The shellCommand.
    • setShellCommand

      public Command.Builder setShellCommand(ShellCommand value)
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
    • setShellCommand

      public Command.Builder setShellCommand(ShellCommand.Builder builderForValue)
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
    • mergeShellCommand

      public Command.Builder mergeShellCommand(ShellCommand value)
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
    • clearShellCommand

      public Command.Builder clearShellCommand()
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
    • getShellCommandBuilder

      public ShellCommand.Builder getShellCommandBuilder()
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
    • getShellCommandOrBuilder

      public ShellCommandOrBuilder getShellCommandOrBuilder()
       ShellCommand is invoked via the agent's command line executor.
       
      .google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;
      Specified by:
      getShellCommandOrBuilder in interface CommandOrBuilder