Class NodePool.Builder (0.4.0)

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

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

Protobuf type google.cloud.edgecontainer.v1.NodePool

Implements

NodePoolOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodePool build()
Returns
TypeDescription
NodePool

buildPartial()

public NodePool buildPartial()
Returns
TypeDescription
NodePool

clear()

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

clearCreateTime()

public NodePool.Builder clearCreateTime()

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

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

Returns
TypeDescription
NodePool.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public NodePool.Builder clearLabels()
Returns
TypeDescription
NodePool.Builder

clearLocalDiskEncryption()

public NodePool.Builder clearLocalDiskEncryption()

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
TypeDescription
NodePool.Builder

clearMachineFilter()

public NodePool.Builder clearMachineFilter()

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
TypeDescription
NodePool.Builder

This builder for chaining.

clearName()

public NodePool.Builder clearName()

Required. The resource name of the node pool.

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

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

clearNodeCount()

public NodePool.Builder clearNodeCount()

Required. The number of nodes in the pool.

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

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

clearNodeLocation()

public NodePool.Builder clearNodeLocation()

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
TypeDescription
NodePool.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public NodePool.Builder clearUpdateTime()

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

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

Returns
TypeDescription
NodePool.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

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

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public NodePool getDefaultInstanceForType()
Returns
TypeDescription
NodePool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLocalDiskEncryption()

public NodePool.LocalDiskEncryption getLocalDiskEncryption()

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
TypeDescription
NodePool.LocalDiskEncryption

The localDiskEncryption.

getLocalDiskEncryptionBuilder()

public NodePool.LocalDiskEncryption.Builder getLocalDiskEncryptionBuilder()

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
TypeDescription
NodePool.LocalDiskEncryption.Builder

getLocalDiskEncryptionOrBuilder()

public NodePool.LocalDiskEncryptionOrBuilder getLocalDiskEncryptionOrBuilder()

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
TypeDescription
NodePool.LocalDiskEncryptionOrBuilder

getMachineFilter()

public String getMachineFilter()

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
TypeDescription
String

The machineFilter.

getMachineFilterBytes()

public ByteString getMachineFilterBytes()

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
TypeDescription
ByteString

The bytes for machineFilter.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The resource name of the node pool.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the node pool.

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

Returns
TypeDescription
ByteString

The bytes for name.

getNodeCount()

public int getNodeCount()

Required. The number of nodes in the pool.

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

Returns
TypeDescription
int

The nodeCount.

getNodeLocation()

public String getNodeLocation()

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
TypeDescription
String

The nodeLocation.

getNodeLocationBytes()

public ByteString getNodeLocationBytes()

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
TypeDescription
ByteString

The bytes for nodeLocation.

getUpdateTime()

public Timestamp getUpdateTime()

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

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

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

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLocalDiskEncryption()

public boolean hasLocalDiskEncryption()

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
TypeDescription
boolean

Whether the localDiskEncryption field is set.

hasUpdateTime()

public boolean hasUpdateTime()

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

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public NodePool.Builder mergeCreateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
NodePool.Builder

mergeFrom(NodePool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLocalDiskEncryption(NodePool.LocalDiskEncryption value)

public NodePool.Builder mergeLocalDiskEncryption(NodePool.LocalDiskEncryption value)

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];

Parameter
NameDescription
valueNodePool.LocalDiskEncryption
Returns
TypeDescription
NodePool.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public NodePool.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
NodePool.Builder

putAllLabels(Map<String,String> values)

public NodePool.Builder putAllLabels(Map<String,String> values)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
NodePool.Builder

putLabels(String key, String value)

public NodePool.Builder putLabels(String key, String value)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NodePool.Builder

removeLabels(String key)

public NodePool.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
NodePool.Builder

setCreateTime(Timestamp value)

public NodePool.Builder setCreateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
NodePool.Builder

setCreateTime(Timestamp.Builder builderForValue)

public NodePool.Builder setCreateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
NodePool.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocalDiskEncryption(NodePool.LocalDiskEncryption value)

public NodePool.Builder setLocalDiskEncryption(NodePool.LocalDiskEncryption value)

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];

Parameter
NameDescription
valueNodePool.LocalDiskEncryption
Returns
TypeDescription
NodePool.Builder

setLocalDiskEncryption(NodePool.LocalDiskEncryption.Builder builderForValue)

public NodePool.Builder setLocalDiskEncryption(NodePool.LocalDiskEncryption.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueNodePool.LocalDiskEncryption.Builder
Returns
TypeDescription
NodePool.Builder

setMachineFilter(String value)

public NodePool.Builder setMachineFilter(String value)

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;

Parameter
NameDescription
valueString

The machineFilter to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

setMachineFilterBytes(ByteString value)

public NodePool.Builder setMachineFilterBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for machineFilter to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

setName(String value)

public NodePool.Builder setName(String value)

Required. The resource name of the node pool.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NodePool.Builder setNameBytes(ByteString value)

Required. The resource name of the node pool.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

setNodeCount(int value)

public NodePool.Builder setNodeCount(int value)

Required. The number of nodes in the pool.

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

Parameter
NameDescription
valueint

The nodeCount to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

setNodeLocation(String value)

public NodePool.Builder setNodeLocation(String value)

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;

Parameter
NameDescription
valueString

The nodeLocation to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

setNodeLocationBytes(ByteString value)

public NodePool.Builder setNodeLocationBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for nodeLocation to set.

Returns
TypeDescription
NodePool.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public NodePool.Builder setUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
NodePool.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public NodePool.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
NodePool.Builder