Skip to content

Commit 501d4d0

Browse files
1 parent 58ab521 commit 501d4d0

9 files changed

+335
-6
lines changed

clients/google-api-services-firebaseml/v2beta/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-firebaseml</artifactId>
25-
<version>v2beta-rev20241003-2.0.0</version>
25+
<version>v2beta-rev20241022-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-firebaseml:v2beta-rev20241003-2.0.0'
38+
implementation 'com.google.apis:google-api-services-firebaseml:v2beta-rev20241022-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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.firebaseml.v2beta.model;
18+
19+
/**
20+
* Result of executing the [ExecutableCode]. Always follows a `part` containing the
21+
* [ExecutableCode].
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 Firebase ML 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 GoogleCloudAiplatformV1beta1CodeExecutionResult extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Outcome of the code execution.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String outcome;
39+
40+
/**
41+
* Optional. Contains stdout when code execution is successful, stderr or other description
42+
* otherwise.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String output;
47+
48+
/**
49+
* Required. Outcome of the code execution.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getOutcome() {
53+
return outcome;
54+
}
55+
56+
/**
57+
* Required. Outcome of the code execution.
58+
* @param outcome outcome or {@code null} for none
59+
*/
60+
public GoogleCloudAiplatformV1beta1CodeExecutionResult setOutcome(java.lang.String outcome) {
61+
this.outcome = outcome;
62+
return this;
63+
}
64+
65+
/**
66+
* Optional. Contains stdout when code execution is successful, stderr or other description
67+
* otherwise.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getOutput() {
71+
return output;
72+
}
73+
74+
/**
75+
* Optional. Contains stdout when code execution is successful, stderr or other description
76+
* otherwise.
77+
* @param output output or {@code null} for none
78+
*/
79+
public GoogleCloudAiplatformV1beta1CodeExecutionResult setOutput(java.lang.String output) {
80+
this.output = output;
81+
return this;
82+
}
83+
84+
@Override
85+
public GoogleCloudAiplatformV1beta1CodeExecutionResult set(String fieldName, Object value) {
86+
return (GoogleCloudAiplatformV1beta1CodeExecutionResult) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public GoogleCloudAiplatformV1beta1CodeExecutionResult clone() {
91+
return (GoogleCloudAiplatformV1beta1CodeExecutionResult) super.clone();
92+
}
93+
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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.firebaseml.v2beta.model;
18+
19+
/**
20+
* Code generated by the model that is meant to be executed, and the result returned to the model.
21+
* Generated when using the [FunctionDeclaration] tool and [FunctionCallingConfig] mode is set to
22+
* [Mode.CODE].
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Firebase ML API. For a detailed explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudAiplatformV1beta1ExecutableCode extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. The code to be executed.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String code;
40+
41+
/**
42+
* Required. Programming language of the `code`.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String language;
47+
48+
/**
49+
* Required. The code to be executed.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getCode() {
53+
return code;
54+
}
55+
56+
/**
57+
* Required. The code to be executed.
58+
* @param code code or {@code null} for none
59+
*/
60+
public GoogleCloudAiplatformV1beta1ExecutableCode setCode(java.lang.String code) {
61+
this.code = code;
62+
return this;
63+
}
64+
65+
/**
66+
* Required. Programming language of the `code`.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.lang.String getLanguage() {
70+
return language;
71+
}
72+
73+
/**
74+
* Required. Programming language of the `code`.
75+
* @param language language or {@code null} for none
76+
*/
77+
public GoogleCloudAiplatformV1beta1ExecutableCode setLanguage(java.lang.String language) {
78+
this.language = language;
79+
return this;
80+
}
81+
82+
@Override
83+
public GoogleCloudAiplatformV1beta1ExecutableCode set(String fieldName, Object value) {
84+
return (GoogleCloudAiplatformV1beta1ExecutableCode) super.set(fieldName, value);
85+
}
86+
87+
@Override
88+
public GoogleCloudAiplatformV1beta1ExecutableCode clone() {
89+
return (GoogleCloudAiplatformV1beta1ExecutableCode) super.clone();
90+
}
91+
92+
}

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Text of the attribution.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String text;
38+
3239
/**
3340
* Title of the attribution.
3441
* The value may be {@code null}.
@@ -43,6 +50,23 @@ public final class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext ex
4350
@com.google.api.client.util.Key
4451
private java.lang.String uri;
4552

53+
/**
54+
* Text of the attribution.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.String getText() {
58+
return text;
59+
}
60+
61+
/**
62+
* Text of the attribution.
63+
* @param text text or {@code null} for none
64+
*/
65+
public GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext setText(java.lang.String text) {
66+
this.text = text;
67+
return this;
68+
}
69+
4670
/**
4771
* Title of the attribution.
4872
* @return value or {@code null} for none

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1Part.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@
3232
@SuppressWarnings("javadoc")
3333
public final class GoogleCloudAiplatformV1beta1Part extends com.google.api.client.json.GenericJson {
3434

35+
/**
36+
* Optional. Result of executing the [ExecutableCode].
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private GoogleCloudAiplatformV1beta1CodeExecutionResult codeExecutionResult;
41+
42+
/**
43+
* Optional. Code generated by the model that is meant to be executed.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private GoogleCloudAiplatformV1beta1ExecutableCode executableCode;
48+
3549
/**
3650
* Optional. URI based data.
3751
* The value may be {@code null}.
@@ -78,6 +92,40 @@ public final class GoogleCloudAiplatformV1beta1Part extends com.google.api.clien
7892
@com.google.api.client.util.Key
7993
private GoogleCloudAiplatformV1beta1VideoMetadata videoMetadata;
8094

95+
/**
96+
* Optional. Result of executing the [ExecutableCode].
97+
* @return value or {@code null} for none
98+
*/
99+
public GoogleCloudAiplatformV1beta1CodeExecutionResult getCodeExecutionResult() {
100+
return codeExecutionResult;
101+
}
102+
103+
/**
104+
* Optional. Result of executing the [ExecutableCode].
105+
* @param codeExecutionResult codeExecutionResult or {@code null} for none
106+
*/
107+
public GoogleCloudAiplatformV1beta1Part setCodeExecutionResult(GoogleCloudAiplatformV1beta1CodeExecutionResult codeExecutionResult) {
108+
this.codeExecutionResult = codeExecutionResult;
109+
return this;
110+
}
111+
112+
/**
113+
* Optional. Code generated by the model that is meant to be executed.
114+
* @return value or {@code null} for none
115+
*/
116+
public GoogleCloudAiplatformV1beta1ExecutableCode getExecutableCode() {
117+
return executableCode;
118+
}
119+
120+
/**
121+
* Optional. Code generated by the model that is meant to be executed.
122+
* @param executableCode executableCode or {@code null} for none
123+
*/
124+
public GoogleCloudAiplatformV1beta1Part setExecutableCode(GoogleCloudAiplatformV1beta1ExecutableCode executableCode) {
125+
this.executableCode = executableCode;
126+
return this;
127+
}
128+
81129
/**
82130
* Optional. URI based data.
83131
* @return value or {@code null} for none

clients/google-api-services-firebaseml/v2beta/2.0.0/com/google/api/services/firebaseml/v2beta/model/GoogleCloudAiplatformV1beta1Tool.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
@SuppressWarnings("javadoc")
3333
public final class GoogleCloudAiplatformV1beta1Tool extends com.google.api.client.json.GenericJson {
3434

35+
/**
36+
* Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
37+
* This field is only used by the Gemini Developer API services.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private GoogleCloudAiplatformV1beta1ToolCodeExecution codeExecution;
42+
3543
/**
3644
* Optional. Function tool type. One or more function declarations to be passed to the model along
3745
* with the current user query. Model may decide to call a subset of these functions by populating
@@ -66,6 +74,25 @@ public final class GoogleCloudAiplatformV1beta1Tool extends com.google.api.clien
6674
@com.google.api.client.util.Key
6775
private GoogleCloudAiplatformV1beta1Retrieval retrieval;
6876

77+
/**
78+
* Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
79+
* This field is only used by the Gemini Developer API services.
80+
* @return value or {@code null} for none
81+
*/
82+
public GoogleCloudAiplatformV1beta1ToolCodeExecution getCodeExecution() {
83+
return codeExecution;
84+
}
85+
86+
/**
87+
* Optional. CodeExecution tool type. Enables the model to execute code as part of generation.
88+
* This field is only used by the Gemini Developer API services.
89+
* @param codeExecution codeExecution or {@code null} for none
90+
*/
91+
public GoogleCloudAiplatformV1beta1Tool setCodeExecution(GoogleCloudAiplatformV1beta1ToolCodeExecution codeExecution) {
92+
this.codeExecution = codeExecution;
93+
return this;
94+
}
95+
6996
/**
7097
* Optional. Function tool type. One or more function declarations to be passed to the model along
7198
* with the current user query. Model may decide to call a subset of these functions by populating
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.firebaseml.v2beta.model;
18+
19+
/**
20+
* Tool that executes code generated by the model, and automatically returns the result to the
21+
* model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this
22+
* tool.
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Firebase ML API. For a detailed explanation see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class GoogleCloudAiplatformV1beta1ToolCodeExecution extends com.google.api.client.json.GenericJson {
33+
34+
@Override
35+
public GoogleCloudAiplatformV1beta1ToolCodeExecution set(String fieldName, Object value) {
36+
return (GoogleCloudAiplatformV1beta1ToolCodeExecution) super.set(fieldName, value);
37+
}
38+
39+
@Override
40+
public GoogleCloudAiplatformV1beta1ToolCodeExecution clone() {
41+
return (GoogleCloudAiplatformV1beta1ToolCodeExecution) super.clone();
42+
}
43+
44+
}

0 commit comments

Comments
 (0)