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