Package io.kubernetes.client.proto
Class V1.PodLogOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The container for which to stream logs.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Follow the log stream of the pod.insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.If set, the number of bytes to read from the server before terminating the log output.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Return previous terminated container logs.A relative time in seconds before the current time from which to show logs.An RFC3339 timestamp from which to show logs.If set, the number of lines from the end of the logs to show.If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.clone()
The container for which to stream logs.com.google.protobuf.ByteString
The container for which to stream logs.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
Follow the log stream of the pod.boolean
insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.long
If set, the number of bytes to read from the server before terminating the log output.boolean
Return previous terminated container logs.long
A relative time in seconds before the current time from which to show logs.An RFC3339 timestamp from which to show logs.An RFC3339 timestamp from which to show logs.An RFC3339 timestamp from which to show logs.long
If set, the number of lines from the end of the logs to show.boolean
If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.boolean
The container for which to stream logs.boolean
Follow the log stream of the pod.boolean
insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.boolean
If set, the number of bytes to read from the server before terminating the log output.boolean
Return previous terminated container logs.boolean
A relative time in seconds before the current time from which to show logs.boolean
An RFC3339 timestamp from which to show logs.boolean
If set, the number of lines from the end of the logs to show.boolean
If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1.PodLogOptions other) mergeSinceTime
(Meta.Time value) An RFC3339 timestamp from which to show logs.final V1.PodLogOptions.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setContainer
(String value) The container for which to stream logs.setContainerBytes
(com.google.protobuf.ByteString value) The container for which to stream logs.setFollow
(boolean value) Follow the log stream of the pod.setInsecureSkipTLSVerifyBackend
(boolean value) insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.setLimitBytes
(long value) If set, the number of bytes to read from the server before terminating the log output.setPrevious
(boolean value) Return previous terminated container logs.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSinceSeconds
(long value) A relative time in seconds before the current time from which to show logs.setSinceTime
(Meta.Time value) An RFC3339 timestamp from which to show logs.setSinceTime
(Meta.Time.Builder builderForValue) An RFC3339 timestamp from which to show logs.setTailLines
(long value) If set, the number of lines from the end of the logs to show.setTimestamps
(boolean value) If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.final V1.PodLogOptions.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.PodLogOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceV1.PodLogOptionsOrBuilder
-
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 interfaceV1.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 interfaceV1.PodLogOptionsOrBuilder
-
setContainer
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
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
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 interfaceV1.PodLogOptionsOrBuilder
-
getFollow
public boolean getFollow()Follow the log stream of the pod. Defaults to false. +optional
optional bool follow = 2;
- Specified by:
getFollow
in interfaceV1.PodLogOptionsOrBuilder
-
setFollow
Follow the log stream of the pod. Defaults to false. +optional
optional bool follow = 2;
-
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 interfaceV1.PodLogOptionsOrBuilder
-
getPrevious
public boolean getPrevious()Return previous terminated container logs. Defaults to false. +optional
optional bool previous = 3;
- Specified by:
getPrevious
in interfaceV1.PodLogOptionsOrBuilder
-
setPrevious
Return previous terminated container logs. Defaults to false. +optional
optional bool previous = 3;
-
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 interfaceV1.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 interfaceV1.PodLogOptionsOrBuilder
-
setSinceSeconds
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
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 interfaceV1.PodLogOptionsOrBuilder
-
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 interfaceV1.PodLogOptionsOrBuilder
-
setSinceTime
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
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
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
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
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
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 interfaceV1.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 interfaceV1.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 interfaceV1.PodLogOptionsOrBuilder
-
setTimestamps
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
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 interfaceV1.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 interfaceV1.PodLogOptionsOrBuilder
-
setTailLines
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
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 interfaceV1.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 interfaceV1.PodLogOptionsOrBuilder
-
setLimitBytes
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
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 interfaceV1.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 interfaceV1.PodLogOptionsOrBuilder
-
setInsecureSkipTLSVerifyBackend
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
mergeUnknownFields
public final V1.PodLogOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-