Class Kubernetes.Pod.Builder (2.30.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.v1.Kubernetes.Pod

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.Container containers = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Container>
Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Label>
Returns
TypeDescription
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.v1.Container containers = 4;

Parameter
NameDescription
valueContainer
Returns
TypeDescription
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.v1.Container containers = 4;

Parameter
NameDescription
builderForValueContainer.Builder
Returns
TypeDescription
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.v1.Container containers = 4;

Parameters
NameDescription
indexint
valueContainer
Returns
TypeDescription
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.v1.Container containers = 4;

Parameters
NameDescription
indexint
builderForValueContainer.Builder
Returns
TypeDescription
Kubernetes.Pod.Builder

addContainersBuilder()

public Container.Builder addContainersBuilder()

Pod containers associated with this finding, if any.

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

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 = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
valueLabel
Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
builderForValueLabel.Builder
Returns
TypeDescription
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.v1.Label labels = 3;

Parameters
NameDescription
indexint
valueLabel
Returns
TypeDescription
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.v1.Label labels = 3;

Parameters
NameDescription
indexint
builderForValueLabel.Builder
Returns
TypeDescription
Kubernetes.Pod.Builder

addLabelsBuilder()

public Label.Builder addLabelsBuilder()

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

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

Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Label.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearContainers()

public Kubernetes.Pod.Builder clearContainers()

Pod containers associated with this finding, if any.

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

Returns
TypeDescription
Kubernetes.Pod.Builder

clearField(Descriptors.FieldDescriptor field)

public Kubernetes.Pod.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1.Label labels = 3;

Returns
TypeDescription
Kubernetes.Pod.Builder

clearName()

public Kubernetes.Pod.Builder clearName()

Kubernetes Pod name.

string name = 2;

Returns
TypeDescription
Kubernetes.Pod.Builder

This builder for chaining.

clearNs()

public Kubernetes.Pod.Builder clearNs()

Kubernetes Pod namespace.

string ns = 1;

Returns
TypeDescription
Kubernetes.Pod.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Kubernetes.Pod.Builder clone()
Returns
TypeDescription
Kubernetes.Pod.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 = 4;

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 = 4;

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 = 4;

Returns
TypeDescription
List<Builder>

getContainersCount()

public int getContainersCount()

Pod containers associated with this finding, if any.

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

Returns
TypeDescription
int

getContainersList()

public List<Container> getContainersList()

Pod containers associated with this finding, if any.

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

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 = 4;

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 = 4;

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Label.Builder

getLabelsBuilderList()

public List<Label.Builder> getLabelsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getLabelsCount()

public int getLabelsCount()

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

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

Returns
TypeDescription
int

getLabelsList()

public List<Label> getLabelsList()

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

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

Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelOrBuilder> getLabelsOrBuilderList()

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

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

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

getName()

public String getName()

Kubernetes Pod name.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes Pod name.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getNs()

public String getNs()

Kubernetes Pod namespace.

string ns = 1;

Returns
TypeDescription
String

The ns.

getNsBytes()

public ByteString getNsBytes()

Kubernetes Pod namespace.

string ns = 1;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.Pod.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.Container containers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Label labels = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.Container containers = 4;

Parameters
NameDescription
indexint
valueContainer
Returns
TypeDescription
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.v1.Container containers = 4;

Parameters
NameDescription
indexint
builderForValueContainer.Builder
Returns
TypeDescription
Kubernetes.Pod.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Kubernetes.Pod.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.Label labels = 3;

Parameters
NameDescription
indexint
valueLabel
Returns
TypeDescription
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.v1.Label labels = 3;

Parameters
NameDescription
indexint
builderForValueLabel.Builder
Returns
TypeDescription
Kubernetes.Pod.Builder

setName(String value)

public Kubernetes.Pod.Builder setName(String value)

Kubernetes Pod name.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Kubernetes.Pod.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.Pod.Builder setNameBytes(ByteString value)

Kubernetes Pod name.

string name = 2;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Kubernetes.Pod.Builder

This builder for chaining.

setNs(String value)

public Kubernetes.Pod.Builder setNs(String value)

Kubernetes Pod namespace.

string ns = 1;

Parameter
NameDescription
valueString

The ns to set.

Returns
TypeDescription
Kubernetes.Pod.Builder

This builder for chaining.

setNsBytes(ByteString value)

public Kubernetes.Pod.Builder setNsBytes(ByteString value)

Kubernetes Pod namespace.

string ns = 1;

Parameter
NameDescription
valueByteString

The bytes for ns to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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