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

Commit 6e4c513

Browse files
feat(generator): update protoc to v3.15.3 (#123)
This PR was generated using Autosynth. 🌈 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: googleapis/googleapis@f6dd7e4
1 parent bef4a21 commit 6e4c513

9 files changed

Lines changed: 467 additions & 3 deletions

File tree

proto-google-common-protos/src/main/java/com/google/api/BackendRule.java

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,22 @@ public com.google.api.BackendRule.PathTranslation getPathTranslation() {
621621
}
622622

623623
public static final int JWT_AUDIENCE_FIELD_NUMBER = 7;
624+
/**
625+
*
626+
*
627+
* <pre>
628+
* The JWT audience is used when generating a JWT ID token for the backend.
629+
* This ID token will be added in the HTTP "authorization" header, and sent
630+
* to the backend.
631+
* </pre>
632+
*
633+
* <code>string jwt_audience = 7;</code>
634+
*
635+
* @return Whether the jwtAudience field is set.
636+
*/
637+
public boolean hasJwtAudience() {
638+
return authenticationCase_ == 7;
639+
}
624640
/**
625641
*
626642
*
@@ -681,6 +697,24 @@ public com.google.protobuf.ByteString getJwtAudienceBytes() {
681697
}
682698

683699
public static final int DISABLE_AUTH_FIELD_NUMBER = 8;
700+
/**
701+
*
702+
*
703+
* <pre>
704+
* When disable_auth is true, a JWT ID token won't be generated and the
705+
* original "Authorization" HTTP header will be preserved. If the header is
706+
* used to carry the original token and is expected by the backend, this
707+
* field must be set to true to preserve the header.
708+
* </pre>
709+
*
710+
* <code>bool disable_auth = 8;</code>
711+
*
712+
* @return Whether the disableAuth field is set.
713+
*/
714+
@java.lang.Override
715+
public boolean hasDisableAuth() {
716+
return authenticationCase_ == 8;
717+
}
684718
/**
685719
*
686720
*
@@ -1788,6 +1822,23 @@ public Builder clearPathTranslation() {
17881822
return this;
17891823
}
17901824

1825+
/**
1826+
*
1827+
*
1828+
* <pre>
1829+
* The JWT audience is used when generating a JWT ID token for the backend.
1830+
* This ID token will be added in the HTTP "authorization" header, and sent
1831+
* to the backend.
1832+
* </pre>
1833+
*
1834+
* <code>string jwt_audience = 7;</code>
1835+
*
1836+
* @return Whether the jwtAudience field is set.
1837+
*/
1838+
@java.lang.Override
1839+
public boolean hasJwtAudience() {
1840+
return authenticationCase_ == 7;
1841+
}
17911842
/**
17921843
*
17931844
*
@@ -1917,6 +1968,23 @@ public Builder setJwtAudienceBytes(com.google.protobuf.ByteString value) {
19171968
return this;
19181969
}
19191970

1971+
/**
1972+
*
1973+
*
1974+
* <pre>
1975+
* When disable_auth is true, a JWT ID token won't be generated and the
1976+
* original "Authorization" HTTP header will be preserved. If the header is
1977+
* used to carry the original token and is expected by the backend, this
1978+
* field must be set to true to preserve the header.
1979+
* </pre>
1980+
*
1981+
* <code>bool disable_auth = 8;</code>
1982+
*
1983+
* @return Whether the disableAuth field is set.
1984+
*/
1985+
public boolean hasDisableAuth() {
1986+
return authenticationCase_ == 8;
1987+
}
19201988
/**
19211989
*
19221990
*

proto-google-common-protos/src/main/java/com/google/api/BackendRuleOrBuilder.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,20 @@ public interface BackendRuleOrBuilder
158158
*/
159159
com.google.api.BackendRule.PathTranslation getPathTranslation();
160160

161+
/**
162+
*
163+
*
164+
* <pre>
165+
* The JWT audience is used when generating a JWT ID token for the backend.
166+
* This ID token will be added in the HTTP "authorization" header, and sent
167+
* to the backend.
168+
* </pre>
169+
*
170+
* <code>string jwt_audience = 7;</code>
171+
*
172+
* @return Whether the jwtAudience field is set.
173+
*/
174+
boolean hasJwtAudience();
161175
/**
162176
*
163177
*
@@ -187,6 +201,21 @@ public interface BackendRuleOrBuilder
187201
*/
188202
com.google.protobuf.ByteString getJwtAudienceBytes();
189203

204+
/**
205+
*
206+
*
207+
* <pre>
208+
* When disable_auth is true, a JWT ID token won't be generated and the
209+
* original "Authorization" HTTP header will be preserved. If the header is
210+
* used to carry the original token and is expected by the backend, this
211+
* field must be set to true to preserve the header.
212+
* </pre>
213+
*
214+
* <code>bool disable_auth = 8;</code>
215+
*
216+
* @return Whether the disableAuth field is set.
217+
*/
218+
boolean hasDisableAuth();
190219
/**
191220
*
192221
*

proto-google-common-protos/src/main/java/com/google/api/HttpRule.java

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,21 @@ public com.google.protobuf.ByteString getSelectorBytes() {
521521
}
522522

523523
public static final int GET_FIELD_NUMBER = 2;
524+
/**
525+
*
526+
*
527+
* <pre>
528+
* Maps to HTTP GET. Used for listing and getting information about
529+
* resources.
530+
* </pre>
531+
*
532+
* <code>string get = 2;</code>
533+
*
534+
* @return Whether the get field is set.
535+
*/
536+
public boolean hasGet() {
537+
return patternCase_ == 2;
538+
}
524539
/**
525540
*
526541
*
@@ -579,6 +594,20 @@ public com.google.protobuf.ByteString getGetBytes() {
579594
}
580595

581596
public static final int PUT_FIELD_NUMBER = 3;
597+
/**
598+
*
599+
*
600+
* <pre>
601+
* Maps to HTTP PUT. Used for replacing a resource.
602+
* </pre>
603+
*
604+
* <code>string put = 3;</code>
605+
*
606+
* @return Whether the put field is set.
607+
*/
608+
public boolean hasPut() {
609+
return patternCase_ == 3;
610+
}
582611
/**
583612
*
584613
*
@@ -635,6 +664,20 @@ public com.google.protobuf.ByteString getPutBytes() {
635664
}
636665

637666
public static final int POST_FIELD_NUMBER = 4;
667+
/**
668+
*
669+
*
670+
* <pre>
671+
* Maps to HTTP POST. Used for creating a resource or performing an action.
672+
* </pre>
673+
*
674+
* <code>string post = 4;</code>
675+
*
676+
* @return Whether the post field is set.
677+
*/
678+
public boolean hasPost() {
679+
return patternCase_ == 4;
680+
}
638681
/**
639682
*
640683
*
@@ -691,6 +734,20 @@ public com.google.protobuf.ByteString getPostBytes() {
691734
}
692735

693736
public static final int DELETE_FIELD_NUMBER = 5;
737+
/**
738+
*
739+
*
740+
* <pre>
741+
* Maps to HTTP DELETE. Used for deleting a resource.
742+
* </pre>
743+
*
744+
* <code>string delete = 5;</code>
745+
*
746+
* @return Whether the delete field is set.
747+
*/
748+
public boolean hasDelete() {
749+
return patternCase_ == 5;
750+
}
694751
/**
695752
*
696753
*
@@ -747,6 +804,20 @@ public com.google.protobuf.ByteString getDeleteBytes() {
747804
}
748805

749806
public static final int PATCH_FIELD_NUMBER = 6;
807+
/**
808+
*
809+
*
810+
* <pre>
811+
* Maps to HTTP PATCH. Used for updating a resource.
812+
* </pre>
813+
*
814+
* <code>string patch = 6;</code>
815+
*
816+
* @return Whether the patch field is set.
817+
*/
818+
public boolean hasPatch() {
819+
return patternCase_ == 6;
820+
}
750821
/**
751822
*
752823
*
@@ -1961,6 +2032,22 @@ public Builder setSelectorBytes(com.google.protobuf.ByteString value) {
19612032
return this;
19622033
}
19632034

2035+
/**
2036+
*
2037+
*
2038+
* <pre>
2039+
* Maps to HTTP GET. Used for listing and getting information about
2040+
* resources.
2041+
* </pre>
2042+
*
2043+
* <code>string get = 2;</code>
2044+
*
2045+
* @return Whether the get field is set.
2046+
*/
2047+
@java.lang.Override
2048+
public boolean hasGet() {
2049+
return patternCase_ == 2;
2050+
}
19642051
/**
19652052
*
19662053
*
@@ -2085,6 +2172,21 @@ public Builder setGetBytes(com.google.protobuf.ByteString value) {
20852172
return this;
20862173
}
20872174

2175+
/**
2176+
*
2177+
*
2178+
* <pre>
2179+
* Maps to HTTP PUT. Used for replacing a resource.
2180+
* </pre>
2181+
*
2182+
* <code>string put = 3;</code>
2183+
*
2184+
* @return Whether the put field is set.
2185+
*/
2186+
@java.lang.Override
2187+
public boolean hasPut() {
2188+
return patternCase_ == 3;
2189+
}
20882190
/**
20892191
*
20902192
*
@@ -2204,6 +2306,21 @@ public Builder setPutBytes(com.google.protobuf.ByteString value) {
22042306
return this;
22052307
}
22062308

2309+
/**
2310+
*
2311+
*
2312+
* <pre>
2313+
* Maps to HTTP POST. Used for creating a resource or performing an action.
2314+
* </pre>
2315+
*
2316+
* <code>string post = 4;</code>
2317+
*
2318+
* @return Whether the post field is set.
2319+
*/
2320+
@java.lang.Override
2321+
public boolean hasPost() {
2322+
return patternCase_ == 4;
2323+
}
22072324
/**
22082325
*
22092326
*
@@ -2323,6 +2440,21 @@ public Builder setPostBytes(com.google.protobuf.ByteString value) {
23232440
return this;
23242441
}
23252442

2443+
/**
2444+
*
2445+
*
2446+
* <pre>
2447+
* Maps to HTTP DELETE. Used for deleting a resource.
2448+
* </pre>
2449+
*
2450+
* <code>string delete = 5;</code>
2451+
*
2452+
* @return Whether the delete field is set.
2453+
*/
2454+
@java.lang.Override
2455+
public boolean hasDelete() {
2456+
return patternCase_ == 5;
2457+
}
23262458
/**
23272459
*
23282460
*
@@ -2442,6 +2574,21 @@ public Builder setDeleteBytes(com.google.protobuf.ByteString value) {
24422574
return this;
24432575
}
24442576

2577+
/**
2578+
*
2579+
*
2580+
* <pre>
2581+
* Maps to HTTP PATCH. Used for updating a resource.
2582+
* </pre>
2583+
*
2584+
* <code>string patch = 6;</code>
2585+
*
2586+
* @return Whether the patch field is set.
2587+
*/
2588+
@java.lang.Override
2589+
public boolean hasPatch() {
2590+
return patternCase_ == 6;
2591+
}
24452592
/**
24462593
*
24472594
*

0 commit comments

Comments
 (0)