Class Machine.Builder (0.54.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 0.75.0 (latest)
- 0.73.0
- 0.72.0
- 0.71.0
- 0.70.0
- 0.69.0
- 0.67.0
- 0.65.0
- 0.64.0
- 0.61.0
- 0.60.0
- 0.59.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
publicstaticfinalclass Machine.BuilderextendsGeneratedMessageV3.Builder<Machine.Builder>implementsMachineOrBuilderA Google Distributed Cloud Edge machine capable of acting as a Kubernetes node.
Protobuf type google.cloud.edgecontainer.v1.Machine
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Machine.BuilderImplements
MachineOrBuilderInherited Members
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 |
|
build()
publicMachinebuild()| Returns | |
|---|---|
| Type | Description |
Machine |
|
buildPartial()
publicMachinebuildPartial()| Returns | |
|---|---|
| Type | Description |
Machine |
|
clear()
publicMachine.Builderclear()| Returns | |
|---|---|
| Type | Description |
Machine.Builder |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
internalGetMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicMachine.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Machine.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalMachine.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Machine.Builder |
|
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 |
|
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalMachine.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Machine.Builder |
|
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. |