Class Machine.Builder (0.54.0)

publicstaticfinalclass Machine.BuilderextendsGeneratedMessageV3.Builder<Machine.Builder>implementsMachineOrBuilder

A Google Distributed Cloud Edge machine capable of acting as a Kubernetes node.

Protobuf type google.cloud.edgecontainer.v1.Machine

Implements

MachineOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicMachine.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Machine.Builder
Overrides

build()

publicMachinebuild()
Returns
Type Description
Machine

buildPartial()

publicMachinebuildPartial()
Returns
Type Description
Machine

clear()

publicMachine.Builderclear()
Returns
Type Description
Machine.Builder
Overrides

clearCreateTime()

publicMachine.BuilderclearCreateTime()

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
Machine.Builder

clearDisabled()

publicMachine.BuilderclearDisabled()

Output only. Whether the machine is disabled. If disabled, the machine is unable to enter service.

bool disabled = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Machine.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicMachine.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Machine.Builder
Overrides

clearHostedNode()

publicMachine.BuilderclearHostedNode()

Canonical resource name of the node that this machine is responsible for hosting e.g. projects/{project}/locations/{location}/clusters/{cluster_id}/nodePools/{pool_id}/{node}, Or empty if the machine is not assigned to assume the role of a node.

For control plane nodes hosted on edge machines, this will return the following format: "projects/{project}/locations/{location}/clusters/{cluster_id}/controlPlaneNodes/{node}".

string hosted_node = 5;

Returns
Type Description
Machine.Builder

This builder for chaining.

clearLabels()

publicMachine.BuilderclearLabels()
Returns
Type Description
Machine.Builder

clearName()

publicMachine.BuilderclearName()

Required. The resource name of the machine.

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

Returns
Type Description
Machine.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicMachine.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Machine.Builder
Overrides

clearUpdateTime()

publicMachine.BuilderclearUpdateTime()

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
Machine.Builder

clearVersion()

publicMachine.BuilderclearVersion()

Output only. The software version of the machine.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Machine.Builder

This builder for chaining.

clearZone()

publicMachine.BuilderclearZone()

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Returns
Type Description
Machine.Builder

This builder for chaining.

clone()

publicMachine.Builderclone()
Returns
Type Description
Machine.Builder
Overrides

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

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.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

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
Builder

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()

publicMachinegetDefaultInstanceForType()
Returns
Type Description
Machine

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisabled()

publicbooleangetDisabled()

Output only. Whether the machine is disabled. If disabled, the machine is unable to enter service.

bool disabled = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The disabled.

getHostedNode()

publicStringgetHostedNode()

Canonical resource name of the node that this machine is responsible for hosting e.g. projects/{project}/locations/{location}/clusters/{cluster_id}/nodePools/{pool_id}/{node}, Or empty if the machine is not assigned to assume the role of a node.

For control plane nodes hosted on edge machines, this will return the following format: "projects/{project}/locations/{location}/clusters/{cluster_id}/controlPlaneNodes/{node}".

string hosted_node = 5;

Returns
Type Description
String

The hostedNode.

getHostedNodeBytes()

publicByteStringgetHostedNodeBytes()

Canonical resource name of the node that this machine is responsible for hosting e.g. projects/{project}/locations/{location}/clusters/{cluster_id}/nodePools/{pool_id}/{node}, Or empty if the machine is not assigned to assume the role of a node.

For control plane nodes hosted on edge machines, this will return the following format: "projects/{project}/locations/{location}/clusters/{cluster_id}/controlPlaneNodes/{node}".

string hosted_node = 5;

Returns
Type Description
ByteString

The bytes for hostedNode.

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

getMutableLabels() (deprecated)

publicMap<String,String>getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

publicStringgetName()

Required. The resource name of the machine.

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 machine.

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

Returns
Type Description
ByteString

The bytes for name.

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.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

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
Builder

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

getVersion()

publicStringgetVersion()

Output only. The software version of the machine.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The version.

getVersionBytes()

publicByteStringgetVersionBytes()

Output only. The software version of the machine.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for version.

getZone()

publicStringgetZone()

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Returns
Type Description
String

The zone.

getZoneBytes()

publicByteStringgetZoneBytes()

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Returns
Type Description
ByteString

The bytes for zone.

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.

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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

publicMachine.BuildermergeCreateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Machine.Builder

mergeFrom(Machine other)

publicMachine.BuildermergeFrom(Machineother)
Parameter
Name Description
other Machine
Returns
Type Description
Machine.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicMachine.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Machine.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicMachine.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Machine.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalMachine.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Machine.Builder
Overrides

mergeUpdateTime(Timestamp value)

publicMachine.BuildermergeUpdateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Machine.Builder

putAllLabels(Map<String,String> values)

publicMachine.BuilderputAllLabels(Map<String,String>values)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Machine.Builder

putLabels(String key, String value)

publicMachine.BuilderputLabels(Stringkey,Stringvalue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
Machine.Builder

removeLabels(String key)

publicMachine.BuilderremoveLabels(Stringkey)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Machine.Builder

setCreateTime(Timestamp value)

publicMachine.BuildersetCreateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Machine.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicMachine.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Machine.Builder

setDisabled(boolean value)

publicMachine.BuildersetDisabled(booleanvalue)

Output only. Whether the machine is disabled. If disabled, the machine is unable to enter service.

bool disabled = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The disabled to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicMachine.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Machine.Builder
Overrides

setHostedNode(String value)

publicMachine.BuildersetHostedNode(Stringvalue)

Canonical resource name of the node that this machine is responsible for hosting e.g. projects/{project}/locations/{location}/clusters/{cluster_id}/nodePools/{pool_id}/{node}, Or empty if the machine is not assigned to assume the role of a node.

For control plane nodes hosted on edge machines, this will return the following format: "projects/{project}/locations/{location}/clusters/{cluster_id}/controlPlaneNodes/{node}".

string hosted_node = 5;

Parameter
Name Description
value String

The hostedNode to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setHostedNodeBytes(ByteString value)

publicMachine.BuildersetHostedNodeBytes(ByteStringvalue)

Canonical resource name of the node that this machine is responsible for hosting e.g. projects/{project}/locations/{location}/clusters/{cluster_id}/nodePools/{pool_id}/{node}, Or empty if the machine is not assigned to assume the role of a node.

For control plane nodes hosted on edge machines, this will return the following format: "projects/{project}/locations/{location}/clusters/{cluster_id}/controlPlaneNodes/{node}".

string hosted_node = 5;

Parameter
Name Description
value ByteString

The bytes for hostedNode to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setName(String value)

publicMachine.BuildersetName(Stringvalue)

Required. The resource name of the machine.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicMachine.BuildersetNameBytes(ByteStringvalue)

Required. The resource name of the machine.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

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

publicMachine.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Machine.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalMachine.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Machine.Builder
Overrides

setUpdateTime(Timestamp value)

publicMachine.BuildersetUpdateTime(Timestampvalue)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Machine.Builder

setUpdateTime(Timestamp.Builder builderForValue)

publicMachine.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Machine.Builder

setVersion(String value)

publicMachine.BuildersetVersion(Stringvalue)

Output only. The software version of the machine.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setVersionBytes(ByteString value)

publicMachine.BuildersetVersionBytes(ByteStringvalue)

Output only. The software version of the machine.

string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setZone(String value)

publicMachine.BuildersetZone(Stringvalue)

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

setZoneBytes(ByteString value)

publicMachine.BuildersetZoneBytes(ByteStringvalue)

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
Machine.Builder

This builder for chaining.

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.