Class Kubernetes.Binding.Builder (2.60.0)

public static final class Kubernetes.Binding.Builder extends GeneratedMessageV3.Builder<Kubernetes.Binding.Builder> implements Kubernetes.BindingOrBuilder

Represents a Kubernetes RoleBinding or ClusterRoleBinding.

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

Static Methods

getDescriptor()

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

Methods

addAllSubjects(Iterable<? extends Kubernetes.Subject> values)

public Kubernetes.Binding.Builder addAllSubjects(Iterable<? extends Kubernetes.Subject> values)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v1.Kubernetes.Subject>
Returns
Type Description
Kubernetes.Binding.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubjects(Kubernetes.Subject value)

public Kubernetes.Binding.Builder addSubjects(Kubernetes.Subject value)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
value Kubernetes.Subject
Returns
Type Description
Kubernetes.Binding.Builder

addSubjects(Kubernetes.Subject.Builder builderForValue)

public Kubernetes.Binding.Builder addSubjects(Kubernetes.Subject.Builder builderForValue)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
builderForValue Kubernetes.Subject.Builder
Returns
Type Description
Kubernetes.Binding.Builder

addSubjects(int index, Kubernetes.Subject value)

public Kubernetes.Binding.Builder addSubjects(int index, Kubernetes.Subject value)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameters
Name Description
index int
value Kubernetes.Subject
Returns
Type Description
Kubernetes.Binding.Builder

addSubjects(int index, Kubernetes.Subject.Builder builderForValue)

public Kubernetes.Binding.Builder addSubjects(int index, Kubernetes.Subject.Builder builderForValue)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameters
Name Description
index int
builderForValue Kubernetes.Subject.Builder
Returns
Type Description
Kubernetes.Binding.Builder

addSubjectsBuilder()

public Kubernetes.Subject.Builder addSubjectsBuilder()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
Type Description
Kubernetes.Subject.Builder

addSubjectsBuilder(int index)

public Kubernetes.Subject.Builder addSubjectsBuilder(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Subject.Builder

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Kubernetes.Binding.Builder clearName()

Name for the binding.

string name = 2;

Returns
Type Description
Kubernetes.Binding.Builder

This builder for chaining.

clearNs()

public Kubernetes.Binding.Builder clearNs()

Namespace for the binding.

string ns = 1;

Returns
Type Description
Kubernetes.Binding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRole()

public Kubernetes.Binding.Builder clearRole()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
Type Description
Kubernetes.Binding.Builder

clearSubjects()

public Kubernetes.Binding.Builder clearSubjects()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
Type Description
Kubernetes.Binding.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getName()

public String getName()

Name for the binding.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the binding.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getNs()

public String getNs()

Namespace for the binding.

string ns = 1;

Returns
Type Description
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Namespace for the binding.

string ns = 1;

Returns
Type Description
ByteString

The bytes for ns.

getRole()

public Kubernetes.Role getRole()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
Type Description
Kubernetes.Role

The role.

getRoleBuilder()

public Kubernetes.Role.Builder getRoleBuilder()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
Type Description
Kubernetes.Role.Builder

getRoleOrBuilder()

public Kubernetes.RoleOrBuilder getRoleOrBuilder()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
Type Description
Kubernetes.RoleOrBuilder

getSubjects(int index)

public Kubernetes.Subject getSubjects(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Subject

getSubjectsBuilder(int index)

public Kubernetes.Subject.Builder getSubjectsBuilder(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Subject.Builder

getSubjectsBuilderList()

public List<Kubernetes.Subject.Builder> getSubjectsBuilderList()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
Type Description
List<Builder>

getSubjectsCount()

public int getSubjectsCount()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
Type Description
int

getSubjectsList()

public List<Kubernetes.Subject> getSubjectsList()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
Type Description
List<Subject>

getSubjectsOrBuilder(int index)

public Kubernetes.SubjectOrBuilder getSubjectsOrBuilder(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.SubjectOrBuilder

getSubjectsOrBuilderList()

public List<? extends Kubernetes.SubjectOrBuilder> getSubjectsOrBuilderList()

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v1.Kubernetes.SubjectOrBuilder>

hasRole()

public boolean hasRole()

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Returns
Type Description
boolean

Whether the role field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Kubernetes.Binding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRole(Kubernetes.Role value)

public Kubernetes.Binding.Builder mergeRole(Kubernetes.Role value)

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Parameter
Name Description
value Kubernetes.Role
Returns
Type Description
Kubernetes.Binding.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSubjects(int index)

public Kubernetes.Binding.Builder removeSubjects(int index)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Binding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Kubernetes.Binding.Builder setName(String value)

Name for the binding.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.Binding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Binding.Builder setNameBytes(ByteString value)

Name for the binding.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.Binding.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Binding.Builder setNs(String value)

Namespace for the binding.

string ns = 1;

Parameter
Name Description
value String

The ns to set.

Returns
Type Description
Kubernetes.Binding.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Binding.Builder setNsBytes(ByteString value)

Namespace for the binding.

string ns = 1;

Parameter
Name Description
value ByteString

The bytes for ns to set.

Returns
Type Description
Kubernetes.Binding.Builder

This builder for chaining.

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

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

setRole(Kubernetes.Role value)

public Kubernetes.Binding.Builder setRole(Kubernetes.Role value)

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Parameter
Name Description
value Kubernetes.Role
Returns
Type Description
Kubernetes.Binding.Builder

setRole(Kubernetes.Role.Builder builderForValue)

public Kubernetes.Binding.Builder setRole(Kubernetes.Role.Builder builderForValue)

The Role or ClusterRole referenced by the binding.

.google.cloud.securitycenter.v1.Kubernetes.Role role = 3;

Parameter
Name Description
builderForValue Kubernetes.Role.Builder
Returns
Type Description
Kubernetes.Binding.Builder

setSubjects(int index, Kubernetes.Subject value)

public Kubernetes.Binding.Builder setSubjects(int index, Kubernetes.Subject value)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameters
Name Description
index int
value Kubernetes.Subject
Returns
Type Description
Kubernetes.Binding.Builder

setSubjects(int index, Kubernetes.Subject.Builder builderForValue)

public Kubernetes.Binding.Builder setSubjects(int index, Kubernetes.Subject.Builder builderForValue)

Represents one or more subjects that are bound to the role. Not always available for PATCH requests.

repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4;

Parameters
Name Description
index int
builderForValue Kubernetes.Subject.Builder
Returns
Type Description
Kubernetes.Binding.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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