Class Kubernetes.Role.Builder (2.55.0)

public static final class Kubernetes.Role.Builder extends GeneratedMessageV3.Builder<Kubernetes.Role.Builder> implements Kubernetes.RoleOrBuilder

Kubernetes Role or ClusterRole.

Protobuf type google.cloud.securitycenter.v2.Kubernetes.Role

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Kubernetes.Role.Builder clearKind()

Role type.

.google.cloud.securitycenter.v2.Kubernetes.Role.Kind kind = 1;

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

clearName()

public Kubernetes.Role.Builder clearName()

Role name.

string name = 3;

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

clearNs()

public Kubernetes.Role.Builder clearNs()

Role namespace.

string ns = 2;

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getKind()

public Kubernetes.Role.Kind getKind()

Role type.

.google.cloud.securitycenter.v2.Kubernetes.Role.Kind kind = 1;

Returns
Type Description
Kubernetes.Role.Kind

The kind.

getKindValue()

public int getKindValue()

Role type.

.google.cloud.securitycenter.v2.Kubernetes.Role.Kind kind = 1;

Returns
Type Description
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Role name.

string name = 3;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Role name.

string name = 3;

Returns
Type Description
ByteString

The bytes for name.

getNs()

public String getNs()

Role namespace.

string ns = 2;

Returns
Type Description
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Role namespace.

string ns = 2;

Returns
Type Description
ByteString

The bytes for ns.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Kubernetes.Role other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKind(Kubernetes.Role.Kind value)

public Kubernetes.Role.Builder setKind(Kubernetes.Role.Kind value)

Role type.

.google.cloud.securitycenter.v2.Kubernetes.Role.Kind kind = 1;

Parameter
Name Description
value Kubernetes.Role.Kind

The kind to set.

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

setKindValue(int value)

public Kubernetes.Role.Builder setKindValue(int value)

Role type.

.google.cloud.securitycenter.v2.Kubernetes.Role.Kind kind = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for kind to set.

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

setName(String value)

public Kubernetes.Role.Builder setName(String value)

Role name.

string name = 3;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Role.Builder setNameBytes(ByteString value)

Role name.

string name = 3;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Role.Builder setNs(String value)

Role namespace.

string ns = 2;

Parameter
Name Description
value String

The ns to set.

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Role.Builder setNsBytes(ByteString value)

Role namespace.

string ns = 2;

Parameter
Name Description
value ByteString

The bytes for ns to set.

Returns
Type Description
Kubernetes.Role.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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