Class AgentCommand.Builder

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

public static final class AgentCommand.Builder extends com.google.protobuf.GeneratedMessage.Builder<AgentCommand.Builder> implements AgentCommandOrBuilder
 An AgentCommand specifies a one-time executable program for the agent to run.
 
Protobuf type google.cloud.workloadmanager.v1.AgentCommand
  • 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<AgentCommand.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public AgentCommand.Builder mergeFrom(AgentCommand other)
    • isInitialized

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

      public AgentCommand.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<AgentCommand.Builder>
      Throws:
      IOException
    • getCommand

      public String getCommand()
       The name of the agent one-time executable that will be invoked.
       
      string command = 1;
      Specified by:
      getCommand in interface AgentCommandOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
       The name of the agent one-time executable that will be invoked.
       
      string command = 1;
      Specified by:
      getCommandBytes in interface AgentCommandOrBuilder
      Returns:
      The bytes for command.
    • setCommand

      public AgentCommand.Builder setCommand(String value)
       The name of the agent one-time executable that will be invoked.
       
      string command = 1;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public AgentCommand.Builder clearCommand()
       The name of the agent one-time executable that will be invoked.
       
      string command = 1;
      Returns:
      This builder for chaining.
    • setCommandBytes

      public AgentCommand.Builder setCommandBytes(com.google.protobuf.ByteString value)
       The name of the agent one-time executable that will be invoked.
       
      string command = 1;
      Parameters:
      value - The bytes for command to set.
      Returns:
      This builder for chaining.
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: AgentCommandOrBuilder
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
      Specified by:
      getParametersCount in interface AgentCommandOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
      Specified by:
      containsParameters in interface AgentCommandOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface AgentCommandOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
      Specified by:
      getParametersMap in interface AgentCommandOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
      Specified by:
      getParametersOrDefault in interface AgentCommandOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
      Specified by:
      getParametersOrThrow in interface AgentCommandOrBuilder
    • clearParameters

      public AgentCommand.Builder clearParameters()
    • removeParameters

      public AgentCommand.Builder removeParameters(String key)
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
    • getMutableParameters

      @Deprecated public Map<String,String> getMutableParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

      public AgentCommand.Builder putParameters(String key, String value)
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;
    • putAllParameters

      public AgentCommand.Builder putAllParameters(Map<String,String> values)
       A map of key/value pairs that can be used to specify
       additional one-time executable settings.
       
      map<string, string> parameters = 2;