github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/service/event_reporting/v2alpha/event_reporting_service.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/event_reporting/v2alpha/event_reporting_service.proto 6 7 package envoy_service_event_reporting_v2alpha 8 9 import ( 10 context "context" 11 _ "github.com/cncf/xds/go/udpa/annotations" 12 core "github.com/hxx258456/ccgo/go-control-plane/envoy/api/v2/core" 13 _ "github.com/envoyproxy/protoc-gen-validate/validate" 14 proto "github.com/golang/protobuf/proto" 15 any "github.com/golang/protobuf/ptypes/any" 16 grpc "github.com/hxx258456/ccgo/grpc" 17 codes "github.com/hxx258456/ccgo/grpc/codes" 18 status "github.com/hxx258456/ccgo/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 // [#not-implemented-hide:] 37 // An events envoy sends to the management server. 38 type StreamEventsRequest struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // Identifier data that will only be sent in the first message on the stream. This is effectively 44 // structured metadata and is a performance optimization. 45 Identifier *StreamEventsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` 46 // Batch of events. When the stream is already active, it will be the events occurred 47 // since the last message had been sent. If the server receives unknown event type, it should 48 // silently ignore it. 49 // 50 // The following events are supported: 51 // 52 // * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>` 53 // * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>` 54 Events []*any.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` 55 } 56 57 func (x *StreamEventsRequest) Reset() { 58 *x = StreamEventsRequest{} 59 if protoimpl.UnsafeEnabled { 60 mi := &file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[0] 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 ms.StoreMessageInfo(mi) 63 } 64 } 65 66 func (x *StreamEventsRequest) String() string { 67 return protoimpl.X.MessageStringOf(x) 68 } 69 70 func (*StreamEventsRequest) ProtoMessage() {} 71 72 func (x *StreamEventsRequest) ProtoReflect() protoreflect.Message { 73 mi := &file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[0] 74 if protoimpl.UnsafeEnabled && x != nil { 75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 76 if ms.LoadMessageInfo() == nil { 77 ms.StoreMessageInfo(mi) 78 } 79 return ms 80 } 81 return mi.MessageOf(x) 82 } 83 84 // Deprecated: Use StreamEventsRequest.ProtoReflect.Descriptor instead. 85 func (*StreamEventsRequest) Descriptor() ([]byte, []int) { 86 return file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescGZIP(), []int{0} 87 } 88 89 func (x *StreamEventsRequest) GetIdentifier() *StreamEventsRequest_Identifier { 90 if x != nil { 91 return x.Identifier 92 } 93 return nil 94 } 95 96 func (x *StreamEventsRequest) GetEvents() []*any.Any { 97 if x != nil { 98 return x.Events 99 } 100 return nil 101 } 102 103 // [#not-implemented-hide:] 104 // The management server may send envoy a StreamEventsResponse to tell which events the server 105 // is interested in. In future, with aggregated event reporting service, this message will 106 // contain, for example, clusters the envoy should send events for, or event types the server 107 // wants to process. 108 type StreamEventsResponse struct { 109 state protoimpl.MessageState 110 sizeCache protoimpl.SizeCache 111 unknownFields protoimpl.UnknownFields 112 } 113 114 func (x *StreamEventsResponse) Reset() { 115 *x = StreamEventsResponse{} 116 if protoimpl.UnsafeEnabled { 117 mi := &file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[1] 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 ms.StoreMessageInfo(mi) 120 } 121 } 122 123 func (x *StreamEventsResponse) String() string { 124 return protoimpl.X.MessageStringOf(x) 125 } 126 127 func (*StreamEventsResponse) ProtoMessage() {} 128 129 func (x *StreamEventsResponse) ProtoReflect() protoreflect.Message { 130 mi := &file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[1] 131 if protoimpl.UnsafeEnabled && x != nil { 132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 133 if ms.LoadMessageInfo() == nil { 134 ms.StoreMessageInfo(mi) 135 } 136 return ms 137 } 138 return mi.MessageOf(x) 139 } 140 141 // Deprecated: Use StreamEventsResponse.ProtoReflect.Descriptor instead. 142 func (*StreamEventsResponse) Descriptor() ([]byte, []int) { 143 return file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescGZIP(), []int{1} 144 } 145 146 type StreamEventsRequest_Identifier struct { 147 state protoimpl.MessageState 148 sizeCache protoimpl.SizeCache 149 unknownFields protoimpl.UnknownFields 150 151 // The node sending the event messages over the stream. 152 Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` 153 } 154 155 func (x *StreamEventsRequest_Identifier) Reset() { 156 *x = StreamEventsRequest_Identifier{} 157 if protoimpl.UnsafeEnabled { 158 mi := &file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[2] 159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 160 ms.StoreMessageInfo(mi) 161 } 162 } 163 164 func (x *StreamEventsRequest_Identifier) String() string { 165 return protoimpl.X.MessageStringOf(x) 166 } 167 168 func (*StreamEventsRequest_Identifier) ProtoMessage() {} 169 170 func (x *StreamEventsRequest_Identifier) ProtoReflect() protoreflect.Message { 171 mi := &file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[2] 172 if protoimpl.UnsafeEnabled && x != nil { 173 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 174 if ms.LoadMessageInfo() == nil { 175 ms.StoreMessageInfo(mi) 176 } 177 return ms 178 } 179 return mi.MessageOf(x) 180 } 181 182 // Deprecated: Use StreamEventsRequest_Identifier.ProtoReflect.Descriptor instead. 183 func (*StreamEventsRequest_Identifier) Descriptor() ([]byte, []int) { 184 return file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescGZIP(), []int{0, 0} 185 } 186 187 func (x *StreamEventsRequest_Identifier) GetNode() *core.Node { 188 if x != nil { 189 return x.Node 190 } 191 return nil 192 } 193 194 var File_envoy_service_event_reporting_v2alpha_event_reporting_service_proto protoreflect.FileDescriptor 195 196 var file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDesc = []byte{ 197 0x0a, 0x43, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 198 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2f, 199 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 200 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 201 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 202 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 203 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x65, 0x6e, 204 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 205 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 206 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 207 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 208 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 209 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 210 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 211 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 212 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x01, 213 0x0a, 0x13, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 214 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x65, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 215 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 216 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 217 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 218 0x61, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 219 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 220 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x06, 221 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 222 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 223 0x6e, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x06, 0x65, 0x76, 224 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x43, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 225 0x65, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 226 0x32, 0x17, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 227 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 228 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x74, 0x72, 229 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 230 0x65, 0x32, 0xa7, 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 231 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x0c, 232 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3a, 0x2e, 0x65, 233 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x76, 0x65, 234 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x61, 235 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 236 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 237 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x72, 238 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 239 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 240 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x86, 0x01, 0x0a, 0x33, 241 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 242 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 243 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x32, 0x61, 0x6c, 244 0x70, 0x68, 0x61, 0x42, 0x1a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 245 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 246 0x01, 0x88, 0x01, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x22, 0x12, 0x20, 0x65, 0x6e, 0x76, 0x6f, 247 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 248 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 249 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 250 } 251 252 var ( 253 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescOnce sync.Once 254 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescData = file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDesc 255 ) 256 257 func file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescGZIP() []byte { 258 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescOnce.Do(func() { 259 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescData) 260 }) 261 return file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDescData 262 } 263 264 var file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 265 var file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_goTypes = []interface{}{ 266 (*StreamEventsRequest)(nil), // 0: envoy.service.event_reporting.v2alpha.StreamEventsRequest 267 (*StreamEventsResponse)(nil), // 1: envoy.service.event_reporting.v2alpha.StreamEventsResponse 268 (*StreamEventsRequest_Identifier)(nil), // 2: envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 269 (*any.Any)(nil), // 3: google.protobuf.Any 270 (*core.Node)(nil), // 4: envoy.api.v2.core.Node 271 } 272 var file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_depIdxs = []int32{ 273 2, // 0: envoy.service.event_reporting.v2alpha.StreamEventsRequest.identifier:type_name -> envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier 274 3, // 1: envoy.service.event_reporting.v2alpha.StreamEventsRequest.events:type_name -> google.protobuf.Any 275 4, // 2: envoy.service.event_reporting.v2alpha.StreamEventsRequest.Identifier.node:type_name -> envoy.api.v2.core.Node 276 0, // 3: envoy.service.event_reporting.v2alpha.EventReportingService.StreamEvents:input_type -> envoy.service.event_reporting.v2alpha.StreamEventsRequest 277 1, // 4: envoy.service.event_reporting.v2alpha.EventReportingService.StreamEvents:output_type -> envoy.service.event_reporting.v2alpha.StreamEventsResponse 278 4, // [4:5] is the sub-list for method output_type 279 3, // [3:4] is the sub-list for method input_type 280 3, // [3:3] is the sub-list for extension type_name 281 3, // [3:3] is the sub-list for extension extendee 282 0, // [0:3] is the sub-list for field type_name 283 } 284 285 func init() { file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_init() } 286 func file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_init() { 287 if File_envoy_service_event_reporting_v2alpha_event_reporting_service_proto != nil { 288 return 289 } 290 if !protoimpl.UnsafeEnabled { 291 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 292 switch v := v.(*StreamEventsRequest); i { 293 case 0: 294 return &v.state 295 case 1: 296 return &v.sizeCache 297 case 2: 298 return &v.unknownFields 299 default: 300 return nil 301 } 302 } 303 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 304 switch v := v.(*StreamEventsResponse); i { 305 case 0: 306 return &v.state 307 case 1: 308 return &v.sizeCache 309 case 2: 310 return &v.unknownFields 311 default: 312 return nil 313 } 314 } 315 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 316 switch v := v.(*StreamEventsRequest_Identifier); i { 317 case 0: 318 return &v.state 319 case 1: 320 return &v.sizeCache 321 case 2: 322 return &v.unknownFields 323 default: 324 return nil 325 } 326 } 327 } 328 type x struct{} 329 out := protoimpl.TypeBuilder{ 330 File: protoimpl.DescBuilder{ 331 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 332 RawDescriptor: file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDesc, 333 NumEnums: 0, 334 NumMessages: 3, 335 NumExtensions: 0, 336 NumServices: 1, 337 }, 338 GoTypes: file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_goTypes, 339 DependencyIndexes: file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_depIdxs, 340 MessageInfos: file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_msgTypes, 341 }.Build() 342 File_envoy_service_event_reporting_v2alpha_event_reporting_service_proto = out.File 343 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_rawDesc = nil 344 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_goTypes = nil 345 file_envoy_service_event_reporting_v2alpha_event_reporting_service_proto_depIdxs = nil 346 } 347 348 // Reference imports to suppress errors if they are not otherwise used. 349 var _ context.Context 350 var _ grpc.ClientConnInterface 351 352 // This is a compile-time assertion to ensure that this generated file 353 // is compatible with the grpc package it is being compiled against. 354 const _ = grpc.SupportPackageIsVersion6 355 356 // EventReportingServiceClient is the client API for EventReportingService service. 357 // 358 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 359 type EventReportingServiceClient interface { 360 // Envoy will connect and send StreamEventsRequest messages forever. 361 // The management server may send StreamEventsResponse to configure event stream. See below. 362 // This API is designed for high throughput with the expectation that it might be lossy. 363 StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) 364 } 365 366 type eventReportingServiceClient struct { 367 cc grpc.ClientConnInterface 368 } 369 370 func NewEventReportingServiceClient(cc grpc.ClientConnInterface) EventReportingServiceClient { 371 return &eventReportingServiceClient{cc} 372 } 373 374 func (c *eventReportingServiceClient) StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) { 375 stream, err := c.cc.NewStream(ctx, &_EventReportingService_serviceDesc.Streams[0], "/envoy.service.event_reporting.v2alpha.EventReportingService/StreamEvents", opts...) 376 if err != nil { 377 return nil, err 378 } 379 x := &eventReportingServiceStreamEventsClient{stream} 380 return x, nil 381 } 382 383 type EventReportingService_StreamEventsClient interface { 384 Send(*StreamEventsRequest) error 385 Recv() (*StreamEventsResponse, error) 386 grpc.ClientStream 387 } 388 389 type eventReportingServiceStreamEventsClient struct { 390 grpc.ClientStream 391 } 392 393 func (x *eventReportingServiceStreamEventsClient) Send(m *StreamEventsRequest) error { 394 return x.ClientStream.SendMsg(m) 395 } 396 397 func (x *eventReportingServiceStreamEventsClient) Recv() (*StreamEventsResponse, error) { 398 m := new(StreamEventsResponse) 399 if err := x.ClientStream.RecvMsg(m); err != nil { 400 return nil, err 401 } 402 return m, nil 403 } 404 405 // EventReportingServiceServer is the server API for EventReportingService service. 406 type EventReportingServiceServer interface { 407 // Envoy will connect and send StreamEventsRequest messages forever. 408 // The management server may send StreamEventsResponse to configure event stream. See below. 409 // This API is designed for high throughput with the expectation that it might be lossy. 410 StreamEvents(EventReportingService_StreamEventsServer) error 411 } 412 413 // UnimplementedEventReportingServiceServer can be embedded to have forward compatible implementations. 414 type UnimplementedEventReportingServiceServer struct { 415 } 416 417 func (*UnimplementedEventReportingServiceServer) StreamEvents(EventReportingService_StreamEventsServer) error { 418 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented") 419 } 420 421 func RegisterEventReportingServiceServer(s *grpc.Server, srv EventReportingServiceServer) { 422 s.RegisterService(&_EventReportingService_serviceDesc, srv) 423 } 424 425 func _EventReportingService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error { 426 return srv.(EventReportingServiceServer).StreamEvents(&eventReportingServiceStreamEventsServer{stream}) 427 } 428 429 type EventReportingService_StreamEventsServer interface { 430 Send(*StreamEventsResponse) error 431 Recv() (*StreamEventsRequest, error) 432 grpc.ServerStream 433 } 434 435 type eventReportingServiceStreamEventsServer struct { 436 grpc.ServerStream 437 } 438 439 func (x *eventReportingServiceStreamEventsServer) Send(m *StreamEventsResponse) error { 440 return x.ServerStream.SendMsg(m) 441 } 442 443 func (x *eventReportingServiceStreamEventsServer) Recv() (*StreamEventsRequest, error) { 444 m := new(StreamEventsRequest) 445 if err := x.ServerStream.RecvMsg(m); err != nil { 446 return nil, err 447 } 448 return m, nil 449 } 450 451 var _EventReportingService_serviceDesc = grpc.ServiceDesc{ 452 ServiceName: "envoy.service.event_reporting.v2alpha.EventReportingService", 453 HandlerType: (*EventReportingServiceServer)(nil), 454 Methods: []grpc.MethodDesc{}, 455 Streams: []grpc.StreamDesc{ 456 { 457 StreamName: "StreamEvents", 458 Handler: _EventReportingService_StreamEvents_Handler, 459 ServerStreams: true, 460 ClientStreams: true, 461 }, 462 }, 463 Metadata: "envoy/service/event_reporting/v2alpha/event_reporting_service.proto", 464 }