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