Package io.kubernetes.client.proto
Class V1.PodAttachOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
io.kubernetes.client.proto.V1.PodAttachOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.PodAttachOptionsOrBuilder,Cloneable
- Enclosing class:
- V1.PodAttachOptions
public static final class V1.PodAttachOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
implements V1.PodAttachOptionsOrBuilder
PodAttachOptions is the query options to a Pod's remote attach call. --- TODO: merge w/ PodExecOptions below for stdin, stdout, etc 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.PodAttachOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The container in which to execute the command.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Stderr if true indicates that stderr is to be redirected for the attach call.Stdin if true, redirects the standard input stream of the pod for this call.Stdout if true indicates that stdout is to be redirected for the attach call.clearTty()TTY if true indicates that a tty will be allocated for the attach call.clone()The container in which to execute the command.com.google.protobuf.ByteStringThe container in which to execute the command.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanStderr if true indicates that stderr is to be redirected for the attach call.booleangetStdin()Stdin if true, redirects the standard input stream of the pod for this call.booleanStdout if true indicates that stdout is to be redirected for the attach call.booleangetTty()TTY if true indicates that a tty will be allocated for the attach call.booleanThe container in which to execute the command.booleanStderr if true indicates that stderr is to be redirected for the attach call.booleanhasStdin()Stdin if true, redirects the standard input stream of the pod for this call.booleanStdout if true indicates that stdout is to be redirected for the attach call.booleanhasTty()TTY if true indicates that a tty will be allocated for the attach 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.PodAttachOptions other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContainer(String value) The container in which to execute the command.setContainerBytes(com.google.protobuf.ByteString value) The container in which to execute the command.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStderr(boolean value) Stderr if true indicates that stderr is to be redirected for the attach call.setStdin(boolean value) Stdin if true, redirects the standard input stream of the pod for this call.setStdout(boolean value) Stdout if true indicates that stdout is to be redirected for the attach call.setTty(boolean value) TTY if true indicates that a tty will be allocated for the attach 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.PodAttachOptions.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.PodAttachOptions.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.PodAttachOptions.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.PodAttachOptions.Builder>
-
setField
public V1.PodAttachOptions.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.PodAttachOptions.Builder>
-
clearField
public V1.PodAttachOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
-
clearOneof
public V1.PodAttachOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
-
setRepeatedField
public V1.PodAttachOptions.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.PodAttachOptions.Builder>
-
addRepeatedField
public V1.PodAttachOptions.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.PodAttachOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.PodAttachOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
-
mergeFrom
public V1.PodAttachOptions.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.PodAttachOptions.Builder>- Throws:
IOException
-
hasStdin
public boolean hasStdin()Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1;- Specified by:
hasStdinin interfaceV1.PodAttachOptionsOrBuilder
-
getStdin
public boolean getStdin()Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1;- Specified by:
getStdinin interfaceV1.PodAttachOptionsOrBuilder
-
setStdin
Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1; -
clearStdin
Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. +optional
optional bool stdin = 1; -
hasStdout
public boolean hasStdout()Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
optional bool stdout = 2;- Specified by:
hasStdoutin interfaceV1.PodAttachOptionsOrBuilder
-
getStdout
public boolean getStdout()Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
optional bool stdout = 2;- Specified by:
getStdoutin interfaceV1.PodAttachOptionsOrBuilder
-
setStdout
Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
optional bool stdout = 2; -
clearStdout
Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
optional bool stdout = 2; -
hasStderr
public boolean hasStderr()Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +optional
optional bool stderr = 3;- Specified by:
hasStderrin interfaceV1.PodAttachOptionsOrBuilder
-
getStderr
public boolean getStderr()Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +optional
optional bool stderr = 3;- Specified by:
getStderrin interfaceV1.PodAttachOptionsOrBuilder
-
setStderr
Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +optional
optional bool stderr = 3; -
clearStderr
Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +optional
optional bool stderr = 3; -
hasTty
public boolean hasTty()TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. +optional
optional bool tty = 4;- Specified by:
hasTtyin interfaceV1.PodAttachOptionsOrBuilder
-
getTty
public boolean getTty()TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. +optional
optional bool tty = 4;- Specified by:
getTtyin interfaceV1.PodAttachOptionsOrBuilder
-
setTty
TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. +optional
optional bool tty = 4; -
clearTty
TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. +optional
optional bool tty = 4; -
hasContainer
public boolean hasContainer()The 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.PodAttachOptionsOrBuilder
-
getContainer
The 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.PodAttachOptionsOrBuilder
-
getContainerBytes
public com.google.protobuf.ByteString getContainerBytes()The 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.PodAttachOptionsOrBuilder
-
setContainer
The 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
The 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
The 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; -
setUnknownFields
public final V1.PodAttachOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
-
mergeUnknownFields
public final V1.PodAttachOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
-