xref: /aosp_15_r20/external/grpc-grpc/src/proto/grpc/gcp/altscontext.proto (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1*cc02d7e2SAndroid Build Coastguard Worker// Copyright 2018 The gRPC Authors
2*cc02d7e2SAndroid Build Coastguard Worker//
3*cc02d7e2SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*cc02d7e2SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*cc02d7e2SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*cc02d7e2SAndroid Build Coastguard Worker//
7*cc02d7e2SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*cc02d7e2SAndroid Build Coastguard Worker//
9*cc02d7e2SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*cc02d7e2SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*cc02d7e2SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*cc02d7e2SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*cc02d7e2SAndroid Build Coastguard Worker// limitations under the License.
14*cc02d7e2SAndroid Build Coastguard Worker
15*cc02d7e2SAndroid Build Coastguard Worker// The canonical version of this proto can be found at
16*cc02d7e2SAndroid Build Coastguard Worker// https://github.com/grpc/grpc-proto/blob/master/grpc/gcp/altscontext.proto
17*cc02d7e2SAndroid Build Coastguard Worker
18*cc02d7e2SAndroid Build Coastguard Workersyntax = "proto3";
19*cc02d7e2SAndroid Build Coastguard Worker
20*cc02d7e2SAndroid Build Coastguard Workerpackage grpc.gcp;
21*cc02d7e2SAndroid Build Coastguard Worker
22*cc02d7e2SAndroid Build Coastguard Workerimport "src/proto/grpc/gcp/transport_security_common.proto";
23*cc02d7e2SAndroid Build Coastguard Worker
24*cc02d7e2SAndroid Build Coastguard Workeroption go_package = "google.golang.org/grpc/credentials/alts/internal/proto/grpc_gcp";
25*cc02d7e2SAndroid Build Coastguard Workeroption java_multiple_files = true;
26*cc02d7e2SAndroid Build Coastguard Workeroption java_outer_classname = "AltsContextProto";
27*cc02d7e2SAndroid Build Coastguard Workeroption java_package = "io.grpc.alts.internal";
28*cc02d7e2SAndroid Build Coastguard Worker
29*cc02d7e2SAndroid Build Coastguard Workermessage AltsContext {
30*cc02d7e2SAndroid Build Coastguard Worker  // The application protocol negotiated for this connection.
31*cc02d7e2SAndroid Build Coastguard Worker  string application_protocol = 1;
32*cc02d7e2SAndroid Build Coastguard Worker
33*cc02d7e2SAndroid Build Coastguard Worker  // The record protocol negotiated for this connection.
34*cc02d7e2SAndroid Build Coastguard Worker  string record_protocol = 2;
35*cc02d7e2SAndroid Build Coastguard Worker
36*cc02d7e2SAndroid Build Coastguard Worker  // The security level of the created secure channel.
37*cc02d7e2SAndroid Build Coastguard Worker  SecurityLevel security_level = 3;
38*cc02d7e2SAndroid Build Coastguard Worker
39*cc02d7e2SAndroid Build Coastguard Worker  // The peer service account.
40*cc02d7e2SAndroid Build Coastguard Worker  string peer_service_account = 4;
41*cc02d7e2SAndroid Build Coastguard Worker
42*cc02d7e2SAndroid Build Coastguard Worker  // The local service account.
43*cc02d7e2SAndroid Build Coastguard Worker  string local_service_account = 5;
44*cc02d7e2SAndroid Build Coastguard Worker
45*cc02d7e2SAndroid Build Coastguard Worker  // The RPC protocol versions supported by the peer.
46*cc02d7e2SAndroid Build Coastguard Worker  RpcProtocolVersions peer_rpc_versions = 6;
47*cc02d7e2SAndroid Build Coastguard Worker
48*cc02d7e2SAndroid Build Coastguard Worker  // Additional attributes of the peer.
49*cc02d7e2SAndroid Build Coastguard Worker  map<string, string> peer_attributes = 7;
50*cc02d7e2SAndroid Build Coastguard Worker}
51