Class Machine.Builder (0.38.0)

public static final class Machine.Builder extends GeneratedMessageV3.Builder<Machine.Builder> implements MachineOrBuilder

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

Protobuf type google.cloud.edgecontainer.v1.Machine

Implements

MachineOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Machine build()
Returns
TypeDescription
Machine

buildPartial()

public Machine buildPartial()
Returns
TypeDescription
Machine

clear()

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

clearCreateTime()

public Machine.Builder clearCreateTime()

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

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

Returns
TypeDescription
Machine.Builder

clearDisabled()

public Machine.Builder clearDisabled()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHostedNode()

public Machine.Builder clearHostedNode()

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

This builder for chaining.

clearLabels()

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

clearName()

public Machine.Builder clearName()

Required. The resource name of the machine.

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

Returns
TypeDescription
Machine.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public Machine.Builder clearUpdateTime()

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

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

Returns
TypeDescription
Machine.Builder

clearVersion()

public Machine.Builder clearVersion()

Output only. The software version of the machine.

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

Returns
TypeDescription
Machine.Builder

This builder for chaining.

clearZone()

public Machine.Builder clearZone()

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Returns
TypeDescription
Machine.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

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

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Machine getDefaultInstanceForType()
Returns
TypeDescription
Machine

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisabled()

public boolean getDisabled()

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

The disabled.

getHostedNode()

public String getHostedNode()

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

The hostedNode.

getHostedNodeBytes()

public ByteString getHostedNodeBytes()

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

The bytes for hostedNode.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The resource name of the machine.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the machine.

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

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

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

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

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

Returns
TypeDescription
TimestampOrBuilder

getVersion()

public String getVersion()

Output only. The software version of the machine.

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

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. The software version of the machine.

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

Returns
TypeDescription
ByteString

The bytes for version.

getZone()

public String getZone()

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Returns
TypeDescription
ByteString

The bytes for zone.

hasCreateTime()

public boolean hasCreateTime()

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

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

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

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Machine.Builder mergeCreateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Machine.Builder

mergeFrom(Machine other)

public Machine.Builder mergeFrom(Machine other)
Parameter
NameDescription
otherMachine
Returns
TypeDescription
Machine.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Machine.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Machine.Builder

putAllLabels(Map<String,String> values)

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

Labels associated with this resource.

map<string, string> labels = 4;

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

putLabels(String key, String value)

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

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Machine.Builder

removeLabels(String key)

public Machine.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Machine.Builder

setCreateTime(Timestamp value)

public Machine.Builder setCreateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Machine.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Machine.Builder setCreateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Machine.Builder

setDisabled(boolean value)

public Machine.Builder setDisabled(boolean value)

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
NameDescription
valueboolean

The disabled to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostedNode(String value)

public Machine.Builder setHostedNode(String value)

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
NameDescription
valueString

The hostedNode to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setHostedNodeBytes(ByteString value)

public Machine.Builder setHostedNodeBytes(ByteString value)

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
NameDescription
valueByteString

The bytes for hostedNode to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setName(String value)

public Machine.Builder setName(String value)

Required. The resource name of the machine.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Machine.Builder setNameBytes(ByteString value)

Required. The resource name of the machine.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Machine.Builder setUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Machine.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Machine.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Machine.Builder

setVersion(String value)

public Machine.Builder setVersion(String value)

Output only. The software version of the machine.

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

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public Machine.Builder setVersionBytes(ByteString value)

Output only. The software version of the machine.

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

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setZone(String value)

public Machine.Builder setZone(String value)

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public Machine.Builder setZoneBytes(ByteString value)

The Google Distributed Cloud Edge zone of this machine.

string zone = 6;

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
Machine.Builder

This builder for chaining.