Package k8s.io.api.core.v1
Class Generated.PodExecOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
- k8s.io.api.core.v1.Generated.PodExecOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.PodExecOptionsOrBuilder
- Enclosing class:
- Generated.PodExecOptions
public static final class Generated.PodExecOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder> implements Generated.PodExecOptionsOrBuilder
PodExecOptions is the query options to a Pod's remote exec call. --- TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
Protobuf typek8s.io.api.core.v1.PodExecOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.PodExecOptions.BuilderaddAllCommand(Iterable<String> values)Command is the remote command to execute.Generated.PodExecOptions.BuilderaddCommand(String value)Command is the remote command to execute.Generated.PodExecOptions.BuilderaddCommandBytes(com.google.protobuf.ByteString value)Command is the remote command to execute.Generated.PodExecOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PodExecOptionsbuild()Generated.PodExecOptionsbuildPartial()Generated.PodExecOptions.Builderclear()Generated.PodExecOptions.BuilderclearCommand()Command is the remote command to execute.Generated.PodExecOptions.BuilderclearContainer()Container in which to execute the command.Generated.PodExecOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.PodExecOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.PodExecOptions.BuilderclearStderr()Redirect the standard error stream of the pod for this call.Generated.PodExecOptions.BuilderclearStdin()Redirect the standard input stream of the pod for this call.Generated.PodExecOptions.BuilderclearStdout()Redirect the standard output stream of the pod for this call.Generated.PodExecOptions.BuilderclearTty()TTY if true indicates that a tty will be allocated for the exec call.Generated.PodExecOptions.Builderclone()StringgetCommand(int index)Command is the remote command to execute.com.google.protobuf.ByteStringgetCommandBytes(int index)Command is the remote command to execute.intgetCommandCount()Command is the remote command to execute.com.google.protobuf.ProtocolStringListgetCommandList()Command is the remote command to execute.StringgetContainer()Container in which to execute the command.com.google.protobuf.ByteStringgetContainerBytes()Container in which to execute the command.Generated.PodExecOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetStderr()Redirect the standard error stream of the pod for this call.booleangetStdin()Redirect the standard input stream of the pod for this call.booleangetStdout()Redirect the standard output stream of the pod for this call.booleangetTty()TTY if true indicates that a tty will be allocated for the exec call.booleanhasContainer()Container in which to execute the command.booleanhasStderr()Redirect the standard error stream of the pod for this call.booleanhasStdin()Redirect the standard input stream of the pod for this call.booleanhasStdout()Redirect the standard output stream of the pod for this call.booleanhasTty()TTY if true indicates that a tty will be allocated for the exec call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.PodExecOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.PodExecOptions.BuildermergeFrom(com.google.protobuf.Message other)Generated.PodExecOptions.BuildermergeFrom(Generated.PodExecOptions other)Generated.PodExecOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PodExecOptions.BuildersetCommand(int index, String value)Command is the remote command to execute.Generated.PodExecOptions.BuildersetContainer(String value)Container in which to execute the command.Generated.PodExecOptions.BuildersetContainerBytes(com.google.protobuf.ByteString value)Container in which to execute the command.Generated.PodExecOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PodExecOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.PodExecOptions.BuildersetStderr(boolean value)Redirect the standard error stream of the pod for this call.Generated.PodExecOptions.BuildersetStdin(boolean value)Redirect the standard input stream of the pod for this call.Generated.PodExecOptions.BuildersetStdout(boolean value)Redirect the standard output stream of the pod for this call.Generated.PodExecOptions.BuildersetTty(boolean value)TTY if true indicates that a tty will be allocated for the exec call.Generated.PodExecOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
clear
public Generated.PodExecOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.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.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
getDefaultInstanceForType
public Generated.PodExecOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.PodExecOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.PodExecOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.PodExecOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
setField
public Generated.PodExecOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
clearField
public Generated.PodExecOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
clearOneof
public Generated.PodExecOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
setRepeatedField
public Generated.PodExecOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
addRepeatedField
public Generated.PodExecOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
mergeFrom
public Generated.PodExecOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PodExecOptions.Builder>
-
mergeFrom
public Generated.PodExecOptions.Builder mergeFrom(Generated.PodExecOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
mergeFrom
public Generated.PodExecOptions.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<Generated.PodExecOptions.Builder>- Throws:
IOException
-
hasStdin
public boolean hasStdin()
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1;- Specified by:
hasStdinin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- Whether the stdin field is set.
-
getStdin
public boolean getStdin()
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1;- Specified by:
getStdinin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The stdin.
-
setStdin
public Generated.PodExecOptions.Builder setStdin(boolean value)
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1;- Parameters:
value- The stdin to set.- Returns:
- This builder for chaining.
-
clearStdin
public Generated.PodExecOptions.Builder clearStdin()
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1;- Returns:
- This builder for chaining.
-
hasStdout
public boolean hasStdout()
Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;- Specified by:
hasStdoutin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- Whether the stdout field is set.
-
getStdout
public boolean getStdout()
Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;- Specified by:
getStdoutin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The stdout.
-
setStdout
public Generated.PodExecOptions.Builder setStdout(boolean value)
Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;- Parameters:
value- The stdout to set.- Returns:
- This builder for chaining.
-
clearStdout
public Generated.PodExecOptions.Builder clearStdout()
Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;- Returns:
- This builder for chaining.
-
hasStderr
public boolean hasStderr()
Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;- Specified by:
hasStderrin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- Whether the stderr field is set.
-
getStderr
public boolean getStderr()
Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;- Specified by:
getStderrin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The stderr.
-
setStderr
public Generated.PodExecOptions.Builder setStderr(boolean value)
Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;- Parameters:
value- The stderr to set.- Returns:
- This builder for chaining.
-
clearStderr
public Generated.PodExecOptions.Builder clearStderr()
Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;- Returns:
- This builder for chaining.
-
hasTty
public boolean hasTty()
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
optional bool tty = 4;- Specified by:
hasTtyin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- Whether the tty field is set.
-
getTty
public boolean getTty()
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
optional bool tty = 4;- Specified by:
getTtyin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The tty.
-
setTty
public Generated.PodExecOptions.Builder setTty(boolean value)
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
optional bool tty = 4;- Parameters:
value- The tty to set.- Returns:
- This builder for chaining.
-
clearTty
public Generated.PodExecOptions.Builder clearTty()
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
optional bool tty = 4;- Returns:
- This builder for chaining.
-
hasContainer
public boolean hasContainer()
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
optional string container = 5;- Specified by:
hasContainerin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- Whether the container field is set.
-
getContainer
public String getContainer()
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
optional string container = 5;- Specified by:
getContainerin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The container.
-
getContainerBytes
public com.google.protobuf.ByteString getContainerBytes()
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
optional string container = 5;- Specified by:
getContainerBytesin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The bytes for container.
-
setContainer
public Generated.PodExecOptions.Builder setContainer(String value)
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
optional string container = 5;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
public Generated.PodExecOptions.Builder clearContainer()
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
optional string container = 5;- Returns:
- This builder for chaining.
-
setContainerBytes
public Generated.PodExecOptions.Builder setContainerBytes(com.google.protobuf.ByteString value)
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
optional string container = 5;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-
getCommandList
public com.google.protobuf.ProtocolStringList getCommandList()
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Specified by:
getCommandListin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- A list containing the command.
-
getCommandCount
public int getCommandCount()
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Specified by:
getCommandCountin interfaceGenerated.PodExecOptionsOrBuilder- Returns:
- The count of command.
-
getCommand
public String getCommand(int index)
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Specified by:
getCommandin interfaceGenerated.PodExecOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes(int index)
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Specified by:
getCommandBytesin interfaceGenerated.PodExecOptionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
setCommand
public Generated.PodExecOptions.Builder setCommand(int index, String value)
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Parameters:
index- The index to set the value at.value- The command to set.- Returns:
- This builder for chaining.
-
addCommand
public Generated.PodExecOptions.Builder addCommand(String value)
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Parameters:
value- The command to add.- Returns:
- This builder for chaining.
-
addAllCommand
public Generated.PodExecOptions.Builder addAllCommand(Iterable<String> values)
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Parameters:
values- The command to add.- Returns:
- This builder for chaining.
-
clearCommand
public Generated.PodExecOptions.Builder clearCommand()
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Returns:
- This builder for chaining.
-
addCommandBytes
public Generated.PodExecOptions.Builder addCommandBytes(com.google.protobuf.ByteString value)
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
repeated string command = 6;- Parameters:
value- The bytes of the command to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.PodExecOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
mergeUnknownFields
public final Generated.PodExecOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
-
-