Class Kubernetes.Subject.Builder (2.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Kubernetes.Subject.Builder clearKind()

Authentication type for subject.

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

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

clearName()

public Kubernetes.Subject.Builder clearName()

Name for subject.

string name = 3;

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

clearNs()

public Kubernetes.Subject.Builder clearNs()

Namespace for subject.

string ns = 2;

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public Kubernetes.Subject.AuthType getKind()

Authentication type for subject.

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

Returns
TypeDescription
Kubernetes.Subject.AuthType

The kind.

getKindValue()

public int getKindValue()

Authentication type for subject.

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

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Name for subject.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for subject.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Namespace for subject.

string ns = 2;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Namespace for subject.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKind(Kubernetes.Subject.AuthType value)

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

Authentication type for subject.

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

Parameter
NameDescription
valueKubernetes.Subject.AuthType

The kind to set.

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

setKindValue(int value)

public Kubernetes.Subject.Builder setKindValue(int value)

Authentication type for subject.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

setName(String value)

public Kubernetes.Subject.Builder setName(String value)

Name for subject.

string name = 3;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Subject.Builder setNameBytes(ByteString value)

Name for subject.

string name = 3;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Subject.Builder setNs(String value)

Namespace for subject.

string ns = 2;

Parameter
NameDescription
valueString

The ns to set.

Returns
TypeDescription
Kubernetes.Subject.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Subject.Builder setNsBytes(ByteString value)

Namespace for subject.

string ns = 2;

Parameter
NameDescription
valueByteString

The bytes for ns to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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