Skip to content

Commit ecb1cf0

Browse files
Google APIscopybara-github
authored andcommitted
feat: added overrides_by_request_protocol to backend.proto
feat: added field proto_reference_documentation_uri to proto reference documentation. feat: added SERVICE_NOT_VISIBLE and GCP_SUSPENDED into error reason PiperOrigin-RevId: 517437454
1 parent 8c36220 commit ecb1cf0

30 files changed

Lines changed: 158 additions & 88 deletions

google/api/auth.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -62,7 +62,8 @@ message Authentication {
6262
message AuthenticationRule {
6363
// Selects the methods to which this rule applies.
6464
//
65-
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
65+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
66+
// details.
6667
string selector = 1;
6768

6869
// The requirements for OAuth credentials.

google/api/backend.proto

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -91,7 +91,8 @@ message BackendRule {
9191

9292
// Selects the methods to which this rule applies.
9393
//
94-
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
94+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
95+
// details.
9596
string selector = 1;
9697

9798
// The address of the API backend.
@@ -178,4 +179,7 @@ message BackendRule {
178179
// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
179180
// for more details on the supported values.
180181
string protocol = 9;
182+
183+
// The map between request protocol and the backend address.
184+
map<string, BackendRule> overrides_by_request_protocol = 10;
181185
}

google/api/billing.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -59,11 +59,13 @@ message Billing {
5959
// bill against consumer project).
6060
message BillingDestination {
6161
// The monitored resource type. The type must be defined in
62-
// [Service.monitored_resources][google.api.Service.monitored_resources] section.
62+
// [Service.monitored_resources][google.api.Service.monitored_resources]
63+
// section.
6364
string monitored_resource = 1;
6465

6566
// Names of the metrics to report to this billing destination.
66-
// Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
67+
// Each name must be defined in
68+
// [Service.metrics][google.api.Service.metrics] section.
6769
repeated string metrics = 2;
6870
}
6971

google/api/client.proto

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -112,7 +112,9 @@ message CommonLanguageSettings {
112112

113113
// Details about how and where to publish client libraries.
114114
message ClientLibrarySettings {
115-
// Version of the API to apply these settings to.
115+
// Version of the API to apply these settings to. This is the full protobuf
116+
// package for the API, ending in the version element.
117+
// Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
116118
string version = 1;
117119

118120
// Launch stage of this version of the API.
@@ -186,6 +188,10 @@ message Publishing {
186188
// times in this list, then the last one wins. Settings from earlier
187189
// settings with the same version string are discarded.
188190
repeated ClientLibrarySettings library_settings = 109;
191+
192+
// Optional link to proto reference documentation. Example:
193+
// https://cloud.google.com/pubsub/lite/docs/reference/rpc
194+
string proto_reference_documentation_uri = 110;
189195
}
190196

191197
// Settings for Java client libraries.
@@ -302,8 +308,8 @@ message MethodSettings {
302308
// Example of a YAML configuration::
303309
//
304310
// publishing:
305-
// method_behavior:
306-
// - selector: CreateAdDomain
311+
// method_settings:
312+
// - selector: google.cloud.speech.v2.Speech.BatchRecognize
307313
// long_running:
308314
// initial_poll_delay:
309315
// seconds: 60 # 1 minute

google/api/config_change.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/context.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -70,7 +70,8 @@ message Context {
7070
message ContextRule {
7171
// Selects the methods to which this rule applies.
7272
//
73-
// Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
73+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
74+
// details.
7475
string selector = 1;
7576

7677
// A list of full type names of requested contexts.

google/api/control.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/distribution.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/documentation.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/endpoint.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)