@@ -33,7 +33,8 @@ option java_package = "com.google.cloud.tpu.v1";
3333// TPU API v1
3434service Tpu {
3535 option (google.api.default_host ) = "tpu.googleapis.com" ;
36- option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
36+ option (google.api.oauth_scopes ) =
37+ "https://www.googleapis.com/auth/cloud-platform" ;
3738
3839 // Lists nodes.
3940 rpc ListNodes (ListNodesRequest ) returns (ListNodesResponse ) {
@@ -113,23 +114,26 @@ service Tpu {
113114 }
114115
115116 // List TensorFlow versions supported by this API.
116- rpc ListTensorFlowVersions (ListTensorFlowVersionsRequest ) returns (ListTensorFlowVersionsResponse ) {
117+ rpc ListTensorFlowVersions (ListTensorFlowVersionsRequest )
118+ returns (ListTensorFlowVersionsResponse ) {
117119 option (google.api.http ) = {
118120 get : "/v1/{parent=projects/*/locations/*}/tensorflowVersions"
119121 };
120122 option (google.api.method_signature ) = "parent" ;
121123 }
122124
123125 // Gets TensorFlow Version.
124- rpc GetTensorFlowVersion (GetTensorFlowVersionRequest ) returns (TensorFlowVersion ) {
126+ rpc GetTensorFlowVersion (GetTensorFlowVersionRequest )
127+ returns (TensorFlowVersion ) {
125128 option (google.api.http ) = {
126129 get : "/v1/{name=projects/*/locations/*/tensorflowVersions/*}"
127130 };
128131 option (google.api.method_signature ) = "name" ;
129132 }
130133
131134 // Lists accelerator types supported by this API.
132- rpc ListAcceleratorTypes (ListAcceleratorTypesRequest ) returns (ListAcceleratorTypesResponse ) {
135+ rpc ListAcceleratorTypes (ListAcceleratorTypesRequest )
136+ returns (ListAcceleratorTypesResponse ) {
133137 option (google.api.http ) = {
134138 get : "/v1/{parent=projects/*/locations/*}/acceleratorTypes"
135139 };
@@ -282,8 +286,8 @@ message Node {
282286 // Output only. The current state for the TPU Node.
283287 State state = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
284288
285- // Output only. If this field is populated, it contains a description of why the TPU Node
286- // is unhealthy.
289+ // Output only. If this field is populated, it contains a description of why
290+ // the TPU Node is unhealthy.
287291 string health_description = 10 [(google.api.field_behavior ) = OUTPUT_ONLY ];
288292
289293 // Required. The version of Tensorflow running in the Node.
@@ -304,22 +308,24 @@ message Node {
304308 // block.
305309 string cidr_block = 13 ;
306310
307- // Output only. The service account used to run the tensor flow services within the node.
308- // To share resources, including Google Cloud Storage data, with the
309- // Tensorflow job running in the Node, this account must have permissions to
310- // that data.
311+ // Output only. The service account used to run the tensor flow services
312+ // within the node. To share resources, including Google Cloud Storage data,
313+ // with the Tensorflow job running in the Node, this account must have
314+ // permissions to that data.
311315 string service_account = 15 [(google.api.field_behavior ) = OUTPUT_ONLY ];
312316
313317 // Output only. The time when the node was created.
314- google.protobuf.Timestamp create_time = 16 [(google.api.field_behavior ) = OUTPUT_ONLY ];
318+ google.protobuf.Timestamp create_time = 16
319+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
315320
316321 // The scheduling options for this node.
317322 SchedulingConfig scheduling_config = 17 ;
318323
319324 // Output only. The network endpoints where TPU workers can be accessed and
320325 // sent work. It is recommended that Tensorflow clients of the node reach out
321326 // to the 0th entry in this map first.
322- repeated NetworkEndpoint network_endpoints = 21 [(google.api.field_behavior ) = OUTPUT_ONLY ];
327+ repeated NetworkEndpoint network_endpoints = 21
328+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
323329
324330 // The health status of the TPU node.
325331 Health health = 22 ;
@@ -346,9 +352,7 @@ message ListNodesRequest {
346352 // Required. The parent resource name.
347353 string parent = 1 [
348354 (google.api.field_behavior ) = REQUIRED ,
349- (google.api.resource_reference ) = {
350- child_type : "tpu.googleapis.com/Node"
351- }
355+ (google.api.resource_reference ) = { child_type : "tpu.googleapis.com/Node" }
352356 ];
353357
354358 // The maximum number of items to return.
@@ -375,9 +379,7 @@ message GetNodeRequest {
375379 // Required. The resource name.
376380 string name = 1 [
377381 (google.api.field_behavior ) = REQUIRED ,
378- (google.api.resource_reference ) = {
379- type : "tpu.googleapis.com/Node"
380- }
382+ (google.api.resource_reference ) = { type : "tpu.googleapis.com/Node" }
381383 ];
382384}
383385
@@ -386,9 +388,7 @@ message CreateNodeRequest {
386388 // Required. The parent resource name.
387389 string parent = 1 [
388390 (google.api.field_behavior ) = REQUIRED ,
389- (google.api.resource_reference ) = {
390- child_type : "tpu.googleapis.com/Node"
391- }
391+ (google.api.resource_reference ) = { child_type : "tpu.googleapis.com/Node" }
392392 ];
393393
394394 // The unqualified resource name.
@@ -403,9 +403,7 @@ message DeleteNodeRequest {
403403 // Required. The resource name.
404404 string name = 1 [
405405 (google.api.field_behavior ) = REQUIRED ,
406- (google.api.resource_reference ) = {
407- type : "tpu.googleapis.com/Node"
408- }
406+ (google.api.resource_reference ) = { type : "tpu.googleapis.com/Node" }
409407 ];
410408}
411409
@@ -444,7 +442,8 @@ message TensorFlowVersion {
444442 string version = 2 ;
445443}
446444
447- // Request for [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
445+ // Request for
446+ // [GetTensorFlowVersion][google.cloud.tpu.v1.Tpu.GetTensorFlowVersion].
448447message GetTensorFlowVersionRequest {
449448 // Required. The resource name.
450449 string name = 1 [
@@ -455,7 +454,8 @@ message GetTensorFlowVersionRequest {
455454 ];
456455}
457456
458- // Request for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
457+ // Request for
458+ // [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
459459message ListTensorFlowVersionsRequest {
460460 // Required. The parent resource name.
461461 string parent = 1 [
@@ -478,7 +478,8 @@ message ListTensorFlowVersionsRequest {
478478 string order_by = 6 ;
479479}
480480
481- // Response for [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
481+ // Response for
482+ // [ListTensorFlowVersions][google.cloud.tpu.v1.Tpu.ListTensorFlowVersions].
482483message ListTensorFlowVersionsResponse {
483484 // The listed nodes.
484485 repeated TensorFlowVersion tensorflow_versions = 1 ;
@@ -515,7 +516,8 @@ message GetAcceleratorTypeRequest {
515516 ];
516517}
517518
518- // Request for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
519+ // Request for
520+ // [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
519521message ListAcceleratorTypesRequest {
520522 // Required. The parent resource name.
521523 string parent = 1 [
@@ -538,7 +540,8 @@ message ListAcceleratorTypesRequest {
538540 string order_by = 6 ;
539541}
540542
541- // Response for [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
543+ // Response for
544+ // [ListAcceleratorTypes][google.cloud.tpu.v1.Tpu.ListAcceleratorTypes].
542545message ListAcceleratorTypesResponse {
543546 // The listed nodes.
544547 repeated AcceleratorType accelerator_types = 1 ;
0 commit comments