Skip to content

Commit f33b07c

Browse files
1 parent 298c797 commit f33b07c

File tree

32 files changed

+3869
-36
lines changed

32 files changed

+3869
-36
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-rev20251003-2.0.0</version>
25+
<version>v1-rev20251010-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-rev20251003-2.0.0'
38+
implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20251010-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80894,6 +80894,146 @@ public CountTokens set(String parameterName, Object value) {
8089480894
return (CountTokens) super.set(parameterName, value);
8089580895
}
8089680896
}
80897+
/**
80898+
* Embed content with multimodal inputs.
80899+
*
80900+
* Create a request for the method "models.embedContent".
80901+
*
80902+
* This request holds the parameters needed by the aiplatform server. After setting any optional
80903+
* parameters, call the {@link EmbedContent#execute()} method to invoke the remote operation.
80904+
*
80905+
* @param model Required. The name of the publisher model requested to serve the prediction. Format:
80906+
* `projects/{project}/locations/{location}/publishers/models`
80907+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EmbedContentRequest}
80908+
* @return the request
80909+
*/
80910+
public EmbedContent embedContent(java.lang.String model, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EmbedContentRequest content) throws java.io.IOException {
80911+
EmbedContent result = new EmbedContent(model, content);
80912+
initialize(result);
80913+
return result;
80914+
}
80915+
80916+
public class EmbedContent extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EmbedContentResponse> {
80917+
80918+
private static final String REST_PATH = "v1/{+model}:embedContent";
80919+
80920+
private final java.util.regex.Pattern MODEL_PATTERN =
80921+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$");
80922+
80923+
/**
80924+
* Embed content with multimodal inputs.
80925+
*
80926+
* Create a request for the method "models.embedContent".
80927+
*
80928+
* This request holds the parameters needed by the the aiplatform server. After setting any
80929+
* optional parameters, call the {@link EmbedContent#execute()} method to invoke the remote
80930+
* operation. <p> {@link
80931+
* EmbedContent#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
80932+
* must be called to initialize this instance immediately after invoking the constructor. </p>
80933+
*
80934+
* @param model Required. The name of the publisher model requested to serve the prediction. Format:
80935+
* `projects/{project}/locations/{location}/publishers/models`
80936+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EmbedContentRequest}
80937+
* @since 1.13
80938+
*/
80939+
protected EmbedContent(java.lang.String model, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EmbedContentRequest content) {
80940+
super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1EmbedContentResponse.class);
80941+
this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified.");
80942+
if (!getSuppressPatternChecks()) {
80943+
com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(),
80944+
"Parameter model must conform to the pattern " +
80945+
"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$");
80946+
}
80947+
}
80948+
80949+
@Override
80950+
public EmbedContent set$Xgafv(java.lang.String $Xgafv) {
80951+
return (EmbedContent) super.set$Xgafv($Xgafv);
80952+
}
80953+
80954+
@Override
80955+
public EmbedContent setAccessToken(java.lang.String accessToken) {
80956+
return (EmbedContent) super.setAccessToken(accessToken);
80957+
}
80958+
80959+
@Override
80960+
public EmbedContent setAlt(java.lang.String alt) {
80961+
return (EmbedContent) super.setAlt(alt);
80962+
}
80963+
80964+
@Override
80965+
public EmbedContent setCallback(java.lang.String callback) {
80966+
return (EmbedContent) super.setCallback(callback);
80967+
}
80968+
80969+
@Override
80970+
public EmbedContent setFields(java.lang.String fields) {
80971+
return (EmbedContent) super.setFields(fields);
80972+
}
80973+
80974+
@Override
80975+
public EmbedContent setKey(java.lang.String key) {
80976+
return (EmbedContent) super.setKey(key);
80977+
}
80978+
80979+
@Override
80980+
public EmbedContent setOauthToken(java.lang.String oauthToken) {
80981+
return (EmbedContent) super.setOauthToken(oauthToken);
80982+
}
80983+
80984+
@Override
80985+
public EmbedContent setPrettyPrint(java.lang.Boolean prettyPrint) {
80986+
return (EmbedContent) super.setPrettyPrint(prettyPrint);
80987+
}
80988+
80989+
@Override
80990+
public EmbedContent setQuotaUser(java.lang.String quotaUser) {
80991+
return (EmbedContent) super.setQuotaUser(quotaUser);
80992+
}
80993+
80994+
@Override
80995+
public EmbedContent setUploadType(java.lang.String uploadType) {
80996+
return (EmbedContent) super.setUploadType(uploadType);
80997+
}
80998+
80999+
@Override
81000+
public EmbedContent setUploadProtocol(java.lang.String uploadProtocol) {
81001+
return (EmbedContent) super.setUploadProtocol(uploadProtocol);
81002+
}
81003+
81004+
/**
81005+
* Required. The name of the publisher model requested to serve the prediction. Format:
81006+
* `projects/{project}/locations/{location}/publishers/models`
81007+
*/
81008+
@com.google.api.client.util.Key
81009+
private java.lang.String model;
81010+
81011+
/** Required. The name of the publisher model requested to serve the prediction. Format:
81012+
`projects/{project}/locations/{location}/publishers/models`
81013+
*/
81014+
public java.lang.String getModel() {
81015+
return model;
81016+
}
81017+
81018+
/**
81019+
* Required. The name of the publisher model requested to serve the prediction. Format:
81020+
* `projects/{project}/locations/{location}/publishers/models`
81021+
*/
81022+
public EmbedContent setModel(java.lang.String model) {
81023+
if (!getSuppressPatternChecks()) {
81024+
com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(),
81025+
"Parameter model must conform to the pattern " +
81026+
"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$");
81027+
}
81028+
this.model = model;
81029+
return this;
81030+
}
81031+
81032+
@Override
81033+
public EmbedContent set(String parameterName, Object value) {
81034+
return (EmbedContent) super.set(parameterName, value);
81035+
}
81036+
}
8089781037
/**
8089881038
* Fetch an asynchronous online prediction operation.
8089981039
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
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+
* Request message for PredictionService.EmbedContent.
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 GoogleCloudAiplatformV1EmbedContentRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Whether to silently truncate the input content if it's longer than the maximum
34+
* sequence length.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean autoTruncate;
39+
40+
/**
41+
* Required. Input content to be embedded. Required.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GoogleCloudAiplatformV1Content content;
46+
47+
/**
48+
* Optional. Optional reduced dimension for the output embedding. If set, excessive values in the
49+
* output embedding are truncated from the end.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.Integer outputDimensionality;
54+
55+
/**
56+
* Optional. The task type of the embedding.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String taskType;
61+
62+
/**
63+
* Optional. An optional title for the text.
64+
* The value may be {@code null}.
65+
*/
66+
@com.google.api.client.util.Key
67+
private java.lang.String title;
68+
69+
/**
70+
* Optional. Whether to silently truncate the input content if it's longer than the maximum
71+
* sequence length.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.Boolean getAutoTruncate() {
75+
return autoTruncate;
76+
}
77+
78+
/**
79+
* Optional. Whether to silently truncate the input content if it's longer than the maximum
80+
* sequence length.
81+
* @param autoTruncate autoTruncate or {@code null} for none
82+
*/
83+
public GoogleCloudAiplatformV1EmbedContentRequest setAutoTruncate(java.lang.Boolean autoTruncate) {
84+
this.autoTruncate = autoTruncate;
85+
return this;
86+
}
87+
88+
/**
89+
* Required. Input content to be embedded. Required.
90+
* @return value or {@code null} for none
91+
*/
92+
public GoogleCloudAiplatformV1Content getContent() {
93+
return content;
94+
}
95+
96+
/**
97+
* Required. Input content to be embedded. Required.
98+
* @param content content or {@code null} for none
99+
*/
100+
public GoogleCloudAiplatformV1EmbedContentRequest setContent(GoogleCloudAiplatformV1Content content) {
101+
this.content = content;
102+
return this;
103+
}
104+
105+
/**
106+
* Optional. Optional reduced dimension for the output embedding. If set, excessive values in the
107+
* output embedding are truncated from the end.
108+
* @return value or {@code null} for none
109+
*/
110+
public java.lang.Integer getOutputDimensionality() {
111+
return outputDimensionality;
112+
}
113+
114+
/**
115+
* Optional. Optional reduced dimension for the output embedding. If set, excessive values in the
116+
* output embedding are truncated from the end.
117+
* @param outputDimensionality outputDimensionality or {@code null} for none
118+
*/
119+
public GoogleCloudAiplatformV1EmbedContentRequest setOutputDimensionality(java.lang.Integer outputDimensionality) {
120+
this.outputDimensionality = outputDimensionality;
121+
return this;
122+
}
123+
124+
/**
125+
* Optional. The task type of the embedding.
126+
* @return value or {@code null} for none
127+
*/
128+
public java.lang.String getTaskType() {
129+
return taskType;
130+
}
131+
132+
/**
133+
* Optional. The task type of the embedding.
134+
* @param taskType taskType or {@code null} for none
135+
*/
136+
public GoogleCloudAiplatformV1EmbedContentRequest setTaskType(java.lang.String taskType) {
137+
this.taskType = taskType;
138+
return this;
139+
}
140+
141+
/**
142+
* Optional. An optional title for the text.
143+
* @return value or {@code null} for none
144+
*/
145+
public java.lang.String getTitle() {
146+
return title;
147+
}
148+
149+
/**
150+
* Optional. An optional title for the text.
151+
* @param title title or {@code null} for none
152+
*/
153+
public GoogleCloudAiplatformV1EmbedContentRequest setTitle(java.lang.String title) {
154+
this.title = title;
155+
return this;
156+
}
157+
158+
@Override
159+
public GoogleCloudAiplatformV1EmbedContentRequest set(String fieldName, Object value) {
160+
return (GoogleCloudAiplatformV1EmbedContentRequest) super.set(fieldName, value);
161+
}
162+
163+
@Override
164+
public GoogleCloudAiplatformV1EmbedContentRequest clone() {
165+
return (GoogleCloudAiplatformV1EmbedContentRequest) super.clone();
166+
}
167+
168+
}

0 commit comments

Comments
 (0)