From 6e4c513c736d03deddd4d61d98969a866e2a2600 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 09:30:46 -0800 Subject: [PATCH] feat(generator): update protoc to v3.15.3 (#123) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/85ff6015-d55c-4478-8392-d9259b8d2bde/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../main/java/com/google/api/BackendRule.java | 68 ++++++++ .../com/google/api/BackendRuleOrBuilder.java | 29 ++++ .../main/java/com/google/api/HttpRule.java | 147 ++++++++++++++++++ .../com/google/api/HttpRuleOrBuilder.java | 61 ++++++++ .../main/java/com/google/api/JwtLocation.java | 58 +++++++ .../com/google/api/JwtLocationOrBuilder.java | 24 +++ .../java/com/google/type/PhoneNumber.java | 53 +++++++ .../com/google/type/PhoneNumberOrBuilder.java | 24 +++ synth.metadata | 6 +- 9 files changed, 467 insertions(+), 3 deletions(-) diff --git a/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java b/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java index 6ae26ac6..4be0d283 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/BackendRule.java @@ -621,6 +621,22 @@ public com.google.api.BackendRule.PathTranslation getPathTranslation() { } public static final int JWT_AUDIENCE_FIELD_NUMBER = 7; + /** + * + * + *
+   * The JWT audience is used when generating a JWT ID token for the backend.
+   * This ID token will be added in the HTTP "authorization" header, and sent
+   * to the backend.
+   * 
+ * + * string jwt_audience = 7; + * + * @return Whether the jwtAudience field is set. + */ + public boolean hasJwtAudience() { + return authenticationCase_ == 7; + } /** * * @@ -681,6 +697,24 @@ public com.google.protobuf.ByteString getJwtAudienceBytes() { } public static final int DISABLE_AUTH_FIELD_NUMBER = 8; + /** + * + * + *
+   * When disable_auth is true, a JWT ID token won't be generated and the
+   * original "Authorization" HTTP header will be preserved. If the header is
+   * used to carry the original token and is expected by the backend, this
+   * field must be set to true to preserve the header.
+   * 
+ * + * bool disable_auth = 8; + * + * @return Whether the disableAuth field is set. + */ + @java.lang.Override + public boolean hasDisableAuth() { + return authenticationCase_ == 8; + } /** * * @@ -1788,6 +1822,23 @@ public Builder clearPathTranslation() { return this; } + /** + * + * + *
+     * The JWT audience is used when generating a JWT ID token for the backend.
+     * This ID token will be added in the HTTP "authorization" header, and sent
+     * to the backend.
+     * 
+ * + * string jwt_audience = 7; + * + * @return Whether the jwtAudience field is set. + */ + @java.lang.Override + public boolean hasJwtAudience() { + return authenticationCase_ == 7; + } /** * * @@ -1917,6 +1968,23 @@ public Builder setJwtAudienceBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * When disable_auth is true, a JWT ID token won't be generated and the
+     * original "Authorization" HTTP header will be preserved. If the header is
+     * used to carry the original token and is expected by the backend, this
+     * field must be set to true to preserve the header.
+     * 
+ * + * bool disable_auth = 8; + * + * @return Whether the disableAuth field is set. + */ + public boolean hasDisableAuth() { + return authenticationCase_ == 8; + } /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java index f58d859c..24f0fe98 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java @@ -158,6 +158,20 @@ public interface BackendRuleOrBuilder */ com.google.api.BackendRule.PathTranslation getPathTranslation(); + /** + * + * + *
+   * The JWT audience is used when generating a JWT ID token for the backend.
+   * This ID token will be added in the HTTP "authorization" header, and sent
+   * to the backend.
+   * 
+ * + * string jwt_audience = 7; + * + * @return Whether the jwtAudience field is set. + */ + boolean hasJwtAudience(); /** * * @@ -187,6 +201,21 @@ public interface BackendRuleOrBuilder */ com.google.protobuf.ByteString getJwtAudienceBytes(); + /** + * + * + *
+   * When disable_auth is true, a JWT ID token won't be generated and the
+   * original "Authorization" HTTP header will be preserved. If the header is
+   * used to carry the original token and is expected by the backend, this
+   * field must be set to true to preserve the header.
+   * 
+ * + * bool disable_auth = 8; + * + * @return Whether the disableAuth field is set. + */ + boolean hasDisableAuth(); /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java b/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java index ccc584ae..2a1dcea7 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java +++ b/proto-google-common-protos/src/main/java/com/google/api/HttpRule.java @@ -521,6 +521,21 @@ public com.google.protobuf.ByteString getSelectorBytes() { } public static final int GET_FIELD_NUMBER = 2; + /** + * + * + *
+   * Maps to HTTP GET. Used for listing and getting information about
+   * resources.
+   * 
+ * + * string get = 2; + * + * @return Whether the get field is set. + */ + public boolean hasGet() { + return patternCase_ == 2; + } /** * * @@ -579,6 +594,20 @@ public com.google.protobuf.ByteString getGetBytes() { } public static final int PUT_FIELD_NUMBER = 3; + /** + * + * + *
+   * Maps to HTTP PUT. Used for replacing a resource.
+   * 
+ * + * string put = 3; + * + * @return Whether the put field is set. + */ + public boolean hasPut() { + return patternCase_ == 3; + } /** * * @@ -635,6 +664,20 @@ public com.google.protobuf.ByteString getPutBytes() { } public static final int POST_FIELD_NUMBER = 4; + /** + * + * + *
+   * Maps to HTTP POST. Used for creating a resource or performing an action.
+   * 
+ * + * string post = 4; + * + * @return Whether the post field is set. + */ + public boolean hasPost() { + return patternCase_ == 4; + } /** * * @@ -691,6 +734,20 @@ public com.google.protobuf.ByteString getPostBytes() { } public static final int DELETE_FIELD_NUMBER = 5; + /** + * + * + *
+   * Maps to HTTP DELETE. Used for deleting a resource.
+   * 
+ * + * string delete = 5; + * + * @return Whether the delete field is set. + */ + public boolean hasDelete() { + return patternCase_ == 5; + } /** * * @@ -747,6 +804,20 @@ public com.google.protobuf.ByteString getDeleteBytes() { } public static final int PATCH_FIELD_NUMBER = 6; + /** + * + * + *
+   * Maps to HTTP PATCH. Used for updating a resource.
+   * 
+ * + * string patch = 6; + * + * @return Whether the patch field is set. + */ + public boolean hasPatch() { + return patternCase_ == 6; + } /** * * @@ -1961,6 +2032,22 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Maps to HTTP GET. Used for listing and getting information about
+     * resources.
+     * 
+ * + * string get = 2; + * + * @return Whether the get field is set. + */ + @java.lang.Override + public boolean hasGet() { + return patternCase_ == 2; + } /** * * @@ -2085,6 +2172,21 @@ public Builder setGetBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Maps to HTTP PUT. Used for replacing a resource.
+     * 
+ * + * string put = 3; + * + * @return Whether the put field is set. + */ + @java.lang.Override + public boolean hasPut() { + return patternCase_ == 3; + } /** * * @@ -2204,6 +2306,21 @@ public Builder setPutBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Maps to HTTP POST. Used for creating a resource or performing an action.
+     * 
+ * + * string post = 4; + * + * @return Whether the post field is set. + */ + @java.lang.Override + public boolean hasPost() { + return patternCase_ == 4; + } /** * * @@ -2323,6 +2440,21 @@ public Builder setPostBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Maps to HTTP DELETE. Used for deleting a resource.
+     * 
+ * + * string delete = 5; + * + * @return Whether the delete field is set. + */ + @java.lang.Override + public boolean hasDelete() { + return patternCase_ == 5; + } /** * * @@ -2442,6 +2574,21 @@ public Builder setDeleteBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Maps to HTTP PATCH. Used for updating a resource.
+     * 
+ * + * string patch = 6; + * + * @return Whether the patch field is set. + */ + @java.lang.Override + public boolean hasPatch() { + return patternCase_ == 6; + } /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java index 1b0aabb3..85b2a1e7 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/HttpRuleOrBuilder.java @@ -50,6 +50,19 @@ public interface HttpRuleOrBuilder */ com.google.protobuf.ByteString getSelectorBytes(); + /** + * + * + *
+   * Maps to HTTP GET. Used for listing and getting information about
+   * resources.
+   * 
+ * + * string get = 2; + * + * @return Whether the get field is set. + */ + boolean hasGet(); /** * * @@ -77,6 +90,18 @@ public interface HttpRuleOrBuilder */ com.google.protobuf.ByteString getGetBytes(); + /** + * + * + *
+   * Maps to HTTP PUT. Used for replacing a resource.
+   * 
+ * + * string put = 3; + * + * @return Whether the put field is set. + */ + boolean hasPut(); /** * * @@ -102,6 +127,18 @@ public interface HttpRuleOrBuilder */ com.google.protobuf.ByteString getPutBytes(); + /** + * + * + *
+   * Maps to HTTP POST. Used for creating a resource or performing an action.
+   * 
+ * + * string post = 4; + * + * @return Whether the post field is set. + */ + boolean hasPost(); /** * * @@ -127,6 +164,18 @@ public interface HttpRuleOrBuilder */ com.google.protobuf.ByteString getPostBytes(); + /** + * + * + *
+   * Maps to HTTP DELETE. Used for deleting a resource.
+   * 
+ * + * string delete = 5; + * + * @return Whether the delete field is set. + */ + boolean hasDelete(); /** * * @@ -152,6 +201,18 @@ public interface HttpRuleOrBuilder */ com.google.protobuf.ByteString getDeleteBytes(); + /** + * + * + *
+   * Maps to HTTP PATCH. Used for updating a resource.
+   * 
+ * + * string patch = 6; + * + * @return Whether the patch field is set. + */ + boolean hasPatch(); /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java b/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java index 8d6dffcc..56509060 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java +++ b/proto-google-common-protos/src/main/java/com/google/api/JwtLocation.java @@ -170,6 +170,20 @@ public InCase getInCase() { } public static final int HEADER_FIELD_NUMBER = 1; + /** + * + * + *
+   * Specifies HTTP header name to extract JWT token.
+   * 
+ * + * string header = 1; + * + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return inCase_ == 1; + } /** * * @@ -226,6 +240,20 @@ public com.google.protobuf.ByteString getHeaderBytes() { } public static final int QUERY_FIELD_NUMBER = 2; + /** + * + * + *
+   * Specifies URL query parameter name to extract JWT token.
+   * 
+ * + * string query = 2; + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return inCase_ == 2; + } /** * * @@ -729,6 +757,21 @@ public Builder clearIn() { return this; } + /** + * + * + *
+     * Specifies HTTP header name to extract JWT token.
+     * 
+ * + * string header = 1; + * + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return inCase_ == 1; + } /** * * @@ -848,6 +891,21 @@ public Builder setHeaderBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+     * Specifies URL query parameter name to extract JWT token.
+     * 
+ * + * string query = 2; + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return inCase_ == 2; + } /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java index f2c088b0..ac03def2 100644 --- a/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/api/JwtLocationOrBuilder.java @@ -23,6 +23,18 @@ public interface JwtLocationOrBuilder // @@protoc_insertion_point(interface_extends:google.api.JwtLocation) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Specifies HTTP header name to extract JWT token.
+   * 
+ * + * string header = 1; + * + * @return Whether the header field is set. + */ + boolean hasHeader(); /** * * @@ -48,6 +60,18 @@ public interface JwtLocationOrBuilder */ com.google.protobuf.ByteString getHeaderBytes(); + /** + * + * + *
+   * Specifies URL query parameter name to extract JWT token.
+   * 
+ * + * string query = 2; + * + * @return Whether the query field is set. + */ + boolean hasQuery(); /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java b/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java index 8fc2d637..a50d0b48 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java +++ b/proto-google-common-protos/src/main/java/com/google/type/PhoneNumber.java @@ -1101,6 +1101,32 @@ public KindCase getKindCase() { } public static final int E164_NUMBER_FIELD_NUMBER = 1; + /** + * + * + *
+   * The phone number, represented as a leading plus sign ('+'), followed by a
+   * phone number that uses a relaxed ITU E.164 format consisting of the
+   * country calling code (1 to 3 digits) and the subscriber number, with no
+   * additional spaces or formatting, e.g.:
+   *  - correct: "+15552220123"
+   *  - incorrect: "+1 (555) 222-01234 x123".
+   * The ITU E.164 format limits the latter to 12 digits, but in practice not
+   * all countries respect that, so we relax that restriction here.
+   * National-only numbers are not allowed.
+   * References:
+   *  - https://www.itu.int/rec/T-REC-E.164-201011-I
+   *  - https://en.wikipedia.org/wiki/E.164.
+   *  - https://en.wikipedia.org/wiki/List_of_country_calling_codes
+   * 
+ * + * string e164_number = 1; + * + * @return Whether the e164Number field is set. + */ + public boolean hasE164Number() { + return kindCase_ == 1; + } /** * * @@ -1710,6 +1736,33 @@ public Builder clearKind() { return this; } + /** + * + * + *
+     * The phone number, represented as a leading plus sign ('+'), followed by a
+     * phone number that uses a relaxed ITU E.164 format consisting of the
+     * country calling code (1 to 3 digits) and the subscriber number, with no
+     * additional spaces or formatting, e.g.:
+     *  - correct: "+15552220123"
+     *  - incorrect: "+1 (555) 222-01234 x123".
+     * The ITU E.164 format limits the latter to 12 digits, but in practice not
+     * all countries respect that, so we relax that restriction here.
+     * National-only numbers are not allowed.
+     * References:
+     *  - https://www.itu.int/rec/T-REC-E.164-201011-I
+     *  - https://en.wikipedia.org/wiki/E.164.
+     *  - https://en.wikipedia.org/wiki/List_of_country_calling_codes
+     * 
+ * + * string e164_number = 1; + * + * @return Whether the e164Number field is set. + */ + @java.lang.Override + public boolean hasE164Number() { + return kindCase_ == 1; + } /** * * diff --git a/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java b/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java index 5bec3850..00bd363c 100644 --- a/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java +++ b/proto-google-common-protos/src/main/java/com/google/type/PhoneNumberOrBuilder.java @@ -23,6 +23,30 @@ public interface PhoneNumberOrBuilder // @@protoc_insertion_point(interface_extends:google.type.PhoneNumber) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The phone number, represented as a leading plus sign ('+'), followed by a
+   * phone number that uses a relaxed ITU E.164 format consisting of the
+   * country calling code (1 to 3 digits) and the subscriber number, with no
+   * additional spaces or formatting, e.g.:
+   *  - correct: "+15552220123"
+   *  - incorrect: "+1 (555) 222-01234 x123".
+   * The ITU E.164 format limits the latter to 12 digits, but in practice not
+   * all countries respect that, so we relax that restriction here.
+   * National-only numbers are not allowed.
+   * References:
+   *  - https://www.itu.int/rec/T-REC-E.164-201011-I
+   *  - https://en.wikipedia.org/wiki/E.164.
+   *  - https://en.wikipedia.org/wiki/List_of_country_calling_codes
+   * 
+ * + * string e164_number = 1; + * + * @return Whether the e164Number field is set. + */ + boolean hasE164Number(); /** * * diff --git a/synth.metadata b/synth.metadata index 161b0dd0..b275ad3d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-common-protos.git", - "sha": "ce783488bb681c9afb5a2cd8dedc2ac06d8399bc" + "sha": "bef4a219d02011cf8a07aae9a3d5ae9faf2e9224" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "c059c46957b0eb83078e61b4a5170c3d09ea96e6", - "internalRef": "357075713" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, {