Class Kubernetes.Pod.Builder (2.55.0)

public static final class Kubernetes.Pod.Builder extends GeneratedMessageV3.Builder<Kubernetes.Pod.Builder> implements Kubernetes.PodOrBuilder

A Kubernetes Pod.

Protobuf type google.cloud.securitycenter.v2.Kubernetes.Pod

Static Methods

getDescriptor()

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

Methods

addAllContainers(Iterable<? extends Container> values)

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

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

addAllLabels(Iterable<? extends Label> values)

public Kubernetes.Pod.Builder addAllLabels(Iterable<? extends Label> values)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.Label>
Returns
Type Description
Kubernetes.Pod.Builder

addContainers(Container value)

public Kubernetes.Pod.Builder addContainers(Container value)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

addContainers(Container.Builder builderForValue)

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

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

addContainers(int index, Container value)

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

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

addContainers(int index, Container.Builder builderForValue)

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

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

addContainersBuilder()

public Container.Builder addContainersBuilder()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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.v2.Container containers = 4;

Parameter
Name Description
index int
Returns
Type Description
Container.Builder

addLabels(Label value)

public Kubernetes.Pod.Builder addLabels(Label value)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
value Label
Returns
Type Description
Kubernetes.Pod.Builder

addLabels(Label.Builder builderForValue)

public Kubernetes.Pod.Builder addLabels(Label.Builder builderForValue)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
builderForValue Label.Builder
Returns
Type Description
Kubernetes.Pod.Builder

addLabels(int index, Label value)

public Kubernetes.Pod.Builder addLabels(int index, Label value)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameters
Name Description
index int
value Label
Returns
Type Description
Kubernetes.Pod.Builder

addLabels(int index, Label.Builder builderForValue)

public Kubernetes.Pod.Builder addLabels(int index, Label.Builder builderForValue)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
Kubernetes.Pod.Builder

addLabelsBuilder()

public Label.Builder addLabelsBuilder()

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Returns
Type Description
Label.Builder

addLabelsBuilder(int index)

public Label.Builder addLabelsBuilder(int index)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearContainers()

public Kubernetes.Pod.Builder clearContainers()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

Returns
Type Description
Kubernetes.Pod.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Kubernetes.Pod.Builder clearLabels()

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Returns
Type Description
Kubernetes.Pod.Builder

clearName()

public Kubernetes.Pod.Builder clearName()

Kubernetes Pod name.

string name = 2;

Returns
Type Description
Kubernetes.Pod.Builder

This builder for chaining.

clearNs()

public Kubernetes.Pod.Builder clearNs()

Kubernetes Pod namespace.

string ns = 1;

Returns
Type Description
Kubernetes.Pod.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContainers(int index)

public Container getContainers(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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.v2.Container containers = 4;

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.v2.Container containers = 4;

Returns
Type Description
List<Builder>

getContainersCount()

public int getContainersCount()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

Returns
Type Description
int

getContainersList()

public List<Container> getContainersList()

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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.v2.Container containers = 4;

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.v2.Container containers = 4;

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getLabels(int index)

public Label getLabels(int index)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
index int
Returns
Type Description
Label

getLabelsBuilder(int index)

public Label.Builder getLabelsBuilder(int index)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
index int
Returns
Type Description
Label.Builder

getLabelsBuilderList()

public List<Label.Builder> getLabelsBuilderList()

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Returns
Type Description
List<Builder>

getLabelsCount()

public int getLabelsCount()

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Returns
Type Description
int

getLabelsList()

public List<Label> getLabelsList()

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Returns
Type Description
List<Label>

getLabelsOrBuilder(int index)

public LabelOrBuilder getLabelsOrBuilder(int index)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameter
Name Description
index int
Returns
Type Description
LabelOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelOrBuilder> getLabelsOrBuilderList()

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.LabelOrBuilder>

getName()

public String getName()

Kubernetes Pod name.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes Pod name.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getNs()

public String getNs()

Kubernetes Pod namespace.

string ns = 1;

Returns
Type Description
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Kubernetes Pod namespace.

string ns = 1;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContainers(int index)

public Kubernetes.Pod.Builder removeContainers(int index)

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

removeLabels(int index)

public Kubernetes.Pod.Builder removeLabels(int index)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

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

setContainers(int index, Container value)

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

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

setContainers(int index, Container.Builder builderForValue)

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

Pod containers associated with this finding, if any.

repeated .google.cloud.securitycenter.v2.Container containers = 4;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabels(int index, Label value)

public Kubernetes.Pod.Builder setLabels(int index, Label value)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameters
Name Description
index int
value Label
Returns
Type Description
Kubernetes.Pod.Builder

setLabels(int index, Label.Builder builderForValue)

public Kubernetes.Pod.Builder setLabels(int index, Label.Builder builderForValue)

Pod labels. For Kubernetes containers, these are applied to the container.

repeated .google.cloud.securitycenter.v2.Label labels = 3;

Parameters
Name Description
index int
builderForValue Label.Builder
Returns
Type Description
Kubernetes.Pod.Builder

setName(String value)

public Kubernetes.Pod.Builder setName(String value)

Kubernetes Pod name.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.Pod.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Pod.Builder setNameBytes(ByteString value)

Kubernetes Pod name.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.Pod.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Pod.Builder setNs(String value)

Kubernetes Pod namespace.

string ns = 1;

Parameter
Name Description
value String

The ns to set.

Returns
Type Description
Kubernetes.Pod.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Pod.Builder setNsBytes(ByteString value)

Kubernetes Pod namespace.

string ns = 1;

Parameter
Name Description
value ByteString

The bytes for ns to set.

Returns
Type Description
Kubernetes.Pod.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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