Class Kubernetes.Object.Builder (2.62.0)

public static final class Kubernetes.Object.Builder extends GeneratedMessageV3.Builder<Kubernetes.Object.Builder> implements Kubernetes.ObjectOrBuilder

Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.

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

Static Methods

getDescriptor()

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

Methods

addAllContainers(Iterable<? extends Container> values)

public Kubernetes.Object.Builder addAllContainers(Iterable<? extends Container> values)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

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

addContainers(Container value)

public Kubernetes.Object.Builder addContainers(Container value)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameter
Name Description
value Container
Returns
Type Description
Kubernetes.Object.Builder

addContainers(Container.Builder builderForValue)

public Kubernetes.Object.Builder addContainers(Container.Builder builderForValue)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameter
Name Description
builderForValue Container.Builder
Returns
Type Description
Kubernetes.Object.Builder

addContainers(int index, Container value)

public Kubernetes.Object.Builder addContainers(int index, Container value)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameters
Name Description
index int
value Container
Returns
Type Description
Kubernetes.Object.Builder

addContainers(int index, Container.Builder builderForValue)

public Kubernetes.Object.Builder addContainers(int index, Container.Builder builderForValue)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameters
Name Description
index int
builderForValue Container.Builder
Returns
Type Description
Kubernetes.Object.Builder

addContainersBuilder()

public Container.Builder addContainersBuilder()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Returns
Type Description
Container.Builder

addContainersBuilder(int index)

public Container.Builder addContainersBuilder(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameter
Name Description
index int
Returns
Type Description
Container.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearContainers()

public Kubernetes.Object.Builder clearContainers()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Returns
Type Description
Kubernetes.Object.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGroup()

public Kubernetes.Object.Builder clearGroup()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

clearKind()

public Kubernetes.Object.Builder clearKind()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

clearName()

public Kubernetes.Object.Builder clearName()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

clearNs()

public Kubernetes.Object.Builder clearNs()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContainers(int index)

public Container getContainers(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameter
Name Description
index int
Returns
Type Description
Container

getContainersBuilder(int index)

public Container.Builder getContainersBuilder(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameter
Name Description
index int
Returns
Type Description
Container.Builder

getContainersBuilderList()

public List<Container.Builder> getContainersBuilderList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Returns
Type Description
List<Builder>

getContainersCount()

public int getContainersCount()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Returns
Type Description
int

getContainersList()

public List<Container> getContainersList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Returns
Type Description
List<Container>

getContainersOrBuilder(int index)

public ContainerOrBuilder getContainersOrBuilder(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameter
Name Description
index int
Returns
Type Description
ContainerOrBuilder

getContainersOrBuilderList()

public List<? extends ContainerOrBuilder> getContainersOrBuilderList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getGroup()

public String getGroup()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Returns
Type Description
ByteString

The bytes for group.

getKind()

public String getKind()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Returns
Type Description
ByteString

The bytes for name.

getNs()

public String getNs()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Returns
Type Description
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContainers(int index)

public Kubernetes.Object.Builder removeContainers(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

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

setContainers(int index, Container value)

public Kubernetes.Object.Builder setContainers(int index, Container value)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameters
Name Description
index int
value Container
Returns
Type Description
Kubernetes.Object.Builder

setContainers(int index, Container.Builder builderForValue)

public Kubernetes.Object.Builder setContainers(int index, Container.Builder builderForValue)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v1.Container containers = 5;

Parameters
Name Description
index int
builderForValue Container.Builder
Returns
Type Description
Kubernetes.Object.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroup(String value)

public Kubernetes.Object.Builder setGroup(String value)

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Parameter
Name Description
value String

The group to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setGroupBytes(ByteString value)

public Kubernetes.Object.Builder setGroupBytes(ByteString value)

Kubernetes object group, such as "policy.k8s.io/v1".

string group = 1;

Parameter
Name Description
value ByteString

The bytes for group to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setKind(String value)

public Kubernetes.Object.Builder setKind(String value)

Kubernetes object kind, such as "Namespace".

string kind = 2;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Kubernetes.Object.Builder setKindBytes(ByteString value)

Kubernetes object kind, such as "Namespace".

string kind = 2;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setName(String value)

public Kubernetes.Object.Builder setName(String value)

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Object.Builder setNameBytes(ByteString value)

Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

string name = 4;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Object.Builder setNs(String value)

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Parameter
Name Description
value String

The ns to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Object.Builder setNsBytes(ByteString value)

Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

string ns = 3;

Parameter
Name Description
value ByteString

The bytes for ns to set.

Returns
Type Description
Kubernetes.Object.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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