public static final class Machine.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
Machine.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Machine |
build() |
Machine |
buildPartial() |
Machine.Builder |
clear() |
Machine.Builder |
clearCreateTime()
Output only.
|
Machine.Builder |
clearDisabled()
Output only.
|
Machine.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Machine.Builder |
clearHostedNode()
Canonical resource name of the node that this machine is responsible for
hosting e.g.
|
Machine.Builder |
clearLabels() |
Machine.Builder |
clearName()
Required.
|
Machine.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Machine.Builder |
clearUpdateTime()
Output only.
|
Machine.Builder |
clearZone()
The Google Distributed Cloud Edge zone of this machine.
|
Machine.Builder |
clone() |
boolean |
containsLabels(String key)
Labels associated with this resource.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Machine |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisabled()
Output only.
|
String |
getHostedNode()
Canonical resource name of the node that this machine is responsible for
hosting e.g.
|
com.google.protobuf.ByteString |
getHostedNodeBytes()
Canonical resource name of the node that this machine is responsible for
hosting e.g.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels associated with this resource.
|
Map<String,String> |
getLabelsMap()
Labels associated with this resource.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels associated with this resource.
|
String |
getLabelsOrThrow(String key)
Labels associated with this resource.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
String |
getZone()
The Google Distributed Cloud Edge zone of this machine.
|
com.google.protobuf.ByteString |
getZoneBytes()
The Google Distributed Cloud Edge zone of this machine.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Machine.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Machine.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Machine.Builder |
mergeFrom(Machine other) |
Machine.Builder |
mergeFrom(com.google.protobuf.Message other) |
Machine.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Machine.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Machine.Builder |
putAllLabels(Map<String,String> values)
Labels associated with this resource.
|
Machine.Builder |
putLabels(String key,
String value)
Labels associated with this resource.
|
Machine.Builder |
removeLabels(String key)
Labels associated with this resource.
|
Machine.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Machine.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Machine.Builder |
setDisabled(boolean value)
Output only.
|
Machine.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Machine.Builder |
setHostedNode(String value)
Canonical resource name of the node that this machine is responsible for
hosting e.g.
|
Machine.Builder |
setHostedNodeBytes(com.google.protobuf.ByteString value)
Canonical resource name of the node that this machine is responsible for
hosting e.g.
|
Machine.Builder |
setName(String value)
Required.
|
Machine.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
Machine.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Machine.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Machine.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Machine.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Machine.Builder |
setZone(String value)
The Google Distributed Cloud Edge zone of this machine.
|
Machine.Builder |
setZoneBytes(com.google.protobuf.ByteString value)
The Google Distributed Cloud Edge zone of this machine.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Machine build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Machine buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Machine.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Machine.Builder>public Machine.Builder mergeFrom(Machine other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public Machine.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Machine.Builder>IOExceptionpublic String getName()
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface MachineOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface MachineOrBuilderpublic Machine.Builder setName(String value)
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The name to set.public Machine.Builder clearName()
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public Machine.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the machine.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for name to set.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];
hasCreateTime in interface MachineOrBuilderpublic 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];
getCreateTime in interface MachineOrBuilderpublic Machine.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Machine.Builder setCreateTime(com.google.protobuf.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];
public Machine.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the node pool was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
getCreateTimeOrBuilder in interface MachineOrBuilderpublic 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];
hasUpdateTime in interface MachineOrBuilderpublic 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];
getUpdateTime in interface MachineOrBuilderpublic Machine.Builder setUpdateTime(com.google.protobuf.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];
public Machine.Builder setUpdateTime(com.google.protobuf.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];
public Machine.Builder mergeUpdateTime(com.google.protobuf.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];
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];
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];
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];
getUpdateTimeOrBuilder in interface MachineOrBuilderpublic int getLabelsCount()
MachineOrBuilderLabels associated with this resource.
map<string, string> labels = 4;getLabelsCount in interface MachineOrBuilderpublic boolean containsLabels(String key)
Labels associated with this resource.
map<string, string> labels = 4;containsLabels in interface MachineOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface MachineOrBuilderpublic Map<String,String> getLabelsMap()
Labels associated with this resource.
map<string, string> labels = 4;getLabelsMap in interface MachineOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this resource.
map<string, string> labels = 4;getLabelsOrDefault in interface MachineOrBuilderpublic String getLabelsOrThrow(String key)
Labels associated with this resource.
map<string, string> labels = 4;getLabelsOrThrow in interface MachineOrBuilderpublic Machine.Builder clearLabels()
public Machine.Builder removeLabels(String key)
Labels associated with this resource.
map<string, string> labels = 4;@Deprecated public Map<String,String> getMutableLabels()
public Machine.Builder putLabels(String key, String value)
Labels associated with this resource.
map<string, string> labels = 4;public Machine.Builder putAllLabels(Map<String,String> values)
Labels associated with this resource.
map<string, string> labels = 4;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.
string hosted_node = 5;getHostedNode in interface MachineOrBuilderpublic 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.
string hosted_node = 5;getHostedNodeBytes in interface MachineOrBuilderpublic 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.
string hosted_node = 5;value - The hostedNode to set.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.
string hosted_node = 5;public Machine.Builder setHostedNodeBytes(com.google.protobuf.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.
string hosted_node = 5;value - The bytes for hostedNode to set.public String getZone()
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;getZone in interface MachineOrBuilderpublic com.google.protobuf.ByteString getZoneBytes()
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;getZoneBytes in interface MachineOrBuilderpublic Machine.Builder setZone(String value)
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;value - The zone to set.public Machine.Builder clearZone()
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;public Machine.Builder setZoneBytes(com.google.protobuf.ByteString value)
The Google Distributed Cloud Edge zone of this machine.
string zone = 6;value - The bytes for zone to set.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];getDisabled in interface MachineOrBuilderpublic 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];value - The disabled to set.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];public final Machine.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>public final Machine.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Machine.Builder>Copyright © 2024 Google LLC. All rights reserved.