Skip to content

Commit

Permalink
feat: [aiplatform] Adding new fields for concurrent explanations (#10016
Browse files Browse the repository at this point in the history
)

* feat: Adding new fields for concurrent explanations

PiperOrigin-RevId: 578251436

Source-Link: googleapis/googleapis@e85bb34

Source-Link: https://github.com/googleapis/googleapis-gen/commit/9a7e2dc85c29658f0782c250f324551f74437068
Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI5YTdlMmRjODVjMjk2NThmMDc4MmMyNTBmMzI0NTUxZjc0NDM3MDY4In0=

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 1, 2023
1 parent 474eb74 commit d80aa3c
Show file tree
Hide file tree
Showing 12 changed files with 2,455 additions and 79 deletions.
4 changes: 2 additions & 2 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.24.0</version>
<version>26.26.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
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.28.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.30.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 @@ -733,6 +733,8 @@ public final ExplainResponse explain(
* .addAllInstances(new ArrayList<Value>())
* .setParameters(Value.newBuilder().setBoolValue(true).build())
* .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
* .putAllConcurrentExplanationSpecOverride(
* new HashMap<String, ExplanationSpecOverride>())
* .setDeployedModelId("deployedModelId-1817547906")
* .build();
* ExplainResponse response = predictionServiceClient.explain(request);
Expand Down Expand Up @@ -775,6 +777,8 @@ public final ExplainResponse explain(ExplainRequest request) {
* .addAllInstances(new ArrayList<Value>())
* .setParameters(Value.newBuilder().setBoolValue(true).build())
* .setExplanationSpecOverride(ExplanationSpecOverride.newBuilder().build())
* .putAllConcurrentExplanationSpecOverride(
* new HashMap<String, ExplanationSpecOverride>())
* .setDeployedModelId("deployedModelId-1817547906")
* .build();
* ApiFuture<ExplainResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4175,6 +4175,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.aiplatform.v1beta1.ExplainResponse$ConcurrentExplanation",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.aiplatform.v1beta1.ExplainResponse$ConcurrentExplanation$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.aiplatform.v1beta1.Explanation",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ public void explainTest() throws Exception {
ExplainResponse expectedResponse =
ExplainResponse.newBuilder()
.addAllExplanations(new ArrayList<Explanation>())
.putAllConcurrentExplanations(
new HashMap<String, ExplainResponse.ConcurrentExplanation>())
.setDeployedModelId("deployedModelId-1817547906")
.addAllPredictions(new ArrayList<Value>())
.build();
Expand Down Expand Up @@ -408,6 +410,8 @@ public void explainTest2() throws Exception {
ExplainResponse expectedResponse =
ExplainResponse.newBuilder()
.addAllExplanations(new ArrayList<Explanation>())
.putAllConcurrentExplanations(
new HashMap<String, ExplainResponse.ConcurrentExplanation>())
.setDeployedModelId("deployedModelId-1817547906")
.addAllPredictions(new ArrayList<Value>())
.build();
Expand Down
Loading

0 comments on commit d80aa3c

Please sign in to comment.