Class Kubernetes.AccessReview

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

    public static final class Kubernetes.AccessReview
    extends com.google.protobuf.GeneratedMessageV3
    implements Kubernetes.AccessReviewOrBuilder
     Conveys information about a Kubernetes access review (such as one returned
     by a [`kubectl auth
     can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access)
     command) that was involved in a finding.
     
    Protobuf type google.cloud.securitycenter.v1.Kubernetes.AccessReview
    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
      • getGroupBytes

        public com.google.protobuf.ByteString getGroupBytes()
         The API group of the resource. "*" means all.
         
        string group = 1;
        Specified by:
        getGroupBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for group.
      • getNs

        public String getNs()
         Namespace of the action being requested. Currently, there is no
         distinction between no namespace and all namespaces.  Both
         are represented by "" (empty).
         
        string ns = 2;
        Specified by:
        getNs in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The ns.
      • getNsBytes

        public com.google.protobuf.ByteString getNsBytes()
         Namespace of the action being requested. Currently, there is no
         distinction between no namespace and all namespaces.  Both
         are represented by "" (empty).
         
        string ns = 2;
        Specified by:
        getNsBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for ns.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the resource being requested. Empty means all.
         
        string name = 3;
        Specified by:
        getNameBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for name.
      • getResourceBytes

        public com.google.protobuf.ByteString getResourceBytes()
         The optional resource type requested. "*" means all.
         
        string resource = 4;
        Specified by:
        getResourceBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for resource.
      • getSubresourceBytes

        public com.google.protobuf.ByteString getSubresourceBytes()
         The optional subresource type.
         
        string subresource = 5;
        Specified by:
        getSubresourceBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for subresource.
      • getVerb

        public String getVerb()
         A Kubernetes resource API verb, like get, list, watch, create, update,
         delete, proxy. "*" means all.
         
        string verb = 6;
        Specified by:
        getVerb in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The verb.
      • getVerbBytes

        public com.google.protobuf.ByteString getVerbBytes()
         A Kubernetes resource API verb, like get, list, watch, create, update,
         delete, proxy. "*" means all.
         
        string verb = 6;
        Specified by:
        getVerbBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for verb.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The API version of the resource. "*" means all.
         
        string version = 7;
        Specified by:
        getVersionBytes in interface Kubernetes.AccessReviewOrBuilder
        Returns:
        The bytes for version.
      • 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 Kubernetes.AccessReview parseFrom​(ByteBuffer data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<Kubernetes.AccessReview> 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 Kubernetes.AccessReview getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder