diff --git a/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/Document.java b/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/Document.java index 2e835ec3..e1ccdf35 100644 --- a/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/Document.java +++ b/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/Document.java @@ -34360,6 +34360,24 @@ public SourceCase getSourceCase() { } public static final int URI_FIELD_NUMBER = 1; + /** + * + * + *
+   * Currently supports Google Cloud Storage URI of the form
+   *    `gs://bucket_name/object_name`. Object versioning is not supported.
+   *    See [Google Cloud Storage Request
+   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+   *    info.
+   * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return sourceCase_ == 1; + } /** * * @@ -34424,6 +34442,23 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * Inline document content, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, protobuffers use a pure binary
+   * representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -35646,6 +35681,25 @@ public Builder clearSource() { private int bitField0_; + /** + * + * + *
+     * Currently supports Google Cloud Storage URI of the form
+     *    `gs://bucket_name/object_name`. Object versioning is not supported.
+     *    See [Google Cloud Storage Request
+     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+     *    info.
+     * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return sourceCase_ == 1; + } /** * * @@ -35785,6 +35839,22 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Inline document content, represented as a stream of bytes.
+     * Note: As with all `bytes` fields, protobuffers use a pure binary
+     * representation, whereas JSON representations use base64.
+     * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * diff --git a/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentOrBuilder.java b/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentOrBuilder.java index 1bbf6913..9a4a6f99 100644 --- a/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentOrBuilder.java +++ b/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentOrBuilder.java @@ -23,6 +23,22 @@ public interface DocumentOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta1.Document) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Currently supports Google Cloud Storage URI of the form
+   *    `gs://bucket_name/object_name`. Object versioning is not supported.
+   *    See [Google Cloud Storage Request
+   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+   *    info.
+   * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); /** * * @@ -56,6 +72,20 @@ public interface DocumentOrBuilder */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+   * Inline document content, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, protobuffers use a pure binary
+   * representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * diff --git a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/Document.java b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/Document.java index 7812032e..a4792d25 100644 --- a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/Document.java +++ b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/Document.java @@ -1025,6 +1025,21 @@ public interface LabelOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta2.Document.Label) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+     * Label is generated AutoML model. This field stores the full resource
+     * name of the AutoML model.
+     * Format:
+     * `projects/{project-id}/locations/{location-id}/models/{model-id}`
+     * 
+ * + * string automl_model = 2; + * + * @return Whether the automlModel field is set. + */ + boolean hasAutomlModel(); /** * * @@ -1253,6 +1268,23 @@ public SourceCase getSourceCase() { } public static final int AUTOML_MODEL_FIELD_NUMBER = 2; + /** + * + * + *
+     * Label is generated AutoML model. This field stores the full resource
+     * name of the AutoML model.
+     * Format:
+     * `projects/{project-id}/locations/{location-id}/models/{model-id}`
+     * 
+ * + * string automl_model = 2; + * + * @return Whether the automlModel field is set. + */ + public boolean hasAutomlModel() { + return sourceCase_ == 2; + } /** * * @@ -1781,6 +1813,24 @@ public Builder clearSource() { return this; } + /** + * + * + *
+       * Label is generated AutoML model. This field stores the full resource
+       * name of the AutoML model.
+       * Format:
+       * `projects/{project-id}/locations/{location-id}/models/{model-id}`
+       * 
+ * + * string automl_model = 2; + * + * @return Whether the automlModel field is set. + */ + @java.lang.Override + public boolean hasAutomlModel() { + return sourceCase_ == 2; + } /** * * @@ -39378,6 +39428,24 @@ public SourceCase getSourceCase() { } public static final int URI_FIELD_NUMBER = 1; + /** + * + * + *
+   * Currently supports Google Cloud Storage URI of the form
+   *    `gs://bucket_name/object_name`. Object versioning is not supported.
+   *    See [Google Cloud Storage Request
+   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+   *    info.
+   * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return sourceCase_ == 1; + } /** * * @@ -39442,6 +39510,23 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * Inline document content, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, protobuffers use a pure binary
+   * representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -40767,6 +40852,25 @@ public Builder clearSource() { private int bitField0_; + /** + * + * + *
+     * Currently supports Google Cloud Storage URI of the form
+     *    `gs://bucket_name/object_name`. Object versioning is not supported.
+     *    See [Google Cloud Storage Request
+     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+     *    info.
+     * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return sourceCase_ == 1; + } /** * * @@ -40906,6 +41010,22 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Inline document content, represented as a stream of bytes.
+     * Note: As with all `bytes` fields, protobuffers use a pure binary
+     * representation, whereas JSON representations use base64.
+     * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * diff --git a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentOrBuilder.java b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentOrBuilder.java index 308b55f6..d8304496 100644 --- a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentOrBuilder.java +++ b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentOrBuilder.java @@ -23,6 +23,22 @@ public interface DocumentOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta2.Document) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Currently supports Google Cloud Storage URI of the form
+   *    `gs://bucket_name/object_name`. Object versioning is not supported.
+   *    See [Google Cloud Storage Request
+   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+   *    info.
+   * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); /** * * @@ -56,6 +72,20 @@ public interface DocumentOrBuilder */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+   * Inline document content, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, protobuffers use a pure binary
+   * representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * diff --git a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfig.java b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfig.java index 15b661b9..bc316e1a 100644 --- a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfig.java +++ b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfig.java @@ -235,6 +235,24 @@ public com.google.cloud.documentai.v1beta2.GcsSourceOrBuilder getGcsSourceOrBuil } public static final int CONTENTS_FIELD_NUMBER = 3; + /** + * + * + *
+   * Content in bytes, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, proto buffer messages use a pure binary
+   * representation, whereas JSON representations use base64.
+   * This field only works for synchronous ProcessDocument method.
+   * 
+ * + * bytes contents = 3; + * + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return sourceCase_ == 3; + } /** * * @@ -931,6 +949,23 @@ public com.google.cloud.documentai.v1beta2.GcsSourceOrBuilder getGcsSourceOrBuil return gcsSourceBuilder_; } + /** + * + * + *
+     * Content in bytes, represented as a stream of bytes.
+     * Note: As with all `bytes` fields, proto buffer messages use a pure binary
+     * representation, whereas JSON representations use base64.
+     * This field only works for synchronous ProcessDocument method.
+     * 
+ * + * bytes contents = 3; + * + * @return Whether the contents field is set. + */ + public boolean hasContents() { + return sourceCase_ == 3; + } /** * * diff --git a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfigOrBuilder.java b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfigOrBuilder.java index 134e487c..f58772ce 100644 --- a/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfigOrBuilder.java +++ b/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/InputConfigOrBuilder.java @@ -61,6 +61,21 @@ public interface InputConfigOrBuilder */ com.google.cloud.documentai.v1beta2.GcsSourceOrBuilder getGcsSourceOrBuilder(); + /** + * + * + *
+   * Content in bytes, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, proto buffer messages use a pure binary
+   * representation, whereas JSON representations use base64.
+   * This field only works for synchronous ProcessDocument method.
+   * 
+ * + * bytes contents = 3; + * + * @return Whether the contents field is set. + */ + boolean hasContents(); /** * * diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java index 6379e3cb..a46de37d 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java @@ -34870,6 +34870,19 @@ public interface NormalizedValueOrBuilder */ com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder(); + /** + * + * + *
+       * Boolean value. Can be used for entities with binary values, or for
+       * checkboxes.
+       * 
+ * + * bool boolean_value = 6; + * + * @return Whether the booleanValue field is set. + */ + boolean hasBooleanValue(); /** * * @@ -35367,6 +35380,22 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() { } public static final int BOOLEAN_VALUE_FIELD_NUMBER = 6; + /** + * + * + *
+       * Boolean value. Can be used for entities with binary values, or for
+       * checkboxes.
+       * 
+ * + * bool boolean_value = 6; + * + * @return Whether the booleanValue field is set. + */ + @java.lang.Override + public boolean hasBooleanValue() { + return structuredValueCase_ == 6; + } /** * * @@ -36835,6 +36864,21 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() { return addressValueBuilder_; } + /** + * + * + *
+         * Boolean value. Can be used for entities with binary values, or for
+         * checkboxes.
+         * 
+ * + * bool boolean_value = 6; + * + * @return Whether the booleanValue field is set. + */ + public boolean hasBooleanValue() { + return structuredValueCase_ == 6; + } /** * * @@ -49962,6 +50006,19 @@ public interface RevisionOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Document.Revision) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+     * If the change was made by a person specify the name or id of that
+     * person.
+     * 
+ * + * string agent = 4; + * + * @return Whether the agent field is set. + */ + boolean hasAgent(); /** * * @@ -49989,6 +50046,19 @@ public interface RevisionOrBuilder */ com.google.protobuf.ByteString getAgentBytes(); + /** + * + * + *
+     * If the annotation was made by processor identify the processor by its
+     * resource name.
+     * 
+ * + * string processor = 5; + * + * @return Whether the processor field is set. + */ + boolean hasProcessor(); /** * * @@ -51253,6 +51323,21 @@ public SourceCase getSourceCase() { } public static final int AGENT_FIELD_NUMBER = 4; + /** + * + * + *
+     * If the change was made by a person specify the name or id of that
+     * person.
+     * 
+ * + * string agent = 4; + * + * @return Whether the agent field is set. + */ + public boolean hasAgent() { + return sourceCase_ == 4; + } /** * * @@ -51311,6 +51396,21 @@ public com.google.protobuf.ByteString getAgentBytes() { } public static final int PROCESSOR_FIELD_NUMBER = 5; + /** + * + * + *
+     * If the annotation was made by processor identify the processor by its
+     * resource name.
+     * 
+ * + * string processor = 5; + * + * @return Whether the processor field is set. + */ + public boolean hasProcessor() { + return sourceCase_ == 5; + } /** * * @@ -52070,6 +52170,22 @@ public Builder clearSource() { private int bitField0_; + /** + * + * + *
+       * If the change was made by a person specify the name or id of that
+       * person.
+       * 
+ * + * string agent = 4; + * + * @return Whether the agent field is set. + */ + @java.lang.Override + public boolean hasAgent() { + return sourceCase_ == 4; + } /** * * @@ -52194,6 +52310,22 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+       * If the annotation was made by processor identify the processor by its
+       * resource name.
+       * 
+ * + * string processor = 5; + * + * @return Whether the processor field is set. + */ + @java.lang.Override + public boolean hasProcessor() { + return sourceCase_ == 5; + } /** * * @@ -54651,6 +54783,24 @@ public SourceCase getSourceCase() { } public static final int URI_FIELD_NUMBER = 1; + /** + * + * + *
+   * Currently supports Google Cloud Storage URI of the form
+   *    `gs://bucket_name/object_name`. Object versioning is not supported.
+   *    See [Google Cloud Storage Request
+   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+   *    info.
+   * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return sourceCase_ == 1; + } /** * * @@ -54715,6 +54865,23 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * Inline document content, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, protobuffers use a pure binary
+   * representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -56306,6 +56473,25 @@ public Builder clearSource() { private int bitField0_; + /** + * + * + *
+     * Currently supports Google Cloud Storage URI of the form
+     *    `gs://bucket_name/object_name`. Object versioning is not supported.
+     *    See [Google Cloud Storage Request
+     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+     *    info.
+     * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return sourceCase_ == 1; + } /** * * @@ -56445,6 +56631,22 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Inline document content, represented as a stream of bytes.
+     * Note: As with all `bytes` fields, protobuffers use a pure binary
+     * representation, whereas JSON representations use base64.
+     * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java index 87959e1a..ff56bdd7 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java @@ -23,6 +23,22 @@ public interface DocumentOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Document) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Currently supports Google Cloud Storage URI of the form
+   *    `gs://bucket_name/object_name`. Object versioning is not supported.
+   *    See [Google Cloud Storage Request
+   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
+   *    info.
+   * 
+ * + * string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); /** * * @@ -56,6 +72,20 @@ public interface DocumentOrBuilder */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+   * Inline document content, represented as a stream of bytes.
+   * Note: As with all `bytes` fields, protobuffers use a pure binary
+   * representation, whereas JSON representations use base64.
+   * 
+ * + * bytes content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * diff --git a/synth.metadata b/synth.metadata index 85db6a21..1f4305b5 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,24 +11,24 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8c058c505afc717966bc815075bdd11ff76618e5", - "internalRef": "359109762" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8c058c505afc717966bc815075bdd11ff76618e5", - "internalRef": "359109762" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8c058c505afc717966bc815075bdd11ff76618e5", - "internalRef": "359109762" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, {