Class Kubernetes.Object.Builder (2.45.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Container>
Returns
TypeDescription
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
NameDescription
valueContainer
Returns
TypeDescription
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
NameDescription
builderForValueContainer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContainer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContainer.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Container.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Kubernetes.Object.Builder clear()
Returns
TypeDescription
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
TypeDescription
Kubernetes.Object.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGroup()

public Kubernetes.Object.Builder clearGroup()

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

string group = 1;

Returns
TypeDescription
Kubernetes.Object.Builder

This builder for chaining.

clearKind()

public Kubernetes.Object.Builder clearKind()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Kubernetes.Object.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Kubernetes.Object.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getContainersCount()

public int getContainersCount()

Pod containers associated with this finding, if any.

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

Returns
TypeDescription
int

getContainersList()

public List<Container> getContainersList()

Pod containers associated with this finding, if any.

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

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

getContainersOrBuilderList()

public List<? extends ContainerOrBuilder> getContainersOrBuilderList()

Pod containers associated with this finding, if any.

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

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroup()

public String getGroup()

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

string group = 1;

Returns
TypeDescription
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

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

string group = 1;

Returns
TypeDescription
ByteString

The bytes for group.

getKind()

public String getKind()

Kubernetes object kind, such as "Namespace".

string kind = 2;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Kubernetes object kind, such as "Namespace".

string kind = 2;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.Object.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The group to set.

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

The bytes for group to set.

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

The kind to set.

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

The bytes for kind to set.

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

The name to set.

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

The bytes for name to set.

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

The ns to set.

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

The bytes for ns to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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