Class 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 type k8s.io.api.core.v1.PodAttachOptions
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
      • getDefaultInstanceForType

        public Generated.PodAttachOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.PodAttachOptions build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.PodAttachOptions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        hasStdin in interface Generated.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:
        getStdin in interface Generated.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:
        hasStdout in interface Generated.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:
        getStdout in interface Generated.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:
        hasStderr in interface Generated.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:
        getStderr in interface Generated.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:
        hasTty in interface Generated.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:
        getTty in interface Generated.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:
        hasContainer in interface Generated.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:
        getContainer in interface Generated.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:
        getContainerBytes in interface Generated.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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>
      • mergeUnknownFields

        public final Generated.PodAttachOptions.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAttachOptions.Builder>