@@ -140,12 +140,28 @@ public final class Node extends com.google.api.client.json.GenericJson {
140
140
private java .lang .String name ;
141
141
142
142
/**
143
- * Network configurations for the TPU node.
143
+ * Network configurations for the TPU node. network_config and network_configs are mutually
144
+ * exclusive, you can only specify one of them. If both are specified, an error will be returned.
144
145
* The value may be {@code null}.
145
146
*/
146
147
@ com .google .api .client .util .Key
147
148
private NetworkConfig networkConfig ;
148
149
150
+ /**
151
+ * Optional. Repeated network configurations for the TPU node. This field is used to specify
152
+ * multiple networks configs for the TPU node. network_config and network_configs are mutually
153
+ * exclusive, you can only specify one of them. If both are specified, an error will be returned.
154
+ * The value may be {@code null}.
155
+ */
156
+ @ com .google .api .client .util .Key
157
+ private java .util .List <NetworkConfig > networkConfigs ;
158
+
159
+ static {
160
+ // hack to force ProGuard to consider NetworkConfig used, since otherwise it would be stripped out
161
+ // see https://github.com/google/google-api-java-client/issues/543
162
+ com .google .api .client .util .Data .nullOf (NetworkConfig .class );
163
+ }
164
+
149
165
/**
150
166
* Output only. The network endpoints where TPU workers can be accessed and sent work. It is
151
167
* recommended that runtime clients of the node reach out to the 0th entry in this map first.
@@ -469,22 +485,45 @@ public Node setName(java.lang.String name) {
469
485
}
470
486
471
487
/**
472
- * Network configurations for the TPU node.
488
+ * Network configurations for the TPU node. network_config and network_configs are mutually
489
+ * exclusive, you can only specify one of them. If both are specified, an error will be returned.
473
490
* @return value or {@code null} for none
474
491
*/
475
492
public NetworkConfig getNetworkConfig () {
476
493
return networkConfig ;
477
494
}
478
495
479
496
/**
480
- * Network configurations for the TPU node.
497
+ * Network configurations for the TPU node. network_config and network_configs are mutually
498
+ * exclusive, you can only specify one of them. If both are specified, an error will be returned.
481
499
* @param networkConfig networkConfig or {@code null} for none
482
500
*/
483
501
public Node setNetworkConfig (NetworkConfig networkConfig ) {
484
502
this .networkConfig = networkConfig ;
485
503
return this ;
486
504
}
487
505
506
+ /**
507
+ * Optional. Repeated network configurations for the TPU node. This field is used to specify
508
+ * multiple networks configs for the TPU node. network_config and network_configs are mutually
509
+ * exclusive, you can only specify one of them. If both are specified, an error will be returned.
510
+ * @return value or {@code null} for none
511
+ */
512
+ public java .util .List <NetworkConfig > getNetworkConfigs () {
513
+ return networkConfigs ;
514
+ }
515
+
516
+ /**
517
+ * Optional. Repeated network configurations for the TPU node. This field is used to specify
518
+ * multiple networks configs for the TPU node. network_config and network_configs are mutually
519
+ * exclusive, you can only specify one of them. If both are specified, an error will be returned.
520
+ * @param networkConfigs networkConfigs or {@code null} for none
521
+ */
522
+ public Node setNetworkConfigs (java .util .List <NetworkConfig > networkConfigs ) {
523
+ this .networkConfigs = networkConfigs ;
524
+ return this ;
525
+ }
526
+
488
527
/**
489
528
* Output only. The network endpoints where TPU workers can be accessed and sent work. It is
490
529
* recommended that runtime clients of the node reach out to the 0th entry in this map first.
0 commit comments