Skip to content

Commit 2f14a03

Browse files
Google APIscopybara-github
authored andcommitted
docs: updates DEP proto comments
PiperOrigin-RevId: 609406502
1 parent ebe0794 commit 2f14a03

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

google/cloud/networkservices/v1beta1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ load(
329329

330330
csharp_proto_library(
331331
name = "networkservices_csharp_proto",
332+
extra_opts = [],
332333
deps = [":networkservices_proto"],
333334
)
334335

google/cloud/networkservices/v1beta1/dep.proto

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ service DepService {
165165
}
166166

167167
// Load balancing schemes supported by the `LbTrafficExtension` resource and
168-
// `LbRouteExtension` resource. The valid values are: `INTERNAL_MANAGED`,
168+
// `LbRouteExtension` resource. The valid values are `INTERNAL_MANAGED` and
169169
// `EXTERNAL_MANAGED`.
170170
// For more information, refer to [Choosing a load
171171
// balancer](https://cloud.google.com/load-balancing/docs/backend-service).
@@ -191,13 +191,13 @@ message ExtensionChain {
191191
//
192192
// For more information, see
193193
// [CEL matcher language
194-
// reference](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference).
194+
// reference](/service-extensions/docs/cel-matcher-language-reference).
195195
string cel_expression = 1 [(google.api.field_behavior) = REQUIRED];
196196
}
197197

198198
// A single extension in the chain to execute for the matching request.
199199
message Extension {
200-
// Defines the part of the request or response for which this extension
200+
// The part of the request or response for which this extension
201201
// is called.
202202
// The valid values are:
203203
// `REQUEST_HEADERS`, `REQUEST_BODY`, `RESPONSE_HEADERS`, `RESPONSE_BODY`.
@@ -230,15 +230,15 @@ message ExtensionChain {
230230
// last a letter or a number.
231231
string name = 1 [(google.api.field_behavior) = REQUIRED];
232232

233-
// Required. The `:authority` header in the gRPC request sent from Envoy
233+
// Optional. The `:authority` header in the gRPC request sent from Envoy
234234
// to the extension service.
235-
string authority = 2 [(google.api.field_behavior) = REQUIRED];
235+
string authority = 2 [(google.api.field_behavior) = OPTIONAL];
236236

237237
// Required. The reference to the service that runs the extension.
238238
//
239-
// Currently only Callout extensions are supported here.
239+
// Currently only callout extensions are supported here.
240240
//
241-
// To configure a Callout extension, `service` must be a fully-qualified
241+
// To configure a callout extension, `service` must be a fully-qualified
242242
// reference
243243
// to a [backend
244244
// service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices)
@@ -262,17 +262,17 @@ message ExtensionChain {
262262

263263
// Optional. Determines how the proxy behaves if the call to the extension
264264
// fails or times out.
265+
//
265266
// When set to `TRUE`, request or response processing continues without
266267
// error. Any subsequent extensions in the extension chain are also
267-
// executed. When set to `FALSE`:
268-
// * If response headers have not been delivered to the downstream
269-
// client, a generic 500 error is returned to the client. The error
270-
// response can be tailored by configuring a custom error response
271-
// in the load balancer.
268+
// executed. When set to `FALSE` or the default setting of `FALSE` is used,
269+
// one of the following happens:
270+
// * If response headers have not been delivered to the downstream client,
271+
// a generic 500 error is returned to the client. The error response can be
272+
// tailored by configuring a custom error response in the load balancer.
272273
//
273-
// * If response headers have been delivered, then the HTTP stream to
274-
// the downstream client is reset.
275-
// Default is `FALSE`.
274+
// * If response headers have been delivered, then the HTTP stream to the
275+
// downstream client is reset.
276276
bool fail_open = 6 [(google.api.field_behavior) = OPTIONAL];
277277

278278
// Optional. List of the HTTP headers to forward to the extension
@@ -334,8 +334,9 @@ message LbTrafficExtension {
334334

335335
// Optional. Set of labels associated with the `LbTrafficExtension` resource.
336336
//
337-
// The format must comply with [the following
338-
// requirements](/compute/docs/labeling-resources#requirements).
337+
// The format must comply with [the requirements for
338+
// labels](/compute/docs/labeling-resources#requirements) for Google Cloud
339+
// resources.
339340
map<string, string> labels = 4 [(google.api.field_behavior) = OPTIONAL];
340341

341342
// Required. A list of references to the forwarding rules to which this
@@ -545,8 +546,9 @@ message LbRouteExtension {
545546

546547
// Optional. Set of labels associated with the `LbRouteExtension` resource.
547548
//
548-
// The format must comply with [the following
549-
// requirements](/compute/docs/labeling-resources#requirements).
549+
// The format must comply with [the requirements for
550+
// labels](/compute/docs/labeling-resources#requirements) for Google Cloud
551+
// resources.
550552
map<string, string> labels = 4 [(google.api.field_behavior) = OPTIONAL];
551553

552554
// Required. A list of references to the forwarding rules to which this

0 commit comments

Comments
 (0)