Class Generated.PodExecOptions.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.PodExecOptionsOrBuilder
    Enclosing class:
    Generated.PodExecOptions

    public static final class Generated.PodExecOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
    implements Generated.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 TTY
     
    Protobuf type k8s.io.api.core.v1.PodExecOptions
    • 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.PodExecOptions.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.PodExecOptions.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.PodExecOptions.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.Builder>
      • addRepeatedField

        public Generated.PodExecOptions.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodExecOptions.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.PodExecOptions.Builder>
      • mergeFrom

        public Generated.PodExecOptions.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.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 interface Generated.PodExecOptionsOrBuilder
        Returns:
        Whether the stdin field is set.
      • 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 interface Generated.PodExecOptionsOrBuilder
        Returns:
        The stdin.
      • setStdin

        public Generated.PodExecOptions.Builder setStdin​(boolean value)
         Redirect 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.PodExecOptions.Builder clearStdin()
         Redirect 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()
         Redirect the standard output stream of the pod for this call.
         +optional
         
        optional bool stdout = 2;
        Specified by:
        hasStdout in interface Generated.PodExecOptionsOrBuilder
        Returns:
        Whether the stdout field is set.
      • getStdout

        public boolean getStdout()
         Redirect the standard output stream of the pod for this call.
         +optional
         
        optional bool stdout = 2;
        Specified by:
        getStdout in interface Generated.PodExecOptionsOrBuilder
        Returns:
        The stdout.
      • setStdout

        public Generated.PodExecOptions.Builder setStdout​(boolean value)
         Redirect the standard output stream of the pod for this call.
         +optional
         
        optional bool stdout = 2;
        Parameters:
        value - The stdout to set.
        Returns:
        This builder for chaining.
      • clearStdout

        public Generated.PodExecOptions.Builder clearStdout()
         Redirect the standard output stream of the pod for this call.
         +optional
         
        optional bool stdout = 2;
        Returns:
        This builder for chaining.
      • hasStderr

        public boolean hasStderr()
         Redirect the standard error stream of the pod for this call.
         +optional
         
        optional bool stderr = 3;
        Specified by:
        hasStderr in interface Generated.PodExecOptionsOrBuilder
        Returns:
        Whether the stderr field is set.
      • getStderr

        public boolean getStderr()
         Redirect the standard error stream of the pod for this call.
         +optional
         
        optional bool stderr = 3;
        Specified by:
        getStderr in interface Generated.PodExecOptionsOrBuilder
        Returns:
        The stderr.
      • setStderr

        public Generated.PodExecOptions.Builder setStderr​(boolean value)
         Redirect the standard error stream of the pod for this call.
         +optional
         
        optional bool stderr = 3;
        Parameters:
        value - The stderr to set.
        Returns:
        This builder for chaining.
      • clearStderr

        public Generated.PodExecOptions.Builder clearStderr()
         Redirect the standard error stream of the pod for this call.
         +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 exec call.
         Defaults to false.
         +optional
         
        optional bool tty = 4;
        Specified by:
        hasTty in interface Generated.PodExecOptionsOrBuilder
        Returns:
        Whether the tty field is set.
      • 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 interface Generated.PodExecOptionsOrBuilder
        Returns:
        The tty.
      • setTty

        public Generated.PodExecOptions.Builder setTty​(boolean value)
         TTY if true indicates that a tty will be allocated for the exec call.
         Defaults to false.
         +optional
         
        optional bool tty = 4;
        Parameters:
        value - The tty to set.
        Returns:
        This builder for chaining.
      • clearTty

        public Generated.PodExecOptions.Builder clearTty()
         TTY if true indicates that a tty will be allocated for the exec call.
         Defaults to false.
         +optional
         
        optional bool tty = 4;
        Returns:
        This builder for chaining.
      • 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 interface Generated.PodExecOptionsOrBuilder
        Returns:
        Whether the container field is set.
      • getContainer

        public String 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 interface Generated.PodExecOptionsOrBuilder
        Returns:
        The container.
      • 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 interface Generated.PodExecOptionsOrBuilder
        Returns:
        The bytes for container.
      • setContainer

        public Generated.PodExecOptions.Builder setContainer​(String value)
         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.PodExecOptions.Builder 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;
        Returns:
        This builder for chaining.
      • setContainerBytes

        public Generated.PodExecOptions.Builder setContainerBytes​(com.google.protobuf.ByteString value)
         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.
      • getCommandList

        public com.google.protobuf.ProtocolStringList getCommandList()
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Specified by:
        getCommandList in interface Generated.PodExecOptionsOrBuilder
        Returns:
        A list containing the command.
      • getCommandCount

        public int getCommandCount()
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Specified by:
        getCommandCount in interface Generated.PodExecOptionsOrBuilder
        Returns:
        The count of command.
      • getCommand

        public String getCommand​(int index)
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Specified by:
        getCommand in interface Generated.PodExecOptionsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The command at the given index.
      • getCommandBytes

        public com.google.protobuf.ByteString getCommandBytes​(int index)
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Specified by:
        getCommandBytes in interface Generated.PodExecOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the command at the given index.
      • setCommand

        public Generated.PodExecOptions.Builder setCommand​(int index,
                                                           String value)
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Parameters:
        index - The index to set the value at.
        value - The command to set.
        Returns:
        This builder for chaining.
      • addCommand

        public Generated.PodExecOptions.Builder addCommand​(String value)
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Parameters:
        value - The command to add.
        Returns:
        This builder for chaining.
      • addAllCommand

        public Generated.PodExecOptions.Builder addAllCommand​(Iterable<String> values)
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Parameters:
        values - The command to add.
        Returns:
        This builder for chaining.
      • clearCommand

        public Generated.PodExecOptions.Builder clearCommand()
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Returns:
        This builder for chaining.
      • addCommandBytes

        public Generated.PodExecOptions.Builder addCommandBytes​(com.google.protobuf.ByteString value)
         Command is the remote command to execute. argv array. Not executed within a shell.
         +listType=atomic
         
        repeated string command = 6;
        Parameters:
        value - The bytes of the command to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.PodExecOptions.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.PodExecOptions.Builder>
      • mergeUnknownFields

        public final Generated.PodExecOptions.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.PodExecOptions.Builder>