public static final class Kubernetes.Pod.Builder extends GeneratedMessage.Builder<Kubernetes.Pod.Builder> implements Kubernetes.PodOrBuilderA Kubernetes Pod.
Protobuf type google.cloud.securitycenter.v1.Kubernetes.Pod
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Kubernetes.Pod.BuilderImplements
Kubernetes.PodOrBuilderStatic 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.v1.Container containers = 4;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.securitycenter.v1.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.v1.Label labels = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.securitycenter.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Label labels = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Label.Builder |
|
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 |
|
clearContainers()
public Kubernetes.Pod.Builder clearContainers()Pod containers associated with this finding, if any.
repeated .google.cloud.securitycenter.v1.Container containers = 4;
| Returns | |
|---|---|
| Type | Description |
Kubernetes.Pod.Builder |
|
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 | |
|---|---|
| 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. |
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 | |
|---|---|
| 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 = 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.v1.Container containers = 4;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getContainersCount()
public int getContainersCount()Pod containers associated with this finding, if any.
repeated .google.cloud.securitycenter.v1.Container containers = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getContainersList()
public List<Container> getContainersList()Pod containers associated with this finding, if any.
repeated .google.cloud.securitycenter.v1.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.v1.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.v1.Container containers = 4;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.securitycenter.v1.ContainerOrBuilder> |
|
getDefaultInstanceForType()
public Kubernetes.Pod getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Kubernetes.Pod |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Label labels = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.securitycenter.v1.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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 | |
|---|---|
| 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.v1.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.v1.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.v1.Container containers = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Container.Builder |
| Returns | |
|---|---|
| Type | Description |
Kubernetes.Pod.Builder |
|
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 | |
|---|---|
| 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.v1.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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for ns to set. |
| Returns | |
|---|---|
| Type | Description |
Kubernetes.Pod.Builder |
This builder for chaining. |