Class Generated.PodAttachOptions

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.PodAttachOptionsOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.PodAttachOptions
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.PodAttachOptions parseFrom​(ByteBuffer data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodAttachOptions parseFrom​(ByteBuffer data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodAttachOptions parseFrom​(com.google.protobuf.ByteString data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodAttachOptions parseFrom​(com.google.protobuf.ByteString data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodAttachOptions parseFrom​(byte[] data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.PodAttachOptions parseFrom​(byte[] data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected Generated.PodAttachOptions.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.PodAttachOptions> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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