Skip to content

Commit 1915574

Browse files
1 parent 566d836 commit 1915574

17 files changed

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

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public final class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty exten
3737
@com.google.api.client.util.Key
3838
private java.lang.String displayName;
3939

40+
/**
41+
* Grounding config of the entity type.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String groundingConfig;
46+
4047
/**
4148
* The name of the property. Follows the same guidelines as the EntityType name.
4249
* The value may be {@code null}.
@@ -76,6 +83,23 @@ public GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty setDisplayName(ja
7683
return this;
7784
}
7885

86+
/**
87+
* Grounding config of the entity type.
88+
* @return value or {@code null} for none
89+
*/
90+
public java.lang.String getGroundingConfig() {
91+
return groundingConfig;
92+
}
93+
94+
/**
95+
* Grounding config of the entity type.
96+
* @param groundingConfig groundingConfig or {@code null} for none
97+
*/
98+
public GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty setGroundingConfig(java.lang.String groundingConfig) {
99+
this.groundingConfig = groundingConfig;
100+
return this;
101+
}
102+
79103
/**
80104
* The name of the property. Follows the same guidelines as the EntityType name.
81105
* @return value or {@code null} for none

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-rev20250416-2.0.0</version>
12-
<name>Cloud Document AI API v1-rev20250416-2.0.0</name>
11+
<version>v1-rev20250421-2.0.0</version>
12+
<name>Cloud Document AI API v1-rev20250421-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-rev20250416-2.0.0</version>
25+
<version>v1-rev20250421-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-rev20250416-2.0.0'
38+
implementation 'com.google.apis:google-api-services-documentai:v1-rev20250421-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-rev20250416-2.0.0</version>
25+
<version>v1beta3-rev20250421-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-rev20250416-2.0.0'
38+
implementation 'com.google.apis:google-api-services-documentai:v1beta3-rev20250421-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-documentai/v1beta3/2.0.0/com/google/api/services/documentai/v1beta3/model/GoogleCloudDocumentaiV1beta3Document.java

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

35+
/**
36+
* Optional. The blob assets in this document. This is used to store the content of the inline
37+
* blobs in this document, e.g. image bytes, such that it can be referenced by other fields in the
38+
* document via asset id.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.util.List<GoogleCloudDocumentaiV1beta3DocumentBlobAsset> blobAssets;
43+
3544
/**
3645
* Document chunked based on chunking config.
3746
* The value may be {@code null}.
@@ -145,6 +154,27 @@ public final class GoogleCloudDocumentaiV1beta3Document extends com.google.api.c
145154
@com.google.api.client.util.Key
146155
private java.lang.String uri;
147156

157+
/**
158+
* Optional. The blob assets in this document. This is used to store the content of the inline
159+
* blobs in this document, e.g. image bytes, such that it can be referenced by other fields in the
160+
* document via asset id.
161+
* @return value or {@code null} for none
162+
*/
163+
public java.util.List<GoogleCloudDocumentaiV1beta3DocumentBlobAsset> getBlobAssets() {
164+
return blobAssets;
165+
}
166+
167+
/**
168+
* Optional. The blob assets in this document. This is used to store the content of the inline
169+
* blobs in this document, e.g. image bytes, such that it can be referenced by other fields in the
170+
* document via asset id.
171+
* @param blobAssets blobAssets or {@code null} for none
172+
*/
173+
public GoogleCloudDocumentaiV1beta3Document setBlobAssets(java.util.List<GoogleCloudDocumentaiV1beta3DocumentBlobAsset> blobAssets) {
174+
this.blobAssets = blobAssets;
175+
return this;
176+
}
177+
148178
/**
149179
* Document chunked based on chunking config.
150180
* @return value or {@code null} for none
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.v1beta3.model;
18+
19+
/**
20+
* Represents the annotation of a block or a chunk.
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 GoogleCloudDocumentaiV1beta3DocumentAnnotations extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The description of the content with this annotation.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String description;
39+
40+
/**
41+
* The description of the content with this annotation.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getDescription() {
45+
return description;
46+
}
47+
48+
/**
49+
* The description of the content with this annotation.
50+
* @param description description or {@code null} for none
51+
*/
52+
public GoogleCloudDocumentaiV1beta3DocumentAnnotations setDescription(java.lang.String description) {
53+
this.description = description;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudDocumentaiV1beta3DocumentAnnotations set(String fieldName, Object value) {
59+
return (GoogleCloudDocumentaiV1beta3DocumentAnnotations) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudDocumentaiV1beta3DocumentAnnotations clone() {
64+
return (GoogleCloudDocumentaiV1beta3DocumentAnnotations) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
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.v1beta3.model;
18+
19+
/**
20+
* Represents a blob asset. It's used to store the content of the inline blob in this document, e.g.
21+
* image bytes, such that it can be referenced by other fields in the document via asset id.
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 GoogleCloudDocumentaiV1beta3DocumentBlobAsset extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Optional. The id of the blob asset.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String assetId;
40+
41+
/**
42+
* Optional. The content of the blob asset, e.g. image bytes.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String content;
47+
48+
/**
49+
* The mime type of the blob asset. An IANA published [media type (MIME
50+
* type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String mimeType;
55+
56+
/**
57+
* Optional. The id of the blob asset.
58+
* @return value or {@code null} for none
59+
*/
60+
public java.lang.String getAssetId() {
61+
return assetId;
62+
}
63+
64+
/**
65+
* Optional. The id of the blob asset.
66+
* @param assetId assetId or {@code null} for none
67+
*/
68+
public GoogleCloudDocumentaiV1beta3DocumentBlobAsset setAssetId(java.lang.String assetId) {
69+
this.assetId = assetId;
70+
return this;
71+
}
72+
73+
/**
74+
* Optional. The content of the blob asset, e.g. image bytes.
75+
* @see #decodeContent()
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getContent() {
79+
return content;
80+
}
81+
82+
/**
83+
* Optional. The content of the blob asset, e.g. image bytes.
84+
* @see #getContent()
85+
* @return Base64 decoded value or {@code null} for none
86+
*
87+
* @since 1.14
88+
*/
89+
public byte[] decodeContent() {
90+
return com.google.api.client.util.Base64.decodeBase64(content);
91+
}
92+
93+
/**
94+
* Optional. The content of the blob asset, e.g. image bytes.
95+
* @see #encodeContent()
96+
* @param content content or {@code null} for none
97+
*/
98+
public GoogleCloudDocumentaiV1beta3DocumentBlobAsset setContent(java.lang.String content) {
99+
this.content = content;
100+
return this;
101+
}
102+
103+
/**
104+
* Optional. The content of the blob asset, e.g. image bytes.
105+
* @see #setContent()
106+
*
107+
* <p>
108+
* The value is encoded Base64 or {@code null} for none.
109+
* </p>
110+
*
111+
* @since 1.14
112+
*/
113+
public GoogleCloudDocumentaiV1beta3DocumentBlobAsset encodeContent(byte[] content) {
114+
this.content = com.google.api.client.util.Base64.encodeBase64URLSafeString(content);
115+
return this;
116+
}
117+
118+
/**
119+
* The mime type of the blob asset. An IANA published [media type (MIME
120+
* type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
121+
* @return value or {@code null} for none
122+
*/
123+
public java.lang.String getMimeType() {
124+
return mimeType;
125+
}
126+
127+
/**
128+
* The mime type of the blob asset. An IANA published [media type (MIME
129+
* type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
130+
* @param mimeType mimeType or {@code null} for none
131+
*/
132+
public GoogleCloudDocumentaiV1beta3DocumentBlobAsset setMimeType(java.lang.String mimeType) {
133+
this.mimeType = mimeType;
134+
return this;
135+
}
136+
137+
@Override
138+
public GoogleCloudDocumentaiV1beta3DocumentBlobAsset set(String fieldName, Object value) {
139+
return (GoogleCloudDocumentaiV1beta3DocumentBlobAsset) super.set(fieldName, value);
140+
}
141+
142+
@Override
143+
public GoogleCloudDocumentaiV1beta3DocumentBlobAsset clone() {
144+
return (GoogleCloudDocumentaiV1beta3DocumentBlobAsset) super.clone();
145+
}
146+
147+
}

0 commit comments

Comments
 (0)