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.ByteString
getCommandBytes
(int index) Command is the remote command to execute.int
Command is the remote command to execute.com.google.protobuf.ProtocolStringList
Command is the remote command to execute.Container in which to execute the command.com.google.protobuf.ByteString
Container in which to execute the command.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Redirect the standard error stream of the pod for this call.boolean
getStdin()
Redirect the standard input stream of the pod for this call.boolean
Redirect the standard output stream of the pod for this call.boolean
getTty()
TTY if true indicates that a tty will be allocated for the exec call.boolean
Container in which to execute the command.boolean
Redirect the standard error stream of the pod for this call.boolean
hasStdin()
Redirect the standard input stream of the pod for this call.boolean
Redirect the standard output stream of the pod for this call.boolean
hasTty()
TTY if true indicates that a tty will be allocated for the exec call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
setField
public V1.PodExecOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
addRepeatedField
public V1.PodExecOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.PodExecOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasStdin
in 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:
getStdin
in 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:
hasStdout
in interfaceV1.PodExecOptionsOrBuilder
-
getStdout
public boolean getStdout()Redirect the standard output stream of the pod for this call. +optional
optional bool stdout = 2;
- Specified by:
getStdout
in 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:
hasStderr
in interfaceV1.PodExecOptionsOrBuilder
-
getStderr
public boolean getStderr()Redirect the standard error stream of the pod for this call. +optional
optional bool stderr = 3;
- Specified by:
getStderr
in 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:
hasTty
in 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:
getTty
in 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:
hasContainer
in 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:
getContainer
in 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:
getContainerBytes
in 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:
getCommandList
in 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:
getCommandCount
in interfaceV1.PodExecOptionsOrBuilder
-
getCommand
Command is the remote command to execute. argv array. Not executed within a shell.
repeated string command = 6;
- Specified by:
getCommand
in 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:
getCommandBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-
mergeUnknownFields
public final V1.PodExecOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
-