gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/service/accesslog/v2/als.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/service/accesslog/v2/als.proto 6 7 package envoy_service_accesslog_v2 8 9 import ( 10 context "context" 11 _ "github.com/cncf/xds/go/udpa/annotations" 12 core "gitee.com/ks-custle/core-gm/go-control-plane/envoy/api/v2/core" 13 v2 "gitee.com/ks-custle/core-gm/go-control-plane/envoy/data/accesslog/v2" 14 _ "github.com/envoyproxy/protoc-gen-validate/validate" 15 proto "github.com/golang/protobuf/proto" 16 grpc "gitee.com/ks-custle/core-gm/grpc" 17 codes "gitee.com/ks-custle/core-gm/grpc/codes" 18 status "gitee.com/ks-custle/core-gm/grpc/status" 19 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 20 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 21 reflect "reflect" 22 sync "sync" 23 ) 24 25 const ( 26 // Verify that this generated code is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 28 // Verify that runtime/protoimpl is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 30 ) 31 32 // This is a compile-time assertion that a sufficiently up-to-date version 33 // of the legacy proto package is being used. 34 const _ = proto.ProtoPackageIsVersion4 35 36 // Empty response for the StreamAccessLogs API. Will never be sent. See below. 37 type StreamAccessLogsResponse struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 } 42 43 func (x *StreamAccessLogsResponse) Reset() { 44 *x = StreamAccessLogsResponse{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *StreamAccessLogsResponse) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*StreamAccessLogsResponse) ProtoMessage() {} 57 58 func (x *StreamAccessLogsResponse) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use StreamAccessLogsResponse.ProtoReflect.Descriptor instead. 71 func (*StreamAccessLogsResponse) Descriptor() ([]byte, []int) { 72 return file_envoy_service_accesslog_v2_als_proto_rawDescGZIP(), []int{0} 73 } 74 75 // Stream message for the StreamAccessLogs API. Envoy will open a stream to the server and stream 76 // access logs without ever expecting a response. 77 type StreamAccessLogsMessage struct { 78 state protoimpl.MessageState 79 sizeCache protoimpl.SizeCache 80 unknownFields protoimpl.UnknownFields 81 82 // Identifier data that will only be sent in the first message on the stream. This is effectively 83 // structured metadata and is a performance optimization. 84 Identifier *StreamAccessLogsMessage_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` 85 // Batches of log entries of a single type. Generally speaking, a given stream should only 86 // ever include one type of log entry. 87 // 88 // Types that are assignable to LogEntries: 89 // *StreamAccessLogsMessage_HttpLogs 90 // *StreamAccessLogsMessage_TcpLogs 91 LogEntries isStreamAccessLogsMessage_LogEntries `protobuf_oneof:"log_entries"` 92 } 93 94 func (x *StreamAccessLogsMessage) Reset() { 95 *x = StreamAccessLogsMessage{} 96 if protoimpl.UnsafeEnabled { 97 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[1] 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 ms.StoreMessageInfo(mi) 100 } 101 } 102 103 func (x *StreamAccessLogsMessage) String() string { 104 return protoimpl.X.MessageStringOf(x) 105 } 106 107 func (*StreamAccessLogsMessage) ProtoMessage() {} 108 109 func (x *StreamAccessLogsMessage) ProtoReflect() protoreflect.Message { 110 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[1] 111 if protoimpl.UnsafeEnabled && x != nil { 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 if ms.LoadMessageInfo() == nil { 114 ms.StoreMessageInfo(mi) 115 } 116 return ms 117 } 118 return mi.MessageOf(x) 119 } 120 121 // Deprecated: Use StreamAccessLogsMessage.ProtoReflect.Descriptor instead. 122 func (*StreamAccessLogsMessage) Descriptor() ([]byte, []int) { 123 return file_envoy_service_accesslog_v2_als_proto_rawDescGZIP(), []int{1} 124 } 125 126 func (x *StreamAccessLogsMessage) GetIdentifier() *StreamAccessLogsMessage_Identifier { 127 if x != nil { 128 return x.Identifier 129 } 130 return nil 131 } 132 133 func (m *StreamAccessLogsMessage) GetLogEntries() isStreamAccessLogsMessage_LogEntries { 134 if m != nil { 135 return m.LogEntries 136 } 137 return nil 138 } 139 140 func (x *StreamAccessLogsMessage) GetHttpLogs() *StreamAccessLogsMessage_HTTPAccessLogEntries { 141 if x, ok := x.GetLogEntries().(*StreamAccessLogsMessage_HttpLogs); ok { 142 return x.HttpLogs 143 } 144 return nil 145 } 146 147 func (x *StreamAccessLogsMessage) GetTcpLogs() *StreamAccessLogsMessage_TCPAccessLogEntries { 148 if x, ok := x.GetLogEntries().(*StreamAccessLogsMessage_TcpLogs); ok { 149 return x.TcpLogs 150 } 151 return nil 152 } 153 154 type isStreamAccessLogsMessage_LogEntries interface { 155 isStreamAccessLogsMessage_LogEntries() 156 } 157 158 type StreamAccessLogsMessage_HttpLogs struct { 159 HttpLogs *StreamAccessLogsMessage_HTTPAccessLogEntries `protobuf:"bytes,2,opt,name=http_logs,json=httpLogs,proto3,oneof"` 160 } 161 162 type StreamAccessLogsMessage_TcpLogs struct { 163 TcpLogs *StreamAccessLogsMessage_TCPAccessLogEntries `protobuf:"bytes,3,opt,name=tcp_logs,json=tcpLogs,proto3,oneof"` 164 } 165 166 func (*StreamAccessLogsMessage_HttpLogs) isStreamAccessLogsMessage_LogEntries() {} 167 168 func (*StreamAccessLogsMessage_TcpLogs) isStreamAccessLogsMessage_LogEntries() {} 169 170 type StreamAccessLogsMessage_Identifier struct { 171 state protoimpl.MessageState 172 sizeCache protoimpl.SizeCache 173 unknownFields protoimpl.UnknownFields 174 175 // The node sending the access log messages over the stream. 176 Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` 177 // The friendly name of the log configured in :ref:`CommonGrpcAccessLogConfig 178 // <envoy_api_msg_config.accesslog.v2.CommonGrpcAccessLogConfig>`. 179 LogName string `protobuf:"bytes,2,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` 180 } 181 182 func (x *StreamAccessLogsMessage_Identifier) Reset() { 183 *x = StreamAccessLogsMessage_Identifier{} 184 if protoimpl.UnsafeEnabled { 185 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[2] 186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 187 ms.StoreMessageInfo(mi) 188 } 189 } 190 191 func (x *StreamAccessLogsMessage_Identifier) String() string { 192 return protoimpl.X.MessageStringOf(x) 193 } 194 195 func (*StreamAccessLogsMessage_Identifier) ProtoMessage() {} 196 197 func (x *StreamAccessLogsMessage_Identifier) ProtoReflect() protoreflect.Message { 198 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[2] 199 if protoimpl.UnsafeEnabled && x != nil { 200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 201 if ms.LoadMessageInfo() == nil { 202 ms.StoreMessageInfo(mi) 203 } 204 return ms 205 } 206 return mi.MessageOf(x) 207 } 208 209 // Deprecated: Use StreamAccessLogsMessage_Identifier.ProtoReflect.Descriptor instead. 210 func (*StreamAccessLogsMessage_Identifier) Descriptor() ([]byte, []int) { 211 return file_envoy_service_accesslog_v2_als_proto_rawDescGZIP(), []int{1, 0} 212 } 213 214 func (x *StreamAccessLogsMessage_Identifier) GetNode() *core.Node { 215 if x != nil { 216 return x.Node 217 } 218 return nil 219 } 220 221 func (x *StreamAccessLogsMessage_Identifier) GetLogName() string { 222 if x != nil { 223 return x.LogName 224 } 225 return "" 226 } 227 228 // Wrapper for batches of HTTP access log entries. 229 type StreamAccessLogsMessage_HTTPAccessLogEntries struct { 230 state protoimpl.MessageState 231 sizeCache protoimpl.SizeCache 232 unknownFields protoimpl.UnknownFields 233 234 LogEntry []*v2.HTTPAccessLogEntry `protobuf:"bytes,1,rep,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` 235 } 236 237 func (x *StreamAccessLogsMessage_HTTPAccessLogEntries) Reset() { 238 *x = StreamAccessLogsMessage_HTTPAccessLogEntries{} 239 if protoimpl.UnsafeEnabled { 240 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[3] 241 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 242 ms.StoreMessageInfo(mi) 243 } 244 } 245 246 func (x *StreamAccessLogsMessage_HTTPAccessLogEntries) String() string { 247 return protoimpl.X.MessageStringOf(x) 248 } 249 250 func (*StreamAccessLogsMessage_HTTPAccessLogEntries) ProtoMessage() {} 251 252 func (x *StreamAccessLogsMessage_HTTPAccessLogEntries) ProtoReflect() protoreflect.Message { 253 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[3] 254 if protoimpl.UnsafeEnabled && x != nil { 255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 256 if ms.LoadMessageInfo() == nil { 257 ms.StoreMessageInfo(mi) 258 } 259 return ms 260 } 261 return mi.MessageOf(x) 262 } 263 264 // Deprecated: Use StreamAccessLogsMessage_HTTPAccessLogEntries.ProtoReflect.Descriptor instead. 265 func (*StreamAccessLogsMessage_HTTPAccessLogEntries) Descriptor() ([]byte, []int) { 266 return file_envoy_service_accesslog_v2_als_proto_rawDescGZIP(), []int{1, 1} 267 } 268 269 func (x *StreamAccessLogsMessage_HTTPAccessLogEntries) GetLogEntry() []*v2.HTTPAccessLogEntry { 270 if x != nil { 271 return x.LogEntry 272 } 273 return nil 274 } 275 276 // Wrapper for batches of TCP access log entries. 277 type StreamAccessLogsMessage_TCPAccessLogEntries struct { 278 state protoimpl.MessageState 279 sizeCache protoimpl.SizeCache 280 unknownFields protoimpl.UnknownFields 281 282 LogEntry []*v2.TCPAccessLogEntry `protobuf:"bytes,1,rep,name=log_entry,json=logEntry,proto3" json:"log_entry,omitempty"` 283 } 284 285 func (x *StreamAccessLogsMessage_TCPAccessLogEntries) Reset() { 286 *x = StreamAccessLogsMessage_TCPAccessLogEntries{} 287 if protoimpl.UnsafeEnabled { 288 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[4] 289 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 290 ms.StoreMessageInfo(mi) 291 } 292 } 293 294 func (x *StreamAccessLogsMessage_TCPAccessLogEntries) String() string { 295 return protoimpl.X.MessageStringOf(x) 296 } 297 298 func (*StreamAccessLogsMessage_TCPAccessLogEntries) ProtoMessage() {} 299 300 func (x *StreamAccessLogsMessage_TCPAccessLogEntries) ProtoReflect() protoreflect.Message { 301 mi := &file_envoy_service_accesslog_v2_als_proto_msgTypes[4] 302 if protoimpl.UnsafeEnabled && x != nil { 303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 304 if ms.LoadMessageInfo() == nil { 305 ms.StoreMessageInfo(mi) 306 } 307 return ms 308 } 309 return mi.MessageOf(x) 310 } 311 312 // Deprecated: Use StreamAccessLogsMessage_TCPAccessLogEntries.ProtoReflect.Descriptor instead. 313 func (*StreamAccessLogsMessage_TCPAccessLogEntries) Descriptor() ([]byte, []int) { 314 return file_envoy_service_accesslog_v2_als_proto_rawDescGZIP(), []int{1, 2} 315 } 316 317 func (x *StreamAccessLogsMessage_TCPAccessLogEntries) GetLogEntry() []*v2.TCPAccessLogEntry { 318 if x != nil { 319 return x.LogEntry 320 } 321 return nil 322 } 323 324 var File_envoy_service_accesslog_v2_als_proto protoreflect.FileDescriptor 325 326 var file_envoy_service_accesslog_v2_als_proto_rawDesc = []byte{ 327 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 328 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6c, 0x73, 329 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 330 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 331 0x76, 0x32, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 332 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 333 0x1a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x63, 334 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 335 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 336 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 337 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 338 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 339 0x6f, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 0x63, 0x65, 0x73, 340 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x05, 341 0x0a, 0x17, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 342 0x67, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 343 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 344 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 345 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 346 0x6d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 347 0x67, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x69, 348 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x67, 0x0a, 0x09, 0x68, 0x74, 0x74, 349 0x70, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x65, 350 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 351 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 352 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 353 0x65, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x45, 354 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x48, 0x00, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x4c, 0x6f, 355 0x67, 0x73, 0x12, 0x64, 0x0a, 0x08, 0x74, 0x63, 0x70, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x03, 356 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 357 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 358 0x32, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 359 0x67, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x43, 0x50, 0x41, 0x63, 0x63, 360 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x48, 0x00, 0x52, 361 0x07, 0x74, 0x63, 0x70, 0x4c, 0x6f, 0x67, 0x73, 0x1a, 0x67, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 362 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 363 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 364 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0xfa, 365 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 366 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 367 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 368 0x65, 0x1a, 0x6a, 0x0a, 0x14, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 369 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 370 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 371 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 372 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 373 0x73, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 374 0x02, 0x08, 0x01, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x1a, 0x68, 0x0a, 375 0x13, 0x54, 0x43, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 376 0x72, 0x69, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 0x6e, 0x74, 0x72, 377 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 378 0x64, 0x61, 0x74, 0x61, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 379 0x32, 0x2e, 0x54, 0x43, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 380 0x74, 0x72, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x08, 0x6c, 381 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x12, 0x0a, 0x0b, 0x6c, 0x6f, 0x67, 0x5f, 0x65, 382 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x32, 0x96, 0x01, 0x0a, 0x10, 383 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 384 0x12, 0x81, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 0x63, 0x65, 0x73, 385 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x33, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 386 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 387 0x76, 0x32, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 388 0x6f, 0x67, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x34, 0x2e, 0x65, 0x6e, 0x76, 389 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 390 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 391 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 392 0x22, 0x00, 0x28, 0x01, 0x42, 0x41, 0x0a, 0x28, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 393 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 394 0x69, 0x63, 0x65, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x32, 395 0x42, 0x08, 0x41, 0x6c, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x88, 0x01, 0x01, 0xba, 396 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 397 } 398 399 var ( 400 file_envoy_service_accesslog_v2_als_proto_rawDescOnce sync.Once 401 file_envoy_service_accesslog_v2_als_proto_rawDescData = file_envoy_service_accesslog_v2_als_proto_rawDesc 402 ) 403 404 func file_envoy_service_accesslog_v2_als_proto_rawDescGZIP() []byte { 405 file_envoy_service_accesslog_v2_als_proto_rawDescOnce.Do(func() { 406 file_envoy_service_accesslog_v2_als_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_accesslog_v2_als_proto_rawDescData) 407 }) 408 return file_envoy_service_accesslog_v2_als_proto_rawDescData 409 } 410 411 var file_envoy_service_accesslog_v2_als_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 412 var file_envoy_service_accesslog_v2_als_proto_goTypes = []interface{}{ 413 (*StreamAccessLogsResponse)(nil), // 0: envoy.service.accesslog.v2.StreamAccessLogsResponse 414 (*StreamAccessLogsMessage)(nil), // 1: envoy.service.accesslog.v2.StreamAccessLogsMessage 415 (*StreamAccessLogsMessage_Identifier)(nil), // 2: envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier 416 (*StreamAccessLogsMessage_HTTPAccessLogEntries)(nil), // 3: envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 417 (*StreamAccessLogsMessage_TCPAccessLogEntries)(nil), // 4: envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 418 (*core.Node)(nil), // 5: envoy.api.v2.core.Node 419 (*v2.HTTPAccessLogEntry)(nil), // 6: envoy.data.accesslog.v2.HTTPAccessLogEntry 420 (*v2.TCPAccessLogEntry)(nil), // 7: envoy.data.accesslog.v2.TCPAccessLogEntry 421 } 422 var file_envoy_service_accesslog_v2_als_proto_depIdxs = []int32{ 423 2, // 0: envoy.service.accesslog.v2.StreamAccessLogsMessage.identifier:type_name -> envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier 424 3, // 1: envoy.service.accesslog.v2.StreamAccessLogsMessage.http_logs:type_name -> envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries 425 4, // 2: envoy.service.accesslog.v2.StreamAccessLogsMessage.tcp_logs:type_name -> envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries 426 5, // 3: envoy.service.accesslog.v2.StreamAccessLogsMessage.Identifier.node:type_name -> envoy.api.v2.core.Node 427 6, // 4: envoy.service.accesslog.v2.StreamAccessLogsMessage.HTTPAccessLogEntries.log_entry:type_name -> envoy.data.accesslog.v2.HTTPAccessLogEntry 428 7, // 5: envoy.service.accesslog.v2.StreamAccessLogsMessage.TCPAccessLogEntries.log_entry:type_name -> envoy.data.accesslog.v2.TCPAccessLogEntry 429 1, // 6: envoy.service.accesslog.v2.AccessLogService.StreamAccessLogs:input_type -> envoy.service.accesslog.v2.StreamAccessLogsMessage 430 0, // 7: envoy.service.accesslog.v2.AccessLogService.StreamAccessLogs:output_type -> envoy.service.accesslog.v2.StreamAccessLogsResponse 431 7, // [7:8] is the sub-list for method output_type 432 6, // [6:7] is the sub-list for method input_type 433 6, // [6:6] is the sub-list for extension type_name 434 6, // [6:6] is the sub-list for extension extendee 435 0, // [0:6] is the sub-list for field type_name 436 } 437 438 func init() { file_envoy_service_accesslog_v2_als_proto_init() } 439 func file_envoy_service_accesslog_v2_als_proto_init() { 440 if File_envoy_service_accesslog_v2_als_proto != nil { 441 return 442 } 443 if !protoimpl.UnsafeEnabled { 444 file_envoy_service_accesslog_v2_als_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 445 switch v := v.(*StreamAccessLogsResponse); i { 446 case 0: 447 return &v.state 448 case 1: 449 return &v.sizeCache 450 case 2: 451 return &v.unknownFields 452 default: 453 return nil 454 } 455 } 456 file_envoy_service_accesslog_v2_als_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 457 switch v := v.(*StreamAccessLogsMessage); i { 458 case 0: 459 return &v.state 460 case 1: 461 return &v.sizeCache 462 case 2: 463 return &v.unknownFields 464 default: 465 return nil 466 } 467 } 468 file_envoy_service_accesslog_v2_als_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 469 switch v := v.(*StreamAccessLogsMessage_Identifier); i { 470 case 0: 471 return &v.state 472 case 1: 473 return &v.sizeCache 474 case 2: 475 return &v.unknownFields 476 default: 477 return nil 478 } 479 } 480 file_envoy_service_accesslog_v2_als_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 481 switch v := v.(*StreamAccessLogsMessage_HTTPAccessLogEntries); i { 482 case 0: 483 return &v.state 484 case 1: 485 return &v.sizeCache 486 case 2: 487 return &v.unknownFields 488 default: 489 return nil 490 } 491 } 492 file_envoy_service_accesslog_v2_als_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 493 switch v := v.(*StreamAccessLogsMessage_TCPAccessLogEntries); i { 494 case 0: 495 return &v.state 496 case 1: 497 return &v.sizeCache 498 case 2: 499 return &v.unknownFields 500 default: 501 return nil 502 } 503 } 504 } 505 file_envoy_service_accesslog_v2_als_proto_msgTypes[1].OneofWrappers = []interface{}{ 506 (*StreamAccessLogsMessage_HttpLogs)(nil), 507 (*StreamAccessLogsMessage_TcpLogs)(nil), 508 } 509 type x struct{} 510 out := protoimpl.TypeBuilder{ 511 File: protoimpl.DescBuilder{ 512 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 513 RawDescriptor: file_envoy_service_accesslog_v2_als_proto_rawDesc, 514 NumEnums: 0, 515 NumMessages: 5, 516 NumExtensions: 0, 517 NumServices: 1, 518 }, 519 GoTypes: file_envoy_service_accesslog_v2_als_proto_goTypes, 520 DependencyIndexes: file_envoy_service_accesslog_v2_als_proto_depIdxs, 521 MessageInfos: file_envoy_service_accesslog_v2_als_proto_msgTypes, 522 }.Build() 523 File_envoy_service_accesslog_v2_als_proto = out.File 524 file_envoy_service_accesslog_v2_als_proto_rawDesc = nil 525 file_envoy_service_accesslog_v2_als_proto_goTypes = nil 526 file_envoy_service_accesslog_v2_als_proto_depIdxs = nil 527 } 528 529 // Reference imports to suppress errors if they are not otherwise used. 530 var _ context.Context 531 var _ grpc.ClientConnInterface 532 533 // This is a compile-time assertion to ensure that this generated file 534 // is compatible with the grpc package it is being compiled against. 535 const _ = grpc.SupportPackageIsVersion6 536 537 // AccessLogServiceClient is the client API for AccessLogService service. 538 // 539 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 540 type AccessLogServiceClient interface { 541 // Envoy will connect and send StreamAccessLogsMessage messages forever. It does not expect any 542 // response to be sent as nothing would be done in the case of failure. The server should 543 // disconnect if it expects Envoy to reconnect. In the future we may decide to add a different 544 // API for "critical" access logs in which Envoy will buffer access logs for some period of time 545 // until it gets an ACK so it could then retry. This API is designed for high throughput with the 546 // expectation that it might be lossy. 547 StreamAccessLogs(ctx context.Context, opts ...grpc.CallOption) (AccessLogService_StreamAccessLogsClient, error) 548 } 549 550 type accessLogServiceClient struct { 551 cc grpc.ClientConnInterface 552 } 553 554 func NewAccessLogServiceClient(cc grpc.ClientConnInterface) AccessLogServiceClient { 555 return &accessLogServiceClient{cc} 556 } 557 558 func (c *accessLogServiceClient) StreamAccessLogs(ctx context.Context, opts ...grpc.CallOption) (AccessLogService_StreamAccessLogsClient, error) { 559 stream, err := c.cc.NewStream(ctx, &_AccessLogService_serviceDesc.Streams[0], "/envoy.service.accesslog.v2.AccessLogService/StreamAccessLogs", opts...) 560 if err != nil { 561 return nil, err 562 } 563 x := &accessLogServiceStreamAccessLogsClient{stream} 564 return x, nil 565 } 566 567 type AccessLogService_StreamAccessLogsClient interface { 568 Send(*StreamAccessLogsMessage) error 569 CloseAndRecv() (*StreamAccessLogsResponse, error) 570 grpc.ClientStream 571 } 572 573 type accessLogServiceStreamAccessLogsClient struct { 574 grpc.ClientStream 575 } 576 577 func (x *accessLogServiceStreamAccessLogsClient) Send(m *StreamAccessLogsMessage) error { 578 return x.ClientStream.SendMsg(m) 579 } 580 581 func (x *accessLogServiceStreamAccessLogsClient) CloseAndRecv() (*StreamAccessLogsResponse, error) { 582 if err := x.ClientStream.CloseSend(); err != nil { 583 return nil, err 584 } 585 m := new(StreamAccessLogsResponse) 586 if err := x.ClientStream.RecvMsg(m); err != nil { 587 return nil, err 588 } 589 return m, nil 590 } 591 592 // AccessLogServiceServer is the server API for AccessLogService service. 593 type AccessLogServiceServer interface { 594 // Envoy will connect and send StreamAccessLogsMessage messages forever. It does not expect any 595 // response to be sent as nothing would be done in the case of failure. The server should 596 // disconnect if it expects Envoy to reconnect. In the future we may decide to add a different 597 // API for "critical" access logs in which Envoy will buffer access logs for some period of time 598 // until it gets an ACK so it could then retry. This API is designed for high throughput with the 599 // expectation that it might be lossy. 600 StreamAccessLogs(AccessLogService_StreamAccessLogsServer) error 601 } 602 603 // UnimplementedAccessLogServiceServer can be embedded to have forward compatible implementations. 604 type UnimplementedAccessLogServiceServer struct { 605 } 606 607 func (*UnimplementedAccessLogServiceServer) StreamAccessLogs(AccessLogService_StreamAccessLogsServer) error { 608 return status.Errorf(codes.Unimplemented, "method StreamAccessLogs not implemented") 609 } 610 611 func RegisterAccessLogServiceServer(s *grpc.Server, srv AccessLogServiceServer) { 612 s.RegisterService(&_AccessLogService_serviceDesc, srv) 613 } 614 615 func _AccessLogService_StreamAccessLogs_Handler(srv interface{}, stream grpc.ServerStream) error { 616 return srv.(AccessLogServiceServer).StreamAccessLogs(&accessLogServiceStreamAccessLogsServer{stream}) 617 } 618 619 type AccessLogService_StreamAccessLogsServer interface { 620 SendAndClose(*StreamAccessLogsResponse) error 621 Recv() (*StreamAccessLogsMessage, error) 622 grpc.ServerStream 623 } 624 625 type accessLogServiceStreamAccessLogsServer struct { 626 grpc.ServerStream 627 } 628 629 func (x *accessLogServiceStreamAccessLogsServer) SendAndClose(m *StreamAccessLogsResponse) error { 630 return x.ServerStream.SendMsg(m) 631 } 632 633 func (x *accessLogServiceStreamAccessLogsServer) Recv() (*StreamAccessLogsMessage, error) { 634 m := new(StreamAccessLogsMessage) 635 if err := x.ServerStream.RecvMsg(m); err != nil { 636 return nil, err 637 } 638 return m, nil 639 } 640 641 var _AccessLogService_serviceDesc = grpc.ServiceDesc{ 642 ServiceName: "envoy.service.accesslog.v2.AccessLogService", 643 HandlerType: (*AccessLogServiceServer)(nil), 644 Methods: []grpc.MethodDesc{}, 645 Streams: []grpc.StreamDesc{ 646 { 647 StreamName: "StreamAccessLogs", 648 Handler: _AccessLogService_StreamAccessLogs_Handler, 649 ClientStreams: true, 650 }, 651 }, 652 Metadata: "envoy/service/accesslog/v2/als.proto", 653 }