Class Kubernetes.AccessReview (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Kubernetes.AccessReview extends GeneratedMessageV3 implements Kubernetes.AccessReviewOrBuilder

Conveys information about a Kubernetes access review (e.g. kubectl auth can-i ...) that was involved in a finding.

Protobuf type google.cloud.securitycenter.v1.Kubernetes.AccessReview

Static Fields

GROUP_FIELD_NUMBER

public static final int GROUP_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NS_FIELD_NUMBER

public static final int NS_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBRESOURCE_FIELD_NUMBER

public static final int SUBRESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

VERB_FIELD_NUMBER

public static final int VERB_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Kubernetes.AccessReview getDefaultInstance()
Returns
TypeDescription
Kubernetes.AccessReview

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Kubernetes.AccessReview.Builder newBuilder()
Returns
TypeDescription
Kubernetes.AccessReview.Builder

newBuilder(Kubernetes.AccessReview prototype)

public static Kubernetes.AccessReview.Builder newBuilder(Kubernetes.AccessReview prototype)
Parameter
NameDescription
prototypeKubernetes.AccessReview
Returns
TypeDescription
Kubernetes.AccessReview.Builder

parseDelimitedFrom(InputStream input)

public static Kubernetes.AccessReview parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes.AccessReview parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Kubernetes.AccessReview parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes.AccessReview parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Kubernetes.AccessReview parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes.AccessReview parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Kubernetes.AccessReview parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes.AccessReview parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Kubernetes.AccessReview parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Kubernetes.AccessReview parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Kubernetes.AccessReview parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Kubernetes.AccessReview parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Kubernetes.AccessReview> parser()
Returns
TypeDescription
Parser<AccessReview>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Kubernetes.AccessReview getDefaultInstanceForType()
Returns
TypeDescription
Kubernetes.AccessReview

getGroup()

public String getGroup()

Group is the API Group of the Resource. "*" means all.

string group = 1;

Returns
TypeDescription
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Group is the API Group of the Resource. "*" means all.

string group = 1;

Returns
TypeDescription
ByteString

The bytes for group.

getName()

public String getName()

Name is the name of the resource being requested. Empty means all.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name is the name of the resource being requested. Empty means all.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

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;

Returns
TypeDescription
String

The ns.

getNsBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for ns.

getParserForType()

public Parser<Kubernetes.AccessReview> getParserForType()
Returns
TypeDescription
Parser<AccessReview>
Overrides

getResource()

public String getResource()

Resource is the optional resource type requested. "*" means all.

string resource = 4;

Returns
TypeDescription
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Resource is the optional resource type requested. "*" means all.

string resource = 4;

Returns
TypeDescription
ByteString

The bytes for resource.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubresource()

public String getSubresource()

Subresource is the optional subresource type.

string subresource = 5;

Returns
TypeDescription
String

The subresource.

getSubresourceBytes()

public ByteString getSubresourceBytes()

Subresource is the optional subresource type.

string subresource = 5;

Returns
TypeDescription
ByteString

The bytes for subresource.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVerb()

public String getVerb()

Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

string verb = 6;

Returns
TypeDescription
String

The verb.

getVerbBytes()

public ByteString getVerbBytes()

Verb is a Kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

string verb = 6;

Returns
TypeDescription
ByteString

The bytes for verb.

getVersion()

public String getVersion()

Version is the API Version of the Resource. "*" means all.

string version = 7;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version is the API Version of the Resource. "*" means all.

string version = 7;

Returns
TypeDescription
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Kubernetes.AccessReview.Builder newBuilderForType()
Returns
TypeDescription
Kubernetes.AccessReview.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Kubernetes.AccessReview.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Kubernetes.AccessReview.Builder toBuilder()
Returns
TypeDescription
Kubernetes.AccessReview.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException