google.golang.org/grpc@v1.74.2/credentials/alts/internal/proto/grpc_gcp/transport_security_common.pb.go (about) 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.36.6 21 // protoc v5.27.1 22 // source: grpc/gcp/transport_security_common.proto 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 unsafe "unsafe" 32 ) 33 34 const ( 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 // The security level of the created channel. The list is sorted in increasing 42 // level of security. This order must always be maintained. 43 type SecurityLevel int32 44 45 const ( 46 SecurityLevel_SECURITY_NONE SecurityLevel = 0 47 SecurityLevel_INTEGRITY_ONLY SecurityLevel = 1 48 SecurityLevel_INTEGRITY_AND_PRIVACY SecurityLevel = 2 49 ) 50 51 // Enum value maps for SecurityLevel. 52 var ( 53 SecurityLevel_name = map[int32]string{ 54 0: "SECURITY_NONE", 55 1: "INTEGRITY_ONLY", 56 2: "INTEGRITY_AND_PRIVACY", 57 } 58 SecurityLevel_value = map[string]int32{ 59 "SECURITY_NONE": 0, 60 "INTEGRITY_ONLY": 1, 61 "INTEGRITY_AND_PRIVACY": 2, 62 } 63 ) 64 65 func (x SecurityLevel) Enum() *SecurityLevel { 66 p := new(SecurityLevel) 67 *p = x 68 return p 69 } 70 71 func (x SecurityLevel) String() string { 72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 73 } 74 75 func (SecurityLevel) Descriptor() protoreflect.EnumDescriptor { 76 return file_grpc_gcp_transport_security_common_proto_enumTypes[0].Descriptor() 77 } 78 79 func (SecurityLevel) Type() protoreflect.EnumType { 80 return &file_grpc_gcp_transport_security_common_proto_enumTypes[0] 81 } 82 83 func (x SecurityLevel) Number() protoreflect.EnumNumber { 84 return protoreflect.EnumNumber(x) 85 } 86 87 // Deprecated: Use SecurityLevel.Descriptor instead. 88 func (SecurityLevel) EnumDescriptor() ([]byte, []int) { 89 return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0} 90 } 91 92 // Max and min supported RPC protocol versions. 93 type RpcProtocolVersions struct { 94 state protoimpl.MessageState `protogen:"open.v1"` 95 // Maximum supported RPC version. 96 MaxRpcVersion *RpcProtocolVersions_Version `protobuf:"bytes,1,opt,name=max_rpc_version,json=maxRpcVersion,proto3" json:"max_rpc_version,omitempty"` 97 // Minimum supported RPC version. 98 MinRpcVersion *RpcProtocolVersions_Version `protobuf:"bytes,2,opt,name=min_rpc_version,json=minRpcVersion,proto3" json:"min_rpc_version,omitempty"` 99 unknownFields protoimpl.UnknownFields 100 sizeCache protoimpl.SizeCache 101 } 102 103 func (x *RpcProtocolVersions) Reset() { 104 *x = RpcProtocolVersions{} 105 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[0] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109 110 func (x *RpcProtocolVersions) String() string { 111 return protoimpl.X.MessageStringOf(x) 112 } 113 114 func (*RpcProtocolVersions) ProtoMessage() {} 115 116 func (x *RpcProtocolVersions) ProtoReflect() protoreflect.Message { 117 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[0] 118 if x != nil { 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 if ms.LoadMessageInfo() == nil { 121 ms.StoreMessageInfo(mi) 122 } 123 return ms 124 } 125 return mi.MessageOf(x) 126 } 127 128 // Deprecated: Use RpcProtocolVersions.ProtoReflect.Descriptor instead. 129 func (*RpcProtocolVersions) Descriptor() ([]byte, []int) { 130 return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0} 131 } 132 133 func (x *RpcProtocolVersions) GetMaxRpcVersion() *RpcProtocolVersions_Version { 134 if x != nil { 135 return x.MaxRpcVersion 136 } 137 return nil 138 } 139 140 func (x *RpcProtocolVersions) GetMinRpcVersion() *RpcProtocolVersions_Version { 141 if x != nil { 142 return x.MinRpcVersion 143 } 144 return nil 145 } 146 147 // The ordered list of protocols that the client wishes to use, or the set 148 // that the server supports. 149 type TransportProtocolPreferences struct { 150 state protoimpl.MessageState `protogen:"open.v1"` 151 TransportProtocol []string `protobuf:"bytes,1,rep,name=transport_protocol,json=transportProtocol,proto3" json:"transport_protocol,omitempty"` 152 unknownFields protoimpl.UnknownFields 153 sizeCache protoimpl.SizeCache 154 } 155 156 func (x *TransportProtocolPreferences) Reset() { 157 *x = TransportProtocolPreferences{} 158 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[1] 159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 160 ms.StoreMessageInfo(mi) 161 } 162 163 func (x *TransportProtocolPreferences) String() string { 164 return protoimpl.X.MessageStringOf(x) 165 } 166 167 func (*TransportProtocolPreferences) ProtoMessage() {} 168 169 func (x *TransportProtocolPreferences) ProtoReflect() protoreflect.Message { 170 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[1] 171 if x != nil { 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 if ms.LoadMessageInfo() == nil { 174 ms.StoreMessageInfo(mi) 175 } 176 return ms 177 } 178 return mi.MessageOf(x) 179 } 180 181 // Deprecated: Use TransportProtocolPreferences.ProtoReflect.Descriptor instead. 182 func (*TransportProtocolPreferences) Descriptor() ([]byte, []int) { 183 return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{1} 184 } 185 186 func (x *TransportProtocolPreferences) GetTransportProtocol() []string { 187 if x != nil { 188 return x.TransportProtocol 189 } 190 return nil 191 } 192 193 // The negotiated transport protocol. 194 type NegotiatedTransportProtocol struct { 195 state protoimpl.MessageState `protogen:"open.v1"` 196 TransportProtocol string `protobuf:"bytes,1,opt,name=transport_protocol,json=transportProtocol,proto3" json:"transport_protocol,omitempty"` 197 unknownFields protoimpl.UnknownFields 198 sizeCache protoimpl.SizeCache 199 } 200 201 func (x *NegotiatedTransportProtocol) Reset() { 202 *x = NegotiatedTransportProtocol{} 203 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[2] 204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 205 ms.StoreMessageInfo(mi) 206 } 207 208 func (x *NegotiatedTransportProtocol) String() string { 209 return protoimpl.X.MessageStringOf(x) 210 } 211 212 func (*NegotiatedTransportProtocol) ProtoMessage() {} 213 214 func (x *NegotiatedTransportProtocol) ProtoReflect() protoreflect.Message { 215 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[2] 216 if x != nil { 217 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 218 if ms.LoadMessageInfo() == nil { 219 ms.StoreMessageInfo(mi) 220 } 221 return ms 222 } 223 return mi.MessageOf(x) 224 } 225 226 // Deprecated: Use NegotiatedTransportProtocol.ProtoReflect.Descriptor instead. 227 func (*NegotiatedTransportProtocol) Descriptor() ([]byte, []int) { 228 return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{2} 229 } 230 231 func (x *NegotiatedTransportProtocol) GetTransportProtocol() string { 232 if x != nil { 233 return x.TransportProtocol 234 } 235 return "" 236 } 237 238 // RPC version contains a major version and a minor version. 239 type RpcProtocolVersions_Version struct { 240 state protoimpl.MessageState `protogen:"open.v1"` 241 Major uint32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` 242 Minor uint32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` 243 unknownFields protoimpl.UnknownFields 244 sizeCache protoimpl.SizeCache 245 } 246 247 func (x *RpcProtocolVersions_Version) Reset() { 248 *x = RpcProtocolVersions_Version{} 249 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[3] 250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 251 ms.StoreMessageInfo(mi) 252 } 253 254 func (x *RpcProtocolVersions_Version) String() string { 255 return protoimpl.X.MessageStringOf(x) 256 } 257 258 func (*RpcProtocolVersions_Version) ProtoMessage() {} 259 260 func (x *RpcProtocolVersions_Version) ProtoReflect() protoreflect.Message { 261 mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[3] 262 if x != nil { 263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 264 if ms.LoadMessageInfo() == nil { 265 ms.StoreMessageInfo(mi) 266 } 267 return ms 268 } 269 return mi.MessageOf(x) 270 } 271 272 // Deprecated: Use RpcProtocolVersions_Version.ProtoReflect.Descriptor instead. 273 func (*RpcProtocolVersions_Version) Descriptor() ([]byte, []int) { 274 return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0, 0} 275 } 276 277 func (x *RpcProtocolVersions_Version) GetMajor() uint32 { 278 if x != nil { 279 return x.Major 280 } 281 return 0 282 } 283 284 func (x *RpcProtocolVersions_Version) GetMinor() uint32 { 285 if x != nil { 286 return x.Minor 287 } 288 return 0 289 } 290 291 var File_grpc_gcp_transport_security_common_proto protoreflect.FileDescriptor 292 293 const file_grpc_gcp_transport_security_common_proto_rawDesc = "" + 294 "\n" + 295 "(grpc/gcp/transport_security_common.proto\x12\bgrpc.gcp\"\xea\x01\n" + 296 "\x13RpcProtocolVersions\x12M\n" + 297 "\x0fmax_rpc_version\x18\x01 \x01(\v2%.grpc.gcp.RpcProtocolVersions.VersionR\rmaxRpcVersion\x12M\n" + 298 "\x0fmin_rpc_version\x18\x02 \x01(\v2%.grpc.gcp.RpcProtocolVersions.VersionR\rminRpcVersion\x1a5\n" + 299 "\aVersion\x12\x14\n" + 300 "\x05major\x18\x01 \x01(\rR\x05major\x12\x14\n" + 301 "\x05minor\x18\x02 \x01(\rR\x05minor\"M\n" + 302 "\x1cTransportProtocolPreferences\x12-\n" + 303 "\x12transport_protocol\x18\x01 \x03(\tR\x11transportProtocol\"L\n" + 304 "\x1bNegotiatedTransportProtocol\x12-\n" + 305 "\x12transport_protocol\x18\x01 \x01(\tR\x11transportProtocol*Q\n" + 306 "\rSecurityLevel\x12\x11\n" + 307 "\rSECURITY_NONE\x10\x00\x12\x12\n" + 308 "\x0eINTEGRITY_ONLY\x10\x01\x12\x19\n" + 309 "\x15INTEGRITY_AND_PRIVACY\x10\x02Bx\n" + 310 "\x15io.grpc.alts.internalB\x1cTransportSecurityCommonProtoP\x01Z?google.golang.org/grpc/credentials/alts/internal/proto/grpc_gcpb\x06proto3" 311 312 var ( 313 file_grpc_gcp_transport_security_common_proto_rawDescOnce sync.Once 314 file_grpc_gcp_transport_security_common_proto_rawDescData []byte 315 ) 316 317 func file_grpc_gcp_transport_security_common_proto_rawDescGZIP() []byte { 318 file_grpc_gcp_transport_security_common_proto_rawDescOnce.Do(func() { 319 file_grpc_gcp_transport_security_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_gcp_transport_security_common_proto_rawDesc), len(file_grpc_gcp_transport_security_common_proto_rawDesc))) 320 }) 321 return file_grpc_gcp_transport_security_common_proto_rawDescData 322 } 323 324 var file_grpc_gcp_transport_security_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 325 var file_grpc_gcp_transport_security_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 326 var file_grpc_gcp_transport_security_common_proto_goTypes = []any{ 327 (SecurityLevel)(0), // 0: grpc.gcp.SecurityLevel 328 (*RpcProtocolVersions)(nil), // 1: grpc.gcp.RpcProtocolVersions 329 (*TransportProtocolPreferences)(nil), // 2: grpc.gcp.TransportProtocolPreferences 330 (*NegotiatedTransportProtocol)(nil), // 3: grpc.gcp.NegotiatedTransportProtocol 331 (*RpcProtocolVersions_Version)(nil), // 4: grpc.gcp.RpcProtocolVersions.Version 332 } 333 var file_grpc_gcp_transport_security_common_proto_depIdxs = []int32{ 334 4, // 0: grpc.gcp.RpcProtocolVersions.max_rpc_version:type_name -> grpc.gcp.RpcProtocolVersions.Version 335 4, // 1: grpc.gcp.RpcProtocolVersions.min_rpc_version:type_name -> grpc.gcp.RpcProtocolVersions.Version 336 2, // [2:2] is the sub-list for method output_type 337 2, // [2:2] is the sub-list for method input_type 338 2, // [2:2] is the sub-list for extension type_name 339 2, // [2:2] is the sub-list for extension extendee 340 0, // [0:2] is the sub-list for field type_name 341 } 342 343 func init() { file_grpc_gcp_transport_security_common_proto_init() } 344 func file_grpc_gcp_transport_security_common_proto_init() { 345 if File_grpc_gcp_transport_security_common_proto != nil { 346 return 347 } 348 type x struct{} 349 out := protoimpl.TypeBuilder{ 350 File: protoimpl.DescBuilder{ 351 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 352 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_gcp_transport_security_common_proto_rawDesc), len(file_grpc_gcp_transport_security_common_proto_rawDesc)), 353 NumEnums: 1, 354 NumMessages: 4, 355 NumExtensions: 0, 356 NumServices: 0, 357 }, 358 GoTypes: file_grpc_gcp_transport_security_common_proto_goTypes, 359 DependencyIndexes: file_grpc_gcp_transport_security_common_proto_depIdxs, 360 EnumInfos: file_grpc_gcp_transport_security_common_proto_enumTypes, 361 MessageInfos: file_grpc_gcp_transport_security_common_proto_msgTypes, 362 }.Build() 363 File_grpc_gcp_transport_security_common_proto = out.File 364 file_grpc_gcp_transport_security_common_proto_goTypes = nil 365 file_grpc_gcp_transport_security_common_proto_depIdxs = nil 366 }