Skip to content

Commit f7a6838

Browse files
feat: [aiplatform] add RaySepc to ResourceRuntimeSpec, and add ResourceRuntime to PersistentResource (#9674)
* feat: ScheduleService (schedule_service.proto) creates and manages Schedule resources to launch scheduled pipelines runs feat: Schedule (schedule.proto) periodically schedules runs to make API calls PiperOrigin-RevId: 550058610 Source-Link: googleapis/googleapis@5b24e63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4c5f6f9c4292c14287217b56f2dcb04cd7727832 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI0YzVmNmY5YzQyOTJjMTQyODcyMTdiNTZmMmRjYjA0Y2Q3NzI3ODMyIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: enable sample generation for java-aiplatform PiperOrigin-RevId: 551532734 Source-Link: googleapis/googleapis@3f76966 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9d96e7398eaa03390ade45d6a3a76a8e8245b774 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI5ZDk2ZTczOThlYWEwMzM5MGFkZTQ1ZDZhM2E3NmE4ZTgyNDViNzc0In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add `PredictionService.ServerStreamingPredict` method feat: add `StreamingPredictRequest` type feat: add `StreamingPredictResponse` type feat: add `Tensor` type PiperOrigin-RevId: 551672526 Source-Link: googleapis/googleapis@1b650d6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/62fb73702732ce727fbd2e5560d309ece0609850 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI2MmZiNzM3MDI3MzJjZTcyN2ZiZDJlNTU2MGQzMDllY2UwNjA5ODUwIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add RaySepc to ResourceRuntimeSpec, and add ResourceRuntime to PersistentResource PiperOrigin-RevId: 551874408 Source-Link: googleapis/googleapis@4d230dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/9e603a7080be78b1ec8a6cf4ce1d06a5259efc23 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI5ZTYwM2E3MDgwYmU3OGIxZWM4YTZjZjRjZTFkMDZhNTI1OWVmYzIzIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a0715a8 commit f7a6838

File tree

2,624 files changed

+167730
-191
lines changed

Some content is hidden

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

2,624 files changed

+167730
-191
lines changed

java-aiplatform/README.md

+2-2
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.19.0</version>
23+
<version>26.20.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.22.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.23.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/PredictionServiceClient.java

+36
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import com.google.api.gax.paging.AbstractPage;
2525
import com.google.api.gax.paging.AbstractPagedListResponse;
2626
import com.google.api.gax.rpc.PageContext;
27+
import com.google.api.gax.rpc.ServerStreamingCallable;
2728
import com.google.api.gax.rpc.UnaryCallable;
2829
import com.google.cloud.aiplatform.v1.stub.PredictionServiceStub;
2930
import com.google.cloud.aiplatform.v1.stub.PredictionServiceStubSettings;
@@ -535,6 +536,41 @@ public final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
535536
return stub.rawPredictCallable();
536537
}
537538

539+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
540+
/**
541+
* Perform a server-side streaming online prediction request for Vertex LLM streaming.
542+
*
543+
* <p>Sample code:
544+
*
545+
* <pre>{@code
546+
* // This snippet has been automatically generated and should be regarded as a code template only.
547+
* // It will require modifications to work:
548+
* // - It may require correct/in-range values for request initialization.
549+
* // - It may require specifying regional endpoints when creating the service client as shown in
550+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
551+
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
552+
* StreamingPredictRequest request =
553+
* StreamingPredictRequest.newBuilder()
554+
* .setEndpoint(
555+
* EndpointName.ofProjectLocationEndpointName(
556+
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
557+
* .toString())
558+
* .addAllInputs(new ArrayList<Tensor>())
559+
* .setParameters(Tensor.newBuilder().build())
560+
* .build();
561+
* ServerStream<StreamingPredictResponse> stream =
562+
* predictionServiceClient.serverStreamingPredictCallable().call(request);
563+
* for (StreamingPredictResponse response : stream) {
564+
* // Do something when a response is received.
565+
* }
566+
* }
567+
* }</pre>
568+
*/
569+
public final ServerStreamingCallable<StreamingPredictRequest, StreamingPredictResponse>
570+
serverStreamingPredictCallable() {
571+
return stub.serverStreamingPredictCallable();
572+
}
573+
538574
// AUTO-GENERATED DOCUMENTATION AND METHOD.
539575
/**
540576
* Perform an online explanation.

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

+13
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.google.api.gax.rpc.ClientContext;
2929
import com.google.api.gax.rpc.ClientSettings;
3030
import com.google.api.gax.rpc.PagedCallSettings;
31+
import com.google.api.gax.rpc.ServerStreamingCallSettings;
3132
import com.google.api.gax.rpc.TransportChannelProvider;
3233
import com.google.api.gax.rpc.UnaryCallSettings;
3334
import com.google.cloud.aiplatform.v1.stub.PredictionServiceStubSettings;
@@ -94,6 +95,12 @@ public UnaryCallSettings<RawPredictRequest, HttpBody> rawPredictSettings() {
9495
return ((PredictionServiceStubSettings) getStubSettings()).rawPredictSettings();
9596
}
9697

98+
/** Returns the object with the settings used for calls to serverStreamingPredict. */
99+
public ServerStreamingCallSettings<StreamingPredictRequest, StreamingPredictResponse>
100+
serverStreamingPredictSettings() {
101+
return ((PredictionServiceStubSettings) getStubSettings()).serverStreamingPredictSettings();
102+
}
103+
97104
/** Returns the object with the settings used for calls to explain. */
98105
public UnaryCallSettings<ExplainRequest, ExplainResponse> explainSettings() {
99106
return ((PredictionServiceStubSettings) getStubSettings()).explainSettings();
@@ -233,6 +240,12 @@ public UnaryCallSettings.Builder<RawPredictRequest, HttpBody> rawPredictSettings
233240
return getStubSettingsBuilder().rawPredictSettings();
234241
}
235242

243+
/** Returns the builder for the settings used for calls to serverStreamingPredict. */
244+
public ServerStreamingCallSettings.Builder<StreamingPredictRequest, StreamingPredictResponse>
245+
serverStreamingPredictSettings() {
246+
return getStubSettingsBuilder().serverStreamingPredictSettings();
247+
}
248+
236249
/** Returns the builder for the settings used for calls to explain. */
237250
public UnaryCallSettings.Builder<ExplainRequest, ExplainResponse> explainSettings() {
238251
return getStubSettingsBuilder().explainSettings();

0 commit comments

Comments
 (0)