Class Generated.ServiceAccount

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.ServiceAccountOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.ServiceAccount
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.ServiceAccountOrBuilder
     ServiceAccount binds together:
     * a name, understood by users, and perhaps by peripheral systems, for an identity
     * a principal that can be authenticated and authorized
     * a set of secrets
     
    Protobuf type k8s.io.api.core.v1.ServiceAccount
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • hasMetadata

        public boolean hasMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Specified by:
        hasMetadata in interface Generated.ServiceAccountOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public Generated.ObjectMeta getMetadata()
         Standard object's metadata.
         More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
        Specified by:
        getMetadata in interface Generated.ServiceAccountOrBuilder
        Returns:
        The metadata.
      • getSecretsList

        public List<Generated.ObjectReference> getSecretsList()
         Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
         Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
         The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
         Prefer separate namespaces to isolate access to mounted secrets.
         This field should not be used to find auto-generated service account token secrets for use outside of pods.
         Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
         More info: https://kubernetes.io/docs/concepts/configuration/secret
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
        Specified by:
        getSecretsList in interface Generated.ServiceAccountOrBuilder
      • getSecretsOrBuilderList

        public List<? extends Generated.ObjectReferenceOrBuilder> getSecretsOrBuilderList()
         Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
         Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
         The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
         Prefer separate namespaces to isolate access to mounted secrets.
         This field should not be used to find auto-generated service account token secrets for use outside of pods.
         Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
         More info: https://kubernetes.io/docs/concepts/configuration/secret
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
        Specified by:
        getSecretsOrBuilderList in interface Generated.ServiceAccountOrBuilder
      • getSecretsCount

        public int getSecretsCount()
         Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
         Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
         The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
         Prefer separate namespaces to isolate access to mounted secrets.
         This field should not be used to find auto-generated service account token secrets for use outside of pods.
         Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
         More info: https://kubernetes.io/docs/concepts/configuration/secret
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
        Specified by:
        getSecretsCount in interface Generated.ServiceAccountOrBuilder
      • getSecrets

        public Generated.ObjectReference getSecrets​(int index)
         Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
         Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
         The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
         Prefer separate namespaces to isolate access to mounted secrets.
         This field should not be used to find auto-generated service account token secrets for use outside of pods.
         Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
         More info: https://kubernetes.io/docs/concepts/configuration/secret
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
        Specified by:
        getSecrets in interface Generated.ServiceAccountOrBuilder
      • getSecretsOrBuilder

        public Generated.ObjectReferenceOrBuilder getSecretsOrBuilder​(int index)
         Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
         Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
         The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
         Prefer separate namespaces to isolate access to mounted secrets.
         This field should not be used to find auto-generated service account token secrets for use outside of pods.
         Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
         More info: https://kubernetes.io/docs/concepts/configuration/secret
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ObjectReference secrets = 2;
        Specified by:
        getSecretsOrBuilder in interface Generated.ServiceAccountOrBuilder
      • getImagePullSecretsList

        public List<Generated.LocalObjectReference> getImagePullSecretsList()
         ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
         in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
         can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
         More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
        Specified by:
        getImagePullSecretsList in interface Generated.ServiceAccountOrBuilder
      • getImagePullSecretsOrBuilderList

        public List<? extends Generated.LocalObjectReferenceOrBuilder> getImagePullSecretsOrBuilderList()
         ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
         in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
         can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
         More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
        Specified by:
        getImagePullSecretsOrBuilderList in interface Generated.ServiceAccountOrBuilder
      • getImagePullSecretsCount

        public int getImagePullSecretsCount()
         ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
         in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
         can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
         More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
        Specified by:
        getImagePullSecretsCount in interface Generated.ServiceAccountOrBuilder
      • getImagePullSecrets

        public Generated.LocalObjectReference getImagePullSecrets​(int index)
         ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
         in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
         can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
         More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
        Specified by:
        getImagePullSecrets in interface Generated.ServiceAccountOrBuilder
      • getImagePullSecretsOrBuilder

        public Generated.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder​(int index)
         ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
         in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
         can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
         More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3;
        Specified by:
        getImagePullSecretsOrBuilder in interface Generated.ServiceAccountOrBuilder
      • hasAutomountServiceAccountToken

        public boolean hasAutomountServiceAccountToken()
         AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
         Can be overridden at the pod level.
         +optional
         
        optional bool automountServiceAccountToken = 4;
        Specified by:
        hasAutomountServiceAccountToken in interface Generated.ServiceAccountOrBuilder
        Returns:
        Whether the automountServiceAccountToken field is set.
      • getAutomountServiceAccountToken

        public boolean getAutomountServiceAccountToken()
         AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
         Can be overridden at the pod level.
         +optional
         
        optional bool automountServiceAccountToken = 4;
        Specified by:
        getAutomountServiceAccountToken in interface Generated.ServiceAccountOrBuilder
        Returns:
        The automountServiceAccountToken.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Generated.ServiceAccount parseFrom​(ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ServiceAccount parseFrom​(ByteBuffer data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ServiceAccount parseFrom​(com.google.protobuf.ByteString data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ServiceAccount parseFrom​(com.google.protobuf.ByteString data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ServiceAccount parseFrom​(byte[] data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.ServiceAccount parseFrom​(byte[] data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Generated.ServiceAccount.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Generated.ServiceAccount.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Generated.ServiceAccount.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.ServiceAccount> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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