Skip to content

Commit 666a3ac

Browse files
chore: Update generation configuration at Tue Jun 25 02:14:01 UTC 2024 (#10968)
* chore: Update generation configuration at Fri Jun 14 18:07:41 UTC 2024 * chore: generate libraries at Fri Jun 14 18:10:57 UTC 2024 * chore: Update generation configuration at Tue Jun 18 02:14:03 UTC 2024 * chore: generate libraries at Tue Jun 18 02:16:53 UTC 2024 * chore: Update generation configuration at Wed Jun 19 02:14:18 UTC 2024 * chore: generate libraries at Wed Jun 19 02:17:10 UTC 2024 * chore: Update generation configuration at Thu Jun 20 02:13:15 UTC 2024 * chore: generate libraries at Thu Jun 20 02:16:02 UTC 2024 * chore: Update generation configuration at Fri Jun 21 02:13:21 UTC 2024 * chore: generate libraries at Fri Jun 21 02:16:25 UTC 2024 * chore: Update generation configuration at Sat Jun 22 02:12:50 UTC 2024 * chore: Update generation configuration at Tue Jun 25 02:14:01 UTC 2024 * chore: generate libraries at Tue Jun 25 02:16:52 UTC 2024
1 parent 9fac881 commit 666a3ac

File tree

444 files changed

+31080
-3687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+31080
-3687
lines changed

generation_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
gapic_generator_version: 2.41.0
22
protoc_version: '25.3'
3-
googleapis_commitish: ac90fa9958bd6f7622674f52f77e4dc01d98bee8
4-
libraries_bom_version: 26.40.0
3+
googleapis_commitish: e4e39feea63b5f0d646fc193acbf536b5d292b64
4+
libraries_bom_version: 26.42.0
55
template_excludes:
66
- .github/*
77
- .kokoro/*

java-accessapproval/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.40.0</version>
23+
<version>26.42.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.45.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.46.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-accesscontextmanager/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.40.0</version>
23+
<version>26.42.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.45.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.46.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-admanager/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.40.0</version>
26+
<version>26.42.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.3.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.4.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-advisorynotifications/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.40.0</version>
23+
<version>26.42.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.33.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.34.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-aiplatform/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.40.0</version>
23+
<version>26.42.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.45.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.46.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -385,24 +385,12 @@ protected GrpcPredictionServiceStub(
385385
streamDirectPredictTransportSettings =
386386
GrpcCallSettings.<StreamDirectPredictRequest, StreamDirectPredictResponse>newBuilder()
387387
.setMethodDescriptor(streamDirectPredictMethodDescriptor)
388-
.setParamsExtractor(
389-
request -> {
390-
RequestParamsBuilder builder = RequestParamsBuilder.create();
391-
builder.add("endpoint", String.valueOf(request.getEndpoint()));
392-
return builder.build();
393-
})
394388
.build();
395389
GrpcCallSettings<StreamDirectRawPredictRequest, StreamDirectRawPredictResponse>
396390
streamDirectRawPredictTransportSettings =
397391
GrpcCallSettings
398392
.<StreamDirectRawPredictRequest, StreamDirectRawPredictResponse>newBuilder()
399393
.setMethodDescriptor(streamDirectRawPredictMethodDescriptor)
400-
.setParamsExtractor(
401-
request -> {
402-
RequestParamsBuilder builder = RequestParamsBuilder.create();
403-
builder.add("endpoint", String.valueOf(request.getEndpoint()));
404-
return builder.build();
405-
})
406394
.build();
407395
GrpcCallSettings<StreamingPredictRequest, StreamingPredictResponse>
408396
streamingPredictTransportSettings =

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@
125125
* </td>
126126
* </tr>
127127
* <tr>
128+
* <td><p> StreamRawPredict</td>
129+
* <td><p> Perform a streaming online prediction with an arbitrary HTTP payload.</td>
130+
* <td>
131+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
132+
* <ul>
133+
* <li><p> streamRawPredictCallable()
134+
* </ul>
135+
* </td>
136+
* </tr>
137+
* <tr>
128138
* <td><p> DirectPredict</td>
129139
* <td><p> Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.</td>
130140
* <td>
@@ -813,6 +823,40 @@ public final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
813823
return stub.rawPredictCallable();
814824
}
815825

826+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
827+
/**
828+
* Perform a streaming online prediction with an arbitrary HTTP payload.
829+
*
830+
* <p>Sample code:
831+
*
832+
* <pre>{@code
833+
* // This snippet has been automatically generated and should be regarded as a code template only.
834+
* // It will require modifications to work:
835+
* // - It may require correct/in-range values for request initialization.
836+
* // - It may require specifying regional endpoints when creating the service client as shown in
837+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
838+
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
839+
* StreamRawPredictRequest request =
840+
* StreamRawPredictRequest.newBuilder()
841+
* .setEndpoint(
842+
* EndpointName.ofProjectLocationEndpointName(
843+
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
844+
* .toString())
845+
* .setHttpBody(HttpBody.newBuilder().build())
846+
* .build();
847+
* ServerStream<HttpBody> stream =
848+
* predictionServiceClient.streamRawPredictCallable().call(request);
849+
* for (HttpBody response : stream) {
850+
* // Do something when a response is received.
851+
* }
852+
* }
853+
* }</pre>
854+
*/
855+
public final ServerStreamingCallable<StreamRawPredictRequest, HttpBody>
856+
streamRawPredictCallable() {
857+
return stub.streamRawPredictCallable();
858+
}
859+
816860
// AUTO-GENERATED DOCUMENTATION AND METHOD.
817861
/**
818862
* Perform an unary online prediction request to a gRPC model server for Vertex first-party

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ public UnaryCallSettings<RawPredictRequest, HttpBody> rawPredictSettings() {
9797
return ((PredictionServiceStubSettings) getStubSettings()).rawPredictSettings();
9898
}
9999

100+
/** Returns the object with the settings used for calls to streamRawPredict. */
101+
public ServerStreamingCallSettings<StreamRawPredictRequest, HttpBody> streamRawPredictSettings() {
102+
return ((PredictionServiceStubSettings) getStubSettings()).streamRawPredictSettings();
103+
}
104+
100105
/** Returns the object with the settings used for calls to directPredict. */
101106
public UnaryCallSettings<DirectPredictRequest, DirectPredictResponse> directPredictSettings() {
102107
return ((PredictionServiceStubSettings) getStubSettings()).directPredictSettings();
@@ -298,6 +303,12 @@ public UnaryCallSettings.Builder<RawPredictRequest, HttpBody> rawPredictSettings
298303
return getStubSettingsBuilder().rawPredictSettings();
299304
}
300305

306+
/** Returns the builder for the settings used for calls to streamRawPredict. */
307+
public ServerStreamingCallSettings.Builder<StreamRawPredictRequest, HttpBody>
308+
streamRawPredictSettings() {
309+
return getStubSettingsBuilder().streamRawPredictSettings();
310+
}
311+
301312
/** Returns the builder for the settings used for calls to directPredict. */
302313
public UnaryCallSettings.Builder<DirectPredictRequest, DirectPredictResponse>
303314
directPredictSettings() {

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,9 @@
14321432
"StreamGenerateContent": {
14331433
"methods": ["streamGenerateContentCallable"]
14341434
},
1435+
"StreamRawPredict": {
1436+
"methods": ["streamRawPredictCallable"]
1437+
},
14351438
"StreamingPredict": {
14361439
"methods": ["streamingPredictCallable"]
14371440
},

0 commit comments

Comments
 (0)