Class Generated.ServiceAccount.Builder

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

    public static final class Generated.ServiceAccount.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
    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
    • 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.ServiceAccount.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.ServiceAccount.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.ServiceAccount.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
      • addRepeatedField

        public Generated.ServiceAccount.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.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.ServiceAccount.Builder>
      • mergeFrom

        public Generated.ServiceAccount.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.ServiceAccount.Builder>
        Throws:
        IOException
      • 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.
      • setMetadata

        public Generated.ServiceAccount.Builder setMetadata​(Generated.ObjectMeta value)
         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;
      • setMetadata

        public Generated.ServiceAccount.Builder setMetadata​(Generated.ObjectMeta.Builder builderForValue)
         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;
      • mergeMetadata

        public Generated.ServiceAccount.Builder mergeMetadata​(Generated.ObjectMeta value)
         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;
      • clearMetadata

        public Generated.ServiceAccount.Builder clearMetadata()
         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;
      • getMetadataBuilder

        public Generated.ObjectMeta.Builder getMetadataBuilder()
         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;
      • 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
      • 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
      • setSecrets

        public Generated.ServiceAccount.Builder setSecrets​(int index,
                                                           Generated.ObjectReference value)
         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;
      • setSecrets

        public Generated.ServiceAccount.Builder setSecrets​(int index,
                                                           Generated.ObjectReference.Builder builderForValue)
         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;
      • addSecrets

        public Generated.ServiceAccount.Builder addSecrets​(Generated.ObjectReference value)
         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;
      • addSecrets

        public Generated.ServiceAccount.Builder addSecrets​(int index,
                                                           Generated.ObjectReference value)
         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;
      • addSecrets

        public Generated.ServiceAccount.Builder addSecrets​(Generated.ObjectReference.Builder builderForValue)
         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;
      • addSecrets

        public Generated.ServiceAccount.Builder addSecrets​(int index,
                                                           Generated.ObjectReference.Builder builderForValue)
         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;
      • addAllSecrets

        public Generated.ServiceAccount.Builder addAllSecrets​(Iterable<? extends Generated.ObjectReference> values)
         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;
      • clearSecrets

        public Generated.ServiceAccount.Builder clearSecrets()
         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;
      • removeSecrets

        public Generated.ServiceAccount.Builder removeSecrets​(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;
      • getSecretsBuilder

        public Generated.ObjectReference.Builder getSecretsBuilder​(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;
      • 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
      • 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
      • addSecretsBuilder

        public Generated.ObjectReference.Builder addSecretsBuilder()
         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;
      • addSecretsBuilder

        public Generated.ObjectReference.Builder addSecretsBuilder​(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;
      • getSecretsBuilderList

        public List<Generated.ObjectReference.Builder> getSecretsBuilderList()
         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;
      • 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
      • 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
      • setImagePullSecrets

        public Generated.ServiceAccount.Builder setImagePullSecrets​(int index,
                                                                    Generated.LocalObjectReference value)
         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;
      • setImagePullSecrets

        public Generated.ServiceAccount.Builder setImagePullSecrets​(int index,
                                                                    Generated.LocalObjectReference.Builder builderForValue)
         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;
      • addImagePullSecrets

        public Generated.ServiceAccount.Builder addImagePullSecrets​(Generated.LocalObjectReference value)
         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;
      • addImagePullSecrets

        public Generated.ServiceAccount.Builder addImagePullSecrets​(int index,
                                                                    Generated.LocalObjectReference value)
         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;
      • addImagePullSecrets

        public Generated.ServiceAccount.Builder addImagePullSecrets​(Generated.LocalObjectReference.Builder builderForValue)
         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;
      • addImagePullSecrets

        public Generated.ServiceAccount.Builder addImagePullSecrets​(int index,
                                                                    Generated.LocalObjectReference.Builder builderForValue)
         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;
      • addAllImagePullSecrets

        public Generated.ServiceAccount.Builder addAllImagePullSecrets​(Iterable<? extends Generated.LocalObjectReference> values)
         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;
      • clearImagePullSecrets

        public Generated.ServiceAccount.Builder clearImagePullSecrets()
         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;
      • removeImagePullSecrets

        public Generated.ServiceAccount.Builder removeImagePullSecrets​(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;
      • getImagePullSecretsBuilder

        public Generated.LocalObjectReference.Builder getImagePullSecretsBuilder​(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;
      • 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
      • 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
      • addImagePullSecretsBuilder

        public Generated.LocalObjectReference.Builder addImagePullSecretsBuilder()
         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;
      • addImagePullSecretsBuilder

        public Generated.LocalObjectReference.Builder addImagePullSecretsBuilder​(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;
      • getImagePullSecretsBuilderList

        public List<Generated.LocalObjectReference.Builder> getImagePullSecretsBuilderList()
         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;
      • 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.
      • setAutomountServiceAccountToken

        public Generated.ServiceAccount.Builder setAutomountServiceAccountToken​(boolean value)
         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;
        Parameters:
        value - The automountServiceAccountToken to set.
        Returns:
        This builder for chaining.
      • clearAutomountServiceAccountToken

        public Generated.ServiceAccount.Builder clearAutomountServiceAccountToken()
         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;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.ServiceAccount.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>
      • mergeUnknownFields

        public final Generated.ServiceAccount.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ServiceAccount.Builder>