Skip to content

Commit 6c126c0

Browse files
1 parent 369692b commit 6c126c0

26 files changed

+2002
-101
lines changed

clients/google-api-services-aiplatform/v1/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-aiplatform</artifactId>
25-
<version>v1-rev20241203-2.0.0</version>
25+
<version>v1-rev20241210-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-aiplatform:v1-rev20241203-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20241210-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/Aiplatform.java

Lines changed: 168 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,8 @@ public List set(String parameterName, Object value) {
811811
* This request holds the parameters needed by the aiplatform server. After setting any optional
812812
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
813813
*
814-
* @param name Output only. Identifier. The resource name of the Dataset.
814+
* @param name Output only. Identifier. The resource name of the Dataset. Format:
815+
* `projects/{project}/locations/{location}/datasets/{dataset}`
815816
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
816817
* @return the request
817818
*/
@@ -839,7 +840,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
839840
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
840841
* be called to initialize this instance immediately after invoking the constructor. </p>
841842
*
842-
* @param name Output only. Identifier. The resource name of the Dataset.
843+
* @param name Output only. Identifier. The resource name of the Dataset. Format:
844+
* `projects/{project}/locations/{location}/datasets/{dataset}`
843845
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
844846
* @since 1.13
845847
*/
@@ -908,17 +910,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
908910
return (Patch) super.setUploadProtocol(uploadProtocol);
909911
}
910912

911-
/** Output only. Identifier. The resource name of the Dataset. */
913+
/**
914+
* Output only. Identifier. The resource name of the Dataset. Format:
915+
* `projects/{project}/locations/{location}/datasets/{dataset}`
916+
*/
912917
@com.google.api.client.util.Key
913918
private java.lang.String name;
914919

915-
/** Output only. Identifier. The resource name of the Dataset.
920+
/** Output only. Identifier. The resource name of the Dataset. Format:
921+
`projects/{project}/locations/{location}/datasets/{dataset}`
916922
*/
917923
public java.lang.String getName() {
918924
return name;
919925
}
920926

921-
/** Output only. Identifier. The resource name of the Dataset. */
927+
/**
928+
* Output only. Identifier. The resource name of the Dataset. Format:
929+
* `projects/{project}/locations/{location}/datasets/{dataset}`
930+
*/
922931
public Patch setName(java.lang.String name) {
923932
if (!getSuppressPatternChecks()) {
924933
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -9873,7 +9882,8 @@ public List set(String parameterName, Object value) {
98739882
* This request holds the parameters needed by the aiplatform server. After setting any optional
98749883
* parameters, call the {@link Patch#execute()} method to invoke the remote operation.
98759884
*
9876-
* @param name Output only. Identifier. The resource name of the Dataset.
9885+
* @param name Output only. Identifier. The resource name of the Dataset. Format:
9886+
* `projects/{project}/locations/{location}/datasets/{dataset}`
98779887
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
98789888
* @return the request
98799889
*/
@@ -9901,7 +9911,8 @@ public class Patch extends AiplatformRequest<com.google.api.services.aiplatform.
99019911
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
99029912
* be called to initialize this instance immediately after invoking the constructor. </p>
99039913
*
9904-
* @param name Output only. Identifier. The resource name of the Dataset.
9914+
* @param name Output only. Identifier. The resource name of the Dataset. Format:
9915+
* `projects/{project}/locations/{location}/datasets/{dataset}`
99059916
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1Dataset}
99069917
* @since 1.13
99079918
*/
@@ -9970,17 +9981,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
99709981
return (Patch) super.setUploadProtocol(uploadProtocol);
99719982
}
99729983

9973-
/** Output only. Identifier. The resource name of the Dataset. */
9984+
/**
9985+
* Output only. Identifier. The resource name of the Dataset. Format:
9986+
* `projects/{project}/locations/{location}/datasets/{dataset}`
9987+
*/
99749988
@com.google.api.client.util.Key
99759989
private java.lang.String name;
99769990

9977-
/** Output only. Identifier. The resource name of the Dataset.
9991+
/** Output only. Identifier. The resource name of the Dataset. Format:
9992+
`projects/{project}/locations/{location}/datasets/{dataset}`
99789993
*/
99799994
public java.lang.String getName() {
99809995
return name;
99819996
}
99829997

9983-
/** Output only. Identifier. The resource name of the Dataset. */
9998+
/**
9999+
* Output only. Identifier. The resource name of the Dataset. Format:
10000+
* `projects/{project}/locations/{location}/datasets/{dataset}`
10001+
*/
998410002
public Patch setName(java.lang.String name) {
998510003
if (!getSuppressPatternChecks()) {
998610004
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -78864,6 +78882,146 @@ public Query set(String parameterName, Object value) {
7886478882
return (Query) super.set(parameterName, value);
7886578883
}
7886678884
}
78885+
/**
78886+
* Streams queries using a reasoning engine.
78887+
*
78888+
* Create a request for the method "reasoningEngines.streamQuery".
78889+
*
78890+
* This request holds the parameters needed by the aiplatform server. After setting any optional
78891+
* parameters, call the {@link StreamQuery#execute()} method to invoke the remote operation.
78892+
*
78893+
* @param name Required. The name of the ReasoningEngine resource to use. Format:
78894+
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
78895+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest}
78896+
* @return the request
78897+
*/
78898+
public StreamQuery streamQuery(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest content) throws java.io.IOException {
78899+
StreamQuery result = new StreamQuery(name, content);
78900+
initialize(result);
78901+
return result;
78902+
}
78903+
78904+
public class StreamQuery extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody> {
78905+
78906+
private static final String REST_PATH = "v1/{+name}:streamQuery";
78907+
78908+
private final java.util.regex.Pattern NAME_PATTERN =
78909+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
78910+
78911+
/**
78912+
* Streams queries using a reasoning engine.
78913+
*
78914+
* Create a request for the method "reasoningEngines.streamQuery".
78915+
*
78916+
* This request holds the parameters needed by the the aiplatform server. After setting any
78917+
* optional parameters, call the {@link StreamQuery#execute()} method to invoke the remote
78918+
* operation. <p> {@link
78919+
* StreamQuery#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
78920+
* must be called to initialize this instance immediately after invoking the constructor. </p>
78921+
*
78922+
* @param name Required. The name of the ReasoningEngine resource to use. Format:
78923+
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
78924+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest}
78925+
* @since 1.13
78926+
*/
78927+
protected StreamQuery(java.lang.String name, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest content) {
78928+
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleApiHttpBody.class);
78929+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
78930+
if (!getSuppressPatternChecks()) {
78931+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
78932+
"Parameter name must conform to the pattern " +
78933+
"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
78934+
}
78935+
}
78936+
78937+
@Override
78938+
public StreamQuery set$Xgafv(java.lang.String $Xgafv) {
78939+
return (StreamQuery) super.set$Xgafv($Xgafv);
78940+
}
78941+
78942+
@Override
78943+
public StreamQuery setAccessToken(java.lang.String accessToken) {
78944+
return (StreamQuery) super.setAccessToken(accessToken);
78945+
}
78946+
78947+
@Override
78948+
public StreamQuery setAlt(java.lang.String alt) {
78949+
return (StreamQuery) super.setAlt(alt);
78950+
}
78951+
78952+
@Override
78953+
public StreamQuery setCallback(java.lang.String callback) {
78954+
return (StreamQuery) super.setCallback(callback);
78955+
}
78956+
78957+
@Override
78958+
public StreamQuery setFields(java.lang.String fields) {
78959+
return (StreamQuery) super.setFields(fields);
78960+
}
78961+
78962+
@Override
78963+
public StreamQuery setKey(java.lang.String key) {
78964+
return (StreamQuery) super.setKey(key);
78965+
}
78966+
78967+
@Override
78968+
public StreamQuery setOauthToken(java.lang.String oauthToken) {
78969+
return (StreamQuery) super.setOauthToken(oauthToken);
78970+
}
78971+
78972+
@Override
78973+
public StreamQuery setPrettyPrint(java.lang.Boolean prettyPrint) {
78974+
return (StreamQuery) super.setPrettyPrint(prettyPrint);
78975+
}
78976+
78977+
@Override
78978+
public StreamQuery setQuotaUser(java.lang.String quotaUser) {
78979+
return (StreamQuery) super.setQuotaUser(quotaUser);
78980+
}
78981+
78982+
@Override
78983+
public StreamQuery setUploadType(java.lang.String uploadType) {
78984+
return (StreamQuery) super.setUploadType(uploadType);
78985+
}
78986+
78987+
@Override
78988+
public StreamQuery setUploadProtocol(java.lang.String uploadProtocol) {
78989+
return (StreamQuery) super.setUploadProtocol(uploadProtocol);
78990+
}
78991+
78992+
/**
78993+
* Required. The name of the ReasoningEngine resource to use. Format:
78994+
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
78995+
*/
78996+
@com.google.api.client.util.Key
78997+
private java.lang.String name;
78998+
78999+
/** Required. The name of the ReasoningEngine resource to use. Format:
79000+
`projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
79001+
*/
79002+
public java.lang.String getName() {
79003+
return name;
79004+
}
79005+
79006+
/**
79007+
* Required. The name of the ReasoningEngine resource to use. Format:
79008+
* `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
79009+
*/
79010+
public StreamQuery setName(java.lang.String name) {
79011+
if (!getSuppressPatternChecks()) {
79012+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
79013+
"Parameter name must conform to the pattern " +
79014+
"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$");
79015+
}
79016+
this.name = name;
79017+
return this;
79018+
}
79019+
79020+
@Override
79021+
public StreamQuery set(String parameterName, Object value) {
79022+
return (StreamQuery) super.set(parameterName, value);
79023+
}
79024+
}
7886779025

7886879026
/**
7886979027
* An accessor for creating requests from the Operations collection.

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1Dataset.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ public final class GoogleCloudAiplatformV1Dataset extends com.google.api.client.
123123
private java.lang.String modelReference;
124124

125125
/**
126-
* Output only. Identifier. The resource name of the Dataset.
126+
* Output only. Identifier. The resource name of the Dataset. Format:
127+
* `projects/{project}/locations/{location}/datasets/{dataset}`
127128
* The value may be {@code null}.
128129
*/
129130
@com.google.api.client.util.Key
@@ -381,15 +382,17 @@ public GoogleCloudAiplatformV1Dataset setModelReference(java.lang.String modelRe
381382
}
382383

383384
/**
384-
* Output only. Identifier. The resource name of the Dataset.
385+
* Output only. Identifier. The resource name of the Dataset. Format:
386+
* `projects/{project}/locations/{location}/datasets/{dataset}`
385387
* @return value or {@code null} for none
386388
*/
387389
public java.lang.String getName() {
388390
return name;
389391
}
390392

391393
/**
392-
* Output only. Identifier. The resource name of the Dataset.
394+
* Output only. Identifier. The resource name of the Dataset. Format:
395+
* `projects/{project}/locations/{location}/datasets/{dataset}`
393396
* @param name name or {@code null} for none
394397
*/
395398
public GoogleCloudAiplatformV1Dataset setName(java.lang.String name) {

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GenerationConfig.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ public final class GoogleCloudAiplatformV1GenerationConfig extends com.google.ap
6464
@com.google.api.client.util.Key
6565
private java.lang.Integer maxOutputTokens;
6666

67+
/**
68+
* Optional. If specified, the media resolution specified will be used.
69+
* The value may be {@code null}.
70+
*/
71+
@com.google.api.client.util.Key
72+
private java.lang.String mediaResolution;
73+
6774
/**
6875
* Optional. Positive penalties.
6976
* The value may be {@code null}.
@@ -141,13 +148,6 @@ public final class GoogleCloudAiplatformV1GenerationConfig extends com.google.ap
141148
@com.google.api.client.util.Key
142149
private java.lang.Float temperature;
143150

144-
/**
145-
* Optional. If specified, the token resolution specified will be used.
146-
* The value may be {@code null}.
147-
*/
148-
@com.google.api.client.util.Key
149-
private java.lang.String tokenResolution;
150-
151151
/**
152152
* Optional. If specified, top-k sampling will be used.
153153
* The value may be {@code null}.
@@ -247,6 +247,23 @@ public GoogleCloudAiplatformV1GenerationConfig setMaxOutputTokens(java.lang.Inte
247247
return this;
248248
}
249249

250+
/**
251+
* Optional. If specified, the media resolution specified will be used.
252+
* @return value or {@code null} for none
253+
*/
254+
public java.lang.String getMediaResolution() {
255+
return mediaResolution;
256+
}
257+
258+
/**
259+
* Optional. If specified, the media resolution specified will be used.
260+
* @param mediaResolution mediaResolution or {@code null} for none
261+
*/
262+
public GoogleCloudAiplatformV1GenerationConfig setMediaResolution(java.lang.String mediaResolution) {
263+
this.mediaResolution = mediaResolution;
264+
return this;
265+
}
266+
250267
/**
251268
* Optional. Positive penalties.
252269
* @return value or {@code null} for none
@@ -431,23 +448,6 @@ public GoogleCloudAiplatformV1GenerationConfig setTemperature(java.lang.Float te
431448
return this;
432449
}
433450

434-
/**
435-
* Optional. If specified, the token resolution specified will be used.
436-
* @return value or {@code null} for none
437-
*/
438-
public java.lang.String getTokenResolution() {
439-
return tokenResolution;
440-
}
441-
442-
/**
443-
* Optional. If specified, the token resolution specified will be used.
444-
* @param tokenResolution tokenResolution or {@code null} for none
445-
*/
446-
public GoogleCloudAiplatformV1GenerationConfig setTokenResolution(java.lang.String tokenResolution) {
447-
this.tokenResolution = tokenResolution;
448-
return this;
449-
}
450-
451451
/**
452452
* Optional. If specified, top-k sampling will be used.
453453
* @return value or {@code null} for none

0 commit comments

Comments
 (0)