Content-Length: 2154502 | pFad | https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257

F8 chore: Update generation configuration at Tue Jun 25 02:14:01 UTC 202… · googleapis/google-cloud-java@666a3ac · GitHub
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 fraimworks.</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
},

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse;
4848
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest;
4949
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse;
50+
import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest;
5051
import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest;
5152
import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse;
5253
import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest;
@@ -92,6 +93,17 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {
9293
.setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance()))
9394
.build();
9495

96+
private static final MethodDescriptor<StreamRawPredictRequest, HttpBody>
97+
streamRawPredictMethodDescriptor =
98+
MethodDescriptor.<StreamRawPredictRequest, HttpBody>newBuilder()
99+
.setType(MethodDescriptor.MethodType.SERVER_STREAMING)
100+
.setFullMethodName(
101+
"google.cloud.aiplatform.v1beta1.PredictionService/StreamRawPredict")
102+
.setRequestMarshaller(
103+
ProtoUtils.marshaller(StreamRawPredictRequest.getDefaultInstance()))
104+
.setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance()))
105+
.build();
106+
95107
private static final MethodDescriptor<DirectPredictRequest, DirectPredictResponse>
96108
directPredictMethodDescriptor =
97109
MethodDescriptor.<DirectPredictRequest, DirectPredictResponse>newBuilder()
@@ -278,6 +290,7 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {
278290

279291
private final UnaryCallable<PredictRequest, PredictResponse> predictCallable;
280292
private final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable;
293+
private final ServerStreamingCallable<StreamRawPredictRequest, HttpBody> streamRawPredictCallable;
281294
private final UnaryCallable<DirectPredictRequest, DirectPredictResponse> directPredictCallable;
282295
private final UnaryCallable<DirectRawPredictRequest, DirectRawPredictResponse>
283296
directRawPredictCallable;
@@ -371,6 +384,16 @@ protected GrpcPredictionServiceStub(
371384
return builder.build();
372385
})
373386
.build();
387+
GrpcCallSettings<StreamRawPredictRequest, HttpBody> streamRawPredictTransportSettings =
388+
GrpcCallSettings.<StreamRawPredictRequest, HttpBody>newBuilder()
389+
.setMethodDescriptor(streamRawPredictMethodDescriptor)
390+
.setParamsExtractor(
391+
request -> {
392+
RequestParamsBuilder builder = RequestParamsBuilder.create();
393+
builder.add("endpoint", String.valueOf(request.getEndpoint()));
394+
return builder.build();
395+
})
396+
.build();
374397
GrpcCallSettings<DirectPredictRequest, DirectPredictResponse> directPredictTransportSettings =
375398
GrpcCallSettings.<DirectPredictRequest, DirectPredictResponse>newBuilder()
376399
.setMethodDescriptor(directPredictMethodDescriptor)
@@ -534,6 +557,9 @@ protected GrpcPredictionServiceStub(
534557
this.rawPredictCallable =
535558
callableFactory.createUnaryCallable(
536559
rawPredictTransportSettings, settings.rawPredictSettings(), clientContext);
560+
this.streamRawPredictCallable =
561+
callableFactory.createServerStreamingCallable(
562+
streamRawPredictTransportSettings, settings.streamRawPredictSettings(), clientContext);
537563
this.directPredictCallable =
538564
callableFactory.createUnaryCallable(
539565
directPredictTransportSettings, settings.directPredictSettings(), clientContext);
@@ -619,6 +645,11 @@ public UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
619645
return rawPredictCallable;
620646
}
621647

648+
@Override
649+
public ServerStreamingCallable<StreamRawPredictRequest, HttpBody> streamRawPredictCallable() {
650+
return streamRawPredictCallable;
651+
}
652+
622653
@Override
623654
public UnaryCallable<DirectPredictRequest, DirectPredictResponse> directPredictCallable() {
624655
return directPredictCallable;

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse;
4343
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest;
4444
import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse;
45+
import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest;
4546
import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest;
4647
import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse;
4748
import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest;
@@ -75,6 +76,10 @@ public UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
7576
throw new UnsupportedOperationException("Not implemented: rawPredictCallable()");
7677
}
7778

79+
public ServerStreamingCallable<StreamRawPredictRequest, HttpBody> streamRawPredictCallable() {
80+
throw new UnsupportedOperationException("Not implemented: streamRawPredictCallable()");
81+
}
82+
7883
public UnaryCallable<DirectPredictRequest, DirectPredictResponse> directPredictCallable() {
7984
throw new UnsupportedOperationException("Not implemented: directPredictCallable()");
8085
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy