- 2.74.0 (latest)
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.2.6
public
final
class
Node
extends
GeneratedMessageV3
implements
NodeOrBuilder
A TPU instance.
Protobuf type google.cloud.tpu.v2.Node
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > NodeImplements
NodeOrBuilderStatic Fields
ACCELERATOR_CONFIG_FIELD_NUMBER
public
static
final
int
ACCELERATOR_CONFIG_FIELD_NUMBER
ACCELERATOR_TYPE_FIELD_NUMBER
public
static
final
int
ACCELERATOR_TYPE_FIELD_NUMBER
API_VERSION_FIELD_NUMBER
public
static
final
int
API_VERSION_FIELD_NUMBER
CIDR_BLOCK_FIELD_NUMBER
public
static
final
int
CIDR_BLOCK_FIELD_NUMBER
CREATE_TIME_FIELD_NUMBER
public
static
final
int
CREATE_TIME_FIELD_NUMBER
DATA_DISKS_FIELD_NUMBER
public
static
final
int
DATA_DISKS_FIELD_NUMBER
DESCRIPTION_FIELD_NUMBER
public
static
final
int
DESCRIPTION_FIELD_NUMBER
HEALTH_DESCRIPTION_FIELD_NUMBER
public
static
final
int
HEALTH_DESCRIPTION_FIELD_NUMBER
HEALTH_FIELD_NUMBER
public
static
final
int
HEALTH_FIELD_NUMBER
ID_FIELD_NUMBER
public
static
final
int
ID_FIELD_NUMBER
LABELS_FIELD_NUMBER
public
static
final
int
LABELS_FIELD_NUMBER
METADATA_FIELD_NUMBER
public
static
final
int
METADATA_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
NETWORK_CONFIG_FIELD_NUMBER
public
static
final
int
NETWORK_CONFIG_FIELD_NUMBER
NETWORK_ENDPOINTS_FIELD_NUMBER
public
static
final
int
NETWORK_ENDPOINTS_FIELD_NUMBER
RUNTIME_VERSION_FIELD_NUMBER
public
static
final
int
RUNTIME_VERSION_FIELD_NUMBER
SCHEDULING_CONFIG_FIELD_NUMBER
public
static
final
int
SCHEDULING_CONFIG_FIELD_NUMBER
SERVICE_ACCOUNT_FIELD_NUMBER
public
static
final
int
SERVICE_ACCOUNT_FIELD_NUMBER
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public
static
final
int
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
STATE_FIELD_NUMBER
public
static
final
int
STATE_FIELD_NUMBER
SYMPTOMS_FIELD_NUMBER
public
static
final
int
SYMPTOMS_FIELD_NUMBER
TAGS_FIELD_NUMBER
public
static
final
int
TAGS_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Node
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Node
.
Builder
newBuilder
()
newBuilder(Node prototype)
public
static
Node
.
Builder
newBuilder
(
Node
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Node
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Node
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Node
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Node
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Node
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Node
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Node
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Node
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Node
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Node
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Node
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Node
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Node>
parser
()
Methods
containsLabels(String key)
public
boolean
containsLabels
(
String
key
)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
containsMetadata(String key)
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;
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getAcceleratorConfig()
public
AcceleratorConfig
getAcceleratorConfig
()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46;
getAcceleratorConfigOrBuilder()
public
AcceleratorConfigOrBuilder
getAcceleratorConfigOrBuilder
()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46;
getAcceleratorType()
public
String
getAcceleratorType
()
Required. The type of hardware accelerators associated with this node.
string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];
getAcceleratorTypeBytes()
public
ByteString
getAcceleratorTypeBytes
()
Required. The type of hardware accelerators associated with this node.
string accelerator_type = 5 [(.google.api.field_behavior) = REQUIRED];
getApiVersion()
public
Node
.
ApiVersion
getApiVersion
()
Output only. The API version that created this Node.
.google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
getApiVersionValue()
public
int
getApiVersionValue
()
Output only. The API version that created this Node.
.google.cloud.tpu.v2.Node.ApiVersion api_version = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
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;
getCidrBlockBytes()
public
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;
getCreateTime()
public
Timestamp
getCreateTime
()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder()
public
TimestampOrBuilder
getCreateTimeOrBuilder
()
Output only. The time when the node was created.
.google.protobuf.Timestamp create_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDataDisks(int index)
public
AttachedDisk
getDataDisks
(
int
index
)
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;
getDataDisksCount()
public
int
getDataDisksCount
()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;
getDataDisksList()
public
List<AttachedDisk>
getDataDisksList
()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;
getDataDisksOrBuilder(int index)
public
AttachedDiskOrBuilder
getDataDisksOrBuilder
(
int
index
)
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;
getDataDisksOrBuilderList()
public
List
< ?
extends
AttachedDiskOrBuilder
>
getDataDisksOrBuilderList
()
The additional data disks for the Node.
repeated .google.cloud.tpu.v2.AttachedDisk data_disks = 41;
getDefaultInstanceForType()
public
Node
getDefaultInstanceForType
()
getDescription()
public
String
getDescription
()
The user-supplied description of the TPU. Maximum of 512 characters.
string description = 3;
getDescriptionBytes()
public
ByteString
getDescriptionBytes
()
The user-supplied description of the TPU. Maximum of 512 characters.
string description = 3;
getHealth()
public
Node
.
Health
getHealth
()
The health status of the TPU node.
.google.cloud.tpu.v2.Node.Health health = 22;
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];
getHealthDescriptionBytes()
public
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];
getHealthValue()
public
int
getHealthValue
()
The health status of the TPU node.
.google.cloud.tpu.v2.Node.Health health = 22;
getId()
public
long
getId
()
Output only. The unique identifier for the TPU Node.
int64 id = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLabels()
public
Map<String
,
String
>
getLabels
()
Use #getLabelsMap() instead.
getLabelsCount()
public
int
getLabelsCount
()
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
getLabelsMap()
public
Map<String
,
String
>
getLabelsMap
()
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
getLabelsOrDefault(String key, String defaultValue)
public
String
getLabelsOrDefault
(
String
key
,
String
defaultValue
)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
getLabelsOrThrow(String key)
public
String
getLabelsOrThrow
(
String
key
)
Resource labels to represent user-provided metadata.
map<string, string> labels = 24;
getMetadata()
public
Map<String
,
String
>
getMetadata
()
Use #getMetadataMap() instead.
getMetadataCount()
public
int
getMetadataCount
()
Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
map<string, string> metadata = 34;
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;
getMetadataOrDefault(String key, String defaultValue)
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;
getMetadataOrThrow(String key)
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;
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];
getNameBytes()
public
ByteString
getNameBytes
()
Output only. Immutable. The name of the TPU.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
getNetworkConfig()
public
NetworkConfig
getNetworkConfig
()
Network configurations for the TPU node.
.google.cloud.tpu.v2.NetworkConfig network_config = 36;
getNetworkConfigOrBuilder()
public
NetworkConfigOrBuilder
getNetworkConfigOrBuilder
()
Network configurations for the TPU node.
.google.cloud.tpu.v2.NetworkConfig network_config = 36;
getNetworkEndpoints(int index)
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNetworkEndpointsOrBuilder(int index)
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.v2.NetworkEndpoint network_endpoints = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParserForType()
public
Parser<Node>
getParserForType
()
getRuntimeVersion()
public
String
getRuntimeVersion
()
Required. The runtime version running in the Node.
string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];
getRuntimeVersionBytes()
public
ByteString
getRuntimeVersionBytes
()
Required. The runtime version running in the Node.
string runtime_version = 11 [(.google.api.field_behavior) = REQUIRED];
getSchedulingConfig()
public
SchedulingConfig
getSchedulingConfig
()
The scheduling options for this node.
.google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17;
getSchedulingConfigOrBuilder()
public
SchedulingConfigOrBuilder
getSchedulingConfigOrBuilder
()
The scheduling options for this node.
.google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17;
getSerializedSize()
public
int
getSerializedSize
()
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.v2.ServiceAccount service_account = 37;
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.v2.ServiceAccount service_account = 37;
getShieldedInstanceConfig()
public
ShieldedInstanceConfig
getShieldedInstanceConfig
()
Shielded Instance options.
.google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45;
getShieldedInstanceConfigOrBuilder()
public
ShieldedInstanceConfigOrBuilder
getShieldedInstanceConfigOrBuilder
()
Shielded Instance options.
.google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45;
getState()
public
Node
.
State
getState
()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
public
int
getStateValue
()
Output only. The current state for the TPU Node.
.google.cloud.tpu.v2.Node.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSymptoms(int index)
public
Symptom
getSymptoms
(
int
index
)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSymptomsCount()
public
int
getSymptomsCount
()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSymptomsList()
public
List<Symptom>
getSymptomsList
()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSymptomsOrBuilder(int index)
public
SymptomOrBuilder
getSymptomsOrBuilder
(
int
index
)
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSymptomsOrBuilderList()
public
List
< ?
extends
SymptomOrBuilder
>
getSymptomsOrBuilderList
()
Output only. The Symptoms that have occurred to the TPU Node.
repeated .google.cloud.tpu.v2.Symptom symptoms = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTags(int index)
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;
getTagsBytes(int index)
public
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;
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;
getTagsList()
public
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;
getUnknownFields()
public
final
UnknownFieldSet
getUnknownFields
()
hasAcceleratorConfig()
public
boolean
hasAcceleratorConfig
()
The AccleratorConfig for the TPU Node.
.google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46;
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];
hasNetworkConfig()
public
boolean
hasNetworkConfig
()
Network configurations for the TPU node.
.google.cloud.tpu.v2.NetworkConfig network_config = 36;
hasSchedulingConfig()
public
boolean
hasSchedulingConfig
()
The scheduling options for this node.
.google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17;
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.v2.ServiceAccount service_account = 37;
hasShieldedInstanceConfig()
public
boolean
hasShieldedInstanceConfig
()
Shielded Instance options.
.google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45;
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
internalGetMapField(int number)
protected
MapField
internalGetMapField
(
int
number
)
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Node
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Node
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Node
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)