public static final class V1.ServiceAccountTokenProjection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder> implements V1.ServiceAccountTokenProjectionOrBuilder
ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).Protobuf type
k8s.io.api.core.v1.ServiceAccountTokenProjection| Modifier and Type | Method and Description |
|---|---|
V1.ServiceAccountTokenProjection.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ServiceAccountTokenProjection |
build() |
V1.ServiceAccountTokenProjection |
buildPartial() |
V1.ServiceAccountTokenProjection.Builder |
clear() |
V1.ServiceAccountTokenProjection.Builder |
clearAudience()
Audience is the intended audience of the token.
|
V1.ServiceAccountTokenProjection.Builder |
clearExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service
account token.
|
V1.ServiceAccountTokenProjection.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.ServiceAccountTokenProjection.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.ServiceAccountTokenProjection.Builder |
clearPath()
Path is the path relative to the mount point of the file to project the
token into.
|
V1.ServiceAccountTokenProjection.Builder |
clone() |
String |
getAudience()
Audience is the intended audience of the token.
|
com.google.protobuf.ByteString |
getAudienceBytes()
Audience is the intended audience of the token.
|
V1.ServiceAccountTokenProjection |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service
account token.
|
String |
getPath()
Path is the path relative to the mount point of the file to project the
token into.
|
com.google.protobuf.ByteString |
getPathBytes()
Path is the path relative to the mount point of the file to project the
token into.
|
boolean |
hasAudience()
Audience is the intended audience of the token.
|
boolean |
hasExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service
account token.
|
boolean |
hasPath()
Path is the path relative to the mount point of the file to project the
token into.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.ServiceAccountTokenProjection.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.ServiceAccountTokenProjection.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.ServiceAccountTokenProjection.Builder |
mergeFrom(V1.ServiceAccountTokenProjection other) |
V1.ServiceAccountTokenProjection.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.ServiceAccountTokenProjection.Builder |
setAudience(String value)
Audience is the intended audience of the token.
|
V1.ServiceAccountTokenProjection.Builder |
setAudienceBytes(com.google.protobuf.ByteString value)
Audience is the intended audience of the token.
|
V1.ServiceAccountTokenProjection.Builder |
setExpirationSeconds(long value)
ExpirationSeconds is the requested duration of validity of the service
account token.
|
V1.ServiceAccountTokenProjection.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ServiceAccountTokenProjection.Builder |
setPath(String value)
Path is the path relative to the mount point of the file to project the
token into.
|
V1.ServiceAccountTokenProjection.Builder |
setPathBytes(com.google.protobuf.ByteString value)
Path is the path relative to the mount point of the file to project the
token into.
|
V1.ServiceAccountTokenProjection.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.ServiceAccountTokenProjection.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.ServiceAccountTokenProjection build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.ServiceAccountTokenProjection buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.ServiceAccountTokenProjection.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder mergeFrom(V1.ServiceAccountTokenProjection other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public V1.ServiceAccountTokenProjection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ServiceAccountTokenProjection.Builder>IOExceptionpublic boolean hasAudience()
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional
optional string audience = 1;hasAudience in interface V1.ServiceAccountTokenProjectionOrBuilderpublic String getAudience()
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional
optional string audience = 1;getAudience in interface V1.ServiceAccountTokenProjectionOrBuilderpublic com.google.protobuf.ByteString getAudienceBytes()
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional
optional string audience = 1;getAudienceBytes in interface V1.ServiceAccountTokenProjectionOrBuilderpublic V1.ServiceAccountTokenProjection.Builder setAudience(String value)
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional
optional string audience = 1;public V1.ServiceAccountTokenProjection.Builder clearAudience()
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional
optional string audience = 1;public V1.ServiceAccountTokenProjection.Builder setAudienceBytes(com.google.protobuf.ByteString value)
Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional
optional string audience = 1;public boolean hasExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional
optional int64 expirationSeconds = 2;hasExpirationSeconds in interface V1.ServiceAccountTokenProjectionOrBuilderpublic long getExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional
optional int64 expirationSeconds = 2;getExpirationSeconds in interface V1.ServiceAccountTokenProjectionOrBuilderpublic V1.ServiceAccountTokenProjection.Builder setExpirationSeconds(long value)
ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional
optional int64 expirationSeconds = 2;public V1.ServiceAccountTokenProjection.Builder clearExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional
optional int64 expirationSeconds = 2;public boolean hasPath()
Path is the path relative to the mount point of the file to project the token into.
optional string path = 3;hasPath in interface V1.ServiceAccountTokenProjectionOrBuilderpublic String getPath()
Path is the path relative to the mount point of the file to project the token into.
optional string path = 3;getPath in interface V1.ServiceAccountTokenProjectionOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Path is the path relative to the mount point of the file to project the token into.
optional string path = 3;getPathBytes in interface V1.ServiceAccountTokenProjectionOrBuilderpublic V1.ServiceAccountTokenProjection.Builder setPath(String value)
Path is the path relative to the mount point of the file to project the token into.
optional string path = 3;public V1.ServiceAccountTokenProjection.Builder clearPath()
Path is the path relative to the mount point of the file to project the token into.
optional string path = 3;public V1.ServiceAccountTokenProjection.Builder setPathBytes(com.google.protobuf.ByteString value)
Path is the path relative to the mount point of the file to project the token into.
optional string path = 3;public final V1.ServiceAccountTokenProjection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>public final V1.ServiceAccountTokenProjection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServiceAccountTokenProjection.Builder>Copyright © 2021. All rights reserved.