Class NodePool (0.56.0)

publicfinalclass NodePoolextendsGeneratedMessageV3implementsNodePoolOrBuilder

A set of Kubernetes nodes in a cluster with common configuration and specification.

Protobuf type google.cloud.edgecontainer.v1.NodePool

Implements

NodePoolOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

publicstaticfinalintLABELS_FIELD_NUMBER
Field Value
Type Description
int

LOCAL_DISK_ENCRYPTION_FIELD_NUMBER

publicstaticfinalintLOCAL_DISK_ENCRYPTION_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_FILTER_FIELD_NUMBER

publicstaticfinalintMACHINE_FILTER_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

NODE_CONFIG_FIELD_NUMBER

publicstaticfinalintNODE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NODE_COUNT_FIELD_NUMBER

publicstaticfinalintNODE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

NODE_LOCATION_FIELD_NUMBER

publicstaticfinalintNODE_LOCATION_FIELD_NUMBER
Field Value
Type Description
int

NODE_VERSION_FIELD_NUMBER

publicstaticfinalintNODE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticNodePoolgetDefaultInstance()
Returns
Type Description
NodePool

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticNodePool.BuildernewBuilder()
Returns
Type Description
NodePool.Builder

newBuilder(NodePool prototype)

publicstaticNodePool.BuildernewBuilder(NodePoolprototype)
Parameter
Name Description
prototype NodePool
Returns
Type Description
NodePool.Builder

parseDelimitedFrom(InputStream input)

publicstaticNodePoolparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
NodePool
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNodePoolparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodePool
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticNodePoolparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
NodePool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticNodePoolparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodePool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticNodePoolparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
NodePool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticNodePoolparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodePool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticNodePoolparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NodePool
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNodePoolparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodePool
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticNodePoolparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
NodePool
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNodePoolparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodePool
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticNodePoolparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NodePool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticNodePoolparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodePool
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<NodePool>parser()
Returns
Type Description
Parser<NodePool>

Methods

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

publicTimestampgetCreateTime()

Output only. The time when the node pool was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time when the node pool was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicNodePoolgetDefaultInstanceForType()
Returns
Type Description
NodePool

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getLocalDiskEncryption()

publicNodePool.LocalDiskEncryptiongetLocalDiskEncryption()

Optional. Local disk encryption options. This field is only used when enabling CMEK support.

.google.cloud.edgecontainer.v1.NodePool.LocalDiskEncryption local_disk_encryption = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodePool.LocalDiskEncryption

The localDiskEncryption.

getLocalDiskEncryptionOrBuilder()

publicNodePool.LocalDiskEncryptionOrBuildergetLocalDiskEncryptionOrBuilder()

Optional. Local disk encryption options. This field is only used when enabling CMEK support.

.google.cloud.edgecontainer.v1.NodePool.LocalDiskEncryption local_disk_encryption = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodePool.LocalDiskEncryptionOrBuilder

getMachineFilter()

publicStringgetMachineFilter()

Only machines matching this filter will be allowed to join the node pool. The filtering language accepts strings like "name=<name>", and is documented in more detail in AIP-160.

string machine_filter = 7;

Returns
Type Description
String

The machineFilter.

getMachineFilterBytes()

publicByteStringgetMachineFilterBytes()

Only machines matching this filter will be allowed to join the node pool. The filtering language accepts strings like "name=<name>", and is documented in more detail in AIP-160.

string machine_filter = 7;

Returns
Type Description
ByteString

The bytes for machineFilter.

getName()

publicStringgetName()

Required. The resource name of the node pool.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. The resource name of the node pool.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getNodeConfig()

publicNodePool.NodeConfiggetNodeConfig()

Optional. Configuration for each node in the NodePool

.google.cloud.edgecontainer.v1.NodePool.NodeConfig node_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodePool.NodeConfig

The nodeConfig.

getNodeConfigOrBuilder()

publicNodePool.NodeConfigOrBuildergetNodeConfigOrBuilder()

Optional. Configuration for each node in the NodePool

.google.cloud.edgecontainer.v1.NodePool.NodeConfig node_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodePool.NodeConfigOrBuilder

getNodeCount()

publicintgetNodeCount()

Required. The number of nodes in the pool.

int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The nodeCount.

getNodeLocation()

publicStringgetNodeLocation()

Name of the Google Distributed Cloud Edge zone where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 8;

Returns
Type Description
String

The nodeLocation.

getNodeLocationBytes()

publicByteStringgetNodeLocationBytes()

Name of the Google Distributed Cloud Edge zone where this node pool will be created. For example: us-central1-edge-customer-a.

string node_location = 8;

Returns
Type Description
ByteString

The bytes for nodeLocation.

getNodeVersion()

publicStringgetNodeVersion()

Output only. The lowest release version among all worker nodes.

string node_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nodeVersion.

getNodeVersionBytes()

publicByteStringgetNodeVersionBytes()

Output only. The lowest release version among all worker nodes.

string node_version = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nodeVersion.

getParserForType()

publicParser<NodePool>getParserForType()
Returns
Type Description
Parser<NodePool>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

publicTimestampgetUpdateTime()

Output only. The time when the node pool was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

Output only. The time when the node pool was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

publicbooleanhasCreateTime()

Output only. The time when the node pool was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasLocalDiskEncryption()

publicbooleanhasLocalDiskEncryption()

Optional. Local disk encryption options. This field is only used when enabling CMEK support.

.google.cloud.edgecontainer.v1.NodePool.LocalDiskEncryption local_disk_encryption = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the localDiskEncryption field is set.

hasNodeConfig()

publicbooleanhasNodeConfig()

Optional. Configuration for each node in the NodePool

.google.cloud.edgecontainer.v1.NodePool.NodeConfig node_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the nodeConfig field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

Output only. The time when the node pool was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicNodePool.BuildernewBuilderForType()
Returns
Type Description
NodePool.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedNodePool.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NodePool.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicNodePool.BuildertoBuilder()
Returns
Type Description
NodePool.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.