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 TTY
 
Protobuf type k8s.io.api.core.v1.PodAttachOptions
  • Method Details

    • 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<V1.PodAttachOptions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.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<V1.PodAttachOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
    • setField

      public V1.PodAttachOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
    • clearField

      public V1.PodAttachOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
    • clearOneof

      public V1.PodAttachOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAttachOptions.Builder>
    • addRepeatedField

      public V1.PodAttachOptions.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<V1.PodAttachOptions.Builder>
    • mergeFrom

      public V1.PodAttachOptions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.PodAttachOptions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      hasStdin in interface V1.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:
      getStdin in interface V1.PodAttachOptionsOrBuilder
    • setStdin

      public V1.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;
    • clearStdin

      public V1.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;
    • 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 V1.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:
      getStdout in interface V1.PodAttachOptionsOrBuilder
    • setStdout

      public V1.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;
    • clearStdout

      public V1.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;
    • 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 V1.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:
      getStderr in interface V1.PodAttachOptionsOrBuilder
    • setStderr

      public V1.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;
    • clearStderr

      public V1.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;
    • 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 V1.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:
      getTty in interface V1.PodAttachOptionsOrBuilder
    • setTty

      public V1.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;
    • clearTty

      public V1.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;
    • 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 V1.PodAttachOptionsOrBuilder
    • 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 V1.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:
      getContainerBytes in interface V1.PodAttachOptionsOrBuilder
    • setContainer

      public V1.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;
    • clearContainer

      public V1.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;
    • setContainerBytes

      public V1.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;
    • setUnknownFields

      public final V1.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<V1.PodAttachOptions.Builder>
    • mergeUnknownFields

      public final V1.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<V1.PodAttachOptions.Builder>