Class Generated.ServiceAccountTokenProjection.Builder

    • Method Detail

      • 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<Generated.ServiceAccountTokenProjection.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<Generated.ServiceAccountTokenProjection.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.ServiceAccountTokenProjection buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccountTokenProjection.Builder>
      • 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:
        hasAudience in interface Generated.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:
        getAudience in interface Generated.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:
        getAudienceBytes in interface Generated.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:
        hasExpirationSeconds in interface Generated.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:
        getExpirationSeconds in interface Generated.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.
      • 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.
      • 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.