Package k8s.io.api.core.v1
Class Generated.ServiceAccountTokenProjection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
- k8s.io.api.core.v1.Generated.ServiceAccountTokenProjection.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.ServiceAccountTokenProjectionOrBuilder
- Enclosing class:
- Generated.ServiceAccountTokenProjection
public static final class Generated.ServiceAccountTokenProjection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder> implements Generated.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 typek8s.io.api.core.v1.ServiceAccountTokenProjection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.ServiceAccountTokenProjection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ServiceAccountTokenProjectionbuild()Generated.ServiceAccountTokenProjectionbuildPartial()Generated.ServiceAccountTokenProjection.Builderclear()Generated.ServiceAccountTokenProjection.BuilderclearAudience()audience is the intended audience of the token.Generated.ServiceAccountTokenProjection.BuilderclearExpirationSeconds()expirationSeconds is the requested duration of validity of the service account token.Generated.ServiceAccountTokenProjection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.ServiceAccountTokenProjection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.ServiceAccountTokenProjection.BuilderclearPath()path is the path relative to the mount point of the file to project the token into.Generated.ServiceAccountTokenProjection.Builderclone()StringgetAudience()audience is the intended audience of the token.com.google.protobuf.ByteStringgetAudienceBytes()audience is the intended audience of the token.Generated.ServiceAccountTokenProjectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetExpirationSeconds()expirationSeconds is the requested duration of validity of the service account token.StringgetPath()path is the path relative to the mount point of the file to project the token into.com.google.protobuf.ByteStringgetPathBytes()path is the path relative to the mount point of the file to project the token into.booleanhasAudience()audience is the intended audience of the token.booleanhasExpirationSeconds()expirationSeconds is the requested duration of validity of the service account token.booleanhasPath()path is the path relative to the mount point of the file to project the token into.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.ServiceAccountTokenProjection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.ServiceAccountTokenProjection.BuildermergeFrom(com.google.protobuf.Message other)Generated.ServiceAccountTokenProjection.BuildermergeFrom(Generated.ServiceAccountTokenProjection other)Generated.ServiceAccountTokenProjection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.ServiceAccountTokenProjection.BuildersetAudience(String value)audience is the intended audience of the token.Generated.ServiceAccountTokenProjection.BuildersetAudienceBytes(com.google.protobuf.ByteString value)audience is the intended audience of the token.Generated.ServiceAccountTokenProjection.BuildersetExpirationSeconds(long value)expirationSeconds is the requested duration of validity of the service account token.Generated.ServiceAccountTokenProjection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ServiceAccountTokenProjection.BuildersetPath(String value)path is the path relative to the mount point of the file to project the token into.Generated.ServiceAccountTokenProjection.BuildersetPathBytes(com.google.protobuf.ByteString value)path is the path relative to the mount point of the file to project the token into.Generated.ServiceAccountTokenProjection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.ServiceAccountTokenProjection.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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
-
-
-
-
Method Detail
-
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<Generated.ServiceAccountTokenProjection.Builder>
-
clear
public Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>
-
getDefaultInstanceForType
public Generated.ServiceAccountTokenProjection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.ServiceAccountTokenProjection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.ServiceAccountTokenProjection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>
-
setField
public Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>
-
clearField
public Generated.ServiceAccountTokenProjection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
clearOneof
public Generated.ServiceAccountTokenProjection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
setRepeatedField
public Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>
-
addRepeatedField
public Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>
-
mergeFrom
public Generated.ServiceAccountTokenProjection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
mergeFrom
public Generated.ServiceAccountTokenProjection.Builder mergeFrom(Generated.ServiceAccountTokenProjection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
mergeFrom
public Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>- Throws:
IOException
-
hasAudience
public 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;- Specified by:
hasAudiencein interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- Whether the audience field is set.
-
getAudience
public 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;- Specified by:
getAudiencein interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- The audience.
-
getAudienceBytes
public 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;- Specified by:
getAudienceBytesin interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- The bytes for audience.
-
setAudience
public Generated.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;- Parameters:
value- The audience to set.- Returns:
- This builder for chaining.
-
clearAudience
public Generated.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;- Returns:
- This builder for chaining.
-
setAudienceBytes
public Generated.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;- Parameters:
value- The bytes for audience to set.- Returns:
- This builder for chaining.
-
hasExpirationSeconds
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;- Specified by:
hasExpirationSecondsin interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- Whether the expirationSeconds field is set.
-
getExpirationSeconds
public 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;- Specified by:
getExpirationSecondsin interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- The expirationSeconds.
-
setExpirationSeconds
public Generated.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;- Parameters:
value- The expirationSeconds to set.- Returns:
- This builder for chaining.
-
clearExpirationSeconds
public Generated.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;- Returns:
- This builder for chaining.
-
hasPath
public boolean hasPath()
path is the path relative to the mount point of the file to project the token into.
optional string path = 3;- Specified by:
hasPathin interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- Whether the path field is set.
-
getPath
public String getPath()
path is the path relative to the mount point of the file to project the token into.
optional string path = 3;- Specified by:
getPathin interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- The path.
-
getPathBytes
public 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;- Specified by:
getPathBytesin interfaceGenerated.ServiceAccountTokenProjectionOrBuilder- Returns:
- The bytes for path.
-
setPath
public Generated.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;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public Generated.ServiceAccountTokenProjection.Builder clearPath()
path is the path relative to the mount point of the file to project the token into.
optional string path = 3;- Returns:
- This builder for chaining.
-
setPathBytes
public Generated.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;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.ServiceAccountTokenProjection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
mergeUnknownFields
public final Generated.ServiceAccountTokenProjection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
-
-