Skip to content

Commit 8a6a8de

Browse files
1 parent 04f26be commit 8a6a8de

14 files changed

+608
-12
lines changed

clients/google-api-services-documentai/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-documentai</artifactId>
25-
<version>v1-rev20240615-2.0.0</version>
25+
<version>v1-rev20240716-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-documentai:v1-rev20240615-2.0.0'
38+
implementation 'com.google.apis:google-api-services-documentai:v1-rev20240716-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-documentai/v1/2.0.0/com/google/api/services/documentai/v1/model/GoogleCloudDocumentaiV1ProcessorVersion.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ public final class GoogleCloudDocumentaiV1ProcessorVersion extends com.google.ap
6060
@com.google.api.client.util.Key
6161
private GoogleCloudDocumentaiV1DocumentSchema documentSchema;
6262

63+
/**
64+
* Output only. Information about Generative AI model-based processor versions.
65+
* The value may be {@code null}.
66+
*/
67+
@com.google.api.client.util.Key
68+
private GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo genAiModelInfo;
69+
6370
/**
6471
* Output only. Denotes that this `ProcessorVersion` is managed by Google.
6572
* The value may be {@code null}.
@@ -192,6 +199,23 @@ public GoogleCloudDocumentaiV1ProcessorVersion setDocumentSchema(GoogleCloudDocu
192199
return this;
193200
}
194201

202+
/**
203+
* Output only. Information about Generative AI model-based processor versions.
204+
* @return value or {@code null} for none
205+
*/
206+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo getGenAiModelInfo() {
207+
return genAiModelInfo;
208+
}
209+
210+
/**
211+
* Output only. Information about Generative AI model-based processor versions.
212+
* @param genAiModelInfo genAiModelInfo or {@code null} for none
213+
*/
214+
public GoogleCloudDocumentaiV1ProcessorVersion setGenAiModelInfo(GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo genAiModelInfo) {
215+
this.genAiModelInfo = genAiModelInfo;
216+
return this;
217+
}
218+
195219
/**
196220
* Output only. Denotes that this `ProcessorVersion` is managed by Google.
197221
* @return value or {@code null} for none
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.documentai.v1.model;
18+
19+
/**
20+
* Information about Generative AI model-based processor versions.
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 Cloud Document AI API. For a detailed explanation
24+
* 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 GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Information for a custom Generative AI model created by the user.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo customGenAiModelInfo;
39+
40+
/**
41+
* Information for a pretrained Google-managed foundation model.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo foundationGenAiModelInfo;
46+
47+
/**
48+
* Information for a custom Generative AI model created by the user.
49+
* @return value or {@code null} for none
50+
*/
51+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo getCustomGenAiModelInfo() {
52+
return customGenAiModelInfo;
53+
}
54+
55+
/**
56+
* Information for a custom Generative AI model created by the user.
57+
* @param customGenAiModelInfo customGenAiModelInfo or {@code null} for none
58+
*/
59+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo setCustomGenAiModelInfo(GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo customGenAiModelInfo) {
60+
this.customGenAiModelInfo = customGenAiModelInfo;
61+
return this;
62+
}
63+
64+
/**
65+
* Information for a pretrained Google-managed foundation model.
66+
* @return value or {@code null} for none
67+
*/
68+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo getFoundationGenAiModelInfo() {
69+
return foundationGenAiModelInfo;
70+
}
71+
72+
/**
73+
* Information for a pretrained Google-managed foundation model.
74+
* @param foundationGenAiModelInfo foundationGenAiModelInfo or {@code null} for none
75+
*/
76+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo setFoundationGenAiModelInfo(GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo foundationGenAiModelInfo) {
77+
this.foundationGenAiModelInfo = foundationGenAiModelInfo;
78+
return this;
79+
}
80+
81+
@Override
82+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo set(String fieldName, Object value) {
83+
return (GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo clone() {
88+
return (GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo) super.clone();
89+
}
90+
91+
}
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.documentai.v1.model;
18+
19+
/**
20+
* Information for a custom Generative AI model created by the user. These are created with `Create
21+
* New Version` in either the `Call foundation model` or `Fine tuning` tabs.
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 Cloud Document AI API. For a detailed explanation
25+
* 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 GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* The base processor version ID for the custom model.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String baseProcessorVersionId;
40+
41+
/**
42+
* The type of custom model created by the user.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String customModelType;
47+
48+
/**
49+
* The base processor version ID for the custom model.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getBaseProcessorVersionId() {
53+
return baseProcessorVersionId;
54+
}
55+
56+
/**
57+
* The base processor version ID for the custom model.
58+
* @param baseProcessorVersionId baseProcessorVersionId or {@code null} for none
59+
*/
60+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo setBaseProcessorVersionId(java.lang.String baseProcessorVersionId) {
61+
this.baseProcessorVersionId = baseProcessorVersionId;
62+
return this;
63+
}
64+
65+
/**
66+
* The type of custom model created by the user.
67+
* @return value or {@code null} for none
68+
*/
69+
public java.lang.String getCustomModelType() {
70+
return customModelType;
71+
}
72+
73+
/**
74+
* The type of custom model created by the user.
75+
* @param customModelType customModelType or {@code null} for none
76+
*/
77+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo setCustomModelType(java.lang.String customModelType) {
78+
this.customModelType = customModelType;
79+
return this;
80+
}
81+
82+
@Override
83+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo set(String fieldName, Object value) {
84+
return (GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo) super.set(fieldName, value);
85+
}
86+
87+
@Override
88+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo clone() {
89+
return (GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo) super.clone();
90+
}
91+
92+
}
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.documentai.v1.model;
18+
19+
/**
20+
* Information for a pretrained Google-managed foundation model.
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 Cloud Document AI API. For a detailed explanation
24+
* 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 GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Whether finetuning is allowed for this base processor version.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean finetuningAllowed;
39+
40+
/**
41+
* The minimum number of labeled documents in the training dataset required for finetuning.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.Integer minTrainLabeledDocuments;
46+
47+
/**
48+
* Whether finetuning is allowed for this base processor version.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.Boolean getFinetuningAllowed() {
52+
return finetuningAllowed;
53+
}
54+
55+
/**
56+
* Whether finetuning is allowed for this base processor version.
57+
* @param finetuningAllowed finetuningAllowed or {@code null} for none
58+
*/
59+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo setFinetuningAllowed(java.lang.Boolean finetuningAllowed) {
60+
this.finetuningAllowed = finetuningAllowed;
61+
return this;
62+
}
63+
64+
/**
65+
* The minimum number of labeled documents in the training dataset required for finetuning.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.Integer getMinTrainLabeledDocuments() {
69+
return minTrainLabeledDocuments;
70+
}
71+
72+
/**
73+
* The minimum number of labeled documents in the training dataset required for finetuning.
74+
* @param minTrainLabeledDocuments minTrainLabeledDocuments or {@code null} for none
75+
*/
76+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo setMinTrainLabeledDocuments(java.lang.Integer minTrainLabeledDocuments) {
77+
this.minTrainLabeledDocuments = minTrainLabeledDocuments;
78+
return this;
79+
}
80+
81+
@Override
82+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo set(String fieldName, Object value) {
83+
return (GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo clone() {
88+
return (GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo) super.clone();
89+
}
90+
91+
}

clients/google-api-services-documentai/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-documentai</artifactId>
11-
<version>v1-rev20240615-2.0.0</version>
12-
<name>Cloud Document AI API v1-rev20240615-2.0.0</name>
11+
<version>v1-rev20240716-2.0.0</version>
12+
<name>Cloud Document AI API v1-rev20240716-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-documentai/v1/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-documentai</artifactId>
25-
<version>v1-rev20240615-2.0.0</version>
25+
<version>v1-rev20240716-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-documentai:v1-rev20240615-2.0.0'
38+
implementation 'com.google.apis:google-api-services-documentai:v1-rev20240716-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-documentai/v1beta3/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-documentai</artifactId>
25-
<version>v1beta3-rev20240615-2.0.0</version>
25+
<version>v1beta3-rev20240716-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-documentai:v1beta3-rev20240615-2.0.0'
38+
implementation 'com.google.apis:google-api-services-documentai:v1beta3-rev20240716-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)