public static final class NodeConfig.Builder extends GeneratedMessageV3.Builder<NodeConfig.Builder> implements NodeConfigOrBuilder
Parameters that describe the nodes in a cluster.Protobuf type
google.container.v1.NodeConfig| Modifier and Type | Method and Description |
|---|---|
NodeConfig.Builder |
addAccelerators(AcceleratorConfig.Builder builderForValue)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
addAccelerators(AcceleratorConfig value)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
addAccelerators(int index,
AcceleratorConfig.Builder builderForValue)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
addAccelerators(int index,
AcceleratorConfig value)
A list of hardware accelerators to be attached to each node.
|
AcceleratorConfig.Builder |
addAcceleratorsBuilder()
A list of hardware accelerators to be attached to each node.
|
AcceleratorConfig.Builder |
addAcceleratorsBuilder(int index)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
addAllAccelerators(java.lang.Iterable<? extends AcceleratorConfig> values)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
addAllOauthScopes(java.lang.Iterable<java.lang.String> values)
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
NodeConfig.Builder |
addAllTags(java.lang.Iterable<java.lang.String> values)
The list of instance tags applied to all nodes.
|
NodeConfig.Builder |
addOauthScopes(java.lang.String value)
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
NodeConfig.Builder |
addOauthScopesBytes(ByteString value)
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
NodeConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
NodeConfig.Builder |
addTags(java.lang.String value)
The list of instance tags applied to all nodes.
|
NodeConfig.Builder |
addTagsBytes(ByteString value)
The list of instance tags applied to all nodes.
|
NodeConfig |
build() |
NodeConfig |
buildPartial() |
NodeConfig.Builder |
clear() |
NodeConfig.Builder |
clearAccelerators()
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
clearDiskSizeGb()
Size of the disk attached to each node, specified in GB.
|
NodeConfig.Builder |
clearField(Descriptors.FieldDescriptor field) |
NodeConfig.Builder |
clearImageType()
The image type to use for this node.
|
NodeConfig.Builder |
clearLabels() |
NodeConfig.Builder |
clearLocalSsdCount()
The number of local SSD disks to be attached to the node.
|
NodeConfig.Builder |
clearMachineType()
The name of a Google Compute Engine [machine
type](/compute/docs/machine-types) (e.g.
|
NodeConfig.Builder |
clearMetadata() |
NodeConfig.Builder |
clearMinCpuPlatform()
Minimum CPU platform to be used by this instance.
|
NodeConfig.Builder |
clearOauthScopes()
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
NodeConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
NodeConfig.Builder |
clearPreemptible()
Whether the nodes are created as preemptible VM instances.
|
NodeConfig.Builder |
clearServiceAccount()
The Google Cloud Platform Service Account to be used by the node VMs.
|
NodeConfig.Builder |
clearTags()
The list of instance tags applied to all nodes.
|
NodeConfig.Builder |
clone() |
boolean |
containsLabels(java.lang.String key)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
boolean |
containsMetadata(java.lang.String key)
The metadata key/value pairs assigned to instances in the cluster.
|
AcceleratorConfig |
getAccelerators(int index)
A list of hardware accelerators to be attached to each node.
|
AcceleratorConfig.Builder |
getAcceleratorsBuilder(int index)
A list of hardware accelerators to be attached to each node.
|
java.util.List<AcceleratorConfig.Builder> |
getAcceleratorsBuilderList()
A list of hardware accelerators to be attached to each node.
|
int |
getAcceleratorsCount()
A list of hardware accelerators to be attached to each node.
|
java.util.List<AcceleratorConfig> |
getAcceleratorsList()
A list of hardware accelerators to be attached to each node.
|
AcceleratorConfigOrBuilder |
getAcceleratorsOrBuilder(int index)
A list of hardware accelerators to be attached to each node.
|
java.util.List<? extends AcceleratorConfigOrBuilder> |
getAcceleratorsOrBuilderList()
A list of hardware accelerators to be attached to each node.
|
NodeConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
int |
getDiskSizeGb()
Size of the disk attached to each node, specified in GB.
|
java.lang.String |
getImageType()
The image type to use for this node.
|
ByteString |
getImageTypeBytes()
The image type to use for this node.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
int |
getLocalSsdCount()
The number of local SSD disks to be attached to the node.
|
java.lang.String |
getMachineType()
The name of a Google Compute Engine [machine
type](/compute/docs/machine-types) (e.g.
|
ByteString |
getMachineTypeBytes()
The name of a Google Compute Engine [machine
type](/compute/docs/machine-types) (e.g.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
The metadata key/value pairs assigned to instances in the cluster.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadataMap()
The metadata key/value pairs assigned to instances in the cluster.
|
java.lang.String |
getMetadataOrDefault(java.lang.String key,
java.lang.String defaultValue)
The metadata key/value pairs assigned to instances in the cluster.
|
java.lang.String |
getMetadataOrThrow(java.lang.String key)
The metadata key/value pairs assigned to instances in the cluster.
|
java.lang.String |
getMinCpuPlatform()
Minimum CPU platform to be used by this instance.
|
ByteString |
getMinCpuPlatformBytes()
Minimum CPU platform to be used by this instance.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableLabels()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableMetadata()
Deprecated.
|
java.lang.String |
getOauthScopes(int index)
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
ByteString |
getOauthScopesBytes(int index)
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
int |
getOauthScopesCount()
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
ProtocolStringList |
getOauthScopesList()
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
boolean |
getPreemptible()
Whether the nodes are created as preemptible VM instances.
|
java.lang.String |
getServiceAccount()
The Google Cloud Platform Service Account to be used by the node VMs.
|
ByteString |
getServiceAccountBytes()
The Google Cloud Platform Service Account to be used by the node VMs.
|
java.lang.String |
getTags(int index)
The list of instance tags applied to all nodes.
|
ByteString |
getTagsBytes(int index)
The list of instance tags applied to all nodes.
|
int |
getTagsCount()
The list of instance tags applied to all nodes.
|
ProtocolStringList |
getTagsList()
The list of instance tags applied to all nodes.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
NodeConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
NodeConfig.Builder |
mergeFrom(Message other) |
NodeConfig.Builder |
mergeFrom(NodeConfig other) |
NodeConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
NodeConfig.Builder |
putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
NodeConfig.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> values)
The metadata key/value pairs assigned to instances in the cluster.
|
NodeConfig.Builder |
putLabels(java.lang.String key,
java.lang.String value)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
NodeConfig.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
The metadata key/value pairs assigned to instances in the cluster.
|
NodeConfig.Builder |
removeAccelerators(int index)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
removeLabels(java.lang.String key)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
NodeConfig.Builder |
removeMetadata(java.lang.String key)
The metadata key/value pairs assigned to instances in the cluster.
|
NodeConfig.Builder |
setAccelerators(int index,
AcceleratorConfig.Builder builderForValue)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
setAccelerators(int index,
AcceleratorConfig value)
A list of hardware accelerators to be attached to each node.
|
NodeConfig.Builder |
setDiskSizeGb(int value)
Size of the disk attached to each node, specified in GB.
|
NodeConfig.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
NodeConfig.Builder |
setImageType(java.lang.String value)
The image type to use for this node.
|
NodeConfig.Builder |
setImageTypeBytes(ByteString value)
The image type to use for this node.
|
NodeConfig.Builder |
setLocalSsdCount(int value)
The number of local SSD disks to be attached to the node.
|
NodeConfig.Builder |
setMachineType(java.lang.String value)
The name of a Google Compute Engine [machine
type](/compute/docs/machine-types) (e.g.
|
NodeConfig.Builder |
setMachineTypeBytes(ByteString value)
The name of a Google Compute Engine [machine
type](/compute/docs/machine-types) (e.g.
|
NodeConfig.Builder |
setMinCpuPlatform(java.lang.String value)
Minimum CPU platform to be used by this instance.
|
NodeConfig.Builder |
setMinCpuPlatformBytes(ByteString value)
Minimum CPU platform to be used by this instance.
|
NodeConfig.Builder |
setOauthScopes(int index,
java.lang.String value)
The set of Google API scopes to be made available on all of the
node VMs under the "default" service account.
|
NodeConfig.Builder |
setPreemptible(boolean value)
Whether the nodes are created as preemptible VM instances.
|
NodeConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
NodeConfig.Builder |
setServiceAccount(java.lang.String value)
The Google Cloud Platform Service Account to be used by the node VMs.
|
NodeConfig.Builder |
setServiceAccountBytes(ByteString value)
The Google Cloud Platform Service Account to be used by the node VMs.
|
NodeConfig.Builder |
setTags(int index,
java.lang.String value)
The list of instance tags applied to all nodes.
|
NodeConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<NodeConfig.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<NodeConfig.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<NodeConfig.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic NodeConfig build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic NodeConfig buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic NodeConfig.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<NodeConfig.Builder>public NodeConfig.Builder mergeFrom(NodeConfig other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<NodeConfig.Builder>public NodeConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<NodeConfig.Builder>java.io.IOExceptionpublic java.lang.String getMachineType()
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1-standard-1`.
string machine_type = 1;getMachineType in interface NodeConfigOrBuilderpublic ByteString getMachineTypeBytes()
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1-standard-1`.
string machine_type = 1;getMachineTypeBytes in interface NodeConfigOrBuilderpublic NodeConfig.Builder setMachineType(java.lang.String value)
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1-standard-1`.
string machine_type = 1;public NodeConfig.Builder clearMachineType()
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1-standard-1`.
string machine_type = 1;public NodeConfig.Builder setMachineTypeBytes(ByteString value)
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1-standard-1`.
string machine_type = 1;public int getDiskSizeGb()
Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
int32 disk_size_gb = 2;getDiskSizeGb in interface NodeConfigOrBuilderpublic NodeConfig.Builder setDiskSizeGb(int value)
Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
int32 disk_size_gb = 2;public NodeConfig.Builder clearDiskSizeGb()
Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.
int32 disk_size_gb = 2;public ProtocolStringList getOauthScopesList()
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;getOauthScopesList in interface NodeConfigOrBuilderpublic int getOauthScopesCount()
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;getOauthScopesCount in interface NodeConfigOrBuilderpublic java.lang.String getOauthScopes(int index)
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;getOauthScopes in interface NodeConfigOrBuilderpublic ByteString getOauthScopesBytes(int index)
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;getOauthScopesBytes in interface NodeConfigOrBuilderpublic NodeConfig.Builder setOauthScopes(int index, java.lang.String value)
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;public NodeConfig.Builder addOauthScopes(java.lang.String value)
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;public NodeConfig.Builder addAllOauthScopes(java.lang.Iterable<java.lang.String> values)
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;public NodeConfig.Builder clearOauthScopes()
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;public NodeConfig.Builder addOauthScopesBytes(ByteString value)
The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * `https://www.googleapis.com/auth/compute` is required for mounting persistent storage on your nodes. * `https://www.googleapis.com/auth/devstorage.read_only` is required for communicating with **gcr.io** (the [Google Container Registry](/container-registry/)). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added.
repeated string oauth_scopes = 3;public java.lang.String getServiceAccount()
The Google Cloud Platform Service Account to be used by the node VMs. If no Service Account is specified, the "default" service account is used.
string service_account = 9;getServiceAccount in interface NodeConfigOrBuilderpublic ByteString getServiceAccountBytes()
The Google Cloud Platform Service Account to be used by the node VMs. If no Service Account is specified, the "default" service account is used.
string service_account = 9;getServiceAccountBytes in interface NodeConfigOrBuilderpublic NodeConfig.Builder setServiceAccount(java.lang.String value)
The Google Cloud Platform Service Account to be used by the node VMs. If no Service Account is specified, the "default" service account is used.
string service_account = 9;public NodeConfig.Builder clearServiceAccount()
The Google Cloud Platform Service Account to be used by the node VMs. If no Service Account is specified, the "default" service account is used.
string service_account = 9;public NodeConfig.Builder setServiceAccountBytes(ByteString value)
The Google Cloud Platform Service Account to be used by the node VMs. If no Service Account is specified, the "default" service account is used.
string service_account = 9;public int getMetadataCount()
NodeConfigOrBuilderThe metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;getMetadataCount in interface NodeConfigOrBuilderpublic boolean containsMetadata(java.lang.String key)
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;containsMetadata in interface NodeConfigOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadataMap() instead.getMetadata in interface NodeConfigOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getMetadataMap()
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;getMetadataMap in interface NodeConfigOrBuilderpublic java.lang.String getMetadataOrDefault(java.lang.String key,
java.lang.String defaultValue)
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;getMetadataOrDefault in interface NodeConfigOrBuilderpublic java.lang.String getMetadataOrThrow(java.lang.String key)
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;getMetadataOrThrow in interface NodeConfigOrBuilderpublic NodeConfig.Builder clearMetadata()
public NodeConfig.Builder removeMetadata(java.lang.String key)
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableMetadata()
public NodeConfig.Builder putMetadata(java.lang.String key, java.lang.String value)
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;public NodeConfig.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> values)
The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", "startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.
map<string, string> metadata = 4;public java.lang.String getImageType()
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
string image_type = 5;getImageType in interface NodeConfigOrBuilderpublic ByteString getImageTypeBytes()
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
string image_type = 5;getImageTypeBytes in interface NodeConfigOrBuilderpublic NodeConfig.Builder setImageType(java.lang.String value)
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
string image_type = 5;public NodeConfig.Builder clearImageType()
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
string image_type = 5;public NodeConfig.Builder setImageTypeBytes(ByteString value)
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
string image_type = 5;public int getLabelsCount()
NodeConfigOrBuilderThe map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;getLabelsCount in interface NodeConfigOrBuilderpublic boolean containsLabels(java.lang.String key)
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;containsLabels in interface NodeConfigOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface NodeConfigOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;getLabelsMap in interface NodeConfigOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;getLabelsOrDefault in interface NodeConfigOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;getLabelsOrThrow in interface NodeConfigOrBuilderpublic NodeConfig.Builder clearLabels()
public NodeConfig.Builder removeLabels(java.lang.String key)
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public NodeConfig.Builder putLabels(java.lang.String key, java.lang.String value)
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;public NodeConfig.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
map<string, string> labels = 6;public int getLocalSsdCount()
The number of local SSD disks to be attached to the node. The limit for this value is dependant upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for more information.
int32 local_ssd_count = 7;getLocalSsdCount in interface NodeConfigOrBuilderpublic NodeConfig.Builder setLocalSsdCount(int value)
The number of local SSD disks to be attached to the node. The limit for this value is dependant upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for more information.
int32 local_ssd_count = 7;public NodeConfig.Builder clearLocalSsdCount()
The number of local SSD disks to be attached to the node. The limit for this value is dependant upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits for more information.
int32 local_ssd_count = 7;public ProtocolStringList getTagsList()
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;getTagsList in interface NodeConfigOrBuilderpublic int getTagsCount()
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;getTagsCount in interface NodeConfigOrBuilderpublic java.lang.String getTags(int index)
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;getTags in interface NodeConfigOrBuilderpublic ByteString getTagsBytes(int index)
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;getTagsBytes in interface NodeConfigOrBuilderpublic NodeConfig.Builder setTags(int index, java.lang.String value)
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;public NodeConfig.Builder addTags(java.lang.String value)
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;public NodeConfig.Builder addAllTags(java.lang.Iterable<java.lang.String> values)
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;public NodeConfig.Builder clearTags()
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;public NodeConfig.Builder addTagsBytes(ByteString value)
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
repeated string tags = 8;public boolean getPreemptible()
Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
bool preemptible = 10;getPreemptible in interface NodeConfigOrBuilderpublic NodeConfig.Builder setPreemptible(boolean value)
Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
bool preemptible = 10;public NodeConfig.Builder clearPreemptible()
Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
bool preemptible = 10;public java.util.List<AcceleratorConfig> getAcceleratorsList()
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;getAcceleratorsList in interface NodeConfigOrBuilderpublic int getAcceleratorsCount()
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;getAcceleratorsCount in interface NodeConfigOrBuilderpublic AcceleratorConfig getAccelerators(int index)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;getAccelerators in interface NodeConfigOrBuilderpublic NodeConfig.Builder setAccelerators(int index, AcceleratorConfig value)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder setAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder addAccelerators(AcceleratorConfig value)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder addAccelerators(int index, AcceleratorConfig value)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder addAccelerators(int index, AcceleratorConfig.Builder builderForValue)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder addAllAccelerators(java.lang.Iterable<? extends AcceleratorConfig> values)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder clearAccelerators()
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public NodeConfig.Builder removeAccelerators(int index)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;getAcceleratorsOrBuilder in interface NodeConfigOrBuilderpublic java.util.List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;getAcceleratorsOrBuilderList in interface NodeConfigOrBuilderpublic AcceleratorConfig.Builder addAcceleratorsBuilder()
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public java.util.List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
repeated .google.container.v1.AcceleratorConfig accelerators = 11;public java.lang.String getMinCpuPlatform()
Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as <code>minCpuPlatform: "Intel Haswell"</code> or <code>minCpuPlatform: "Intel Sandy Bridge"</code>. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
string min_cpu_platform = 13;getMinCpuPlatform in interface NodeConfigOrBuilderpublic ByteString getMinCpuPlatformBytes()
Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as <code>minCpuPlatform: "Intel Haswell"</code> or <code>minCpuPlatform: "Intel Sandy Bridge"</code>. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
string min_cpu_platform = 13;getMinCpuPlatformBytes in interface NodeConfigOrBuilderpublic NodeConfig.Builder setMinCpuPlatform(java.lang.String value)
Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as <code>minCpuPlatform: "Intel Haswell"</code> or <code>minCpuPlatform: "Intel Sandy Bridge"</code>. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
string min_cpu_platform = 13;public NodeConfig.Builder clearMinCpuPlatform()
Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as <code>minCpuPlatform: "Intel Haswell"</code> or <code>minCpuPlatform: "Intel Sandy Bridge"</code>. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
string min_cpu_platform = 13;public NodeConfig.Builder setMinCpuPlatformBytes(ByteString value)
Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as <code>minCpuPlatform: "Intel Haswell"</code> or <code>minCpuPlatform: "Intel Sandy Bridge"</code>. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
string min_cpu_platform = 13;public final NodeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<NodeConfig.Builder>public final NodeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<NodeConfig.Builder>