@@ -131,6 +131,11 @@ private Instance(
|
131 | 131 | endpointUris_.add(s);
|
132 | 132 | break;
|
133 | 133 | }
|
| 134 | +case 72: |
| 135 | +{ |
| 136 | +processingUnits_ = input.readInt32(); |
| 137 | +break; |
| 138 | +} |
134 | 139 | default:
|
135 | 140 | {
|
136 | 141 | if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
|
@@ -525,6 +530,26 @@ public int getNodeCount() {
|
525 | 530 | return nodeCount_;
|
526 | 531 | }
|
527 | 532 |
|
| 533 | +public static final int PROCESSING_UNITS_FIELD_NUMBER = 9; |
| 534 | +private int processingUnits_; |
| 535 | +/** |
| 536 | +* |
| 537 | +* |
| 538 | +* <pre> |
| 539 | +* The number of processing units allocated to this instance. At most one of |
| 540 | +* processing_units or node_count should be present in the message. This may |
| 541 | +* be zero in API responses for instances that are not yet in state `READY`. |
| 542 | +* </pre> |
| 543 | +* |
| 544 | +* <code>int32 processing_units = 9;</code> |
| 545 | +* |
| 546 | +* @return The processingUnits. |
| 547 | +*/ |
| 548 | +@java.lang.Override |
| 549 | +public int getProcessingUnits() { |
| 550 | +return processingUnits_; |
| 551 | +} |
| 552 | + |
528 | 553 | public static final int STATE_FIELD_NUMBER = 6;
|
529 | 554 | private int state_;
|
530 | 555 | /**
|
@@ -837,6 +862,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
|
837 | 862 | for (int i = 0; i < endpointUris_.size(); i++) {
|
838 | 863 | com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpointUris_.getRaw(i));
|
839 | 864 | }
|
| 865 | +if (processingUnits_ != 0) { |
| 866 | +output.writeInt32(9, processingUnits_); |
| 867 | +} |
840 | 868 | unknownFields.writeTo(output);
|
841 | 869 | }
|
842 | 870 |
|
@@ -880,6 +908,9 @@ public int getSerializedSize() {
|
880 | 908 | size += dataSize;
|
881 | 909 | size += 1 * getEndpointUrisList().size();
|
882 | 910 | }
|
| 911 | +if (processingUnits_ != 0) { |
| 912 | +size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, processingUnits_); |
| 913 | +} |
883 | 914 | size += unknownFields.getSerializedSize();
|
884 | 915 | memoizedSize = size;
|
885 | 916 | return size;
|
@@ -900,6 +931,7 @@ public boolean equals(final java.lang.Object obj) {
|
900 | 931 | if (!getConfig().equals(other.getConfig())) return false;
|
901 | 932 | if (!getDisplayName().equals(other.getDisplayName())) return false;
|
902 | 933 | if (getNodeCount() != other.getNodeCount()) return false;
|
| 934 | +if (getProcessingUnits() != other.getProcessingUnits()) return false; |
903 | 935 | if (state_ != other.state_) return false;
|
904 | 936 | if (!internalGetLabels().equals(other.internalGetLabels())) return false;
|
905 | 937 | if (!getEndpointUrisList().equals(other.getEndpointUrisList())) return false;
|
@@ -922,6 +954,8 @@ public int hashCode() {
|
922 | 954 | hash = (53 * hash) + getDisplayName().hashCode();
|
923 | 955 | hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER;
|
924 | 956 | hash = (53 * hash) + getNodeCount();
|
| 957 | +hash = (37 * hash) + PROCESSING_UNITS_FIELD_NUMBER; |
| 958 | +hash = (53 * hash) + getProcessingUnits(); |
925 | 959 | hash = (37 * hash) + STATE_FIELD_NUMBER;
|
926 | 960 | hash = (53 * hash) + state_;
|
927 | 961 | if (!internalGetLabels().getMap().isEmpty()) {
|
@@ -1105,6 +1139,8 @@ public Builder clear() {
|
1105 | 1139 |
|
1106 | 1140 | nodeCount_ = 0;
|
1107 | 1141 |
|
| 1142 | +processingUnits_ = 0; |
| 1143 | + |
1108 | 1144 | state_ = 0;
|
1109 | 1145 |
|
1110 | 1146 | internalGetMutableLabels().clear();
|
@@ -1142,6 +1178,7 @@ public com.google.spanner.admin.instance.v1.Instance buildPartial() {
|
1142 | 1178 | result.config_ = config_;
|
1143 | 1179 | result.displayName_ = displayName_;
|
1144 | 1180 | result.nodeCount_ = nodeCount_;
|
| 1181 | +result.processingUnits_ = processingUnits_; |
1145 | 1182 | result.state_ = state_;
|
1146 | 1183 | result.labels_ = internalGetLabels();
|
1147 | 1184 | result.labels_.makeImmutable();
|
@@ -1214,6 +1251,9 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) {
|
1214 | 1251 | if (other.getNodeCount() != 0) {
|
1215 | 1252 | setNodeCount(other.getNodeCount());
|
1216 | 1253 | }
|
| 1254 | +if (other.getProcessingUnits() != 0) { |
| 1255 | +setProcessingUnits(other.getProcessingUnits()); |
| 1256 | +} |
1217 | 1257 | if (other.state_ != 0) {
|
1218 | 1258 | setStateValue(other.getStateValue());
|
1219 | 1259 | }
|
@@ -1676,6 +1716,64 @@ public Builder clearNodeCount() {
|
1676 | 1716 | return this;
|
1677 | 1717 | }
|
1678 | 1718 |
|
| 1719 | +private int processingUnits_; |
| 1720 | +/** |
| 1721 | +* |
| 1722 | +* |
| 1723 | +* <pre> |
| 1724 | +* The number of processing units allocated to this instance. At most one of |
| 1725 | +* processing_units or node_count should be present in the message. This may |
| 1726 | +* be zero in API responses for instances that are not yet in state `READY`. |
| 1727 | +* </pre> |
| 1728 | +* |
| 1729 | +* <code>int32 processing_units = 9;</code> |
| 1730 | +* |
| 1731 | +* @return The processingUnits. |
| 1732 | +*/ |
| 1733 | +@java.lang.Override |
| 1734 | +public int getProcessingUnits() { |
| 1735 | +return processingUnits_; |
| 1736 | +} |
| 1737 | +/** |
| 1738 | +* |
| 1739 | +* |
| 1740 | +* <pre> |
| 1741 | +* The number of processing units allocated to this instance. At most one of |
| 1742 | +* processing_units or node_count should be present in the message. This may |
| 1743 | +* be zero in API responses for instances that are not yet in state `READY`. |
| 1744 | +* </pre> |
| 1745 | +* |
| 1746 | +* <code>int32 processing_units = 9;</code> |
| 1747 | +* |
| 1748 | +* @param value The processingUnits to set. |
| 1749 | +* @return This builder for chaining. |
| 1750 | +*/ |
| 1751 | +public Builder setProcessingUnits(int value) { |
| 1752 | + |
| 1753 | +processingUnits_ = value; |
| 1754 | +onChanged(); |
| 1755 | +return this; |
| 1756 | +} |
| 1757 | +/** |
| 1758 | +* |
| 1759 | +* |
| 1760 | +* <pre> |
| 1761 | +* The number of processing units allocated to this instance. At most one of |
| 1762 | +* processing_units or node_count should be present in the message. This may |
| 1763 | +* be zero in API responses for instances that are not yet in state `READY`. |
| 1764 | +* </pre> |
| 1765 | +* |
| 1766 | +* <code>int32 processing_units = 9;</code> |
| 1767 | +* |
| 1768 | +* @return This builder for chaining. |
| 1769 | +*/ |
| 1770 | +public Builder clearProcessingUnits() { |
| 1771 | + |
| 1772 | +processingUnits_ = 0; |
| 1773 | +onChanged(); |
| 1774 | +return this; |
| 1775 | +} |
| 1776 | + |
1679 | 1777 | private int state_ = 0;
|
1680 | 1778 | /**
|
1681 | 1779 | *
|
|
0 commit comments