Skip to content

Commit 4d3586a

Browse files
1 parent 62d75e2 commit 4d3586a

File tree

53 files changed

+5243
-486
lines changed

Some content is hidden

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

53 files changed

+5243
-486
lines changed

clients/google-api-services-aiplatform/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-aiplatform</artifactId>
25-
<version>v1-rev20240429-2.0.0</version>
25+
<version>v1-rev20240501-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20240429-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20240501-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1FindNeighborsRequestQuery.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ public final class GoogleCloudAiplatformV1FindNeighborsRequestQuery extends com.
7373
@com.google.api.client.util.Key
7474
private java.lang.Integer perCrowdingAttributeNeighborCount;
7575

76+
/**
77+
* Optional. Represents RRF algorithm that combines search results.
78+
* The value may be {@code null}.
79+
*/
80+
@com.google.api.client.util.Key
81+
private GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF rrf;
82+
7683
/**
7784
* The number of neighbors to find via approximate search before exact reordering is performed. If
7885
* not set, the default value from scam config is used; if set, this value must be > 0.
@@ -176,6 +183,23 @@ public GoogleCloudAiplatformV1FindNeighborsRequestQuery setPerCrowdingAttributeN
176183
return this;
177184
}
178185

186+
/**
187+
* Optional. Represents RRF algorithm that combines search results.
188+
* @return value or {@code null} for none
189+
*/
190+
public GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF getRrf() {
191+
return rrf;
192+
}
193+
194+
/**
195+
* Optional. Represents RRF algorithm that combines search results.
196+
* @param rrf rrf or {@code null} for none
197+
*/
198+
public GoogleCloudAiplatformV1FindNeighborsRequestQuery setRrf(GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF rrf) {
199+
this.rrf = rrf;
200+
return this;
201+
}
202+
179203
@Override
180204
public GoogleCloudAiplatformV1FindNeighborsRequestQuery set(String fieldName, Object value) {
181205
return (GoogleCloudAiplatformV1FindNeighborsRequestQuery) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.aiplatform.v1.model;
18+
19+
/**
20+
* Parameters for RRF algorithm that combines search results.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Users can provide an alpha value to give more weight to dense vs sparse results. For
34+
* example, if the alpha is 0, we only return sparse and if the alpha is 1, we only return dense.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Float alpha;
39+
40+
/**
41+
* Required. Users can provide an alpha value to give more weight to dense vs sparse results. For
42+
* example, if the alpha is 0, we only return sparse and if the alpha is 1, we only return dense.
43+
* @return value or {@code null} for none
44+
*/
45+
public java.lang.Float getAlpha() {
46+
return alpha;
47+
}
48+
49+
/**
50+
* Required. Users can provide an alpha value to give more weight to dense vs sparse results. For
51+
* example, if the alpha is 0, we only return sparse and if the alpha is 1, we only return dense.
52+
* @param alpha alpha or {@code null} for none
53+
*/
54+
public GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF setAlpha(java.lang.Float alpha) {
55+
this.alpha = alpha;
56+
return this;
57+
}
58+
59+
@Override
60+
public GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF set(String fieldName, Object value) {
61+
return (GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF clone() {
66+
return (GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF) super.clone();
67+
}
68+
69+
}

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1FindNeighborsResponseNeighbor.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public final class GoogleCloudAiplatformV1FindNeighborsResponseNeighbor extends
4545
@com.google.api.client.util.Key
4646
private java.lang.Double distance;
4747

48+
/**
49+
* The distance between the neighbor and the query sparse_embedding.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.Double sparseDistance;
54+
4855
/**
4956
* The datapoint of the neighbor. Note that full datapoints are returned only when
5057
* "return_full_datapoint" is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
@@ -83,6 +90,23 @@ public GoogleCloudAiplatformV1FindNeighborsResponseNeighbor setDistance(java.lan
8390
return this;
8491
}
8592

93+
/**
94+
* The distance between the neighbor and the query sparse_embedding.
95+
* @return value or {@code null} for none
96+
*/
97+
public java.lang.Double getSparseDistance() {
98+
return sparseDistance;
99+
}
100+
101+
/**
102+
* The distance between the neighbor and the query sparse_embedding.
103+
* @param sparseDistance sparseDistance or {@code null} for none
104+
*/
105+
public GoogleCloudAiplatformV1FindNeighborsResponseNeighbor setSparseDistance(java.lang.Double sparseDistance) {
106+
this.sparseDistance = sparseDistance;
107+
return this;
108+
}
109+
86110
@Override
87111
public GoogleCloudAiplatformV1FindNeighborsResponseNeighbor set(String fieldName, Object value) {
88112
return (GoogleCloudAiplatformV1FindNeighborsResponseNeighbor) super.set(fieldName, value);

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1IndexDatapoint.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ public final class GoogleCloudAiplatformV1IndexDatapoint extends com.google.api.
7070
@com.google.api.client.util.Key
7171
private java.util.List<GoogleCloudAiplatformV1IndexDatapointRestriction> restricts;
7272

73+
/**
74+
* Optional. Feature embedding vector for sparse index.
75+
* The value may be {@code null}.
76+
*/
77+
@com.google.api.client.util.Key
78+
private GoogleCloudAiplatformV1IndexDatapointSparseEmbedding sparseEmbedding;
79+
7380
/**
7481
* Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can
7582
* be configured during query.
@@ -167,6 +174,23 @@ public GoogleCloudAiplatformV1IndexDatapoint setRestricts(java.util.List<GoogleC
167174
return this;
168175
}
169176

177+
/**
178+
* Optional. Feature embedding vector for sparse index.
179+
* @return value or {@code null} for none
180+
*/
181+
public GoogleCloudAiplatformV1IndexDatapointSparseEmbedding getSparseEmbedding() {
182+
return sparseEmbedding;
183+
}
184+
185+
/**
186+
* Optional. Feature embedding vector for sparse index.
187+
* @param sparseEmbedding sparseEmbedding or {@code null} for none
188+
*/
189+
public GoogleCloudAiplatformV1IndexDatapoint setSparseEmbedding(GoogleCloudAiplatformV1IndexDatapointSparseEmbedding sparseEmbedding) {
190+
this.sparseEmbedding = sparseEmbedding;
191+
return this;
192+
}
193+
170194
@Override
171195
public GoogleCloudAiplatformV1IndexDatapoint set(String fieldName, Object value) {
172196
return (GoogleCloudAiplatformV1IndexDatapoint) super.set(fieldName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.aiplatform.v1.model;
18+
19+
/**
20+
* Feature embedding vector for sparse index. An array of numbers whose values are located in the
21+
* specified dimensions.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Vertex AI API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudAiplatformV1IndexDatapointSparseEmbedding extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The list of indexes for the embedding values of the sparse vector.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
38+
private java.util.List<java.lang.Long> dimensions;
39+
40+
/**
41+
* Optional. The list of embedding values of the sparse vector.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<java.lang.Float> values;
46+
47+
/**
48+
* Optional. The list of indexes for the embedding values of the sparse vector.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.util.List<java.lang.Long> getDimensions() {
52+
return dimensions;
53+
}
54+
55+
/**
56+
* Optional. The list of indexes for the embedding values of the sparse vector.
57+
* @param dimensions dimensions or {@code null} for none
58+
*/
59+
public GoogleCloudAiplatformV1IndexDatapointSparseEmbedding setDimensions(java.util.List<java.lang.Long> dimensions) {
60+
this.dimensions = dimensions;
61+
return this;
62+
}
63+
64+
/**
65+
* Optional. The list of embedding values of the sparse vector.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.util.List<java.lang.Float> getValues() {
69+
return values;
70+
}
71+
72+
/**
73+
* Optional. The list of embedding values of the sparse vector.
74+
* @param values values or {@code null} for none
75+
*/
76+
public GoogleCloudAiplatformV1IndexDatapointSparseEmbedding setValues(java.util.List<java.lang.Float> values) {
77+
this.values = values;
78+
return this;
79+
}
80+
81+
@Override
82+
public GoogleCloudAiplatformV1IndexDatapointSparseEmbedding set(String fieldName, Object value) {
83+
return (GoogleCloudAiplatformV1IndexDatapointSparseEmbedding) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GoogleCloudAiplatformV1IndexDatapointSparseEmbedding clone() {
88+
return (GoogleCloudAiplatformV1IndexDatapointSparseEmbedding) super.clone();
89+
}
90+
91+
}

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1IndexStats.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public final class GoogleCloudAiplatformV1IndexStats extends com.google.api.clie
3636
@com.google.api.client.util.Key
3737
private java.lang.Integer shardsCount;
3838

39+
/**
40+
* Output only. The number of sparse vectors in the Index.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
44+
private java.lang.Long sparseVectorsCount;
45+
3946
/**
4047
* Output only. The number of dense vectors in the Index.
4148
* The value may be {@code null}.
@@ -60,6 +67,23 @@ public GoogleCloudAiplatformV1IndexStats setShardsCount(java.lang.Integer shards
6067
return this;
6168
}
6269

70+
/**
71+
* Output only. The number of sparse vectors in the Index.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.Long getSparseVectorsCount() {
75+
return sparseVectorsCount;
76+
}
77+
78+
/**
79+
* Output only. The number of sparse vectors in the Index.
80+
* @param sparseVectorsCount sparseVectorsCount or {@code null} for none
81+
*/
82+
public GoogleCloudAiplatformV1IndexStats setSparseVectorsCount(java.lang.Long sparseVectorsCount) {
83+
this.sparseVectorsCount = sparseVectorsCount;
84+
return this;
85+
}
86+
6387
/**
6488
* Output only. The number of dense vectors in the Index.
6589
* @return value or {@code null} for none

clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1NotebookRuntimeTemplate.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public final class GoogleCloudAiplatformV1NotebookRuntimeTemplate extends com.go
107107
private GoogleCloudAiplatformV1MachineSpec machineSpec;
108108

109109
/**
110-
* Output only. The resource name of the NotebookRuntimeTemplate.
110+
* The resource name of the NotebookRuntimeTemplate.
111111
* The value may be {@code null}.
112112
*/
113113
@com.google.api.client.util.Key
@@ -350,15 +350,15 @@ public GoogleCloudAiplatformV1NotebookRuntimeTemplate setMachineSpec(GoogleCloud
350350
}
351351

352352
/**
353-
* Output only. The resource name of the NotebookRuntimeTemplate.
353+
* The resource name of the NotebookRuntimeTemplate.
354354
* @return value or {@code null} for none
355355
*/
356356
public java.lang.String getName() {
357357
return name;
358358
}
359359

360360
/**
361-
* Output only. The resource name of the NotebookRuntimeTemplate.
361+
* The resource name of the NotebookRuntimeTemplate.
362362
* @param name name or {@code null} for none
363363
*/
364364
public GoogleCloudAiplatformV1NotebookRuntimeTemplate setName(java.lang.String name) {

0 commit comments

Comments
 (0)