Interface Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command, Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder
Enclosing class:
Compute.CreateInstanceRequest.ExperimentalFeatures.Hook

public static interface Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    A set of environment values to be used as the command's environment.
    getArgs(int index)
    A set of arguments to pass to the command invocation.
    com.google.protobuf.ByteString
    getArgsBytes(int index)
    A set of arguments to pass to the command invocation.
    int
    A set of arguments to pass to the command invocation.
    A set of arguments to pass to the command invocation.
    string command = 1;
    com.google.protobuf.ByteString
    string command = 1;
    Deprecated.
    int
    A set of environment values to be used as the command's environment.
    A set of environment values to be used as the command's environment.
    A set of environment values to be used as the command's environment.
    A set of environment values to be used as the command's environment.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getCommand

      String getCommand()
      string command = 1;
      Returns:
      The command.
    • getCommandBytes

      com.google.protobuf.ByteString getCommandBytes()
      string command = 1;
      Returns:
      The bytes for command.
    • getArgsList

      List<String> getArgsList()
       A set of arguments to pass to the command invocation.
      
       Example: `["--foobar"]`
       
      repeated string args = 2;
      Returns:
      A list containing the args.
    • getArgsCount

      int getArgsCount()
       A set of arguments to pass to the command invocation.
      
       Example: `["--foobar"]`
       
      repeated string args = 2;
      Returns:
      The count of args.
    • getArgs

      String getArgs(int index)
       A set of arguments to pass to the command invocation.
      
       Example: `["--foobar"]`
       
      repeated string args = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The args at the given index.
    • getArgsBytes

      com.google.protobuf.ByteString getArgsBytes(int index)
       A set of arguments to pass to the command invocation.
      
       Example: `["--foobar"]`
       
      repeated string args = 2;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the args at the given index.
    • getEnvironmentCount

      int getEnvironmentCount()
       A set of environment values to be used as the command's environment.
      
       These set of environment variables are added in addition to a
       system-specified set of environment variables.
      
       Example: `{"FOOBAR": "1"}`
       
      map<string, string> environment = 3;
    • containsEnvironment

      boolean containsEnvironment(String key)
       A set of environment values to be used as the command's environment.
      
       These set of environment variables are added in addition to a
       system-specified set of environment variables.
      
       Example: `{"FOOBAR": "1"}`
       
      map<string, string> environment = 3;
    • getEnvironment

      @Deprecated Map<String,String> getEnvironment()
      Deprecated.
      Use getEnvironmentMap() instead.
    • getEnvironmentMap

      Map<String,String> getEnvironmentMap()
       A set of environment values to be used as the command's environment.
      
       These set of environment variables are added in addition to a
       system-specified set of environment variables.
      
       Example: `{"FOOBAR": "1"}`
       
      map<string, string> environment = 3;
    • getEnvironmentOrDefault

      String getEnvironmentOrDefault(String key, String defaultValue)
       A set of environment values to be used as the command's environment.
      
       These set of environment variables are added in addition to a
       system-specified set of environment variables.
      
       Example: `{"FOOBAR": "1"}`
       
      map<string, string> environment = 3;
    • getEnvironmentOrThrow

      String getEnvironmentOrThrow(String key)
       A set of environment values to be used as the command's environment.
      
       These set of environment variables are added in addition to a
       system-specified set of environment variables.
      
       Example: `{"FOOBAR": "1"}`
       
      map<string, string> environment = 3;