Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [aiplatform] add RaySepc to ResourceRuntimeSpec, and add ResourceRuntime to PersistentResource #9674

Merged
merged 16 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
f2fcd92
feat: ScheduleService (schedule_service.proto) creates and manages Sc…
gcf-owl-bot[bot] Jul 22, 2023
ff83527
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 22, 2023
79af785
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 22, 2023
217f8e4
Merge branch 'owl-bot-copy-java-aiplatform' of https://github.com/goo…
gcf-owl-bot[bot] Jul 22, 2023
2797f52
docs: enable sample generation for java-aiplatform
gcf-owl-bot[bot] Jul 27, 2023
c67afa0
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 27, 2023
9350a94
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 27, 2023
e77d34f
Merge branch 'owl-bot-copy-java-aiplatform' of https://github.com/goo…
gcf-owl-bot[bot] Jul 27, 2023
e44615e
feat: add `PredictionService.ServerStreamingPredict` method
gcf-owl-bot[bot] Jul 28, 2023
e55c100
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 28, 2023
fc80d82
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 28, 2023
5d5020a
Merge branch 'owl-bot-copy-java-aiplatform' of https://github.com/goo…
gcf-owl-bot[bot] Jul 28, 2023
2f1abdc
feat: add RaySepc to ResourceRuntimeSpec, and add ResourceRuntime to …
gcf-owl-bot[bot] Jul 28, 2023
9eda93d
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 28, 2023
566c457
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Jul 28, 2023
2f19295
Merge branch 'owl-bot-copy-java-aiplatform' of https://github.com/goo…
gcf-owl-bot[bot] Jul 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.19.0</version>
<version>26.20.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>3.22.0</version>
<version>3.23.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-aiplatform:3.22.0'
implementation 'com.google.cloud:google-cloud-aiplatform:3.23.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.22.0"
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.23.0"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.22.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.23.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.google.api.gax.paging.AbstractPage;
import com.google.api.gax.paging.AbstractPagedListResponse;
import com.google.api.gax.rpc.PageContext;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.aiplatform.v1.stub.PredictionServiceStub;
import com.google.cloud.aiplatform.v1.stub.PredictionServiceStubSettings;
Expand Down Expand Up @@ -535,6 +536,41 @@ public final UnaryCallable<RawPredictRequest, HttpBody> rawPredictCallable() {
return stub.rawPredictCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Perform a server-side streaming online prediction request for Vertex LLM streaming.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
* StreamingPredictRequest request =
* StreamingPredictRequest.newBuilder()
* .setEndpoint(
* EndpointName.ofProjectLocationEndpointName(
* "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
* .toString())
* .addAllInputs(new ArrayList<Tensor>())
* .setParameters(Tensor.newBuilder().build())
* .build();
* ServerStream<StreamingPredictResponse> stream =
* predictionServiceClient.serverStreamingPredictCallable().call(request);
* for (StreamingPredictResponse response : stream) {
* // Do something when a response is received.
* }
* }
* }</pre>
*/
public final ServerStreamingCallable<StreamingPredictRequest, StreamingPredictResponse>
serverStreamingPredictCallable() {
return stub.serverStreamingPredictCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Perform an online explanation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.aiplatform.v1.stub.PredictionServiceStubSettings;
Expand Down Expand Up @@ -94,6 +95,12 @@ public UnaryCallSettings<RawPredictRequest, HttpBody> rawPredictSettings() {
return ((PredictionServiceStubSettings) getStubSettings()).rawPredictSettings();
}

/** Returns the object with the settings used for calls to serverStreamingPredict. */
public ServerStreamingCallSettings<StreamingPredictRequest, StreamingPredictResponse>
serverStreamingPredictSettings() {
return ((PredictionServiceStubSettings) getStubSettings()).serverStreamingPredictSettings();
}

/** Returns the object with the settings used for calls to explain. */
public UnaryCallSettings<ExplainRequest, ExplainResponse> explainSettings() {
return ((PredictionServiceStubSettings) getStubSettings()).explainSettings();
Expand Down Expand Up @@ -233,6 +240,12 @@ public UnaryCallSettings.Builder<RawPredictRequest, HttpBody> rawPredictSettings
return getStubSettingsBuilder().rawPredictSettings();
}

/** Returns the builder for the settings used for calls to serverStreamingPredict. */
public ServerStreamingCallSettings.Builder<StreamingPredictRequest, StreamingPredictResponse>
serverStreamingPredictSettings() {
return getStubSettingsBuilder().serverStreamingPredictSettings();
}

/** Returns the builder for the settings used for calls to explain. */
public UnaryCallSettings.Builder<ExplainRequest, ExplainResponse> explainSettings() {
return getStubSettingsBuilder().explainSettings();
Expand Down
Loading