Class Kubernetes.NodePool.Builder (2.26.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.v1.Kubernetes.NodePool

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.Kubernetes.Node nodes = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Kubernetes.Node>
Returns
TypeDescription
Kubernetes.NodePool.Builder

addNodes(Kubernetes.Node value)

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

Nodes associated with the finding.

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

Parameter
NameDescription
valueKubernetes.Node
Returns
TypeDescription
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.v1.Kubernetes.Node nodes = 2;

Parameter
NameDescription
builderForValueKubernetes.Node.Builder
Returns
TypeDescription
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.v1.Kubernetes.Node nodes = 2;

Parameters
NameDescription
indexint
valueKubernetes.Node
Returns
TypeDescription
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.v1.Kubernetes.Node nodes = 2;

Parameters
NameDescription
indexint
builderForValueKubernetes.Node.Builder
Returns
TypeDescription
Kubernetes.NodePool.Builder

addNodesBuilder()

public Kubernetes.Node.Builder addNodesBuilder()

Nodes associated with the finding.

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

Returns
TypeDescription
Kubernetes.Node.Builder

addNodesBuilder(int index)

public Kubernetes.Node.Builder addNodesBuilder(int index)

Nodes associated with the finding.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Node.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Kubernetes.NodePool.Builder clearName()

Kubernetes Node pool name.

string name = 1;

Returns
TypeDescription
Kubernetes.NodePool.Builder

This builder for chaining.

clearNodes()

public Kubernetes.NodePool.Builder clearNodes()

Nodes associated with the finding.

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

Returns
TypeDescription
Kubernetes.NodePool.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Kubernetes.NodePool.Builder clone()
Returns
TypeDescription
Kubernetes.NodePool.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Kubernetes Node pool name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Kubernetes Node pool name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNodes(int index)

public Kubernetes.Node getNodes(int index)

Nodes associated with the finding.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Node

getNodesBuilder(int index)

public Kubernetes.Node.Builder getNodesBuilder(int index)

Nodes associated with the finding.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.Node.Builder

getNodesBuilderList()

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

Nodes associated with the finding.

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

Returns
TypeDescription
List<Builder>

getNodesCount()

public int getNodesCount()

Nodes associated with the finding.

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

Returns
TypeDescription
int

getNodesList()

public List<Kubernetes.Node> getNodesList()

Nodes associated with the finding.

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

Returns
TypeDescription
List<Node>

getNodesOrBuilder(int index)

public Kubernetes.NodeOrBuilder getNodesOrBuilder(int index)

Nodes associated with the finding.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.NodeOrBuilder

getNodesOrBuilderList()

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

Nodes associated with the finding.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Kubernetes.NodePool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Kubernetes.NodePool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Kubernetes.NodePool.Builder
Overrides

removeNodes(int index)

public Kubernetes.NodePool.Builder removeNodes(int index)

Nodes associated with the finding.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Kubernetes.NodePool.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Kubernetes.NodePool.Builder setName(String value)

Kubernetes Node pool name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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.v1.Kubernetes.Node nodes = 2;

Parameters
NameDescription
indexint
valueKubernetes.Node
Returns
TypeDescription
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.v1.Kubernetes.Node nodes = 2;

Parameters
NameDescription
indexint
builderForValueKubernetes.Node.Builder
Returns
TypeDescription
Kubernetes.NodePool.Builder

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

public Kubernetes.NodePool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Kubernetes.NodePool.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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