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
18// Code generated by protoc-gen-go. DO NOT EDIT.
19// versions:
20// 	protoc-gen-go v1.25.0
21// 	protoc        v3.14.0
22// source: grpc/gcp/transport_security_common.proto
23
24package grpc_gcp
25
26import (
27	proto "github.com/golang/protobuf/proto"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30	reflect "reflect"
31	sync "sync"
32)
33
34const (
35	// Verify that this generated code is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37	// Verify that runtime/protoimpl is sufficiently up-to-date.
38	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39)
40
41// This is a compile-time assertion that a sufficiently up-to-date version
42// of the legacy proto package is being used.
43const _ = proto.ProtoPackageIsVersion4
44
45// The security level of the created channel. The list is sorted in increasing
46// level of security. This order must always be maintained.
47type SecurityLevel int32
48
49const (
50	SecurityLevel_SECURITY_NONE         SecurityLevel = 0
51	SecurityLevel_INTEGRITY_ONLY        SecurityLevel = 1
52	SecurityLevel_INTEGRITY_AND_PRIVACY SecurityLevel = 2
53)
54
55// Enum value maps for SecurityLevel.
56var (
57	SecurityLevel_name = map[int32]string{
58		0: "SECURITY_NONE",
59		1: "INTEGRITY_ONLY",
60		2: "INTEGRITY_AND_PRIVACY",
61	}
62	SecurityLevel_value = map[string]int32{
63		"SECURITY_NONE":         0,
64		"INTEGRITY_ONLY":        1,
65		"INTEGRITY_AND_PRIVACY": 2,
66	}
67)
68
69func (x SecurityLevel) Enum() *SecurityLevel {
70	p := new(SecurityLevel)
71	*p = x
72	return p
73}
74
75func (x SecurityLevel) String() string {
76	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77}
78
79func (SecurityLevel) Descriptor() protoreflect.EnumDescriptor {
80	return file_grpc_gcp_transport_security_common_proto_enumTypes[0].Descriptor()
81}
82
83func (SecurityLevel) Type() protoreflect.EnumType {
84	return &file_grpc_gcp_transport_security_common_proto_enumTypes[0]
85}
86
87func (x SecurityLevel) Number() protoreflect.EnumNumber {
88	return protoreflect.EnumNumber(x)
89}
90
91// Deprecated: Use SecurityLevel.Descriptor instead.
92func (SecurityLevel) EnumDescriptor() ([]byte, []int) {
93	return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0}
94}
95
96// Max and min supported RPC protocol versions.
97type RpcProtocolVersions struct {
98	state         protoimpl.MessageState
99	sizeCache     protoimpl.SizeCache
100	unknownFields protoimpl.UnknownFields
101
102	// Maximum supported RPC version.
103	MaxRpcVersion *RpcProtocolVersions_Version `protobuf:"bytes,1,opt,name=max_rpc_version,json=maxRpcVersion,proto3" json:"max_rpc_version,omitempty"`
104	// Minimum supported RPC version.
105	MinRpcVersion *RpcProtocolVersions_Version `protobuf:"bytes,2,opt,name=min_rpc_version,json=minRpcVersion,proto3" json:"min_rpc_version,omitempty"`
106}
107
108func (x *RpcProtocolVersions) Reset() {
109	*x = RpcProtocolVersions{}
110	if protoimpl.UnsafeEnabled {
111		mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[0]
112		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
113		ms.StoreMessageInfo(mi)
114	}
115}
116
117func (x *RpcProtocolVersions) String() string {
118	return protoimpl.X.MessageStringOf(x)
119}
120
121func (*RpcProtocolVersions) ProtoMessage() {}
122
123func (x *RpcProtocolVersions) ProtoReflect() protoreflect.Message {
124	mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[0]
125	if protoimpl.UnsafeEnabled && x != nil {
126		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127		if ms.LoadMessageInfo() == nil {
128			ms.StoreMessageInfo(mi)
129		}
130		return ms
131	}
132	return mi.MessageOf(x)
133}
134
135// Deprecated: Use RpcProtocolVersions.ProtoReflect.Descriptor instead.
136func (*RpcProtocolVersions) Descriptor() ([]byte, []int) {
137	return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0}
138}
139
140func (x *RpcProtocolVersions) GetMaxRpcVersion() *RpcProtocolVersions_Version {
141	if x != nil {
142		return x.MaxRpcVersion
143	}
144	return nil
145}
146
147func (x *RpcProtocolVersions) GetMinRpcVersion() *RpcProtocolVersions_Version {
148	if x != nil {
149		return x.MinRpcVersion
150	}
151	return nil
152}
153
154// RPC version contains a major version and a minor version.
155type RpcProtocolVersions_Version struct {
156	state         protoimpl.MessageState
157	sizeCache     protoimpl.SizeCache
158	unknownFields protoimpl.UnknownFields
159
160	Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
161	Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
162}
163
164func (x *RpcProtocolVersions_Version) Reset() {
165	*x = RpcProtocolVersions_Version{}
166	if protoimpl.UnsafeEnabled {
167		mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[1]
168		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
169		ms.StoreMessageInfo(mi)
170	}
171}
172
173func (x *RpcProtocolVersions_Version) String() string {
174	return protoimpl.X.MessageStringOf(x)
175}
176
177func (*RpcProtocolVersions_Version) ProtoMessage() {}
178
179func (x *RpcProtocolVersions_Version) ProtoReflect() protoreflect.Message {
180	mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[1]
181	if protoimpl.UnsafeEnabled && x != nil {
182		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
183		if ms.LoadMessageInfo() == nil {
184			ms.StoreMessageInfo(mi)
185		}
186		return ms
187	}
188	return mi.MessageOf(x)
189}
190
191// Deprecated: Use RpcProtocolVersions_Version.ProtoReflect.Descriptor instead.
192func (*RpcProtocolVersions_Version) Descriptor() ([]byte, []int) {
193	return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0, 0}
194}
195
196func (x *RpcProtocolVersions_Version) GetMajor() uint32 {
197	if x != nil {
198		return x.Major
199	}
200	return 0
201}
202
203func (x *RpcProtocolVersions_Version) GetMinor() uint32 {
204	if x != nil {
205		return x.Minor
206	}
207	return 0
208}
209
210var File_grpc_gcp_transport_security_common_proto protoreflect.FileDescriptor
211
212var file_grpc_gcp_transport_security_common_proto_rawDesc = []byte{
213	0x0a, 0x28, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x63, 0x70, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
214	0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f,
215	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x67, 0x72, 0x70, 0x63,
216	0x2e, 0x67, 0x63, 0x70, 0x22, 0xea, 0x01, 0x0a, 0x13, 0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74,
217	0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4d, 0x0a, 0x0f,
218	0x6d, 0x61, 0x78, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
219	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63, 0x70,
220	0x2e, 0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73,
221	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6d, 0x61,
222	0x78, 0x52, 0x70, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x0f, 0x6d,
223	0x69, 0x6e, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02,
224	0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63, 0x70, 0x2e,
225	0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,
226	0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6d, 0x69, 0x6e,
227	0x52, 0x70, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x35, 0x0a, 0x07, 0x56, 0x65,
228	0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01,
229	0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d,
230	0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f,
231	0x72, 0x2a, 0x51, 0x0a, 0x0d, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4c, 0x65, 0x76,
232	0x65, 0x6c, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x45, 0x43, 0x55, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x4e,
233	0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x52, 0x49,
234	0x54, 0x59, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x54,
235	0x45, 0x47, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41,
236	0x43, 0x59, 0x10, 0x02, 0x42, 0x78, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
237	0x61, 0x6c, 0x74, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x42, 0x1c, 0x54,
238	0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
239	0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67,
240	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
241	0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
242	0x73, 0x2f, 0x61, 0x6c, 0x74, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
243	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x67, 0x63, 0x70, 0x62, 0x06,
244	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
245}
246
247var (
248	file_grpc_gcp_transport_security_common_proto_rawDescOnce sync.Once
249	file_grpc_gcp_transport_security_common_proto_rawDescData = file_grpc_gcp_transport_security_common_proto_rawDesc
250)
251
252func file_grpc_gcp_transport_security_common_proto_rawDescGZIP() []byte {
253	file_grpc_gcp_transport_security_common_proto_rawDescOnce.Do(func() {
254		file_grpc_gcp_transport_security_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_gcp_transport_security_common_proto_rawDescData)
255	})
256	return file_grpc_gcp_transport_security_common_proto_rawDescData
257}
258
259var file_grpc_gcp_transport_security_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
260var file_grpc_gcp_transport_security_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
261var file_grpc_gcp_transport_security_common_proto_goTypes = []interface{}{
262	(SecurityLevel)(0),                  // 0: grpc.gcp.SecurityLevel
263	(*RpcProtocolVersions)(nil),         // 1: grpc.gcp.RpcProtocolVersions
264	(*RpcProtocolVersions_Version)(nil), // 2: grpc.gcp.RpcProtocolVersions.Version
265}
266var file_grpc_gcp_transport_security_common_proto_depIdxs = []int32{
267	2, // 0: grpc.gcp.RpcProtocolVersions.max_rpc_version:type_name -> grpc.gcp.RpcProtocolVersions.Version
268	2, // 1: grpc.gcp.RpcProtocolVersions.min_rpc_version:type_name -> grpc.gcp.RpcProtocolVersions.Version
269	2, // [2:2] is the sub-list for method output_type
270	2, // [2:2] is the sub-list for method input_type
271	2, // [2:2] is the sub-list for extension type_name
272	2, // [2:2] is the sub-list for extension extendee
273	0, // [0:2] is the sub-list for field type_name
274}
275
276func init() { file_grpc_gcp_transport_security_common_proto_init() }
277func file_grpc_gcp_transport_security_common_proto_init() {
278	if File_grpc_gcp_transport_security_common_proto != nil {
279		return
280	}
281	if !protoimpl.UnsafeEnabled {
282		file_grpc_gcp_transport_security_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
283			switch v := v.(*RpcProtocolVersions); i {
284			case 0:
285				return &v.state
286			case 1:
287				return &v.sizeCache
288			case 2:
289				return &v.unknownFields
290			default:
291				return nil
292			}
293		}
294		file_grpc_gcp_transport_security_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
295			switch v := v.(*RpcProtocolVersions_Version); i {
296			case 0:
297				return &v.state
298			case 1:
299				return &v.sizeCache
300			case 2:
301				return &v.unknownFields
302			default:
303				return nil
304			}
305		}
306	}
307	type x struct{}
308	out := protoimpl.TypeBuilder{
309		File: protoimpl.DescBuilder{
310			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
311			RawDescriptor: file_grpc_gcp_transport_security_common_proto_rawDesc,
312			NumEnums:      1,
313			NumMessages:   2,
314			NumExtensions: 0,
315			NumServices:   0,
316		},
317		GoTypes:           file_grpc_gcp_transport_security_common_proto_goTypes,
318		DependencyIndexes: file_grpc_gcp_transport_security_common_proto_depIdxs,
319		EnumInfos:         file_grpc_gcp_transport_security_common_proto_enumTypes,
320		MessageInfos:      file_grpc_gcp_transport_security_common_proto_msgTypes,
321	}.Build()
322	File_grpc_gcp_transport_security_common_proto = out.File
323	file_grpc_gcp_transport_security_common_proto_rawDesc = nil
324	file_grpc_gcp_transport_security_common_proto_goTypes = nil
325	file_grpc_gcp_transport_security_common_proto_depIdxs = nil
326}
327