Package io.kubernetes.client.proto
Class V1.PodExecOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
io.kubernetes.client.proto.V1.PodExecOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.PodExecOptionsOrBuilder,Cloneable
- Enclosing class:
- V1.PodExecOptions
public static final class V1.PodExecOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
implements V1.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 TTYProtobuf type
k8s.io.api.core.v1.PodExecOptions-
Method Summary
Modifier and TypeMethodDescriptionaddAllCommand(Iterable<String> values) Command is the remote command to execute.addCommand(String value) Command is the remote command to execute.addCommandBytes(com.google.protobuf.ByteString value) Command is the remote command to execute.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Command is the remote command to execute.Container in which to execute the command.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Redirect the standard error stream of the pod for this call.Redirect the standard input stream of the pod for this call.Redirect the standard output stream of the pod for this call.clearTty()TTY if true indicates that a tty will be allocated for the exec call.clone()getCommand(int index) Command is the remote command to execute.com.google.protobuf.ByteStringgetCommandBytes(int index) Command is the remote command to execute.intCommand is the remote command to execute.com.google.protobuf.ProtocolStringListCommand is the remote command to execute.Container in which to execute the command.com.google.protobuf.ByteStringContainer in which to execute the command.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanRedirect the standard error stream of the pod for this call.booleangetStdin()Redirect the standard input stream of the pod for this call.booleanRedirect 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.booleanContainer in which to execute the command.booleanRedirect the standard error stream of the pod for this call.booleanhasStdin()Redirect the standard input stream of the pod for this call.booleanRedirect 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1.PodExecOptions other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCommand(int index, String value) Command is the remote command to execute.setContainer(String value) Container in which to execute the command.setContainerBytes(com.google.protobuf.ByteString value) Container in which to execute the command.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStderr(boolean value) Redirect the standard error stream of the pod for this call.setStdin(boolean value) Redirect the standard input stream of the pod for this call.setStdout(boolean value) Redirect the standard output stream of the pod for this call.setTty(boolean value) TTY if true indicates that a tty will be allocated for the exec call.setUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.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<V1.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<V1.PodExecOptions.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
setField
public V1.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<V1.PodExecOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
setRepeatedField
public V1.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<V1.PodExecOptions.Builder>
-
addRepeatedField
public V1.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<V1.PodExecOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.PodExecOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
mergeFrom
public V1.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<V1.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 interfaceV1.PodExecOptionsOrBuilder
-
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 interfaceV1.PodExecOptionsOrBuilder
-
setStdin
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1; -
clearStdin
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1; -
hasStdout
public boolean hasStdout()Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;- Specified by:
hasStdoutin interfaceV1.PodExecOptionsOrBuilder
-
getStdout
public boolean getStdout()Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;- Specified by:
getStdoutin interfaceV1.PodExecOptionsOrBuilder
-
setStdout
Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2; -
clearStdout
Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2; -
hasStderr
public boolean hasStderr()Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;- Specified by:
hasStderrin interfaceV1.PodExecOptionsOrBuilder
-
getStderr
public boolean getStderr()Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;- Specified by:
getStderrin interfaceV1.PodExecOptionsOrBuilder
-
setStderr
Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3; -
clearStderr
Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3; -
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 interfaceV1.PodExecOptionsOrBuilder
-
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 interfaceV1.PodExecOptionsOrBuilder
-
setTty
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
optional bool tty = 4; -
clearTty
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
optional bool tty = 4; -
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 interfaceV1.PodExecOptionsOrBuilder
-
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 interfaceV1.PodExecOptionsOrBuilder
-
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 interfaceV1.PodExecOptionsOrBuilder
-
setContainer
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; -
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; -
setContainerBytes
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; -
getCommandList
public com.google.protobuf.ProtocolStringList getCommandList()Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6;- Specified by:
getCommandListin interfaceV1.PodExecOptionsOrBuilder
-
getCommandCount
public int getCommandCount()Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6;- Specified by:
getCommandCountin interfaceV1.PodExecOptionsOrBuilder
-
getCommand
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6;- Specified by:
getCommandin interfaceV1.PodExecOptionsOrBuilder
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes(int index) Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6;- Specified by:
getCommandBytesin interfaceV1.PodExecOptionsOrBuilder
-
setCommand
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6; -
addCommand
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6; -
addAllCommand
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6; -
clearCommand
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6; -
addCommandBytes
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6; -
setUnknownFields
public final V1.PodExecOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
mergeUnknownFields
public final V1.PodExecOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-