Class Kubernetes.NodePool.Builder (2.51.0)

public static final class Kubernetes.NodePool.Builder extends GeneratedMessageV3.Builder<Kubernetes.NodePool.Builder> implements Kubernetes.NodePoolOrBuilder

Provides GKE node pool information.

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

Static Methods

getDescriptor()

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

Methods

addAllNodes(Iterable<? extends Kubernetes.Node> values)

public Kubernetes.NodePool.Builder addAllNodes(Iterable<? extends Kubernetes.Node> values)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

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

addNodes(Kubernetes.Node value)

public Kubernetes.NodePool.Builder addNodes(Kubernetes.Node value)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
value Kubernetes.Node
Returns
Type Description
Kubernetes.NodePool.Builder

addNodes(Kubernetes.Node.Builder builderForValue)

public Kubernetes.NodePool.Builder addNodes(Kubernetes.Node.Builder builderForValue)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
builderForValue Kubernetes.Node.Builder
Returns
Type Description
Kubernetes.NodePool.Builder

addNodes(int index, Kubernetes.Node value)

public Kubernetes.NodePool.Builder addNodes(int index, Kubernetes.Node value)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
value Kubernetes.Node
Returns
Type Description
Kubernetes.NodePool.Builder

addNodes(int index, Kubernetes.Node.Builder builderForValue)

public Kubernetes.NodePool.Builder addNodes(int index, Kubernetes.Node.Builder builderForValue)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
builderForValue Kubernetes.Node.Builder
Returns
Type Description
Kubernetes.NodePool.Builder

addNodesBuilder()

public Kubernetes.Node.Builder addNodesBuilder()

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
Kubernetes.Node.Builder

addNodesBuilder(int index)

public Kubernetes.Node.Builder addNodesBuilder(int index)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Kubernetes.NodePool.Builder clearName()

Kubernetes node pool name.

string name = 1;

Returns
Type Description
Kubernetes.NodePool.Builder

This builder for chaining.

clearNodes()

public Kubernetes.NodePool.Builder clearNodes()

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
Kubernetes.NodePool.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getName()

public String getName()

Kubernetes node pool name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes node pool name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNodes(int index)

public Kubernetes.Node getNodes(int index)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.Node

getNodesBuilder(int index)

public Kubernetes.Node.Builder getNodesBuilder(int index)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

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

getNodesBuilderList()

public List<Kubernetes.Node.Builder> getNodesBuilderList()

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
List<Builder>

getNodesCount()

public int getNodesCount()

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
int

getNodesList()

public List<Kubernetes.Node> getNodesList()

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Returns
Type Description
List<Node>

getNodesOrBuilder(int index)

public Kubernetes.NodeOrBuilder getNodesOrBuilder(int index)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameter
Name Description
index int
Returns
Type Description
Kubernetes.NodeOrBuilder

getNodesOrBuilderList()

public List<? extends Kubernetes.NodeOrBuilder> getNodesOrBuilderList()

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Kubernetes.NodePool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNodes(int index)

public Kubernetes.NodePool.Builder removeNodes(int index)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Kubernetes.NodePool.Builder setName(String value)

Kubernetes node pool name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Kubernetes.NodePool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Kubernetes.NodePool.Builder setNameBytes(ByteString value)

Kubernetes node pool name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Kubernetes.NodePool.Builder

This builder for chaining.

setNodes(int index, Kubernetes.Node value)

public Kubernetes.NodePool.Builder setNodes(int index, Kubernetes.Node value)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
value Kubernetes.Node
Returns
Type Description
Kubernetes.NodePool.Builder

setNodes(int index, Kubernetes.Node.Builder builderForValue)

public Kubernetes.NodePool.Builder setNodes(int index, Kubernetes.Node.Builder builderForValue)

Nodes associated with the finding.

repeated .google.cloud.securitycenter.v2.Kubernetes.Node nodes = 2;

Parameters
Name Description
index int
builderForValue Kubernetes.Node.Builder
Returns
Type Description
Kubernetes.NodePool.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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