Skip to content

Commit e63cde0

Browse files
1 parent a8f727c commit e63cde0

File tree

5 files changed

+387
-6
lines changed

5 files changed

+387
-6
lines changed

clients/google-api-services-alloydb/v1beta/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-alloydb</artifactId>
25-
<version>v1beta-rev20250308-2.0.0</version>
25+
<version>v1beta-rev20250312-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-alloydb:v1beta-rev20250308-2.0.0'
38+
implementation 'com.google.apis:google-api-services-alloydb:v1beta-rev20250312-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.alloydb.v1beta.model;
18+
19+
/**
20+
* Configuration for Managed Connection Pool (MCP).
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ConnectionPoolConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Deprecated. Use 'flags' instead. The default pool size. Defaults to 20.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String defaultPoolSize;
38+
39+
/**
40+
* Optional. Deprecated; Prefer 'enabled' as this will be removed soon. TODO(b/394996708) move to
41+
* reserved once the field is removed from the gcloud client.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.Boolean enable;
46+
47+
/**
48+
* Optional. Whether to enable Managed Connection Pool (MCP).
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.Boolean enabled;
53+
54+
/**
55+
* Optional. Connection Pool flags, as a list of "key": "value" pairs.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.util.Map<String, java.lang.String> flags;
60+
61+
/**
62+
* Optional. Deprecated. Use 'flags' instead. The list of startup parameters to ignore. Defaults
63+
* to ["extra_float_digits"]
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private java.util.List<java.lang.String> ignoreStartupParameters;
68+
69+
/**
70+
* Optional. Deprecated. Use 'flags' instead. The maximum number of client connections allowed.
71+
* The value may be {@code null}.
72+
*/
73+
@com.google.api.client.util.Key
74+
private java.lang.String maxClientConn;
75+
76+
/**
77+
* Optional. Deprecated. Use 'flags' instead. The maximum number of prepared statements allowed.
78+
* MCP makes sure that any statement prepared by a client, up to this limit, is available on the
79+
* backing server connection in transaction and statement pooling mode. Even if the statement was
80+
* originally prepared on another server connection. Defaults to 0.
81+
* The value may be {@code null}.
82+
*/
83+
@com.google.api.client.util.Key
84+
private java.lang.String maxPreparedStatements;
85+
86+
/**
87+
* Optional. Deprecated. Use 'flags' instead. The minimum pool size. Defaults to 0.
88+
* The value may be {@code null}.
89+
*/
90+
@com.google.api.client.util.Key
91+
private java.lang.String minPoolSize;
92+
93+
/**
94+
* Optional. Deprecated. Use 'flags' instead. The pool mode. Defaults to `POOL_MODE_TRANSACTION`.
95+
* The value may be {@code null}.
96+
*/
97+
@com.google.api.client.util.Key
98+
private java.lang.String poolMode;
99+
100+
/**
101+
* Optional. Deprecated. Use 'flags' instead. The maximum number of seconds queries are allowed to
102+
* spend waiting for execution. If the query is not assigned to a server during that time, the
103+
* client is disconnected. 0 disables.
104+
* The value may be {@code null}.
105+
*/
106+
@com.google.api.client.util.Key
107+
private java.lang.String queryWaitTimeout;
108+
109+
/**
110+
* Optional. Deprecated. Use 'flags' instead. The maximum number of seconds a server is allowed to
111+
* be idle before it is disconnected. 0 disables.
112+
* The value may be {@code null}.
113+
*/
114+
@com.google.api.client.util.Key
115+
private java.lang.String serverIdleTimeout;
116+
117+
/**
118+
* Optional. Deprecated. Use 'flags' instead. The list of users that are allowed to connect to the
119+
* MCP stats console. The users must exist in the database.
120+
* The value may be {@code null}.
121+
*/
122+
@com.google.api.client.util.Key
123+
private java.util.List<java.lang.String> statsUsers;
124+
125+
/**
126+
* Optional. Deprecated. Use 'flags' instead. The default pool size. Defaults to 20.
127+
* @return value or {@code null} for none
128+
*/
129+
public java.lang.String getDefaultPoolSize() {
130+
return defaultPoolSize;
131+
}
132+
133+
/**
134+
* Optional. Deprecated. Use 'flags' instead. The default pool size. Defaults to 20.
135+
* @param defaultPoolSize defaultPoolSize or {@code null} for none
136+
*/
137+
public ConnectionPoolConfig setDefaultPoolSize(java.lang.String defaultPoolSize) {
138+
this.defaultPoolSize = defaultPoolSize;
139+
return this;
140+
}
141+
142+
/**
143+
* Optional. Deprecated; Prefer 'enabled' as this will be removed soon. TODO(b/394996708) move to
144+
* reserved once the field is removed from the gcloud client.
145+
* @return value or {@code null} for none
146+
*/
147+
public java.lang.Boolean getEnable() {
148+
return enable;
149+
}
150+
151+
/**
152+
* Optional. Deprecated; Prefer 'enabled' as this will be removed soon. TODO(b/394996708) move to
153+
* reserved once the field is removed from the gcloud client.
154+
* @param enable enable or {@code null} for none
155+
*/
156+
public ConnectionPoolConfig setEnable(java.lang.Boolean enable) {
157+
this.enable = enable;
158+
return this;
159+
}
160+
161+
/**
162+
* Optional. Whether to enable Managed Connection Pool (MCP).
163+
* @return value or {@code null} for none
164+
*/
165+
public java.lang.Boolean getEnabled() {
166+
return enabled;
167+
}
168+
169+
/**
170+
* Optional. Whether to enable Managed Connection Pool (MCP).
171+
* @param enabled enabled or {@code null} for none
172+
*/
173+
public ConnectionPoolConfig setEnabled(java.lang.Boolean enabled) {
174+
this.enabled = enabled;
175+
return this;
176+
}
177+
178+
/**
179+
* Optional. Connection Pool flags, as a list of "key": "value" pairs.
180+
* @return value or {@code null} for none
181+
*/
182+
public java.util.Map<String, java.lang.String> getFlags() {
183+
return flags;
184+
}
185+
186+
/**
187+
* Optional. Connection Pool flags, as a list of "key": "value" pairs.
188+
* @param flags flags or {@code null} for none
189+
*/
190+
public ConnectionPoolConfig setFlags(java.util.Map<String, java.lang.String> flags) {
191+
this.flags = flags;
192+
return this;
193+
}
194+
195+
/**
196+
* Optional. Deprecated. Use 'flags' instead. The list of startup parameters to ignore. Defaults
197+
* to ["extra_float_digits"]
198+
* @return value or {@code null} for none
199+
*/
200+
public java.util.List<java.lang.String> getIgnoreStartupParameters() {
201+
return ignoreStartupParameters;
202+
}
203+
204+
/**
205+
* Optional. Deprecated. Use 'flags' instead. The list of startup parameters to ignore. Defaults
206+
* to ["extra_float_digits"]
207+
* @param ignoreStartupParameters ignoreStartupParameters or {@code null} for none
208+
*/
209+
public ConnectionPoolConfig setIgnoreStartupParameters(java.util.List<java.lang.String> ignoreStartupParameters) {
210+
this.ignoreStartupParameters = ignoreStartupParameters;
211+
return this;
212+
}
213+
214+
/**
215+
* Optional. Deprecated. Use 'flags' instead. The maximum number of client connections allowed.
216+
* @return value or {@code null} for none
217+
*/
218+
public java.lang.String getMaxClientConn() {
219+
return maxClientConn;
220+
}
221+
222+
/**
223+
* Optional. Deprecated. Use 'flags' instead. The maximum number of client connections allowed.
224+
* @param maxClientConn maxClientConn or {@code null} for none
225+
*/
226+
public ConnectionPoolConfig setMaxClientConn(java.lang.String maxClientConn) {
227+
this.maxClientConn = maxClientConn;
228+
return this;
229+
}
230+
231+
/**
232+
* Optional. Deprecated. Use 'flags' instead. The maximum number of prepared statements allowed.
233+
* MCP makes sure that any statement prepared by a client, up to this limit, is available on the
234+
* backing server connection in transaction and statement pooling mode. Even if the statement was
235+
* originally prepared on another server connection. Defaults to 0.
236+
* @return value or {@code null} for none
237+
*/
238+
public java.lang.String getMaxPreparedStatements() {
239+
return maxPreparedStatements;
240+
}
241+
242+
/**
243+
* Optional. Deprecated. Use 'flags' instead. The maximum number of prepared statements allowed.
244+
* MCP makes sure that any statement prepared by a client, up to this limit, is available on the
245+
* backing server connection in transaction and statement pooling mode. Even if the statement was
246+
* originally prepared on another server connection. Defaults to 0.
247+
* @param maxPreparedStatements maxPreparedStatements or {@code null} for none
248+
*/
249+
public ConnectionPoolConfig setMaxPreparedStatements(java.lang.String maxPreparedStatements) {
250+
this.maxPreparedStatements = maxPreparedStatements;
251+
return this;
252+
}
253+
254+
/**
255+
* Optional. Deprecated. Use 'flags' instead. The minimum pool size. Defaults to 0.
256+
* @return value or {@code null} for none
257+
*/
258+
public java.lang.String getMinPoolSize() {
259+
return minPoolSize;
260+
}
261+
262+
/**
263+
* Optional. Deprecated. Use 'flags' instead. The minimum pool size. Defaults to 0.
264+
* @param minPoolSize minPoolSize or {@code null} for none
265+
*/
266+
public ConnectionPoolConfig setMinPoolSize(java.lang.String minPoolSize) {
267+
this.minPoolSize = minPoolSize;
268+
return this;
269+
}
270+
271+
/**
272+
* Optional. Deprecated. Use 'flags' instead. The pool mode. Defaults to `POOL_MODE_TRANSACTION`.
273+
* @return value or {@code null} for none
274+
*/
275+
public java.lang.String getPoolMode() {
276+
return poolMode;
277+
}
278+
279+
/**
280+
* Optional. Deprecated. Use 'flags' instead. The pool mode. Defaults to `POOL_MODE_TRANSACTION`.
281+
* @param poolMode poolMode or {@code null} for none
282+
*/
283+
public ConnectionPoolConfig setPoolMode(java.lang.String poolMode) {
284+
this.poolMode = poolMode;
285+
return this;
286+
}
287+
288+
/**
289+
* Optional. Deprecated. Use 'flags' instead. The maximum number of seconds queries are allowed to
290+
* spend waiting for execution. If the query is not assigned to a server during that time, the
291+
* client is disconnected. 0 disables.
292+
* @return value or {@code null} for none
293+
*/
294+
public java.lang.String getQueryWaitTimeout() {
295+
return queryWaitTimeout;
296+
}
297+
298+
/**
299+
* Optional. Deprecated. Use 'flags' instead. The maximum number of seconds queries are allowed to
300+
* spend waiting for execution. If the query is not assigned to a server during that time, the
301+
* client is disconnected. 0 disables.
302+
* @param queryWaitTimeout queryWaitTimeout or {@code null} for none
303+
*/
304+
public ConnectionPoolConfig setQueryWaitTimeout(java.lang.String queryWaitTimeout) {
305+
this.queryWaitTimeout = queryWaitTimeout;
306+
return this;
307+
}
308+
309+
/**
310+
* Optional. Deprecated. Use 'flags' instead. The maximum number of seconds a server is allowed to
311+
* be idle before it is disconnected. 0 disables.
312+
* @return value or {@code null} for none
313+
*/
314+
public java.lang.String getServerIdleTimeout() {
315+
return serverIdleTimeout;
316+
}
317+
318+
/**
319+
* Optional. Deprecated. Use 'flags' instead. The maximum number of seconds a server is allowed to
320+
* be idle before it is disconnected. 0 disables.
321+
* @param serverIdleTimeout serverIdleTimeout or {@code null} for none
322+
*/
323+
public ConnectionPoolConfig setServerIdleTimeout(java.lang.String serverIdleTimeout) {
324+
this.serverIdleTimeout = serverIdleTimeout;
325+
return this;
326+
}
327+
328+
/**
329+
* Optional. Deprecated. Use 'flags' instead. The list of users that are allowed to connect to the
330+
* MCP stats console. The users must exist in the database.
331+
* @return value or {@code null} for none
332+
*/
333+
public java.util.List<java.lang.String> getStatsUsers() {
334+
return statsUsers;
335+
}
336+
337+
/**
338+
* Optional. Deprecated. Use 'flags' instead. The list of users that are allowed to connect to the
339+
* MCP stats console. The users must exist in the database.
340+
* @param statsUsers statsUsers or {@code null} for none
341+
*/
342+
public ConnectionPoolConfig setStatsUsers(java.util.List<java.lang.String> statsUsers) {
343+
this.statsUsers = statsUsers;
344+
return this;
345+
}
346+
347+
@Override
348+
public ConnectionPoolConfig set(String fieldName, Object value) {
349+
return (ConnectionPoolConfig) super.set(fieldName, value);
350+
}
351+
352+
@Override
353+
public ConnectionPoolConfig clone() {
354+
return (ConnectionPoolConfig) super.clone();
355+
}
356+
357+
}

0 commit comments

Comments
 (0)