Class Kubernetes.Subject.Builder (2.59.0)

public static final class Kubernetes.Subject.Builder extends GeneratedMessageV3.Builder<Kubernetes.Subject.Builder> implements Kubernetes.SubjectOrBuilder

Represents a Kubernetes subject.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Kubernetes.Subject.Builder clearKind()

Authentication type for the subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

clearName()

public Kubernetes.Subject.Builder clearName()

Name for the subject.

string name = 3;

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

clearNs()

public Kubernetes.Subject.Builder clearNs()

Namespace for the subject.

string ns = 2;

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getKind()

public Kubernetes.Subject.AuthType getKind()

Authentication type for the subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Returns
Type Description
Kubernetes.Subject.AuthType

The kind.

getKindValue()

public int getKindValue()

Authentication type for the subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Returns
Type Description
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Name for the subject.

string name = 3;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the subject.

string name = 3;

Returns
Type Description
ByteString

The bytes for name.

getNs()

public String getNs()

Namespace for the subject.

string ns = 2;

Returns
Type Description
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Namespace for the subject.

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.Subject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKind(Kubernetes.Subject.AuthType value)

public Kubernetes.Subject.Builder setKind(Kubernetes.Subject.AuthType value)

Authentication type for the subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Parameter
Name Description
value Kubernetes.Subject.AuthType

The kind to set.

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

setKindValue(int value)

public Kubernetes.Subject.Builder setKindValue(int value)

Authentication type for the subject.

.google.cloud.securitycenter.v1.Kubernetes.Subject.AuthType kind = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

setName(String value)

public Kubernetes.Subject.Builder setName(String value)

Name for the subject.

string name = 3;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Subject.Builder setNameBytes(ByteString value)

Name for the subject.

string name = 3;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Subject.Builder setNs(String value)

Namespace for the subject.

string ns = 2;

Parameter
Name Description
value String

The ns to set.

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Subject.Builder setNsBytes(ByteString value)

Namespace for the subject.

string ns = 2;

Parameter
Name Description
value ByteString

The bytes for ns to set.

Returns
Type Description
Kubernetes.Subject.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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