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

Commit

Permalink
feat: added google.api.Service.publishing and client libraries settin…
Browse files Browse the repository at this point in the history
…gs (#481)

* feat: added google.api.Service.publishing and client libraries settings
feat: added google.api.JwtLocation.cookie
feat: new fields in enum google.api.ErrorReason
fix: deprecate google.api.Endpoint.aliases
fix: deprecate google.api.BackendRule.min_deadline
docs: minor updates to comments

PiperOrigin-RevId: 488484261

Source-Link: googleapis/googleapis@bd9aa78

Source-Link: googleapis/googleapis-gen@019a609
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDE5YTYwOTVmOWMwOGMzMzlhMTViODgwODhiZjk2MjVjMmNkMWRlMCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 21, 2022
1 parent c2cde01 commit d805f7e
Show file tree
Hide file tree
Showing 74 changed files with 20,267 additions and 857 deletions.
Expand Up @@ -67,19 +67,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tionRule\022\020\n\010selector\030\001 \001(\t\022,\n\005oauth\030\002 \001("
+ "\0132\035.google.api.OAuthRequirements\022 \n\030allo"
+ "w_without_credential\030\005 \001(\010\0221\n\014requiremen"
+ "ts\030\007 \003(\0132\033.google.api.AuthRequirement\"L\n"
+ "ts\030\007 \003(\0132\033.google.api.AuthRequirement\"^\n"
+ "\013JwtLocation\022\020\n\006header\030\001 \001(\tH\000\022\017\n\005query\030"
+ "\002 \001(\tH\000\022\024\n\014value_prefix\030\003 \001(\tB\004\n\002in\"\232\001\n\014"
+ "AuthProvider\022\n\n\002id\030\001 \001(\t\022\016\n\006issuer\030\002 \001(\t"
+ "\022\020\n\010jwks_uri\030\003 \001(\t\022\021\n\taudiences\030\004 \001(\t\022\031\n"
+ "\021authorization_url\030\005 \001(\t\022.\n\rjwt_location"
+ "s\030\006 \003(\0132\027.google.api.JwtLocation\"-\n\021OAut"
+ "hRequirements\022\030\n\020canonical_scopes\030\001 \001(\t\""
+ "9\n\017AuthRequirement\022\023\n\013provider_id\030\001 \001(\t\022"
+ "\021\n\taudiences\030\002 \001(\tBk\n\016com.google.apiB\tAu"
+ "thProtoP\001ZEgoogle.golang.org/genproto/go"
+ "ogleapis/api/serviceconfig;serviceconfig"
+ "\242\002\004GAPIb\006proto3"
+ "\002 \001(\tH\000\022\020\n\006cookie\030\004 \001(\tH\000\022\024\n\014value_prefi"
+ "x\030\003 \001(\tB\004\n\002in\"\232\001\n\014AuthProvider\022\n\n\002id\030\001 \001"
+ "(\t\022\016\n\006issuer\030\002 \001(\t\022\020\n\010jwks_uri\030\003 \001(\t\022\021\n\t"
+ "audiences\030\004 \001(\t\022\031\n\021authorization_url\030\005 \001"
+ "(\t\022.\n\rjwt_locations\030\006 \003(\0132\027.google.api.J"
+ "wtLocation\"-\n\021OAuthRequirements\022\030\n\020canon"
+ "ical_scopes\030\001 \001(\t\"9\n\017AuthRequirement\022\023\n\013"
+ "provider_id\030\001 \001(\t\022\021\n\taudiences\030\002 \001(\tBk\n\016"
+ "com.google.apiB\tAuthProtoP\001ZEgoogle.gola"
+ "ng.org/genproto/googleapis/api/serviceco"
+ "nfig;serviceconfig\242\002\004GAPIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand All @@ -104,7 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_api_JwtLocation_descriptor,
new java.lang.String[] {
"Header", "Query", "ValuePrefix", "In",
"Header", "Query", "Cookie", "ValuePrefix", "In",
});
internal_static_google_api_AuthProvider_descriptor = getDescriptor().getMessageTypes().get(3);
internal_static_google_api_AuthProvider_fieldAccessorTable =
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -214,10 +214,11 @@ public interface AuthProviderOrBuilder
*
*
* <pre>
* Defines the locations to extract the JWT.
* JWT locations can be either from HTTP headers or URL query parameters.
* The rule is that the first match wins. The checking order is: checking
* all headers first, then URL query parameters.
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
Expand All @@ -237,10 +238,11 @@ public interface AuthProviderOrBuilder
*
*
* <pre>
* Defines the locations to extract the JWT.
* JWT locations can be either from HTTP headers or URL query parameters.
* The rule is that the first match wins. The checking order is: checking
* all headers first, then URL query parameters.
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
Expand All @@ -260,10 +262,11 @@ public interface AuthProviderOrBuilder
*
*
* <pre>
* Defines the locations to extract the JWT.
* JWT locations can be either from HTTP headers or URL query parameters.
* The rule is that the first match wins. The checking order is: checking
* all headers first, then URL query parameters.
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
Expand All @@ -283,10 +286,11 @@ public interface AuthProviderOrBuilder
*
*
* <pre>
* Defines the locations to extract the JWT.
* JWT locations can be either from HTTP headers or URL query parameters.
* The rule is that the first match wins. The checking order is: checking
* all headers first, then URL query parameters.
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
Expand All @@ -306,10 +310,11 @@ public interface AuthProviderOrBuilder
*
*
* <pre>
* Defines the locations to extract the JWT.
* JWT locations can be either from HTTP headers or URL query parameters.
* The rule is that the first match wins. The checking order is: checking
* all headers first, then URL query parameters.
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
* JWT locations can be one of HTTP headers, URL query parameters or
* cookies. The rule is that the first match wins.
* If not specified, default to use following 3 locations:
* 1) Authorization: Bearer
* 2) x-goog-iap-jwt-assertion
Expand Down
Expand Up @@ -46,19 +46,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n\030google/api/backend.proto\022\ngoogle.api\"1"
+ "\n\007Backend\022&\n\005rules\030\001 \003(\0132\027.google.api.Ba"
+ "ckendRule\"\362\002\n\013BackendRule\022\020\n\010selector\030\001 "
+ "\001(\t\022\017\n\007address\030\002 \001(\t\022\020\n\010deadline\030\003 \001(\001\022\024"
+ "\n\014min_deadline\030\004 \001(\001\022\032\n\022operation_deadli"
+ "ne\030\005 \001(\001\022A\n\020path_translation\030\006 \001(\0162\'.goo"
+ "gle.api.BackendRule.PathTranslation\022\026\n\014j"
+ "wt_audience\030\007 \001(\tH\000\022\026\n\014disable_auth\030\010 \001("
+ "\010H\000\022\020\n\010protocol\030\t \001(\t\"e\n\017PathTranslation"
+ "\022 \n\034PATH_TRANSLATION_UNSPECIFIED\020\000\022\024\n\020CO"
+ "NSTANT_ADDRESS\020\001\022\032\n\026APPEND_PATH_TO_ADDRE"
+ "SS\020\002B\020\n\016authenticationBn\n\016com.google.api"
+ "B\014BackendProtoP\001ZEgoogle.golang.org/genp"
+ "roto/googleapis/api/serviceconfig;servic"
+ "econfig\242\002\004GAPIb\006proto3"
+ "ckendRule\"\366\002\n\013BackendRule\022\020\n\010selector\030\001 "
+ "\001(\t\022\017\n\007address\030\002 \001(\t\022\020\n\010deadline\030\003 \001(\001\022\030"
+ "\n\014min_deadline\030\004 \001(\001B\002\030\001\022\032\n\022operation_de"
+ "adline\030\005 \001(\001\022A\n\020path_translation\030\006 \001(\0162\'"
+ ".google.api.BackendRule.PathTranslation\022"
+ "\026\n\014jwt_audience\030\007 \001(\tH\000\022\026\n\014disable_auth\030"
+ "\010 \001(\010H\000\022\020\n\010protocol\030\t \001(\t\"e\n\017PathTransla"
+ "tion\022 \n\034PATH_TRANSLATION_UNSPECIFIED\020\000\022\024"
+ "\n\020CONSTANT_ADDRESS\020\001\022\032\n\026APPEND_PATH_TO_A"
+ "DDRESS\020\002B\020\n\016authenticationBn\n\016com.google"
+ ".apiB\014BackendProtoP\001ZEgoogle.golang.org/"
+ "genproto/googleapis/api/serviceconfig;se"
+ "rviceconfig\242\002\004GAPIb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -471,15 +471,17 @@ public double getDeadline() {
*
*
* <pre>
* Minimum deadline in seconds needed for this method. Calls having deadline
* value lower than this will be rejected.
* Deprecated, do not use.
* </pre>
*
* <code>double min_deadline = 4;</code>
* <code>double min_deadline = 4 [deprecated = true];</code>
*
* @deprecated google.api.BackendRule.min_deadline is deprecated. See
* google/api/backend.proto;l=123
* @return The minDeadline.
*/
@java.lang.Override
@java.lang.Deprecated
public double getMinDeadline() {
return minDeadline_;
}
Expand Down Expand Up @@ -1625,31 +1627,35 @@ public Builder clearDeadline() {
*
*
* <pre>
* Minimum deadline in seconds needed for this method. Calls having deadline
* value lower than this will be rejected.
* Deprecated, do not use.
* </pre>
*
* <code>double min_deadline = 4;</code>
* <code>double min_deadline = 4 [deprecated = true];</code>
*
* @deprecated google.api.BackendRule.min_deadline is deprecated. See
* google/api/backend.proto;l=123
* @return The minDeadline.
*/
@java.lang.Override
@java.lang.Deprecated
public double getMinDeadline() {
return minDeadline_;
}
/**
*
*
* <pre>
* Minimum deadline in seconds needed for this method. Calls having deadline
* value lower than this will be rejected.
* Deprecated, do not use.
* </pre>
*
* <code>double min_deadline = 4;</code>
* <code>double min_deadline = 4 [deprecated = true];</code>
*
* @deprecated google.api.BackendRule.min_deadline is deprecated. See
* google/api/backend.proto;l=123
* @param value The minDeadline to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder setMinDeadline(double value) {

minDeadline_ = value;
Expand All @@ -1660,14 +1666,16 @@ public Builder setMinDeadline(double value) {
*
*
* <pre>
* Minimum deadline in seconds needed for this method. Calls having deadline
* value lower than this will be rejected.
* Deprecated, do not use.
* </pre>
*
* <code>double min_deadline = 4;</code>
* <code>double min_deadline = 4 [deprecated = true];</code>
*
* @deprecated google.api.BackendRule.min_deadline is deprecated. See
* google/api/backend.proto;l=123
* @return This builder for chaining.
*/
@java.lang.Deprecated
public Builder clearMinDeadline() {

minDeadline_ = 0D;
Expand Down
Expand Up @@ -121,14 +121,16 @@ public interface BackendRuleOrBuilder
*
*
* <pre>
* Minimum deadline in seconds needed for this method. Calls having deadline
* value lower than this will be rejected.
* Deprecated, do not use.
* </pre>
*
* <code>double min_deadline = 4;</code>
* <code>double min_deadline = 4 [deprecated = true];</code>
*
* @deprecated google.api.BackendRule.min_deadline is deprecated. See
* google/api/backend.proto;l=123
* @return The minDeadline.
*/
@java.lang.Deprecated
double getMinDeadline();

/**
Expand Down

0 comments on commit d805f7e

Please sign in to comment.