Class Machine.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
com.google.cloud.edgecontainer.v1.Machine.Builder
- All Implemented Interfaces:
MachineOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Machine
public static final class Machine.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Canonical resource name of the node that this machine is responsible for hosting e.g.Required.Output only.Output only.The Google Distributed Cloud Edge zone of this machine.booleancontainsLabels(String key) Labels associated with this resource.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOutput only.Canonical resource name of the node that this machine is responsible for hosting e.g.com.google.protobuf.ByteStringCanonical resource name of the node that this machine is responsible for hosting e.g.Deprecated.intLabels associated with this resource.Labels associated with this resource.getLabelsOrDefault(String key, String defaultValue) Labels associated with this resource.getLabelsOrThrow(String key) Labels associated with this resource.Deprecated.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.getZone()The Google Distributed Cloud Edge zone of this machine.com.google.protobuf.ByteStringThe Google Distributed Cloud Edge zone of this machine.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Labels associated with this resource.Labels associated with this resource.removeLabels(String key) Labels associated with this resource.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisabled(boolean value) Output only.setHostedNode(String value) Canonical resource name of the node that this machine is responsible for hosting e.g.setHostedNodeBytes(com.google.protobuf.ByteString value) Canonical resource name of the node that this machine is responsible for hosting e.g.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setVersion(String value) Output only.setVersionBytes(com.google.protobuf.ByteString value) Output only.The Google Distributed Cloud Edge zone of this machine.setZoneBytes(com.google.protobuf.ByteString value) The Google Distributed Cloud Edge zone of this machine.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Machine.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Machine.Builder>
-
mergeFrom
public Machine.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Machine.Builder>- Throws:
IOException
-
getName
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceMachineOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceMachineOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceMachineOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceMachineOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.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]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceMachineOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceMachineOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];- Specified by:
getUpdateTimein interfaceMachineOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The time when the node pool was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The time when the node pool was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The time when the node pool was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The time when the node pool was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.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]; -
getUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateTimeOrBuilderin interfaceMachineOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:MachineOrBuilderLabels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceMachineOrBuilder
-
containsLabels
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceMachineOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceMachineOrBuilder
-
getLabelsMap
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceMachineOrBuilder
-
getLabelsOrDefault
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceMachineOrBuilder
-
getLabelsOrThrow
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceMachineOrBuilder
-
clearLabels
-
removeLabels
Labels associated with this resource.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels associated with this resource.
map<string, string> labels = 4; -
putAllLabels
Labels associated with this resource.
map<string, string> labels = 4; -
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;- Specified by:
getHostedNodein interfaceMachineOrBuilder- Returns:
- The hostedNode.
-
getHostedNodeBytes
public com.google.protobuf.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;- Specified by:
getHostedNodeBytesin interfaceMachineOrBuilder- Returns:
- The bytes for hostedNode.
-
setHostedNode
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;- Parameters:
value- The hostedNode to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setHostedNodeBytes
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;- Parameters:
value- The bytes for hostedNode to set.- Returns:
- This builder for chaining.
-
getZone
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;- Specified by:
getZonein interfaceMachineOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()The Google Distributed Cloud Edge zone of this machine.
string zone = 6;- Specified by:
getZoneBytesin interfaceMachineOrBuilder- Returns:
- The bytes for zone.
-
setZone
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;- Returns:
- This builder for chaining.
-
setZoneBytes
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-
getVersion
Output only. The software version of the machine.
string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionin interfaceMachineOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Output only. The software version of the machine.
string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVersionBytesin interfaceMachineOrBuilder- Returns:
- The bytes for version.
-
setVersion
Output only. The software version of the machine.
string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Output only. The software version of the machine.
string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setVersionBytes
Output only. The software version of the machine.
string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDisabledin interfaceMachineOrBuilder- Returns:
- The disabled.
-
setDisabled
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];- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-