Package io.kubernetes.client.proto
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 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.ByteStringThe container for which to stream logs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanFollow the log stream of the pod.booleaninsecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.longIf set, the number of bytes to read from the server before terminating the log output.booleanReturn previous terminated container logs.longA 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.longIf set, the number of lines from the end of the logs to show.booleanIf true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.booleanThe container for which to stream logs.booleanFollow the log stream of the pod.booleaninsecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.booleanIf set, the number of bytes to read from the server before terminating the log output.booleanReturn previous terminated container logs.booleanA relative time in seconds before the current time from which to show logs.booleanAn RFC3339 timestamp from which to show logs.booleanIf set, the number of lines from the end of the logs to show.booleanIf true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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.BuildermergeUnknownFields(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.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
setField
public V1.PodLogOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
addRepeatedField
public V1.PodLogOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.PodLogOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasContainerin 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:
getContainerin 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:
getContainerBytesin 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:
hasFollowin interfaceV1.PodLogOptionsOrBuilder
-
getFollow
public boolean getFollow()Follow the log stream of the pod. Defaults to false. +optional
optional bool follow = 2;- Specified by:
getFollowin 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:
hasPreviousin interfaceV1.PodLogOptionsOrBuilder
-
getPrevious
public boolean getPrevious()Return previous terminated container logs. Defaults to false. +optional
optional bool previous = 3;- Specified by:
getPreviousin 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:
hasSinceSecondsin 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:
getSinceSecondsin 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:
hasSinceTimein 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:
getSinceTimein 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:
getSinceTimeOrBuilderin 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:
hasTimestampsin 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:
getTimestampsin 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:
hasTailLinesin 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:
getTailLinesin 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:
hasLimitBytesin 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:
getLimitBytesin 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:
hasInsecureSkipTLSVerifyBackendin 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:
getInsecureSkipTLSVerifyBackendin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-
mergeUnknownFields
public final V1.PodLogOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodLogOptions.Builder>
-