Class Kubernetes.AccessReview.Builder (2.50.0)

public static final class Kubernetes.AccessReview.Builder extends GeneratedMessageV3.Builder<Kubernetes.AccessReview.Builder> implements Kubernetes.AccessReviewOrBuilder

Conveys information about a Kubernetes access review (such as one returned by a kubectl auth can-i command) that was involved in a finding.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.AccessReview.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

build()

public Kubernetes.AccessReview build()
Returns
Type Description
Kubernetes.AccessReview

buildPartial()

public Kubernetes.AccessReview buildPartial()
Returns
Type Description
Kubernetes.AccessReview

clear()

public Kubernetes.AccessReview.Builder clear()
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Kubernetes.AccessReview.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

clearGroup()

public Kubernetes.AccessReview.Builder clearGroup()

The API group of the resource. "*" means all.

string group = 1;

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clearName()

public Kubernetes.AccessReview.Builder clearName()

The name of the resource being requested. Empty means all.

string name = 3;

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clearNs()

public Kubernetes.AccessReview.Builder clearNs()

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
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Kubernetes.AccessReview.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

clearResource()

public Kubernetes.AccessReview.Builder clearResource()

The optional resource type requested. "*" means all.

string resource = 4;

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clearSubresource()

public Kubernetes.AccessReview.Builder clearSubresource()

The optional subresource type.

string subresource = 5;

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clearVerb()

public Kubernetes.AccessReview.Builder clearVerb()

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

string verb = 6;

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clearVersion()

public Kubernetes.AccessReview.Builder clearVersion()

The API version of the resource. "*" means all.

string version = 7;

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

clone()

public Kubernetes.AccessReview.Builder clone()
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

getDefaultInstanceForType()

public Kubernetes.AccessReview getDefaultInstanceForType()
Returns
Type Description
Kubernetes.AccessReview

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroup()

public String getGroup()

The API group of the resource. "*" means all.

string group = 1;

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

The API group of the resource. "*" means all.

string group = 1;

Returns
Type Description
ByteString

The bytes for group.

getName()

public String getName()

The name of the resource being requested. Empty means all.

string name = 3;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the resource being requested. Empty means all.

string name = 3;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for ns.

getResource()

public String getResource()

The optional resource type requested. "*" means all.

string resource = 4;

Returns
Type Description
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

The optional resource type requested. "*" means all.

string resource = 4;

Returns
Type Description
ByteString

The bytes for resource.

getSubresource()

public String getSubresource()

The optional subresource type.

string subresource = 5;

Returns
Type Description
String

The subresource.

getSubresourceBytes()

public ByteString getSubresourceBytes()

The optional subresource type.

string subresource = 5;

Returns
Type Description
ByteString

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;

Returns
Type Description
String

The verb.

getVerbBytes()

public ByteString getVerbBytes()

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

string verb = 6;

Returns
Type Description
ByteString

The bytes for verb.

getVersion()

public String getVersion()

The API version of the resource. "*" means all.

string version = 7;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The API version of the resource. "*" means all.

string version = 7;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Kubernetes.AccessReview other)

public Kubernetes.AccessReview.Builder mergeFrom(Kubernetes.AccessReview other)
Parameter
Name Description
other Kubernetes.AccessReview
Returns
Type Description
Kubernetes.AccessReview.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Kubernetes.AccessReview.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Kubernetes.AccessReview.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.AccessReview.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.AccessReview.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

setGroup(String value)

public Kubernetes.AccessReview.Builder setGroup(String value)

The API group of the resource. "*" means all.

string group = 1;

Parameter
Name Description
value String

The group to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setGroupBytes(ByteString value)

public Kubernetes.AccessReview.Builder setGroupBytes(ByteString value)

The API group of the resource. "*" means all.

string group = 1;

Parameter
Name Description
value ByteString

The bytes for group to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setName(String value)

public Kubernetes.AccessReview.Builder setName(String value)

The name of the resource being requested. Empty means all.

string name = 3;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.AccessReview.Builder setNameBytes(ByteString value)

The name of the resource being requested. Empty means all.

string name = 3;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.AccessReview.Builder setNs(String value)

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;

Parameter
Name Description
value String

The ns to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.AccessReview.Builder setNsBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for ns to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Kubernetes.AccessReview.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

setResource(String value)

public Kubernetes.AccessReview.Builder setResource(String value)

The optional resource type requested. "*" means all.

string resource = 4;

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public Kubernetes.AccessReview.Builder setResourceBytes(ByteString value)

The optional resource type requested. "*" means all.

string resource = 4;

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setSubresource(String value)

public Kubernetes.AccessReview.Builder setSubresource(String value)

The optional subresource type.

string subresource = 5;

Parameter
Name Description
value String

The subresource to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setSubresourceBytes(ByteString value)

public Kubernetes.AccessReview.Builder setSubresourceBytes(ByteString value)

The optional subresource type.

string subresource = 5;

Parameter
Name Description
value ByteString

The bytes for subresource to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.AccessReview.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Kubernetes.AccessReview.Builder
Overrides

setVerb(String value)

public Kubernetes.AccessReview.Builder setVerb(String value)

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

string verb = 6;

Parameter
Name Description
value String

The verb to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setVerbBytes(ByteString value)

public Kubernetes.AccessReview.Builder setVerbBytes(ByteString value)

A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "*" means all.

string verb = 6;

Parameter
Name Description
value ByteString

The bytes for verb to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setVersion(String value)

public Kubernetes.AccessReview.Builder setVersion(String value)

The API version of the resource. "*" means all.

string version = 7;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Kubernetes.AccessReview.Builder setVersionBytes(ByteString value)

The API version of the resource. "*" means all.

string version = 7;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Kubernetes.AccessReview.Builder

This builder for chaining.