Package k8s.io.api.core.v1
Class Generated.PodAttachOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
-
- k8s.io.api.core.v1.Generated.PodAttachOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.PodAttachOptionsOrBuilder
- Enclosing class:
- Generated.PodAttachOptions
public static final class Generated.PodAttachOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder> implements Generated.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 TTY
Protobuf typek8s.io.api.core.v1.PodAttachOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.PodAttachOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PodAttachOptionsbuild()Generated.PodAttachOptionsbuildPartial()Generated.PodAttachOptions.Builderclear()Generated.PodAttachOptions.BuilderclearContainer()The container in which to execute the command.Generated.PodAttachOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.PodAttachOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.PodAttachOptions.BuilderclearStderr()Stderr if true indicates that stderr is to be redirected for the attach call.Generated.PodAttachOptions.BuilderclearStdin()Stdin if true, redirects the standard input stream of the pod for this call.Generated.PodAttachOptions.BuilderclearStdout()Stdout if true indicates that stdout is to be redirected for the attach call.Generated.PodAttachOptions.BuilderclearTty()TTY if true indicates that a tty will be allocated for the attach call.Generated.PodAttachOptions.Builderclone()StringgetContainer()The container in which to execute the command.com.google.protobuf.ByteStringgetContainerBytes()The container in which to execute the command.Generated.PodAttachOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetStderr()Stderr 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.booleangetStdout()Stdout 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.booleanhasContainer()The container in which to execute the command.booleanhasStderr()Stderr 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.booleanhasStdout()Stdout 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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.PodAttachOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.PodAttachOptions.BuildermergeFrom(com.google.protobuf.Message other)Generated.PodAttachOptions.BuildermergeFrom(Generated.PodAttachOptions other)Generated.PodAttachOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PodAttachOptions.BuildersetContainer(String value)The container in which to execute the command.Generated.PodAttachOptions.BuildersetContainerBytes(com.google.protobuf.ByteString value)The container in which to execute the command.Generated.PodAttachOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PodAttachOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.PodAttachOptions.BuildersetStderr(boolean value)Stderr if true indicates that stderr is to be redirected for the attach call.Generated.PodAttachOptions.BuildersetStdin(boolean value)Stdin if true, redirects the standard input stream of the pod for this call.Generated.PodAttachOptions.BuildersetStdout(boolean value)Stdout if true indicates that stdout is to be redirected for the attach call.Generated.PodAttachOptions.BuildersetTty(boolean value)TTY if true indicates that a tty will be allocated for the attach call.Generated.PodAttachOptions.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.PodAttachOptions.Builder>
-
clear
public Generated.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<Generated.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<Generated.PodAttachOptions.Builder>
-
getDefaultInstanceForType
public Generated.PodAttachOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.PodAttachOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.PodAttachOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.PodAttachOptions.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.PodAttachOptions.Builder>
-
setField
public Generated.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<Generated.PodAttachOptions.Builder>
-
clearField
public Generated.PodAttachOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
-
clearOneof
public Generated.PodAttachOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
-
setRepeatedField
public Generated.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<Generated.PodAttachOptions.Builder>
-
addRepeatedField
public Generated.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<Generated.PodAttachOptions.Builder>
-
mergeFrom
public Generated.PodAttachOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PodAttachOptions.Builder>
-
mergeFrom
public Generated.PodAttachOptions.Builder mergeFrom(Generated.PodAttachOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
-
mergeFrom
public Generated.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<Generated.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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- Whether the stdin field is set.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- The stdin.
-
setStdin
public Generated.PodAttachOptions.Builder setStdin(boolean value)
Stdin if true, redirects 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.PodAttachOptions.Builder clearStdin()
Stdin if true, redirects 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()
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- Whether the stdout field is set.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- The stdout.
-
setStdout
public Generated.PodAttachOptions.Builder setStdout(boolean value)
Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
optional bool stdout = 2;- Parameters:
value- The stdout to set.- Returns:
- This builder for chaining.
-
clearStdout
public Generated.PodAttachOptions.Builder clearStdout()
Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
optional bool stdout = 2;- Returns:
- This builder for chaining.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- Whether the stderr field is set.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- The stderr.
-
setStderr
public Generated.PodAttachOptions.Builder setStderr(boolean value)
Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +optional
optional bool stderr = 3;- Parameters:
value- The stderr to set.- Returns:
- This builder for chaining.
-
clearStderr
public Generated.PodAttachOptions.Builder clearStderr()
Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +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 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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- Whether the tty field is set.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- The tty.
-
setTty
public Generated.PodAttachOptions.Builder setTty(boolean value)
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;- Parameters:
value- The tty to set.- Returns:
- This builder for chaining.
-
clearTty
public Generated.PodAttachOptions.Builder 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;- Returns:
- This builder for chaining.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- Whether the container field is set.
-
getContainer
public String 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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- The container.
-
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 interfaceGenerated.PodAttachOptionsOrBuilder- Returns:
- The bytes for container.
-
setContainer
public Generated.PodAttachOptions.Builder setContainer(String value)
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;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
public Generated.PodAttachOptions.Builder 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;- Returns:
- This builder for chaining.
-
setContainerBytes
public Generated.PodAttachOptions.Builder setContainerBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.PodAttachOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
-
mergeUnknownFields
public final Generated.PodAttachOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
-
-