Service Client: Google::Cloud::Tpu::V1::CloudTpu::TpuClient
Client stub representing the remote Tpu gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to tpu.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Tpu::V1::CloudTpu - Compiled Protocol Buffers messages for google/cloud/tpu/v1/cloud_tpu.proto
SYNOPSIS
use Google::Cloud::Tpu::V1::CloudTpu;
my $msg = Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig->new({
preemptible => $preemptible,
reserved => $reserved,
});
# Read or update a field
my $val = $msg->preemptible();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/tpu/v1/cloud_tpu.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig
Sets the scheduling options for this node.
Inherits from Protobuf::Message.
Accessors
$msg->preemptible()/$msg->preemptible($value)Type:
BoolDefines whether the node is preemptible.
$msg->reserved()/$msg->reserved($value)Type:
BoolWhether the node is created under a reservation.
Google::Cloud::Tpu::V1::CloudTpu::NetworkEndpoint
A network endpoint over which a TPU worker can be reached.
Inherits from Protobuf::Message.
Accessors
$msg->ip_address()/$msg->ip_address($value)Type:
StringThe IP address of this network endpoint.
$msg->port()/$msg->port($value)Type:
Int32The port of this network endpoint.
Google::Cloud::Tpu::V1::CloudTpu::Node
A TPU instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. The name of the TPU
$msg->description()/$msg->description($value)Type:
StringThe user-supplied description of the TPU. Maximum of 512 characters.
$msg->accelerator_type()/$msg->accelerator_type($value)Type:
StringRequired. The type of hardware accelerators associated with this node.
$msg->ip_address()/$msg->ip_address($value)Type:
StringOutput only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
$msg->port()/$msg->port($value)Type:
StringOutput only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Tpu::V1::Node::State)Output only. The current state for the TPU Node.
$msg->health_description()/$msg->health_description($value)Type:
StringOutput only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
$msg->tensorflow_version()/$msg->tensorflow_version($value)Type:
StringRequired. The version of Tensorflow running in the Node.
$msg->network()/$msg->network($value)Type:
StringThe name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, "default" will be used.
$msg->cidr_block()/$msg->cidr_block($value)Type:
StringThe 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.
$msg->service_account()/$msg->service_account($value)Type:
StringOutput only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the node was created.
$msg->scheduling_config()/$msg->scheduling_config($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::SchedulingConfig)The scheduling options for this node.
$msg->network_endpoints()/$msg->network_endpoints($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::NetworkEndpoint)Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.
$msg->health()/$msg->health($value)Type:
Enum(Google::Cloud::Tpu::V1::Node::Health)The health status of the TPU node.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::Node::LabelsEntry)Resource labels to represent user-provided metadata.
$msg->use_service_networking()/$msg->use_service_networking($value)Type:
BoolWhether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.
$msg->api_version()/$msg->api_version($value)Type:
Enum(Google::Cloud::Tpu::V1::Node::ApiVersion)Output only. The API version that created this Node.
$msg->symptoms()/$msg->symptoms($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::Symptom)Output only. The Symptoms that have occurred to the TPU Node.
Enum: Node::State
STATE_UNSPECIFIED=>0CREATING=>1READY=>2RESTARTING=>3REIMAGING=>4DELETING=>5REPAIRING=>6STOPPED=>8STOPPING=>9STARTING=>10PREEMPTED=>11TERMINATED=>12HIDING=>13HIDDEN=>14UNHIDING=>15UNKNOWN=>16
Enum: Node::Health
HEALTH_UNSPECIFIED=>0HEALTHY=>1DEPRECATED_UNHEALTHY=>2TIMEOUT=>3UNHEALTHY_TENSORFLOW=>4UNHEALTHY_MAINTENANCE=>5
Enum: Node::ApiVersion
API_VERSION_UNSPECIFIED=>0V1_ALPHA1=>1V1=>2V2_ALPHA1=>3
Google::Cloud::Tpu::V1::CloudTpu::ListNodesRequest
Request for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
Google::Cloud::Tpu::V1::CloudTpu::ListNodesResponse
Response for [ListNodes][google.cloud.tpu.v1.Tpu.ListNodes].
Inherits from Protobuf::Message.
Accessors
$msg->nodes()/$msg->nodes($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::Node)The listed nodes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V1::CloudTpu::GetNodeRequest
Request for [GetNode][google.cloud.tpu.v1.Tpu.GetNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V1::CloudTpu::CreateNodeRequest
Request for [CreateNode][google.cloud.tpu.v1.Tpu.CreateNode].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->node_id()/$msg->node_id($value)Type:
StringThe unqualified resource name.
$msg->node()/$msg->node($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::Node)Required. The node.
Google::Cloud::Tpu::V1::CloudTpu::DeleteNodeRequest
Request for [DeleteNode][google.cloud.tpu.v1.Tpu.DeleteNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V1::CloudTpu::ReimageNodeRequest
Request for [ReimageNode][google.cloud.tpu.v1.Tpu.ReimageNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
$msg->tensorflow_version()/$msg->tensorflow_version($value)Type:
StringThe version for reimage to create.
Google::Cloud::Tpu::V1::CloudTpu::StopNodeRequest
Request for [StopNode][google.cloud.tpu.v1.Tpu.StopNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
Google::Cloud::Tpu::V1::CloudTpu::StartNodeRequest
Request for [StartNode][google.cloud.tpu.v1.Tpu.StartNode].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
Google::Cloud::Tpu::V1::CloudTpu::TensorFlowVersion
A tensorflow version that a Node can be configured with.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
$msg->version()/$msg->version($value)Type:
Stringthe tensorflow version.
Google::Cloud::Tpu::V1::CloudTpu::GetTensorFlowVersionRequest
Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsRequest
Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
$msg->order_by()/$msg->order_by($value)Type:
StringSort results.
Google::Cloud::Tpu::V1::CloudTpu::ListTensorFlowVersionsResponse
Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
Inherits from Protobuf::Message.
Accessors
$msg->tensorflow_versions()/$msg->tensorflow_versions($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::TensorFlowVersion)The listed nodes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V1::CloudTpu::AcceleratorType
A accelerator type that a Node can be configured with.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name.
$msg->type()/$msg->type($value)Type:
Stringthe accelerator type.
Google::Cloud::Tpu::V1::CloudTpu::GetAcceleratorTypeRequest
Request for [GetAcceleratorType][google.cloud.tpu.v1.Tpu.GetAcceleratorType].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name.
Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesRequest
Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous List request, if any.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
$msg->order_by()/$msg->order_by($value)Type:
StringSort results.
Google::Cloud::Tpu::V1::CloudTpu::ListAcceleratorTypesResponse
Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
Inherits from Protobuf::Message.
Accessors
$msg->accelerator_types()/$msg->accelerator_types($value)Type:
Message(Google::Cloud::Tpu::V1::CloudTpu::AcceleratorType)The listed nodes.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token or empty if none.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Tpu::V1::CloudTpu::OperationMetadata
Metadata describing an [Operation][google.longrunning.Operation]
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringTarget of the operation - for example projects/project-1/connectivityTests/test-1
$msg->verb()/$msg->verb($value)Type:
StringName of the verb executed by the operation.
$msg->status_detail()/$msg->status_detail($value)Type:
StringHuman-readable status of the operation, if any.
$msg->cancel_requested()/$msg->cancel_requested($value)Type:
BoolSpecifies if cancellation was requested for the operation.
$msg->api_version()/$msg->api_version($value)Type:
StringAPI version.
Google::Cloud::Tpu::V1::CloudTpu::Symptom
A Symptom instance.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp when the Symptom is created.
$msg->symptom_type()/$msg->symptom_type($value)Type:
Enum(Google::Cloud::Tpu::V1::Symptom::SymptomType)Type of the Symptom.
$msg->details()/$msg->details($value)Type:
StringDetailed information of the current Symptom.
$msg->worker_id()/$msg->worker_id($value)Type:
StringA string used to uniquely distinguish a worker within a TPU node.
Enum: Symptom::SymptomType
SYMPTOM_TYPE_UNSPECIFIED=>0LOW_MEMORY=>1OUT_OF_MEMORY=>2EXECUTE_TIMED_OUT=>3MESH_BUILD_FAIL=>4HBM_OUT_OF_MEMORY=>5PROJECT_ABUSE=>6
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Tpu::V1::CloudTpu::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.