Class Kubernetes.Binding.Builder (2.48.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Kubernetes.Subject>
Returns
TypeDescription
Kubernetes.Binding.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.Binding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueKubernetes.Subject
Returns
TypeDescription
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
NameDescription
builderForValueKubernetes.Subject.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueKubernetes.Subject
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKubernetes.Subject.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Subject.Builder

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Kubernetes.Binding.Builder clearName()

Name for the binding.

string name = 2;

Returns
TypeDescription
Kubernetes.Binding.Builder

This builder for chaining.

clearNs()

public Kubernetes.Binding.Builder clearNs()

Namespace for the binding.

string ns = 1;

Returns
TypeDescription
Kubernetes.Binding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Kubernetes.Binding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Kubernetes.Binding.Builder

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name for the binding.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name for the binding.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Namespace for the binding.

string ns = 1;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Namespace for the binding.

string ns = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the role field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Kubernetes.Binding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Kubernetes.Binding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueKubernetes.Role
Returns
TypeDescription
Kubernetes.Binding.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.Binding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Binding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Kubernetes.Binding.Builder setName(String value)

Name for the binding.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

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

The bytes for name to set.

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

The ns to set.

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

The bytes for ns to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueKubernetes.Role
Returns
TypeDescription
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
NameDescription
builderForValueKubernetes.Role.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueKubernetes.Subject
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKubernetes.Subject.Builder
Returns
TypeDescription
Kubernetes.Binding.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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