Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 94c7898

Browse files
Merge 77c7a77 into 2f341a1
2 parents 2f341a1 + 77c7a77 commit 94c7898

9 files changed

Lines changed: 539 additions & 7 deletions

File tree

proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/Document.java

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34360,6 +34360,24 @@ public SourceCase getSourceCase() {
3436034360
}
3436134361

3436234362
public static final int URI_FIELD_NUMBER = 1;
34363+
/**
34364+
*
34365+
*
34366+
* <pre>
34367+
* Currently supports Google Cloud Storage URI of the form
34368+
* `gs://bucket_name/object_name`. Object versioning is not supported.
34369+
* See [Google Cloud Storage Request
34370+
* URIs](https://cloud.google.com/storage/docs/reference-uris) for more
34371+
* info.
34372+
* </pre>
34373+
*
34374+
* <code>string uri = 1;</code>
34375+
*
34376+
* @return Whether the uri field is set.
34377+
*/
34378+
public boolean hasUri() {
34379+
return sourceCase_ == 1;
34380+
}
3436334381
/**
3436434382
*
3436534383
*
@@ -34424,6 +34442,23 @@ public com.google.protobuf.ByteString getUriBytes() {
3442434442
}
3442534443

3442634444
public static final int CONTENT_FIELD_NUMBER = 2;
34445+
/**
34446+
*
34447+
*
34448+
* <pre>
34449+
* Inline document content, represented as a stream of bytes.
34450+
* Note: As with all `bytes` fields, protobuffers use a pure binary
34451+
* representation, whereas JSON representations use base64.
34452+
* </pre>
34453+
*
34454+
* <code>bytes content = 2;</code>
34455+
*
34456+
* @return Whether the content field is set.
34457+
*/
34458+
@java.lang.Override
34459+
public boolean hasContent() {
34460+
return sourceCase_ == 2;
34461+
}
3442734462
/**
3442834463
*
3442934464
*
@@ -35646,6 +35681,25 @@ public Builder clearSource() {
3564635681

3564735682
private int bitField0_;
3564835683

35684+
/**
35685+
*
35686+
*
35687+
* <pre>
35688+
* Currently supports Google Cloud Storage URI of the form
35689+
* `gs://bucket_name/object_name`. Object versioning is not supported.
35690+
* See [Google Cloud Storage Request
35691+
* URIs](https://cloud.google.com/storage/docs/reference-uris) for more
35692+
* info.
35693+
* </pre>
35694+
*
35695+
* <code>string uri = 1;</code>
35696+
*
35697+
* @return Whether the uri field is set.
35698+
*/
35699+
@java.lang.Override
35700+
public boolean hasUri() {
35701+
return sourceCase_ == 1;
35702+
}
3564935703
/**
3565035704
*
3565135705
*
@@ -35785,6 +35839,22 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
3578535839
return this;
3578635840
}
3578735841

35842+
/**
35843+
*
35844+
*
35845+
* <pre>
35846+
* Inline document content, represented as a stream of bytes.
35847+
* Note: As with all `bytes` fields, protobuffers use a pure binary
35848+
* representation, whereas JSON representations use base64.
35849+
* </pre>
35850+
*
35851+
* <code>bytes content = 2;</code>
35852+
*
35853+
* @return Whether the content field is set.
35854+
*/
35855+
public boolean hasContent() {
35856+
return sourceCase_ == 2;
35857+
}
3578835858
/**
3578935859
*
3579035860
*

proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentOrBuilder.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ public interface DocumentOrBuilder
2323
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta1.Document)
2424
com.google.protobuf.MessageOrBuilder {
2525

26+
/**
27+
*
28+
*
29+
* <pre>
30+
* Currently supports Google Cloud Storage URI of the form
31+
* `gs://bucket_name/object_name`. Object versioning is not supported.
32+
* See [Google Cloud Storage Request
33+
* URIs](https://cloud.google.com/storage/docs/reference-uris) for more
34+
* info.
35+
* </pre>
36+
*
37+
* <code>string uri = 1;</code>
38+
*
39+
* @return Whether the uri field is set.
40+
*/
41+
boolean hasUri();
2642
/**
2743
*
2844
*
@@ -56,6 +72,20 @@ public interface DocumentOrBuilder
5672
*/
5773
com.google.protobuf.ByteString getUriBytes();
5874

75+
/**
76+
*
77+
*
78+
* <pre>
79+
* Inline document content, represented as a stream of bytes.
80+
* Note: As with all `bytes` fields, protobuffers use a pure binary
81+
* representation, whereas JSON representations use base64.
82+
* </pre>
83+
*
84+
* <code>bytes content = 2;</code>
85+
*
86+
* @return Whether the content field is set.
87+
*/
88+
boolean hasContent();
5989
/**
6090
*
6191
*

proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/Document.java

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,21 @@ public interface LabelOrBuilder
10251025
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta2.Document.Label)
10261026
com.google.protobuf.MessageOrBuilder {
10271027

1028+
/**
1029+
*
1030+
*
1031+
* <pre>
1032+
* Label is generated AutoML model. This field stores the full resource
1033+
* name of the AutoML model.
1034+
* Format:
1035+
* `projects/{project-id}/locations/{location-id}/models/{model-id}`
1036+
* </pre>
1037+
*
1038+
* <code>string automl_model = 2;</code>
1039+
*
1040+
* @return Whether the automlModel field is set.
1041+
*/
1042+
boolean hasAutomlModel();
10281043
/**
10291044
*
10301045
*
@@ -1253,6 +1268,23 @@ public SourceCase getSourceCase() {
12531268
}
12541269

12551270
public static final int AUTOML_MODEL_FIELD_NUMBER = 2;
1271+
/**
1272+
*
1273+
*
1274+
* <pre>
1275+
* Label is generated AutoML model. This field stores the full resource
1276+
* name of the AutoML model.
1277+
* Format:
1278+
* `projects/{project-id}/locations/{location-id}/models/{model-id}`
1279+
* </pre>
1280+
*
1281+
* <code>string automl_model = 2;</code>
1282+
*
1283+
* @return Whether the automlModel field is set.
1284+
*/
1285+
public boolean hasAutomlModel() {
1286+
return sourceCase_ == 2;
1287+
}
12561288
/**
12571289
*
12581290
*
@@ -1781,6 +1813,24 @@ public Builder clearSource() {
17811813
return this;
17821814
}
17831815

1816+
/**
1817+
*
1818+
*
1819+
* <pre>
1820+
* Label is generated AutoML model. This field stores the full resource
1821+
* name of the AutoML model.
1822+
* Format:
1823+
* `projects/{project-id}/locations/{location-id}/models/{model-id}`
1824+
* </pre>
1825+
*
1826+
* <code>string automl_model = 2;</code>
1827+
*
1828+
* @return Whether the automlModel field is set.
1829+
*/
1830+
@java.lang.Override
1831+
public boolean hasAutomlModel() {
1832+
return sourceCase_ == 2;
1833+
}
17841834
/**
17851835
*
17861836
*
@@ -39378,6 +39428,24 @@ public SourceCase getSourceCase() {
3937839428
}
3937939429

3938039430
public static final int URI_FIELD_NUMBER = 1;
39431+
/**
39432+
*
39433+
*
39434+
* <pre>
39435+
* Currently supports Google Cloud Storage URI of the form
39436+
* `gs://bucket_name/object_name`. Object versioning is not supported.
39437+
* See [Google Cloud Storage Request
39438+
* URIs](https://cloud.google.com/storage/docs/reference-uris) for more
39439+
* info.
39440+
* </pre>
39441+
*
39442+
* <code>string uri = 1;</code>
39443+
*
39444+
* @return Whether the uri field is set.
39445+
*/
39446+
public boolean hasUri() {
39447+
return sourceCase_ == 1;
39448+
}
3938139449
/**
3938239450
*
3938339451
*
@@ -39442,6 +39510,23 @@ public com.google.protobuf.ByteString getUriBytes() {
3944239510
}
3944339511

3944439512
public static final int CONTENT_FIELD_NUMBER = 2;
39513+
/**
39514+
*
39515+
*
39516+
* <pre>
39517+
* Inline document content, represented as a stream of bytes.
39518+
* Note: As with all `bytes` fields, protobuffers use a pure binary
39519+
* representation, whereas JSON representations use base64.
39520+
* </pre>
39521+
*
39522+
* <code>bytes content = 2;</code>
39523+
*
39524+
* @return Whether the content field is set.
39525+
*/
39526+
@java.lang.Override
39527+
public boolean hasContent() {
39528+
return sourceCase_ == 2;
39529+
}
3944539530
/**
3944639531
*
3944739532
*
@@ -40767,6 +40852,25 @@ public Builder clearSource() {
4076740852

4076840853
private int bitField0_;
4076940854

40855+
/**
40856+
*
40857+
*
40858+
* <pre>
40859+
* Currently supports Google Cloud Storage URI of the form
40860+
* `gs://bucket_name/object_name`. Object versioning is not supported.
40861+
* See [Google Cloud Storage Request
40862+
* URIs](https://cloud.google.com/storage/docs/reference-uris) for more
40863+
* info.
40864+
* </pre>
40865+
*
40866+
* <code>string uri = 1;</code>
40867+
*
40868+
* @return Whether the uri field is set.
40869+
*/
40870+
@java.lang.Override
40871+
public boolean hasUri() {
40872+
return sourceCase_ == 1;
40873+
}
4077040874
/**
4077140875
*
4077240876
*
@@ -40906,6 +41010,22 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
4090641010
return this;
4090741011
}
4090841012

41013+
/**
41014+
*
41015+
*
41016+
* <pre>
41017+
* Inline document content, represented as a stream of bytes.
41018+
* Note: As with all `bytes` fields, protobuffers use a pure binary
41019+
* representation, whereas JSON representations use base64.
41020+
* </pre>
41021+
*
41022+
* <code>bytes content = 2;</code>
41023+
*
41024+
* @return Whether the content field is set.
41025+
*/
41026+
public boolean hasContent() {
41027+
return sourceCase_ == 2;
41028+
}
4090941029
/**
4091041030
*
4091141031
*

proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentOrBuilder.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ public interface DocumentOrBuilder
2323
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta2.Document)
2424
com.google.protobuf.MessageOrBuilder {
2525

26+
/**
27+
*
28+
*
29+
* <pre>
30+
* Currently supports Google Cloud Storage URI of the form
31+
* `gs://bucket_name/object_name`. Object versioning is not supported.
32+
* See [Google Cloud Storage Request
33+
* URIs](https://cloud.google.com/storage/docs/reference-uris) for more
34+
* info.
35+
* </pre>
36+
*
37+
* <code>string uri = 1;</code>
38+
*
39+
* @return Whether the uri field is set.
40+
*/
41+
boolean hasUri();
2642
/**
2743
*
2844
*
@@ -56,6 +72,20 @@ public interface DocumentOrBuilder
5672
*/
5773
com.google.protobuf.ByteString getUriBytes();
5874

75+
/**
76+
*
77+
*
78+
* <pre>
79+
* Inline document content, represented as a stream of bytes.
80+
* Note: As with all `bytes` fields, protobuffers use a pure binary
81+
* representation, whereas JSON representations use base64.
82+
* </pre>
83+
*
84+
* <code>bytes content = 2;</code>
85+
*
86+
* @return Whether the content field is set.
87+
*/
88+
boolean hasContent();
5989
/**
6090
*
6191
*

0 commit comments

Comments
 (0)