Class V1.PodExecOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
io.kubernetes.client.proto.V1.PodExecOptions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.PodExecOptionsOrBuilder, Cloneable
Enclosing class:
V1.PodExecOptions

public static final class V1.PodExecOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder> implements V1.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 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.PodExecOptions.Builder>
    • clear

      public V1.PodExecOptions.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.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<V1.PodExecOptions.Builder>
    • getDefaultInstanceForType

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

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

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

      public V1.PodExecOptions.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.PodExecOptions.Builder>
    • setField

      public V1.PodExecOptions.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.PodExecOptions.Builder>
    • clearField

      public V1.PodExecOptions.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.PodExecOptions.Builder>
    • clearOneof

      public V1.PodExecOptions.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.PodExecOptions.Builder>
    • setRepeatedField

      public V1.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<V1.PodExecOptions.Builder>
    • addRepeatedField

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

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

      public V1.PodExecOptions.Builder mergeFrom(V1.PodExecOptions other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.PodExecOptions.Builder>
    • mergeFrom

      public V1.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<V1.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 V1.PodExecOptionsOrBuilder
    • 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 V1.PodExecOptionsOrBuilder
    • setStdin

      public V1.PodExecOptions.Builder setStdin(boolean value)
       Redirect the standard input stream of the pod for this call.
       Defaults to false.
       +optional
       
      optional bool stdin = 1;
    • clearStdin

      public V1.PodExecOptions.Builder clearStdin()
       Redirect the standard input stream of the pod for this call.
       Defaults to false.
       +optional
       
      optional bool stdin = 1;
    • 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 V1.PodExecOptionsOrBuilder
    • 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 V1.PodExecOptionsOrBuilder
    • setStdout

      public V1.PodExecOptions.Builder setStdout(boolean value)
       Redirect the standard output stream of the pod for this call.
       +optional
       
      optional bool stdout = 2;
    • clearStdout

      public V1.PodExecOptions.Builder clearStdout()
       Redirect the standard output stream of the pod for this call.
       +optional
       
      optional bool stdout = 2;
    • 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 V1.PodExecOptionsOrBuilder
    • 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 V1.PodExecOptionsOrBuilder
    • setStderr

      public V1.PodExecOptions.Builder setStderr(boolean value)
       Redirect the standard error stream of the pod for this call.
       +optional
       
      optional bool stderr = 3;
    • clearStderr

      public V1.PodExecOptions.Builder clearStderr()
       Redirect the standard error stream of the pod for this call.
       +optional
       
      optional bool stderr = 3;
    • 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 V1.PodExecOptionsOrBuilder
    • 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 V1.PodExecOptionsOrBuilder
    • setTty

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

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

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

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

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

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

      public int getCommandCount()
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
      Specified by:
      getCommandCount in interface V1.PodExecOptionsOrBuilder
    • getCommand

      public String getCommand(int index)
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
      Specified by:
      getCommand in interface V1.PodExecOptionsOrBuilder
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes(int index)
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
      Specified by:
      getCommandBytes in interface V1.PodExecOptionsOrBuilder
    • setCommand

      public V1.PodExecOptions.Builder setCommand(int index, String value)
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
    • addCommand

      public V1.PodExecOptions.Builder addCommand(String value)
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
    • addAllCommand

      public V1.PodExecOptions.Builder addAllCommand(Iterable<String> values)
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
    • clearCommand

      public V1.PodExecOptions.Builder clearCommand()
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
    • addCommandBytes

      public V1.PodExecOptions.Builder addCommandBytes(com.google.protobuf.ByteString value)
       Command is the remote command to execute. argv array. Not executed within a shell.
       
      repeated string command = 6;
    • setUnknownFields

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

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