From 061720a0be1ebfce1bffcbdefcabeb86d3f98f3b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 10:26:07 -0800 Subject: [PATCH] feat(generator): update protoc to v3.15.3 (#394) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/03645e34-b7a2-470a-9ea5-23f9d034150c/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../clirr-ignored-differences.xml | 9 +++ .../google/cloud/language/v1/Document.java | 66 +++++++++++++++++++ .../cloud/language/v1/DocumentOrBuilder.java | 28 ++++++++ .../clirr-ignored-differences.xml | 9 +++ .../cloud/language/v1beta2/Document.java | 66 +++++++++++++++++++ .../language/v1beta2/DocumentOrBuilder.java | 28 ++++++++ synth.metadata | 10 +-- 7 files changed, 211 insertions(+), 5 deletions(-) create mode 100644 proto-google-cloud-language-v1/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-language-v1beta2/clirr-ignored-differences.xml diff --git a/proto-google-cloud-language-v1/clirr-ignored-differences.xml b/proto-google-cloud-language-v1/clirr-ignored-differences.xml new file mode 100644 index 00000000..aa4ba5c2 --- /dev/null +++ b/proto-google-cloud-language-v1/clirr-ignored-differences.xml @@ -0,0 +1,9 @@ + + + + + 7012 + com/google/cloud/language/v1/*OrBuilder + * has*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Document.java b/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Document.java index eff8ac64..55893560 100644 --- a/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Document.java +++ b/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/Document.java @@ -376,6 +376,21 @@ public com.google.cloud.language.v1.Document.Type getType() { } public static final int CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * The content of the input in string format.
+   * Cloud audit logging exempt since it is based on user data.
+   * 
+ * + * string content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -434,6 +449,23 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int GCS_CONTENT_URI_FIELD_NUMBER = 3; + /** + * + * + *
+   * The Google Cloud Storage URI where the file content is located.
+   * This URI must be of the form: gs://bucket_name/object_name. For more
+   * details, see https://cloud.google.com/storage/docs/reference-uris.
+   * NOTE: Cloud Storage object versioning is not supported.
+   * 
+ * + * string gcs_content_uri = 3; + * + * @return Whether the gcsContentUri field is set. + */ + public boolean hasGcsContentUri() { + return sourceCase_ == 3; + } /** * * @@ -1061,6 +1093,22 @@ public Builder clearType() { return this; } + /** + * + * + *
+     * The content of the input in string format.
+     * Cloud audit logging exempt since it is based on user data.
+     * 
+ * + * string content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -1185,6 +1233,24 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * The Google Cloud Storage URI where the file content is located.
+     * This URI must be of the form: gs://bucket_name/object_name. For more
+     * details, see https://cloud.google.com/storage/docs/reference-uris.
+     * NOTE: Cloud Storage object versioning is not supported.
+     * 
+ * + * string gcs_content_uri = 3; + * + * @return Whether the gcsContentUri field is set. + */ + @java.lang.Override + public boolean hasGcsContentUri() { + return sourceCase_ == 3; + } /** * * diff --git a/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/DocumentOrBuilder.java b/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/DocumentOrBuilder.java index aa3e4de0..db3716c5 100644 --- a/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/DocumentOrBuilder.java +++ b/proto-google-cloud-language-v1/src/main/java/com/google/cloud/language/v1/DocumentOrBuilder.java @@ -50,6 +50,19 @@ public interface DocumentOrBuilder */ com.google.cloud.language.v1.Document.Type getType(); + /** + * + * + *
+   * The content of the input in string format.
+   * Cloud audit logging exempt since it is based on user data.
+   * 
+ * + * string content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * @@ -77,6 +90,21 @@ public interface DocumentOrBuilder */ com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
+   * The Google Cloud Storage URI where the file content is located.
+   * This URI must be of the form: gs://bucket_name/object_name. For more
+   * details, see https://cloud.google.com/storage/docs/reference-uris.
+   * NOTE: Cloud Storage object versioning is not supported.
+   * 
+ * + * string gcs_content_uri = 3; + * + * @return Whether the gcsContentUri field is set. + */ + boolean hasGcsContentUri(); /** * * diff --git a/proto-google-cloud-language-v1beta2/clirr-ignored-differences.xml b/proto-google-cloud-language-v1beta2/clirr-ignored-differences.xml new file mode 100644 index 00000000..4836a9a6 --- /dev/null +++ b/proto-google-cloud-language-v1beta2/clirr-ignored-differences.xml @@ -0,0 +1,9 @@ + + + + + 7012 + com/google/cloud/language/v1beta2/*OrBuilder + * has*(*) + + \ No newline at end of file diff --git a/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/Document.java b/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/Document.java index e47422c1..20ebf273 100644 --- a/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/Document.java +++ b/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/Document.java @@ -376,6 +376,21 @@ public com.google.cloud.language.v1beta2.Document.Type getType() { } public static final int CONTENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * The content of the input in string format.
+   * Cloud audit logging exempt since it is based on user data.
+   * 
+ * + * string content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -434,6 +449,23 @@ public com.google.protobuf.ByteString getContentBytes() { } public static final int GCS_CONTENT_URI_FIELD_NUMBER = 3; + /** + * + * + *
+   * The Google Cloud Storage URI where the file content is located.
+   * This URI must be of the form: gs://bucket_name/object_name. For more
+   * details, see https://cloud.google.com/storage/docs/reference-uris.
+   * NOTE: Cloud Storage object versioning is not supported.
+   * 
+ * + * string gcs_content_uri = 3; + * + * @return Whether the gcsContentUri field is set. + */ + public boolean hasGcsContentUri() { + return sourceCase_ == 3; + } /** * * @@ -1063,6 +1095,22 @@ public Builder clearType() { return this; } + /** + * + * + *
+     * The content of the input in string format.
+     * Cloud audit logging exempt since it is based on user data.
+     * 
+ * + * string content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return sourceCase_ == 2; + } /** * * @@ -1187,6 +1235,24 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * The Google Cloud Storage URI where the file content is located.
+     * This URI must be of the form: gs://bucket_name/object_name. For more
+     * details, see https://cloud.google.com/storage/docs/reference-uris.
+     * NOTE: Cloud Storage object versioning is not supported.
+     * 
+ * + * string gcs_content_uri = 3; + * + * @return Whether the gcsContentUri field is set. + */ + @java.lang.Override + public boolean hasGcsContentUri() { + return sourceCase_ == 3; + } /** * * diff --git a/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/DocumentOrBuilder.java b/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/DocumentOrBuilder.java index e16ab74e..09bf845d 100644 --- a/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/DocumentOrBuilder.java +++ b/proto-google-cloud-language-v1beta2/src/main/java/com/google/cloud/language/v1beta2/DocumentOrBuilder.java @@ -50,6 +50,19 @@ public interface DocumentOrBuilder */ com.google.cloud.language.v1beta2.Document.Type getType(); + /** + * + * + *
+   * The content of the input in string format.
+   * Cloud audit logging exempt since it is based on user data.
+   * 
+ * + * string content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); /** * * @@ -77,6 +90,21 @@ public interface DocumentOrBuilder */ com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
+   * The Google Cloud Storage URI where the file content is located.
+   * This URI must be of the form: gs://bucket_name/object_name. For more
+   * details, see https://cloud.google.com/storage/docs/reference-uris.
+   * NOTE: Cloud Storage object versioning is not supported.
+   * 
+ * + * string gcs_content_uri = 3; + * + * @return Whether the gcsContentUri field is set. + */ + boolean hasGcsContentUri(); /** * * diff --git a/synth.metadata b/synth.metadata index 3a203285..0fac004d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-language.git", - "sha": "55d4321a5a10959eb3caf0f4fa9800ffb9fca2c9" + "sha": "336dc1e3648e415bd2e4db688de4f39e79001311" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, {