@@ -26,6 +26,7 @@ import "google/longrunning/operations.proto";
2626import "google/protobuf/duration.proto" ;
2727import "google/protobuf/empty.proto" ;
2828import "google/protobuf/field_mask.proto" ;
29+ import "google/protobuf/struct.proto" ;
2930import "google/protobuf/timestamp.proto" ;
3031
3132option csharp_namespace = "Google.Cloud.NetworkServices.V1" ;
@@ -218,8 +219,7 @@ message ExtensionChain {
218219 // Required. A Common Expression Language (CEL) expression that is used to
219220 // match requests for which the extension chain is executed.
220221 //
221- // For more information, see
222- // [CEL matcher language
222+ // For more information, see [CEL matcher language
223223 // reference](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference).
224224 string cel_expression = 1 [(google.api.field_behavior ) = REQUIRED ];
225225 }
@@ -255,7 +255,7 @@ message ExtensionChain {
255255
256256 // Optional. A set of events during request or response processing for which
257257 // this extension is called. This field is required for the
258- // `LbTrafficExtension` resource. It's not relevant for the
258+ // `LbTrafficExtension` resource. It must not be set for the
259259 // `LbRouteExtension` resource.
260260 repeated EventType supported_events = 4
261261 [(google.api.field_behavior ) = OPTIONAL ];
@@ -273,6 +273,7 @@ message ExtensionChain {
273273 // error. Any subsequent extensions in the extension chain are also
274274 // executed. When set to `FALSE` or the default setting of `FALSE` is used,
275275 // one of the following happens:
276+ //
276277 // * If response headers have not been delivered to the downstream client,
277278 // a generic 500 error is returned to the client. The error response can be
278279 // tailored by configuring a custom error response in the load balancer.
@@ -341,8 +342,8 @@ message LbTrafficExtension {
341342 // Optional. Set of labels associated with the `LbTrafficExtension` resource.
342343 //
343344 // The format must comply with [the requirements for
344- // labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud
345- // resources.
345+ // labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
346+ // for Google Cloud resources.
346347 map <string , string > labels = 4 [(google.api.field_behavior ) = OPTIONAL ];
347348
348349 // Required. A list of references to the forwarding rules to which this
@@ -366,6 +367,16 @@ message LbTrafficExtension {
366367 // balancer](https://cloud.google.com/load-balancing/docs/backend-service).
367368 LoadBalancingScheme load_balancing_scheme = 8
368369 [(google.api.field_behavior ) = REQUIRED ];
370+
371+ // Optional. The metadata provided here is included in the
372+ // `ProcessingRequest.metadata_context.filter_metadata` map field. The
373+ // metadata is available under the key
374+ // `com.google.lb_traffic_extension.<resource_name>`.
375+ // The following variables are supported in the metadata:
376+ //
377+ // `{forwarding_rule_id}` - substituted with the forwarding rule's fully
378+ // qualified resource name.
379+ google.protobuf.Struct metadata = 10 [(google.api.field_behavior ) = OPTIONAL ];
369380}
370381
371382// Message for requesting list of `LbTrafficExtension` resources.
@@ -459,13 +470,13 @@ message CreateLbTrafficExtensionRequest {
459470
460471// Message for updating a `LbTrafficExtension` resource.
461472message UpdateLbTrafficExtensionRequest {
462- // Required . Used to specify the fields to be overwritten in the
473+ // Optional . Used to specify the fields to be overwritten in the
463474 // `LbTrafficExtension` resource by the update.
464475 // The fields specified in the update_mask are relative to the resource, not
465476 // the full request. A field is overwritten if it is in the mask. If the
466477 // user does not specify a mask, then all fields are overwritten.
467478 google.protobuf.FieldMask update_mask = 1
468- [(google.api.field_behavior ) = REQUIRED ];
479+ [(google.api.field_behavior ) = OPTIONAL ];
469480
470481 // Required. `LbTrafficExtension` resource being updated.
471482 LbTrafficExtension lb_traffic_extension = 2
@@ -553,8 +564,8 @@ message LbRouteExtension {
553564 // Optional. Set of labels associated with the `LbRouteExtension` resource.
554565 //
555566 // The format must comply with [the requirements for
556- // labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud
557- // resources.
567+ // labels](https://cloud.google.com/compute/docs/labeling-resources#requirements)
568+ // for Google Cloud resources.
558569 map <string , string > labels = 4 [(google.api.field_behavior ) = OPTIONAL ];
559570
560571 // Required. A list of references to the forwarding rules to which this
@@ -578,6 +589,17 @@ message LbRouteExtension {
578589 // balancer](https://cloud.google.com/load-balancing/docs/backend-service).
579590 LoadBalancingScheme load_balancing_scheme = 8
580591 [(google.api.field_behavior ) = REQUIRED ];
592+
593+ // Optional. The metadata provided here is included as part of the
594+ // `metadata_context` (of type `google.protobuf.Struct`) in the
595+ // `ProcessingRequest` message sent to the extension
596+ // server. The metadata is available under the namespace
597+ // `com.google.lb_route_extension.<resource_name>`.
598+ // The following variables are supported in the metadata Struct:
599+ //
600+ // `{forwarding_rule_id}` - substituted with the forwarding rule's fully
601+ // qualified resource name.
602+ google.protobuf.Struct metadata = 10 [(google.api.field_behavior ) = OPTIONAL ];
581603}
582604
583605// Message for requesting list of `LbRouteExtension` resources.
@@ -671,13 +693,13 @@ message CreateLbRouteExtensionRequest {
671693
672694// Message for updating a `LbRouteExtension` resource.
673695message UpdateLbRouteExtensionRequest {
674- // Required . Used to specify the fields to be overwritten in the
696+ // Optional . Used to specify the fields to be overwritten in the
675697 // `LbRouteExtension` resource by the update.
676698 // The fields specified in the update_mask are relative to the resource, not
677699 // the full request. A field is overwritten if it is in the mask. If the
678700 // user does not specify a mask, then all fields are overwritten.
679701 google.protobuf.FieldMask update_mask = 1
680- [(google.api.field_behavior ) = REQUIRED ];
702+ [(google.api.field_behavior ) = OPTIONAL ];
681703
682704 // Required. `LbRouteExtension` resource being updated.
683705 LbRouteExtension lb_route_extension = 2
0 commit comments