Package namespace.cloud.compute.v1beta
Class Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
namespace.cloud.compute.v1beta.Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
- Enclosing class:
Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command
public static final class Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
implements Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
Protobuf type
namespace.cloud.compute.v1beta.CreateInstanceRequest.ExperimentalFeatures.Hook.Command-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<String> values) A set of arguments to pass to the command invocation.A set of arguments to pass to the command invocation.addArgsBytes(com.google.protobuf.ByteString value) A set of arguments to pass to the command invocation.build()clear()A set of arguments to pass to the command invocation.string command = 1;booleanA 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.com.google.protobuf.ProtocolStringListA set of arguments to pass to the command invocation.string command = 1;com.google.protobuf.ByteStringstring command = 1;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.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.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllEnvironment(Map<String, String> values) A set of environment values to be used as the command's environment.putEnvironment(String key, String value) A set of environment values to be used as the command's environment.removeEnvironment(String key) A set of environment values to be used as the command's environment.A set of arguments to pass to the command invocation.setCommand(String value) string command = 1;setCommandBytes(com.google.protobuf.ByteString value) string command = 1;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>
-
mergeFrom
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder>- Throws:
IOException
-
getCommand
string command = 1;- Specified by:
getCommandin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder- Returns:
- The command.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes()string command = 1;- Specified by:
getCommandBytesin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder- Returns:
- The bytes for command.
-
setCommand
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder setCommand(String value) string command = 1;- Parameters:
value- The command to set.- Returns:
- This builder for chaining.
-
clearCommand
string command = 1;- Returns:
- This builder for chaining.
-
setCommandBytes
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder setCommandBytes(com.google.protobuf.ByteString value) string command = 1;- Parameters:
value- The bytes for command to set.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Specified by:
getArgsListin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Specified by:
getArgsCountin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder- Returns:
- The count of args.
-
getArgs
A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Specified by:
getArgsin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Specified by:
getArgsBytesin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder setArgs(int index, String value) A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder addArgs(String value) A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder addAllArgs(Iterable<String> values) A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Returns:
- This builder for chaining.
-
addArgsBytes
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder addArgsBytes(com.google.protobuf.ByteString value) A set of arguments to pass to the command invocation. Example: `["--foobar"]`
repeated string args = 2;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getEnvironmentCount
public int getEnvironmentCount()Description copied from interface:Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilderA 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;- Specified by:
getEnvironmentCountin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
-
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;- Specified by:
containsEnvironmentin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
-
getEnvironment
Deprecated.UsegetEnvironmentMap()instead.- Specified by:
getEnvironmentin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
-
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;- Specified by:
getEnvironmentMapin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
-
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;- Specified by:
getEnvironmentOrDefaultin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
-
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;- Specified by:
getEnvironmentOrThrowin interfaceCompute.CreateInstanceRequest.ExperimentalFeatures.Hook.CommandOrBuilder
-
clearEnvironment
-
removeEnvironment
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder removeEnvironment(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; -
getMutableEnvironment
Deprecated.Use alternate mutation accessors instead. -
putEnvironment
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder putEnvironment(String key, String value) 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; -
putAllEnvironment
public Compute.CreateInstanceRequest.ExperimentalFeatures.Hook.Command.Builder putAllEnvironment(Map<String, String> values) 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;
-