aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/googleapis-common-protos/google/api/context.proto
diff options
context:
space:
mode:
authorbugaevskiy <bugaevskiy@yandex-team.com>2022-07-24 00:18:56 +0300
committerbugaevskiy <bugaevskiy@yandex-team.com>2022-07-24 00:18:56 +0300
commit574b79287767a711217816f3c0719095e56f2b66 (patch)
tree6ec67349afe5d8b61c85bc6fd4bb1331486ece42 /contrib/libs/googleapis-common-protos/google/api/context.proto
parentbdfa64a2dfbfa18015103f731c6017fd61a34842 (diff)
downloadydb-574b79287767a711217816f3c0719095e56f2b66.tar.gz
Reimport boost/array as a separate project
Diffstat (limited to 'contrib/libs/googleapis-common-protos/google/api/context.proto')
-rw-r--r--contrib/libs/googleapis-common-protos/google/api/context.proto30
1 files changed, 28 insertions, 2 deletions
diff --git a/contrib/libs/googleapis-common-protos/google/api/context.proto b/contrib/libs/googleapis-common-protos/google/api/context.proto
index fd03fcae91..8e776ecfc3 100644
--- a/contrib/libs/googleapis-common-protos/google/api/context.proto
+++ b/contrib/libs/googleapis-common-protos/google/api/context.proto
@@ -1,4 +1,4 @@
-// Copyright 2017 Google Inc.
+// Copyright 2015 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@ option java_outer_classname = "ContextProto";
option java_package = "com.google.api";
option objc_class_prefix = "GAPI";
-
// `Context` defines which contexts an API requests.
//
// Example:
@@ -40,6 +39,25 @@ option objc_class_prefix = "GAPI";
//
// Available context types are defined in package
// `google.rpc.context`.
+//
+// This also provides mechanism to allowlist any protobuf message extension that
+// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
+// “x-goog-ext-<extension_id>-jspb” format. For example, list any service
+// specific protobuf types that can appear in grpc metadata as follows in your
+// yaml file:
+//
+// Example:
+//
+// context:
+// rules:
+// - selector: "google.example.library.v1.LibraryService.CreateBook"
+// allowed_request_extensions:
+// - google.foo.v1.NewExtension
+// allowed_response_extensions:
+// - google.foo.v1.NewExtension
+//
+// You can also specify extension ID instead of fully qualified extension name
+// here.
message Context {
// A list of RPC context rules that apply to individual API methods.
//
@@ -60,4 +78,12 @@ message ContextRule {
// A list of full type names of provided contexts.
repeated string provided = 3;
+
+ // A list of full type names or extension IDs of extensions allowed in grpc
+ // side channel from client to backend.
+ repeated string allowed_request_extensions = 4;
+
+ // A list of full type names or extension IDs of extensions allowed in grpc
+ // side channel from backend to client.
+ repeated string allowed_response_extensions = 5;
}