Skip to content

Commit bb04e55

Browse files
1 parent caf86c9 commit bb04e55

14 files changed

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

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,40 @@ public final class GoogleCloudDocumentaiV1Document extends com.google.api.client
6969
@com.google.api.client.util.Key
7070
private java.util.List<GoogleCloudDocumentaiV1DocumentEntity> entities;
7171

72+
/**
73+
* The entity revision id that `document.entities` field is based on. If this field is set and
74+
* `entities_revisions` is not empty, the entities in `document.entities` field are the entities
75+
* in the entity revision with this id and `document.entity_validation_output` field is the
76+
* `entity_validation_output` field in this entity revision.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.String entitiesRevisionId;
81+
82+
/**
83+
* A list of entity revisions. The entity revisions are appended to the document in the processing
84+
* order. This field can be used for comparing the entity extraction results at different stages
85+
* of the processing.
86+
* The value may be {@code null}.
87+
*/
88+
@com.google.api.client.util.Key
89+
private java.util.List<GoogleCloudDocumentaiV1DocumentEntitiesRevision> entitiesRevisions;
90+
7291
/**
7392
* Placeholder. Relationship among Document.entities.
7493
* The value may be {@code null}.
7594
*/
7695
@com.google.api.client.util.Key
7796
private java.util.List<GoogleCloudDocumentaiV1DocumentEntityRelation> entityRelations;
7897

98+
/**
99+
* The entity validation output for the document. This is the validation output for
100+
* `document.entities` field.
101+
* The value may be {@code null}.
102+
*/
103+
@com.google.api.client.util.Key
104+
private GoogleCloudDocumentaiV1DocumentEntityValidationOutput entityValidationOutput;
105+
79106
/**
80107
* Any error that occurred while processing this document.
81108
* The value may be {@code null}.
@@ -264,6 +291,50 @@ public GoogleCloudDocumentaiV1Document setEntities(java.util.List<GoogleCloudDoc
264291
return this;
265292
}
266293

294+
/**
295+
* The entity revision id that `document.entities` field is based on. If this field is set and
296+
* `entities_revisions` is not empty, the entities in `document.entities` field are the entities
297+
* in the entity revision with this id and `document.entity_validation_output` field is the
298+
* `entity_validation_output` field in this entity revision.
299+
* @return value or {@code null} for none
300+
*/
301+
public java.lang.String getEntitiesRevisionId() {
302+
return entitiesRevisionId;
303+
}
304+
305+
/**
306+
* The entity revision id that `document.entities` field is based on. If this field is set and
307+
* `entities_revisions` is not empty, the entities in `document.entities` field are the entities
308+
* in the entity revision with this id and `document.entity_validation_output` field is the
309+
* `entity_validation_output` field in this entity revision.
310+
* @param entitiesRevisionId entitiesRevisionId or {@code null} for none
311+
*/
312+
public GoogleCloudDocumentaiV1Document setEntitiesRevisionId(java.lang.String entitiesRevisionId) {
313+
this.entitiesRevisionId = entitiesRevisionId;
314+
return this;
315+
}
316+
317+
/**
318+
* A list of entity revisions. The entity revisions are appended to the document in the processing
319+
* order. This field can be used for comparing the entity extraction results at different stages
320+
* of the processing.
321+
* @return value or {@code null} for none
322+
*/
323+
public java.util.List<GoogleCloudDocumentaiV1DocumentEntitiesRevision> getEntitiesRevisions() {
324+
return entitiesRevisions;
325+
}
326+
327+
/**
328+
* A list of entity revisions. The entity revisions are appended to the document in the processing
329+
* order. This field can be used for comparing the entity extraction results at different stages
330+
* of the processing.
331+
* @param entitiesRevisions entitiesRevisions or {@code null} for none
332+
*/
333+
public GoogleCloudDocumentaiV1Document setEntitiesRevisions(java.util.List<GoogleCloudDocumentaiV1DocumentEntitiesRevision> entitiesRevisions) {
334+
this.entitiesRevisions = entitiesRevisions;
335+
return this;
336+
}
337+
267338
/**
268339
* Placeholder. Relationship among Document.entities.
269340
* @return value or {@code null} for none
@@ -281,6 +352,25 @@ public GoogleCloudDocumentaiV1Document setEntityRelations(java.util.List<GoogleC
281352
return this;
282353
}
283354

355+
/**
356+
* The entity validation output for the document. This is the validation output for
357+
* `document.entities` field.
358+
* @return value or {@code null} for none
359+
*/
360+
public GoogleCloudDocumentaiV1DocumentEntityValidationOutput getEntityValidationOutput() {
361+
return entityValidationOutput;
362+
}
363+
364+
/**
365+
* The entity validation output for the document. This is the validation output for
366+
* `document.entities` field.
367+
* @param entityValidationOutput entityValidationOutput or {@code null} for none
368+
*/
369+
public GoogleCloudDocumentaiV1Document setEntityValidationOutput(GoogleCloudDocumentaiV1DocumentEntityValidationOutput entityValidationOutput) {
370+
this.entityValidationOutput = entityValidationOutput;
371+
return this;
372+
}
373+
284374
/**
285375
* Any error that occurred while processing this document.
286376
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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+
* Entity revision.
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 GoogleCloudDocumentaiV1DocumentEntitiesRevision extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The entities in this revision.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<GoogleCloudDocumentaiV1DocumentEntity> entities;
39+
40+
/**
41+
* The entity validation output for this revision.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GoogleCloudDocumentaiV1DocumentEntityValidationOutput entityValidationOutput;
46+
47+
/**
48+
* The revision id.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.String revisionId;
53+
54+
/**
55+
* The entities in this revision.
56+
* @return value or {@code null} for none
57+
*/
58+
public java.util.List<GoogleCloudDocumentaiV1DocumentEntity> getEntities() {
59+
return entities;
60+
}
61+
62+
/**
63+
* The entities in this revision.
64+
* @param entities entities or {@code null} for none
65+
*/
66+
public GoogleCloudDocumentaiV1DocumentEntitiesRevision setEntities(java.util.List<GoogleCloudDocumentaiV1DocumentEntity> entities) {
67+
this.entities = entities;
68+
return this;
69+
}
70+
71+
/**
72+
* The entity validation output for this revision.
73+
* @return value or {@code null} for none
74+
*/
75+
public GoogleCloudDocumentaiV1DocumentEntityValidationOutput getEntityValidationOutput() {
76+
return entityValidationOutput;
77+
}
78+
79+
/**
80+
* The entity validation output for this revision.
81+
* @param entityValidationOutput entityValidationOutput or {@code null} for none
82+
*/
83+
public GoogleCloudDocumentaiV1DocumentEntitiesRevision setEntityValidationOutput(GoogleCloudDocumentaiV1DocumentEntityValidationOutput entityValidationOutput) {
84+
this.entityValidationOutput = entityValidationOutput;
85+
return this;
86+
}
87+
88+
/**
89+
* The revision id.
90+
* @return value or {@code null} for none
91+
*/
92+
public java.lang.String getRevisionId() {
93+
return revisionId;
94+
}
95+
96+
/**
97+
* The revision id.
98+
* @param revisionId revisionId or {@code null} for none
99+
*/
100+
public GoogleCloudDocumentaiV1DocumentEntitiesRevision setRevisionId(java.lang.String revisionId) {
101+
this.revisionId = revisionId;
102+
return this;
103+
}
104+
105+
@Override
106+
public GoogleCloudDocumentaiV1DocumentEntitiesRevision set(String fieldName, Object value) {
107+
return (GoogleCloudDocumentaiV1DocumentEntitiesRevision) super.set(fieldName, value);
108+
}
109+
110+
@Override
111+
public GoogleCloudDocumentaiV1DocumentEntitiesRevision clone() {
112+
return (GoogleCloudDocumentaiV1DocumentEntitiesRevision) super.clone();
113+
}
114+
115+
}
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+
* The output of the validation given the document and the validation rules.
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 GoogleCloudDocumentaiV1DocumentEntityValidationOutput extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The overall result of the validation, true if all applicable rules are valid.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean passAllRules;
39+
40+
/**
41+
* The result of each validation rule.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult> validationResults;
46+
47+
/**
48+
* The overall result of the validation, true if all applicable rules are valid.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.Boolean getPassAllRules() {
52+
return passAllRules;
53+
}
54+
55+
/**
56+
* The overall result of the validation, true if all applicable rules are valid.
57+
* @param passAllRules passAllRules or {@code null} for none
58+
*/
59+
public GoogleCloudDocumentaiV1DocumentEntityValidationOutput setPassAllRules(java.lang.Boolean passAllRules) {
60+
this.passAllRules = passAllRules;
61+
return this;
62+
}
63+
64+
/**
65+
* The result of each validation rule.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.util.List<GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult> getValidationResults() {
69+
return validationResults;
70+
}
71+
72+
/**
73+
* The result of each validation rule.
74+
* @param validationResults validationResults or {@code null} for none
75+
*/
76+
public GoogleCloudDocumentaiV1DocumentEntityValidationOutput setValidationResults(java.util.List<GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult> validationResults) {
77+
this.validationResults = validationResults;
78+
return this;
79+
}
80+
81+
@Override
82+
public GoogleCloudDocumentaiV1DocumentEntityValidationOutput set(String fieldName, Object value) {
83+
return (GoogleCloudDocumentaiV1DocumentEntityValidationOutput) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public GoogleCloudDocumentaiV1DocumentEntityValidationOutput clone() {
88+
return (GoogleCloudDocumentaiV1DocumentEntityValidationOutput) super.clone();
89+
}
90+
91+
}

0 commit comments

Comments
 (0)