google.golang.org/grpc@v1.74.2/credentials/alts/internal/proto/grpc_gcp/altscontext.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/altscontext.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/altscontext.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 type AltsContext struct { 42 state protoimpl.MessageState `protogen:"open.v1"` 43 // The application protocol negotiated for this connection. 44 ApplicationProtocol string `protobuf:"bytes,1,opt,name=application_protocol,json=applicationProtocol,proto3" json:"application_protocol,omitempty"` 45 // The record protocol negotiated for this connection. 46 RecordProtocol string `protobuf:"bytes,2,opt,name=record_protocol,json=recordProtocol,proto3" json:"record_protocol,omitempty"` 47 // The security level of the created secure channel. 48 SecurityLevel SecurityLevel `protobuf:"varint,3,opt,name=security_level,json=securityLevel,proto3,enum=grpc.gcp.SecurityLevel" json:"security_level,omitempty"` 49 // The peer service account. 50 PeerServiceAccount string `protobuf:"bytes,4,opt,name=peer_service_account,json=peerServiceAccount,proto3" json:"peer_service_account,omitempty"` 51 // The local service account. 52 LocalServiceAccount string `protobuf:"bytes,5,opt,name=local_service_account,json=localServiceAccount,proto3" json:"local_service_account,omitempty"` 53 // The RPC protocol versions supported by the peer. 54 PeerRpcVersions *RpcProtocolVersions `protobuf:"bytes,6,opt,name=peer_rpc_versions,json=peerRpcVersions,proto3" json:"peer_rpc_versions,omitempty"` 55 // Additional attributes of the peer. 56 PeerAttributes map[string]string `protobuf:"bytes,7,rep,name=peer_attributes,json=peerAttributes,proto3" json:"peer_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 57 unknownFields protoimpl.UnknownFields 58 sizeCache protoimpl.SizeCache 59 } 60 61 func (x *AltsContext) Reset() { 62 *x = AltsContext{} 63 mi := &file_grpc_gcp_altscontext_proto_msgTypes[0] 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 ms.StoreMessageInfo(mi) 66 } 67 68 func (x *AltsContext) String() string { 69 return protoimpl.X.MessageStringOf(x) 70 } 71 72 func (*AltsContext) ProtoMessage() {} 73 74 func (x *AltsContext) ProtoReflect() protoreflect.Message { 75 mi := &file_grpc_gcp_altscontext_proto_msgTypes[0] 76 if x != nil { 77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 78 if ms.LoadMessageInfo() == nil { 79 ms.StoreMessageInfo(mi) 80 } 81 return ms 82 } 83 return mi.MessageOf(x) 84 } 85 86 // Deprecated: Use AltsContext.ProtoReflect.Descriptor instead. 87 func (*AltsContext) Descriptor() ([]byte, []int) { 88 return file_grpc_gcp_altscontext_proto_rawDescGZIP(), []int{0} 89 } 90 91 func (x *AltsContext) GetApplicationProtocol() string { 92 if x != nil { 93 return x.ApplicationProtocol 94 } 95 return "" 96 } 97 98 func (x *AltsContext) GetRecordProtocol() string { 99 if x != nil { 100 return x.RecordProtocol 101 } 102 return "" 103 } 104 105 func (x *AltsContext) GetSecurityLevel() SecurityLevel { 106 if x != nil { 107 return x.SecurityLevel 108 } 109 return SecurityLevel_SECURITY_NONE 110 } 111 112 func (x *AltsContext) GetPeerServiceAccount() string { 113 if x != nil { 114 return x.PeerServiceAccount 115 } 116 return "" 117 } 118 119 func (x *AltsContext) GetLocalServiceAccount() string { 120 if x != nil { 121 return x.LocalServiceAccount 122 } 123 return "" 124 } 125 126 func (x *AltsContext) GetPeerRpcVersions() *RpcProtocolVersions { 127 if x != nil { 128 return x.PeerRpcVersions 129 } 130 return nil 131 } 132 133 func (x *AltsContext) GetPeerAttributes() map[string]string { 134 if x != nil { 135 return x.PeerAttributes 136 } 137 return nil 138 } 139 140 var File_grpc_gcp_altscontext_proto protoreflect.FileDescriptor 141 142 const file_grpc_gcp_altscontext_proto_rawDesc = "" + 143 "\n" + 144 "\x1agrpc/gcp/altscontext.proto\x12\bgrpc.gcp\x1a(grpc/gcp/transport_security_common.proto\"\xf1\x03\n" + 145 "\vAltsContext\x121\n" + 146 "\x14application_protocol\x18\x01 \x01(\tR\x13applicationProtocol\x12'\n" + 147 "\x0frecord_protocol\x18\x02 \x01(\tR\x0erecordProtocol\x12>\n" + 148 "\x0esecurity_level\x18\x03 \x01(\x0e2\x17.grpc.gcp.SecurityLevelR\rsecurityLevel\x120\n" + 149 "\x14peer_service_account\x18\x04 \x01(\tR\x12peerServiceAccount\x122\n" + 150 "\x15local_service_account\x18\x05 \x01(\tR\x13localServiceAccount\x12I\n" + 151 "\x11peer_rpc_versions\x18\x06 \x01(\v2\x1d.grpc.gcp.RpcProtocolVersionsR\x0fpeerRpcVersions\x12R\n" + 152 "\x0fpeer_attributes\x18\a \x03(\v2).grpc.gcp.AltsContext.PeerAttributesEntryR\x0epeerAttributes\x1aA\n" + 153 "\x13PeerAttributesEntry\x12\x10\n" + 154 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 155 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01Bl\n" + 156 "\x15io.grpc.alts.internalB\x10AltsContextProtoP\x01Z?google.golang.org/grpc/credentials/alts/internal/proto/grpc_gcpb\x06proto3" 157 158 var ( 159 file_grpc_gcp_altscontext_proto_rawDescOnce sync.Once 160 file_grpc_gcp_altscontext_proto_rawDescData []byte 161 ) 162 163 func file_grpc_gcp_altscontext_proto_rawDescGZIP() []byte { 164 file_grpc_gcp_altscontext_proto_rawDescOnce.Do(func() { 165 file_grpc_gcp_altscontext_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_gcp_altscontext_proto_rawDesc), len(file_grpc_gcp_altscontext_proto_rawDesc))) 166 }) 167 return file_grpc_gcp_altscontext_proto_rawDescData 168 } 169 170 var file_grpc_gcp_altscontext_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 171 var file_grpc_gcp_altscontext_proto_goTypes = []any{ 172 (*AltsContext)(nil), // 0: grpc.gcp.AltsContext 173 nil, // 1: grpc.gcp.AltsContext.PeerAttributesEntry 174 (SecurityLevel)(0), // 2: grpc.gcp.SecurityLevel 175 (*RpcProtocolVersions)(nil), // 3: grpc.gcp.RpcProtocolVersions 176 } 177 var file_grpc_gcp_altscontext_proto_depIdxs = []int32{ 178 2, // 0: grpc.gcp.AltsContext.security_level:type_name -> grpc.gcp.SecurityLevel 179 3, // 1: grpc.gcp.AltsContext.peer_rpc_versions:type_name -> grpc.gcp.RpcProtocolVersions 180 1, // 2: grpc.gcp.AltsContext.peer_attributes:type_name -> grpc.gcp.AltsContext.PeerAttributesEntry 181 3, // [3:3] is the sub-list for method output_type 182 3, // [3:3] is the sub-list for method input_type 183 3, // [3:3] is the sub-list for extension type_name 184 3, // [3:3] is the sub-list for extension extendee 185 0, // [0:3] is the sub-list for field type_name 186 } 187 188 func init() { file_grpc_gcp_altscontext_proto_init() } 189 func file_grpc_gcp_altscontext_proto_init() { 190 if File_grpc_gcp_altscontext_proto != nil { 191 return 192 } 193 file_grpc_gcp_transport_security_common_proto_init() 194 type x struct{} 195 out := protoimpl.TypeBuilder{ 196 File: protoimpl.DescBuilder{ 197 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 198 RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_gcp_altscontext_proto_rawDesc), len(file_grpc_gcp_altscontext_proto_rawDesc)), 199 NumEnums: 0, 200 NumMessages: 2, 201 NumExtensions: 0, 202 NumServices: 0, 203 }, 204 GoTypes: file_grpc_gcp_altscontext_proto_goTypes, 205 DependencyIndexes: file_grpc_gcp_altscontext_proto_depIdxs, 206 MessageInfos: file_grpc_gcp_altscontext_proto_msgTypes, 207 }.Build() 208 File_grpc_gcp_altscontext_proto = out.File 209 file_grpc_gcp_altscontext_proto_goTypes = nil 210 file_grpc_gcp_altscontext_proto_depIdxs = nil 211 }