Class V1.PodLogOptions.Builder

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

public static final class V1.PodLogOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder> implements V1.PodLogOptionsOrBuilder
 PodLogOptions is the query options for a Pod's logs REST call.
 
Protobuf type k8s.io.api.core.v1.PodLogOptions
  • 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.PodLogOptions.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

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

      public V1.PodLogOptions.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.PodLogOptions.Builder>
      Throws:
      IOException
    • hasContainer

      public boolean hasContainer()
       The container for which to stream logs. Defaults to only container if there is one container in the pod.
       +optional
       
      optional string container = 1;
      Specified by:
      hasContainer in interface V1.PodLogOptionsOrBuilder
    • getContainer

      public String getContainer()
       The container for which to stream logs. Defaults to only container if there is one container in the pod.
       +optional
       
      optional string container = 1;
      Specified by:
      getContainer in interface V1.PodLogOptionsOrBuilder
    • getContainerBytes

      public com.google.protobuf.ByteString getContainerBytes()
       The container for which to stream logs. Defaults to only container if there is one container in the pod.
       +optional
       
      optional string container = 1;
      Specified by:
      getContainerBytes in interface V1.PodLogOptionsOrBuilder
    • setContainer

      public V1.PodLogOptions.Builder setContainer(String value)
       The container for which to stream logs. Defaults to only container if there is one container in the pod.
       +optional
       
      optional string container = 1;
    • clearContainer

      public V1.PodLogOptions.Builder clearContainer()
       The container for which to stream logs. Defaults to only container if there is one container in the pod.
       +optional
       
      optional string container = 1;
    • setContainerBytes

      public V1.PodLogOptions.Builder setContainerBytes(com.google.protobuf.ByteString value)
       The container for which to stream logs. Defaults to only container if there is one container in the pod.
       +optional
       
      optional string container = 1;
    • hasFollow

      public boolean hasFollow()
       Follow the log stream of the pod. Defaults to false.
       +optional
       
      optional bool follow = 2;
      Specified by:
      hasFollow in interface V1.PodLogOptionsOrBuilder
    • getFollow

      public boolean getFollow()
       Follow the log stream of the pod. Defaults to false.
       +optional
       
      optional bool follow = 2;
      Specified by:
      getFollow in interface V1.PodLogOptionsOrBuilder
    • setFollow

      public V1.PodLogOptions.Builder setFollow(boolean value)
       Follow the log stream of the pod. Defaults to false.
       +optional
       
      optional bool follow = 2;
    • clearFollow

      public V1.PodLogOptions.Builder clearFollow()
       Follow the log stream of the pod. Defaults to false.
       +optional
       
      optional bool follow = 2;
    • hasPrevious

      public boolean hasPrevious()
       Return previous terminated container logs. Defaults to false.
       +optional
       
      optional bool previous = 3;
      Specified by:
      hasPrevious in interface V1.PodLogOptionsOrBuilder
    • getPrevious

      public boolean getPrevious()
       Return previous terminated container logs. Defaults to false.
       +optional
       
      optional bool previous = 3;
      Specified by:
      getPrevious in interface V1.PodLogOptionsOrBuilder
    • setPrevious

      public V1.PodLogOptions.Builder setPrevious(boolean value)
       Return previous terminated container logs. Defaults to false.
       +optional
       
      optional bool previous = 3;
    • clearPrevious

      public V1.PodLogOptions.Builder clearPrevious()
       Return previous terminated container logs. Defaults to false.
       +optional
       
      optional bool previous = 3;
    • hasSinceSeconds

      public boolean hasSinceSeconds()
       A relative time in seconds before the current time from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional int64 sinceSeconds = 4;
      Specified by:
      hasSinceSeconds in interface V1.PodLogOptionsOrBuilder
    • getSinceSeconds

      public long getSinceSeconds()
       A relative time in seconds before the current time from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional int64 sinceSeconds = 4;
      Specified by:
      getSinceSeconds in interface V1.PodLogOptionsOrBuilder
    • setSinceSeconds

      public V1.PodLogOptions.Builder setSinceSeconds(long value)
       A relative time in seconds before the current time from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional int64 sinceSeconds = 4;
    • clearSinceSeconds

      public V1.PodLogOptions.Builder clearSinceSeconds()
       A relative time in seconds before the current time from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional int64 sinceSeconds = 4;
    • hasSinceTime

      public boolean hasSinceTime()
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
      Specified by:
      hasSinceTime in interface V1.PodLogOptionsOrBuilder
    • getSinceTime

      public Meta.Time getSinceTime()
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
      Specified by:
      getSinceTime in interface V1.PodLogOptionsOrBuilder
    • setSinceTime

      public V1.PodLogOptions.Builder setSinceTime(Meta.Time value)
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
    • setSinceTime

      public V1.PodLogOptions.Builder setSinceTime(Meta.Time.Builder builderForValue)
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
    • mergeSinceTime

      public V1.PodLogOptions.Builder mergeSinceTime(Meta.Time value)
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
    • clearSinceTime

      public V1.PodLogOptions.Builder clearSinceTime()
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
    • getSinceTimeBuilder

      public Meta.Time.Builder getSinceTimeBuilder()
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
    • getSinceTimeOrBuilder

      public Meta.TimeOrBuilder getSinceTimeOrBuilder()
       An RFC3339 timestamp from which to show logs. If this value
       precedes the time a pod was started, only logs since the pod start will be returned.
       If this value is in the future, no logs will be returned.
       Only one of sinceSeconds or sinceTime may be specified.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5;
      Specified by:
      getSinceTimeOrBuilder in interface V1.PodLogOptionsOrBuilder
    • hasTimestamps

      public boolean hasTimestamps()
       If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       of log output. Defaults to false.
       +optional
       
      optional bool timestamps = 6;
      Specified by:
      hasTimestamps in interface V1.PodLogOptionsOrBuilder
    • getTimestamps

      public boolean getTimestamps()
       If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       of log output. Defaults to false.
       +optional
       
      optional bool timestamps = 6;
      Specified by:
      getTimestamps in interface V1.PodLogOptionsOrBuilder
    • setTimestamps

      public V1.PodLogOptions.Builder setTimestamps(boolean value)
       If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       of log output. Defaults to false.
       +optional
       
      optional bool timestamps = 6;
    • clearTimestamps

      public V1.PodLogOptions.Builder clearTimestamps()
       If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       of log output. Defaults to false.
       +optional
       
      optional bool timestamps = 6;
    • hasTailLines

      public boolean hasTailLines()
       If set, the number of lines from the end of the logs to show. If not specified,
       logs are shown from the creation of the container or sinceSeconds or sinceTime
       +optional
       
      optional int64 tailLines = 7;
      Specified by:
      hasTailLines in interface V1.PodLogOptionsOrBuilder
    • getTailLines

      public long getTailLines()
       If set, the number of lines from the end of the logs to show. If not specified,
       logs are shown from the creation of the container or sinceSeconds or sinceTime
       +optional
       
      optional int64 tailLines = 7;
      Specified by:
      getTailLines in interface V1.PodLogOptionsOrBuilder
    • setTailLines

      public V1.PodLogOptions.Builder setTailLines(long value)
       If set, the number of lines from the end of the logs to show. If not specified,
       logs are shown from the creation of the container or sinceSeconds or sinceTime
       +optional
       
      optional int64 tailLines = 7;
    • clearTailLines

      public V1.PodLogOptions.Builder clearTailLines()
       If set, the number of lines from the end of the logs to show. If not specified,
       logs are shown from the creation of the container or sinceSeconds or sinceTime
       +optional
       
      optional int64 tailLines = 7;
    • hasLimitBytes

      public boolean hasLimitBytes()
       If set, the number of bytes to read from the server before terminating the
       log output. This may not display a complete final line of logging, and may return
       slightly more or slightly less than the specified limit.
       +optional
       
      optional int64 limitBytes = 8;
      Specified by:
      hasLimitBytes in interface V1.PodLogOptionsOrBuilder
    • getLimitBytes

      public long getLimitBytes()
       If set, the number of bytes to read from the server before terminating the
       log output. This may not display a complete final line of logging, and may return
       slightly more or slightly less than the specified limit.
       +optional
       
      optional int64 limitBytes = 8;
      Specified by:
      getLimitBytes in interface V1.PodLogOptionsOrBuilder
    • setLimitBytes

      public V1.PodLogOptions.Builder setLimitBytes(long value)
       If set, the number of bytes to read from the server before terminating the
       log output. This may not display a complete final line of logging, and may return
       slightly more or slightly less than the specified limit.
       +optional
       
      optional int64 limitBytes = 8;
    • clearLimitBytes

      public V1.PodLogOptions.Builder clearLimitBytes()
       If set, the number of bytes to read from the server before terminating the
       log output. This may not display a complete final line of logging, and may return
       slightly more or slightly less than the specified limit.
       +optional
       
      optional int64 limitBytes = 8;
    • hasInsecureSkipTLSVerifyBackend

      public boolean hasInsecureSkipTLSVerifyBackend()
       insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       the actual log data coming from the real kubelet).
       +optional
       
      optional bool insecureSkipTLSVerifyBackend = 9;
      Specified by:
      hasInsecureSkipTLSVerifyBackend in interface V1.PodLogOptionsOrBuilder
    • getInsecureSkipTLSVerifyBackend

      public boolean getInsecureSkipTLSVerifyBackend()
       insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       the actual log data coming from the real kubelet).
       +optional
       
      optional bool insecureSkipTLSVerifyBackend = 9;
      Specified by:
      getInsecureSkipTLSVerifyBackend in interface V1.PodLogOptionsOrBuilder
    • setInsecureSkipTLSVerifyBackend

      public V1.PodLogOptions.Builder setInsecureSkipTLSVerifyBackend(boolean value)
       insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       the actual log data coming from the real kubelet).
       +optional
       
      optional bool insecureSkipTLSVerifyBackend = 9;
    • clearInsecureSkipTLSVerifyBackend

      public V1.PodLogOptions.Builder clearInsecureSkipTLSVerifyBackend()
       insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       the actual log data coming from the real kubelet).
       +optional
       
      optional bool insecureSkipTLSVerifyBackend = 9;
    • setUnknownFields

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

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