Class Kubernetes.Role.Builder (2.47.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Kubernetes.Role.Builder clearKind()

Role type.

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

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

clearName()

public Kubernetes.Role.Builder clearName()

Role name.

string name = 3;

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

clearNs()

public Kubernetes.Role.Builder clearNs()

Role namespace.

string ns = 2;

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public Kubernetes.Role.Kind getKind()

Role type.

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

Returns
TypeDescription
Kubernetes.Role.Kind

The kind.

getKindValue()

public int getKindValue()

Role type.

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

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Role name.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Role name.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Role namespace.

string ns = 2;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Role namespace.

string ns = 2;

Returns
TypeDescription
ByteString

The bytes for ns.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Kubernetes.Role other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.Role.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueKubernetes.Role.Kind

The kind to set.

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

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

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

setName(String value)

public Kubernetes.Role.Builder setName(String value)

Role name.

string name = 3;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Role.Builder setNameBytes(ByteString value)

Role name.

string name = 3;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Role.Builder setNs(String value)

Role namespace.

string ns = 2;

Parameter
NameDescription
valueString

The ns to set.

Returns
TypeDescription
Kubernetes.Role.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Role.Builder setNsBytes(ByteString value)

Role namespace.

string ns = 2;

Parameter
NameDescription
valueByteString

The bytes for ns to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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