• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/transport_security_common.proto
17
18syntax = "proto3";
19
20package grpc.gcp;
21
22option go_package = "google.golang.org/grpc/credentials/alts/internal/proto/grpc_gcp";
23option java_multiple_files = true;
24option java_outer_classname = "TransportSecurityCommonProto";
25option java_package = "io.grpc.alts.internal";
26
27// The security level of the created channel. The list is sorted in increasing
28// level of security. This order must always be maintained.
29enum SecurityLevel {
30  SECURITY_NONE = 0;
31  INTEGRITY_ONLY = 1;
32  INTEGRITY_AND_PRIVACY = 2;
33}
34
35// Max and min supported RPC protocol versions.
36message RpcProtocolVersions {
37  // RPC version contains a major version and a minor version.
38  message Version {
39    uint32 major = 1;
40    uint32 minor = 2;
41  }
42  // Maximum supported RPC version.
43  Version max_rpc_version = 1;
44  // Minimum supported RPC version.
45  Version min_rpc_version = 2;
46}
47