Package namespace.cloud.compute.v1beta
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 TypeMethodDescriptionbooleanA 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.ByteStringgetArgsBytes(int index) A set of arguments to pass to the command invocation.intA 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.ByteStringstring command = 1;Deprecated.intA 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.getEnvironmentOrDefault(String key, String defaultValue) 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
isInitializedMethods 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
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
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
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.UsegetEnvironmentMap()instead. -
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
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
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;
-