Class Kubernetes.AccessReview.Builder (2.17.0)

public static final class Kubernetes.AccessReview.Builder extends GeneratedMessageV3.Builder<Kubernetes.AccessReview.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.AccessReview.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Kubernetes.AccessReview.Builder clear()
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Kubernetes.AccessReview.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

clearGroup()

public Kubernetes.AccessReview.Builder clearGroup()

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

string group = 1;

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

clearName()

public Kubernetes.AccessReview.Builder clearName()

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

string name = 3;

Returns
TypeDescription
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
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Kubernetes.AccessReview.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

clearResource()

public Kubernetes.AccessReview.Builder clearResource()

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

string resource = 4;

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

clearSubresource()

public Kubernetes.AccessReview.Builder clearSubresource()

Subresource is the optional subresource type.

string subresource = 5;

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

clearVerb()

public Kubernetes.AccessReview.Builder clearVerb()

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

string verb = 6;

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

clearVersion()

public Kubernetes.AccessReview.Builder clearVersion()

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

string version = 7;

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

clone()

public Kubernetes.AccessReview.Builder clone()
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Kubernetes.AccessReview other)

public Kubernetes.AccessReview.Builder mergeFrom(Kubernetes.AccessReview other)
Parameter
NameDescription
otherKubernetes.AccessReview
Returns
TypeDescription
Kubernetes.AccessReview.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Kubernetes.AccessReview.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Kubernetes.AccessReview.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.AccessReview.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.AccessReview.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

setGroup(String value)

public Kubernetes.AccessReview.Builder setGroup(String value)

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

string group = 1;

Parameter
NameDescription
valueString

The group to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setGroupBytes(ByteString value)

public Kubernetes.AccessReview.Builder setGroupBytes(ByteString value)

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

string group = 1;

Parameter
NameDescription
valueByteString

The bytes for group to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setName(String value)

public Kubernetes.AccessReview.Builder setName(String value)

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

string name = 3;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.AccessReview.Builder setNameBytes(ByteString value)

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

string name = 3;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The ns to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ns to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

setResource(String value)

public Kubernetes.AccessReview.Builder setResource(String value)

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

string resource = 4;

Parameter
NameDescription
valueString

The resource to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public Kubernetes.AccessReview.Builder setResourceBytes(ByteString value)

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

string resource = 4;

Parameter
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setSubresource(String value)

public Kubernetes.AccessReview.Builder setSubresource(String value)

Subresource is the optional subresource type.

string subresource = 5;

Parameter
NameDescription
valueString

The subresource to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setSubresourceBytes(ByteString value)

public Kubernetes.AccessReview.Builder setSubresourceBytes(ByteString value)

Subresource is the optional subresource type.

string subresource = 5;

Parameter
NameDescription
valueByteString

The bytes for subresource to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.AccessReview.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Kubernetes.AccessReview.Builder
Overrides

setVerb(String value)

public Kubernetes.AccessReview.Builder setVerb(String value)

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

string verb = 6;

Parameter
NameDescription
valueString

The verb to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setVerbBytes(ByteString value)

public Kubernetes.AccessReview.Builder setVerbBytes(ByteString value)

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

string verb = 6;

Parameter
NameDescription
valueByteString

The bytes for verb to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setVersion(String value)

public Kubernetes.AccessReview.Builder setVersion(String value)

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

string version = 7;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Kubernetes.AccessReview.Builder setVersionBytes(ByteString value)

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

string version = 7;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
Kubernetes.AccessReview.Builder

This builder for chaining.