@@ -123,8 +123,10 @@ public final class Instance extends com.google.api.client.json.GenericJson {
123123 * specify the target number of nodes allocated to the instance. If autoscaling is enabled,
124124 * `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
125125 * allocated to the instance. This might be zero in API responses for instances that are not yet
126- * in the `READY` state. For more information, see [Compute capacity, nodes, and processing
127- * units](https://cloud.google.com/spanner/docs/compute-capacity).
126+ * in the `READY` state. If the instance has varying node count across replicas (achieved by
127+ * setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the
128+ * maximum node count across all replicas. For more information, see [Compute capacity, nodes, and
129+ * processing units](https://cloud.google.com/spanner/docs/compute-capacity).
128130 * The value may be {@code null}.
129131 */
130132 @ com .google .api .client .util .Key
@@ -136,14 +138,25 @@ public final class Instance extends com.google.api.client.json.GenericJson {
136138 * `processing_units` field to specify the target number of processing units allocated to the
137139 * instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
138140 * and reflects the current number of processing units allocated to the instance. This might be
139- * zero in API responses for instances that are not yet in the `READY` state. For more
140- * information, see [Compute capacity, nodes and processing
141+ * zero in API responses for instances that are not yet in the `READY` state. If the instance has
142+ * varying processing units per replica (achieved by setting asymmetric_autoscaling_options in
143+ * autoscaling config), the processing_units here is the maximum processing units across all
144+ * replicas. For more information, see [Compute capacity, nodes and processing
141145 * units](https://cloud.google.com/spanner/docs/compute-capacity).
142146 * The value may be {@code null}.
143147 */
144148 @ com .google .api .client .util .Key
145149 private java .lang .Integer processingUnits ;
146150
151+ /**
152+ * Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a
153+ * set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled
154+ * with the same compute capacity.
155+ * The value may be {@code null}.
156+ */
157+ @ com .google .api .client .util .Key
158+ private java .util .List <ReplicaComputeCapacity > replicaComputeCapacity ;
159+
147160 /**
148161 * Output only. The current instance state. For CreateInstance, the state must be either omitted
149162 * or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.
@@ -371,8 +384,10 @@ public Instance setName(java.lang.String name) {
371384 * specify the target number of nodes allocated to the instance. If autoscaling is enabled,
372385 * `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
373386 * allocated to the instance. This might be zero in API responses for instances that are not yet
374- * in the `READY` state. For more information, see [Compute capacity, nodes, and processing
375- * units](https://cloud.google.com/spanner/docs/compute-capacity).
387+ * in the `READY` state. If the instance has varying node count across replicas (achieved by
388+ * setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the
389+ * maximum node count across all replicas. For more information, see [Compute capacity, nodes, and
390+ * processing units](https://cloud.google.com/spanner/docs/compute-capacity).
376391 * @return value or {@code null} for none
377392 */
378393 public java .lang .Integer getNodeCount () {
@@ -385,8 +400,10 @@ public java.lang.Integer getNodeCount() {
385400 * specify the target number of nodes allocated to the instance. If autoscaling is enabled,
386401 * `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes
387402 * allocated to the instance. This might be zero in API responses for instances that are not yet
388- * in the `READY` state. For more information, see [Compute capacity, nodes, and processing
389- * units](https://cloud.google.com/spanner/docs/compute-capacity).
403+ * in the `READY` state. If the instance has varying node count across replicas (achieved by
404+ * setting asymmetric_autoscaling_options in autoscaling config), the node_count here is the
405+ * maximum node count across all replicas. For more information, see [Compute capacity, nodes, and
406+ * processing units](https://cloud.google.com/spanner/docs/compute-capacity).
390407 * @param nodeCount nodeCount or {@code null} for none
391408 */
392409 public Instance setNodeCount (java .lang .Integer nodeCount ) {
@@ -400,8 +417,10 @@ public Instance setNodeCount(java.lang.Integer nodeCount) {
400417 * `processing_units` field to specify the target number of processing units allocated to the
401418 * instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
402419 * and reflects the current number of processing units allocated to the instance. This might be
403- * zero in API responses for instances that are not yet in the `READY` state. For more
404- * information, see [Compute capacity, nodes and processing
420+ * zero in API responses for instances that are not yet in the `READY` state. If the instance has
421+ * varying processing units per replica (achieved by setting asymmetric_autoscaling_options in
422+ * autoscaling config), the processing_units here is the maximum processing units across all
423+ * replicas. For more information, see [Compute capacity, nodes and processing
405424 * units](https://cloud.google.com/spanner/docs/compute-capacity).
406425 * @return value or {@code null} for none
407426 */
@@ -415,8 +434,10 @@ public java.lang.Integer getProcessingUnits() {
415434 * `processing_units` field to specify the target number of processing units allocated to the
416435 * instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field
417436 * and reflects the current number of processing units allocated to the instance. This might be
418- * zero in API responses for instances that are not yet in the `READY` state. For more
419- * information, see [Compute capacity, nodes and processing
437+ * zero in API responses for instances that are not yet in the `READY` state. If the instance has
438+ * varying processing units per replica (achieved by setting asymmetric_autoscaling_options in
439+ * autoscaling config), the processing_units here is the maximum processing units across all
440+ * replicas. For more information, see [Compute capacity, nodes and processing
420441 * units](https://cloud.google.com/spanner/docs/compute-capacity).
421442 * @param processingUnits processingUnits or {@code null} for none
422443 */
@@ -425,6 +446,27 @@ public Instance setProcessingUnits(java.lang.Integer processingUnits) {
425446 return this ;
426447 }
427448
449+ /**
450+ * Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a
451+ * set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled
452+ * with the same compute capacity.
453+ * @return value or {@code null} for none
454+ */
455+ public java .util .List <ReplicaComputeCapacity > getReplicaComputeCapacity () {
456+ return replicaComputeCapacity ;
457+ }
458+
459+ /**
460+ * Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a
461+ * set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled
462+ * with the same compute capacity.
463+ * @param replicaComputeCapacity replicaComputeCapacity or {@code null} for none
464+ */
465+ public Instance setReplicaComputeCapacity (java .util .List <ReplicaComputeCapacity > replicaComputeCapacity ) {
466+ this .replicaComputeCapacity = replicaComputeCapacity ;
467+ return this ;
468+ }
469+
428470 /**
429471 * Output only. The current instance state. For CreateInstance, the state must be either omitted
430472 * or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.
0 commit comments