Package com.google.cloud.tpu.v2alpha1
Class Node
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.tpu.v2alpha1.Node
-
- All Implemented Interfaces:
NodeOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Node extends com.google.protobuf.GeneratedMessageV3 implements NodeOrBuilder
A TPU instance.
Protobuf typegoogle.cloud.tpu.v2alpha1.Node
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Node.ApiVersion
TPU API Version.static class
Node.Builder
A TPU instance.static class
Node.Health
Health defines the status of a TPU node as reported by Health Monitor.static class
Node.State
Represents the different states of a TPU node during its lifecycle.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCELERATOR_CONFIG_FIELD_NUMBER
static int
ACCELERATOR_TYPE_FIELD_NUMBER
static int
API_VERSION_FIELD_NUMBER
static int
BOOT_DISK_CONFIG_FIELD_NUMBER
static int
CIDR_BLOCK_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
DATA_DISKS_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
HEALTH_DESCRIPTION_FIELD_NUMBER
static int
HEALTH_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
MULTISLICE_NODE_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NETWORK_CONFIG_FIELD_NUMBER
static int
NETWORK_ENDPOINTS_FIELD_NUMBER
static int
QUEUED_RESOURCE_FIELD_NUMBER
static int
RUNTIME_VERSION_FIELD_NUMBER
static int
SCHEDULING_CONFIG_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
static int
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
SYMPTOMS_FIELD_NUMBER
static int
TAGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Resource labels to represent user-provided metadata.boolean
containsMetadata(String key)
Custom metadata to apply to the TPU Node.boolean
equals(Object obj)
AcceleratorConfig
getAcceleratorConfig()
The AccleratorConfig for the TPU Node.AcceleratorConfigOrBuilder
getAcceleratorConfigOrBuilder()
The AccleratorConfig for the TPU Node.String
getAcceleratorType()
The type of hardware accelerators associated with this node.com.google.protobuf.ByteString
getAcceleratorTypeBytes()
The type of hardware accelerators associated with this node.Node.ApiVersion
getApiVersion()
Output only.int
getApiVersionValue()
Output only.BootDiskConfig
getBootDiskConfig()
Optional.BootDiskConfigOrBuilder
getBootDiskConfigOrBuilder()
Optional.String
getCidrBlock()
The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.ByteString
getCidrBlockBytes()
The CIDR block that the TPU node will use when selecting an IP address.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.AttachedDisk
getDataDisks(int index)
The additional data disks for the Node.int
getDataDisksCount()
The additional data disks for the Node.List<AttachedDisk>
getDataDisksList()
The additional data disks for the Node.AttachedDiskOrBuilder
getDataDisksOrBuilder(int index)
The additional data disks for the Node.List<? extends AttachedDiskOrBuilder>
getDataDisksOrBuilderList()
The additional data disks for the Node.static Node
getDefaultInstance()
Node
getDefaultInstanceForType()
String
getDescription()
The user-supplied description of the TPU.com.google.protobuf.ByteString
getDescriptionBytes()
The user-supplied description of the TPU.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Node.Health
getHealth()
The health status of the TPU node.String
getHealthDescription()
Output only.com.google.protobuf.ByteString
getHealthDescriptionBytes()
Output only.int
getHealthValue()
The health status of the TPU node.long
getId()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Resource labels to represent user-provided metadata.Map<String,String>
getLabelsMap()
Resource labels to represent user-provided metadata.String
getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user-provided metadata.String
getLabelsOrThrow(String key)
Resource labels to represent user-provided metadata.Map<String,String>
getMetadata()
Deprecated.int
getMetadataCount()
Custom metadata to apply to the TPU Node.Map<String,String>
getMetadataMap()
Custom metadata to apply to the TPU Node.String
getMetadataOrDefault(String key, String defaultValue)
Custom metadata to apply to the TPU Node.String
getMetadataOrThrow(String key)
Custom metadata to apply to the TPU Node.boolean
getMultisliceNode()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.NetworkConfig
getNetworkConfig()
Network configurations for the TPU node.NetworkConfigOrBuilder
getNetworkConfigOrBuilder()
Network configurations for the TPU node.NetworkEndpoint
getNetworkEndpoints(int index)
Output only.int
getNetworkEndpointsCount()
Output only.List<NetworkEndpoint>
getNetworkEndpointsList()
Output only.NetworkEndpointOrBuilder
getNetworkEndpointsOrBuilder(int index)
Output only.List<? extends NetworkEndpointOrBuilder>
getNetworkEndpointsOrBuilderList()
Output only.com.google.protobuf.Parser<Node>
getParserForType()
String
getQueuedResource()
Output only.com.google.protobuf.ByteString
getQueuedResourceBytes()
Output only.String
getRuntimeVersion()
Required.com.google.protobuf.ByteString
getRuntimeVersionBytes()
Required.SchedulingConfig
getSchedulingConfig()
The scheduling options for this node.SchedulingConfigOrBuilder
getSchedulingConfigOrBuilder()
The scheduling options for this node.int
getSerializedSize()
ServiceAccount
getServiceAccount()
The Google Cloud Platform Service Account to be used by the TPU node VMs.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
The Google Cloud Platform Service Account to be used by the TPU node VMs.ShieldedInstanceConfig
getShieldedInstanceConfig()
Shielded Instance options.ShieldedInstanceConfigOrBuilder
getShieldedInstanceConfigOrBuilder()
Shielded Instance options.Node.State
getState()
Output only.int
getStateValue()
Output only.Symptom
getSymptoms(int index)
Output only.int
getSymptomsCount()
Output only.List<Symptom>
getSymptomsList()
Output only.SymptomOrBuilder
getSymptomsOrBuilder(int index)
Output only.List<? extends SymptomOrBuilder>
getSymptomsOrBuilderList()
Output only.String
getTags(int index)
Tags to apply to the TPU Node.com.google.protobuf.ByteString
getTagsBytes(int index)
Tags to apply to the TPU Node.int
getTagsCount()
Tags to apply to the TPU Node.com.google.protobuf.ProtocolStringList
getTagsList()
Tags to apply to the TPU Node.boolean
hasAcceleratorConfig()
The AccleratorConfig for the TPU Node.boolean
hasBootDiskConfig()
Optional.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasNetworkConfig()
Network configurations for the TPU node.boolean
hasSchedulingConfig()
The scheduling options for this node.boolean
hasServiceAccount()
The Google Cloud Platform Service Account to be used by the TPU node VMs.boolean
hasShieldedInstanceConfig()
Shielded Instance options.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Node.Builder
newBuilder()
static Node.Builder
newBuilder(Node prototype)
Node.Builder
newBuilderForType()
protected Node.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Node
parseDelimitedFrom(InputStream input)
static Node
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(byte[] data)
static Node
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(com.google.protobuf.ByteString data)
static Node
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(com.google.protobuf.CodedInputStream input)
static Node
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(InputStream input)
static Node
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Node
parseFrom(ByteBuffer data)
static Node
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Node>
parser()
Node.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATOR_TYPE_FIELD_NUMBER
public static final int ACCELERATOR_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_DESCRIPTION_FIELD_NUMBER
public static final int HEALTH_DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RUNTIME_VERSION_FIELD_NUMBER
public static final int RUNTIME_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_CONFIG_FIELD_NUMBER
public static final int NETWORK_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CIDR_BLOCK_FIELD_NUMBER
public static final int CIDR_BLOCK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULING_CONFIG_FIELD_NUMBER
public static final int SCHEDULING_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_ENDPOINTS_FIELD_NUMBER
public static final int NETWORK_ENDPOINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEALTH_FIELD_NUMBER
public static final int HEALTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISKS_FIELD_NUMBER
public static final int DATA_DISKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
API_VERSION_FIELD_NUMBER
public static final int API_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYMPTOMS_FIELD_NUMBER
public static final int SYMPTOMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUEUED_RESOURCE_FIELD_NUMBER
public static final int QUEUED_RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATOR_CONFIG_FIELD_NUMBER
public static final int ACCELERATOR_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MULTISLICE_NODE_FIELD_NUMBER
public static final int MULTISLICE_NODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_DISK_CONFIG_FIELD_NUMBER
public static final int BOOT_DISK_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. Immutable. The name of the TPU.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getName
in interfaceNodeOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Immutable. The name of the TPU.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getNameBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
The user-supplied description of the TPU. Maximum of 512 characters.
string description = 3;
- Specified by:
getDescription
in interfaceNodeOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The user-supplied description of the TPU. Maximum of 512 characters.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for description.
-
getAcceleratorType
public String getAcceleratorType()
The type of hardware accelerators associated with this node.
string accelerator_type = 5;
- Specified by:
getAcceleratorType
in interfaceNodeOrBuilder
- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public com.google.protobuf.ByteString getAcceleratorTypeBytes()
The type of hardware accelerators associated with this node.
string accelerator_type = 5;
- Specified by:
getAcceleratorTypeBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for acceleratorType.
-
getStateValue
public int getStateValue()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceNodeOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public Node.State getState()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2alpha1.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceNodeOrBuilder
- Returns:
- The state.
-
getHealthDescription
public String getHealthDescription()
Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthDescription
in interfaceNodeOrBuilder
- Returns:
- The healthDescription.
-
getHealthDescriptionBytes
public com.google.protobuf.ByteString getHealthDescriptionBytes()
Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
string health_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getHealthDescriptionBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for healthDescription.
-
getRuntimeVersion
public String getRuntimeVersion()
Required. The runtime version running in the Node.
string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getRuntimeVersion
in interfaceNodeOrBuilder
- Returns:
- The runtimeVersion.
-
getRuntimeVersionBytes
public com.google.protobuf.ByteString getRuntimeVersionBytes()
Required. The runtime version running in the Node.
string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getRuntimeVersionBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for runtimeVersion.
-
hasNetworkConfig
public boolean hasNetworkConfig()
Network configurations for the TPU node.
.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;
- Specified by:
hasNetworkConfig
in interfaceNodeOrBuilder
- Returns:
- Whether the networkConfig field is set.
-
getNetworkConfig
public NetworkConfig getNetworkConfig()
Network configurations for the TPU node.
.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;
- Specified by:
getNetworkConfig
in interfaceNodeOrBuilder
- Returns:
- The networkConfig.
-
getNetworkConfigOrBuilder
public NetworkConfigOrBuilder getNetworkConfigOrBuilder()
Network configurations for the TPU node.
.google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36;
- Specified by:
getNetworkConfigOrBuilder
in interfaceNodeOrBuilder
-
getCidrBlock
public String getCidrBlock()
The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
string cidr_block = 13;
- Specified by:
getCidrBlock
in interfaceNodeOrBuilder
- Returns:
- The cidrBlock.
-
getCidrBlockBytes
public com.google.protobuf.ByteString getCidrBlockBytes()
The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
string cidr_block = 13;
- Specified by:
getCidrBlockBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for cidrBlock.
-
hasServiceAccount
public boolean hasServiceAccount()
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;
- Specified by:
hasServiceAccount
in interfaceNodeOrBuilder
- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
public ServiceAccount getServiceAccount()
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;
- Specified by:
getServiceAccount
in interfaceNodeOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
.google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37;
- Specified by:
getServiceAccountOrBuilder
in interfaceNodeOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceNodeOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceNodeOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceNodeOrBuilder
-
hasSchedulingConfig
public boolean hasSchedulingConfig()
The scheduling options for this node.
.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;
- Specified by:
hasSchedulingConfig
in interfaceNodeOrBuilder
- Returns:
- Whether the schedulingConfig field is set.
-
getSchedulingConfig
public SchedulingConfig getSchedulingConfig()
The scheduling options for this node.
.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;
- Specified by:
getSchedulingConfig
in interfaceNodeOrBuilder
- Returns:
- The schedulingConfig.
-
getSchedulingConfigOrBuilder
public SchedulingConfigOrBuilder getSchedulingConfigOrBuilder()
The scheduling options for this node.
.google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17;
- Specified by:
getSchedulingConfigOrBuilder
in interfaceNodeOrBuilder
-
getNetworkEndpointsList
public List<NetworkEndpoint> getNetworkEndpointsList()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsList
in interfaceNodeOrBuilder
-
getNetworkEndpointsOrBuilderList
public List<? extends NetworkEndpointOrBuilder> getNetworkEndpointsOrBuilderList()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsOrBuilderList
in interfaceNodeOrBuilder
-
getNetworkEndpointsCount
public int getNetworkEndpointsCount()
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsCount
in interfaceNodeOrBuilder
-
getNetworkEndpoints
public NetworkEndpoint getNetworkEndpoints(int index)
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpoints
in interfaceNodeOrBuilder
-
getNetworkEndpointsOrBuilder
public NetworkEndpointOrBuilder getNetworkEndpointsOrBuilder(int index)
Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
repeated .google.cloud.tpu.v2alpha1.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNetworkEndpointsOrBuilder
in interfaceNodeOrBuilder
-
getHealthValue
public int getHealthValue()
The health status of the TPU node.
.google.cloud.tpu.v2alpha1.Node.Health health = 22;
- Specified by:
getHealthValue
in interfaceNodeOrBuilder
- Returns:
- The enum numeric value on the wire for health.
-
getHealth
public Node.Health getHealth()
The health status of the TPU node.
.google.cloud.tpu.v2alpha1.Node.Health health = 22;
- Specified by:
getHealth
in interfaceNodeOrBuilder
- Returns:
- The health.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NodeOrBuilder
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsCount
in interfaceNodeOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
containsLabels
in interfaceNodeOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceNodeOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsMap
in interfaceNodeOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsOrDefault
in interfaceNodeOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
- Specified by:
getLabelsOrThrow
in interfaceNodeOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:NodeOrBuilder
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;
- Specified by:
getMetadataCount
in interfaceNodeOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;
- Specified by:
containsMetadata
in interfaceNodeOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceNodeOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;
- Specified by:
getMetadataMap
in interfaceNodeOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;
- Specified by:
getMetadataOrDefault
in interfaceNodeOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;
- Specified by:
getMetadataOrThrow
in interfaceNodeOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;
- Specified by:
getTagsList
in interfaceNodeOrBuilder
- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;
- Specified by:
getTagsCount
in interfaceNodeOrBuilder
- Returns:
- The count of tags.
-
getTags
public String getTags(int index)
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;
- Specified by:
getTags
in interfaceNodeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)
Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
repeated string tags = 40;
- Specified by:
getTagsBytes
in interfaceNodeOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getId
public long getId()
Output only. The unique identifier for the TPU Node.
int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getId
in interfaceNodeOrBuilder
- Returns:
- The id.
-
getDataDisksList
public List<AttachedDisk> getDataDisksList()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;
- Specified by:
getDataDisksList
in interfaceNodeOrBuilder
-
getDataDisksOrBuilderList
public List<? extends AttachedDiskOrBuilder> getDataDisksOrBuilderList()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;
- Specified by:
getDataDisksOrBuilderList
in interfaceNodeOrBuilder
-
getDataDisksCount
public int getDataDisksCount()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;
- Specified by:
getDataDisksCount
in interfaceNodeOrBuilder
-
getDataDisks
public AttachedDisk getDataDisks(int index)
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;
- Specified by:
getDataDisks
in interfaceNodeOrBuilder
-
getDataDisksOrBuilder
public AttachedDiskOrBuilder getDataDisksOrBuilder(int index)
The additional data disks for the Node.
repeated .google.cloud.tpu.v2alpha1.AttachedDisk data_disks = 41;
- Specified by:
getDataDisksOrBuilder
in interfaceNodeOrBuilder
-
getApiVersionValue
public int getApiVersionValue()
Output only. The API version that created this Node.
.google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getApiVersionValue
in interfaceNodeOrBuilder
- Returns:
- The enum numeric value on the wire for apiVersion.
-
getApiVersion
public Node.ApiVersion getApiVersion()
Output only. The API version that created this Node.
.google.cloud.tpu.v2alpha1.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getApiVersion
in interfaceNodeOrBuilder
- Returns:
- The apiVersion.
-
getSymptomsList
public List<Symptom> getSymptomsList()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsList
in interfaceNodeOrBuilder
-
getSymptomsOrBuilderList
public List<? extends SymptomOrBuilder> getSymptomsOrBuilderList()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsOrBuilderList
in interfaceNodeOrBuilder
-
getSymptomsCount
public int getSymptomsCount()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsCount
in interfaceNodeOrBuilder
-
getSymptoms
public Symptom getSymptoms(int index)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptoms
in interfaceNodeOrBuilder
-
getSymptomsOrBuilder
public SymptomOrBuilder getSymptomsOrBuilder(int index)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2alpha1.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getSymptomsOrBuilder
in interfaceNodeOrBuilder
-
getQueuedResource
public String getQueuedResource()
Output only. The qualified name of the QueuedResource that requested this Node.
string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getQueuedResource
in interfaceNodeOrBuilder
- Returns:
- The queuedResource.
-
getQueuedResourceBytes
public com.google.protobuf.ByteString getQueuedResourceBytes()
Output only. The qualified name of the QueuedResource that requested this Node.
string queued_resource = 43 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getQueuedResourceBytes
in interfaceNodeOrBuilder
- Returns:
- The bytes for queuedResource.
-
hasAcceleratorConfig
public boolean hasAcceleratorConfig()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;
- Specified by:
hasAcceleratorConfig
in interfaceNodeOrBuilder
- Returns:
- Whether the acceleratorConfig field is set.
-
getAcceleratorConfig
public AcceleratorConfig getAcceleratorConfig()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;
- Specified by:
getAcceleratorConfig
in interfaceNodeOrBuilder
- Returns:
- The acceleratorConfig.
-
getAcceleratorConfigOrBuilder
public AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44;
- Specified by:
getAcceleratorConfigOrBuilder
in interfaceNodeOrBuilder
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()
Shielded Instance options.
.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;
- Specified by:
hasShieldedInstanceConfig
in interfaceNodeOrBuilder
- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
public ShieldedInstanceConfig getShieldedInstanceConfig()
Shielded Instance options.
.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;
- Specified by:
getShieldedInstanceConfig
in interfaceNodeOrBuilder
- Returns:
- The shieldedInstanceConfig.
-
getShieldedInstanceConfigOrBuilder
public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Shielded Instance options.
.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45;
- Specified by:
getShieldedInstanceConfigOrBuilder
in interfaceNodeOrBuilder
-
getMultisliceNode
public boolean getMultisliceNode()
Output only. Whether the Node belongs to a Multislice group.
bool multislice_node = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMultisliceNode
in interfaceNodeOrBuilder
- Returns:
- The multisliceNode.
-
hasBootDiskConfig
public boolean hasBootDiskConfig()
Optional. Boot disk configuration.
.google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasBootDiskConfig
in interfaceNodeOrBuilder
- Returns:
- Whether the bootDiskConfig field is set.
-
getBootDiskConfig
public BootDiskConfig getBootDiskConfig()
Optional. Boot disk configuration.
.google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBootDiskConfig
in interfaceNodeOrBuilder
- Returns:
- The bootDiskConfig.
-
getBootDiskConfigOrBuilder
public BootDiskConfigOrBuilder getBootDiskConfigOrBuilder()
Optional. Boot disk configuration.
.google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getBootDiskConfigOrBuilder
in interfaceNodeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Node parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Node parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Node.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Node.Builder newBuilder()
-
newBuilder
public static Node.Builder newBuilder(Node prototype)
-
toBuilder
public Node.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Node getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Node> parser()
-
getParserForType
public com.google.protobuf.Parser<Node> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Node getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-