github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/service/tap/v3/tap.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/tap/v3/tap.proto 6 7 package envoy_service_tap_v3 8 9 import ( 10 context "context" 11 _ "github.com/cncf/xds/go/udpa/annotations" 12 v31 "github.com/hxx258456/ccgo/go-control-plane/envoy/config/core/v3" 13 v3 "github.com/hxx258456/ccgo/go-control-plane/envoy/data/tap/v3" 14 _ "github.com/envoyproxy/protoc-gen-validate/validate" 15 proto "github.com/golang/protobuf/proto" 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:] Stream message for the Tap API. Envoy will open a stream to the server 37 // and stream taps without ever expecting a response. 38 type StreamTapsRequest struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // Identifier data effectively is a structured metadata. As a performance optimization this will 44 // only be sent in the first message on the stream. 45 Identifier *StreamTapsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` 46 // The trace id. this can be used to merge together a streaming trace. Note that the trace_id 47 // is not guaranteed to be spatially or temporally unique. 48 TraceId uint64 `protobuf:"varint,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` 49 // The trace data. 50 Trace *v3.TraceWrapper `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"` 51 } 52 53 func (x *StreamTapsRequest) Reset() { 54 *x = StreamTapsRequest{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_envoy_service_tap_v3_tap_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *StreamTapsRequest) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*StreamTapsRequest) ProtoMessage() {} 67 68 func (x *StreamTapsRequest) ProtoReflect() protoreflect.Message { 69 mi := &file_envoy_service_tap_v3_tap_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use StreamTapsRequest.ProtoReflect.Descriptor instead. 81 func (*StreamTapsRequest) Descriptor() ([]byte, []int) { 82 return file_envoy_service_tap_v3_tap_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *StreamTapsRequest) GetIdentifier() *StreamTapsRequest_Identifier { 86 if x != nil { 87 return x.Identifier 88 } 89 return nil 90 } 91 92 func (x *StreamTapsRequest) GetTraceId() uint64 { 93 if x != nil { 94 return x.TraceId 95 } 96 return 0 97 } 98 99 func (x *StreamTapsRequest) GetTrace() *v3.TraceWrapper { 100 if x != nil { 101 return x.Trace 102 } 103 return nil 104 } 105 106 // [#not-implemented-hide:] 107 type StreamTapsResponse struct { 108 state protoimpl.MessageState 109 sizeCache protoimpl.SizeCache 110 unknownFields protoimpl.UnknownFields 111 } 112 113 func (x *StreamTapsResponse) Reset() { 114 *x = StreamTapsResponse{} 115 if protoimpl.UnsafeEnabled { 116 mi := &file_envoy_service_tap_v3_tap_proto_msgTypes[1] 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 ms.StoreMessageInfo(mi) 119 } 120 } 121 122 func (x *StreamTapsResponse) String() string { 123 return protoimpl.X.MessageStringOf(x) 124 } 125 126 func (*StreamTapsResponse) ProtoMessage() {} 127 128 func (x *StreamTapsResponse) ProtoReflect() protoreflect.Message { 129 mi := &file_envoy_service_tap_v3_tap_proto_msgTypes[1] 130 if protoimpl.UnsafeEnabled && x != nil { 131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 132 if ms.LoadMessageInfo() == nil { 133 ms.StoreMessageInfo(mi) 134 } 135 return ms 136 } 137 return mi.MessageOf(x) 138 } 139 140 // Deprecated: Use StreamTapsResponse.ProtoReflect.Descriptor instead. 141 func (*StreamTapsResponse) Descriptor() ([]byte, []int) { 142 return file_envoy_service_tap_v3_tap_proto_rawDescGZIP(), []int{1} 143 } 144 145 type StreamTapsRequest_Identifier struct { 146 state protoimpl.MessageState 147 sizeCache protoimpl.SizeCache 148 unknownFields protoimpl.UnknownFields 149 150 // The node sending taps over the stream. 151 Node *v31.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` 152 // The opaque identifier that was set in the :ref:`output config 153 // <envoy_v3_api_field_config.tap.v3.StreamingGrpcSink.tap_id>`. 154 TapId string `protobuf:"bytes,2,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"` 155 } 156 157 func (x *StreamTapsRequest_Identifier) Reset() { 158 *x = StreamTapsRequest_Identifier{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_envoy_service_tap_v3_tap_proto_msgTypes[2] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *StreamTapsRequest_Identifier) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*StreamTapsRequest_Identifier) ProtoMessage() {} 171 172 func (x *StreamTapsRequest_Identifier) ProtoReflect() protoreflect.Message { 173 mi := &file_envoy_service_tap_v3_tap_proto_msgTypes[2] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use StreamTapsRequest_Identifier.ProtoReflect.Descriptor instead. 185 func (*StreamTapsRequest_Identifier) Descriptor() ([]byte, []int) { 186 return file_envoy_service_tap_v3_tap_proto_rawDescGZIP(), []int{0, 0} 187 } 188 189 func (x *StreamTapsRequest_Identifier) GetNode() *v31.Node { 190 if x != nil { 191 return x.Node 192 } 193 return nil 194 } 195 196 func (x *StreamTapsRequest_Identifier) GetTapId() string { 197 if x != nil { 198 return x.TapId 199 } 200 return "" 201 } 202 203 var File_envoy_service_tap_v3_tap_proto protoreflect.FileDescriptor 204 205 var file_envoy_service_tap_v3_tap_proto_rawDesc = []byte{ 206 0x0a, 0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 207 0x74, 0x61, 0x70, 0x2f, 0x76, 0x33, 0x2f, 0x74, 0x61, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 208 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 209 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 210 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 211 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x64, 212 0x61, 0x74, 0x61, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x33, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 213 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 214 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 215 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 216 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 217 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 218 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 219 0x6f, 0x74, 0x6f, 0x22, 0x8c, 0x03, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 220 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x0a, 0x69, 0x64, 0x65, 221 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 222 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 223 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 0x52, 224 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 225 0x72, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x19, 0x0a, 226 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 227 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 228 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 229 0x64, 0x61, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x72, 0x61, 0x63, 230 0x65, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x52, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x1a, 231 0x9c, 0x01, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x38, 232 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 233 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 234 0x2e, 0x76, 0x33, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 235 0x10, 0x01, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x61, 0x70, 0x5f, 236 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x70, 0x49, 0x64, 0x3a, 237 0x3d, 0x9a, 0xc5, 0x88, 0x1e, 0x38, 0x0a, 0x36, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 238 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 239 0x61, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 240 0x65, 0x73, 0x74, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x3a, 0x32, 241 0x9a, 0xc5, 0x88, 0x1e, 0x2d, 0x0a, 0x2b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 242 0x76, 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 243 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 244 0x73, 0x74, 0x22, 0x49, 0x0a, 0x12, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 245 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x33, 0x9a, 0xc5, 0x88, 0x1e, 0x2e, 0x0a, 246 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x74, 247 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 248 0x6d, 0x54, 0x61, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x75, 0x0a, 249 0x0e, 0x54, 0x61, 0x70, 0x53, 0x69, 0x6e, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 250 0x63, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 0x12, 0x27, 0x2e, 251 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 252 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 0x52, 253 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 254 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x74, 255 0x72, 0x65, 0x61, 0x6d, 0x54, 0x61, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 256 0x22, 0x00, 0x28, 0x01, 0x42, 0x3b, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 257 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 258 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x42, 0x08, 0x54, 0x61, 0x70, 0x50, 259 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x88, 0x01, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 260 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 261 } 262 263 var ( 264 file_envoy_service_tap_v3_tap_proto_rawDescOnce sync.Once 265 file_envoy_service_tap_v3_tap_proto_rawDescData = file_envoy_service_tap_v3_tap_proto_rawDesc 266 ) 267 268 func file_envoy_service_tap_v3_tap_proto_rawDescGZIP() []byte { 269 file_envoy_service_tap_v3_tap_proto_rawDescOnce.Do(func() { 270 file_envoy_service_tap_v3_tap_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_tap_v3_tap_proto_rawDescData) 271 }) 272 return file_envoy_service_tap_v3_tap_proto_rawDescData 273 } 274 275 var file_envoy_service_tap_v3_tap_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 276 var file_envoy_service_tap_v3_tap_proto_goTypes = []interface{}{ 277 (*StreamTapsRequest)(nil), // 0: envoy.service.tap.v3.StreamTapsRequest 278 (*StreamTapsResponse)(nil), // 1: envoy.service.tap.v3.StreamTapsResponse 279 (*StreamTapsRequest_Identifier)(nil), // 2: envoy.service.tap.v3.StreamTapsRequest.Identifier 280 (*v3.TraceWrapper)(nil), // 3: envoy.data.tap.v3.TraceWrapper 281 (*v31.Node)(nil), // 4: envoy.config.core.v3.Node 282 } 283 var file_envoy_service_tap_v3_tap_proto_depIdxs = []int32{ 284 2, // 0: envoy.service.tap.v3.StreamTapsRequest.identifier:type_name -> envoy.service.tap.v3.StreamTapsRequest.Identifier 285 3, // 1: envoy.service.tap.v3.StreamTapsRequest.trace:type_name -> envoy.data.tap.v3.TraceWrapper 286 4, // 2: envoy.service.tap.v3.StreamTapsRequest.Identifier.node:type_name -> envoy.config.core.v3.Node 287 0, // 3: envoy.service.tap.v3.TapSinkService.StreamTaps:input_type -> envoy.service.tap.v3.StreamTapsRequest 288 1, // 4: envoy.service.tap.v3.TapSinkService.StreamTaps:output_type -> envoy.service.tap.v3.StreamTapsResponse 289 4, // [4:5] is the sub-list for method output_type 290 3, // [3:4] is the sub-list for method input_type 291 3, // [3:3] is the sub-list for extension type_name 292 3, // [3:3] is the sub-list for extension extendee 293 0, // [0:3] is the sub-list for field type_name 294 } 295 296 func init() { file_envoy_service_tap_v3_tap_proto_init() } 297 func file_envoy_service_tap_v3_tap_proto_init() { 298 if File_envoy_service_tap_v3_tap_proto != nil { 299 return 300 } 301 if !protoimpl.UnsafeEnabled { 302 file_envoy_service_tap_v3_tap_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 303 switch v := v.(*StreamTapsRequest); i { 304 case 0: 305 return &v.state 306 case 1: 307 return &v.sizeCache 308 case 2: 309 return &v.unknownFields 310 default: 311 return nil 312 } 313 } 314 file_envoy_service_tap_v3_tap_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 315 switch v := v.(*StreamTapsResponse); i { 316 case 0: 317 return &v.state 318 case 1: 319 return &v.sizeCache 320 case 2: 321 return &v.unknownFields 322 default: 323 return nil 324 } 325 } 326 file_envoy_service_tap_v3_tap_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 327 switch v := v.(*StreamTapsRequest_Identifier); i { 328 case 0: 329 return &v.state 330 case 1: 331 return &v.sizeCache 332 case 2: 333 return &v.unknownFields 334 default: 335 return nil 336 } 337 } 338 } 339 type x struct{} 340 out := protoimpl.TypeBuilder{ 341 File: protoimpl.DescBuilder{ 342 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 343 RawDescriptor: file_envoy_service_tap_v3_tap_proto_rawDesc, 344 NumEnums: 0, 345 NumMessages: 3, 346 NumExtensions: 0, 347 NumServices: 1, 348 }, 349 GoTypes: file_envoy_service_tap_v3_tap_proto_goTypes, 350 DependencyIndexes: file_envoy_service_tap_v3_tap_proto_depIdxs, 351 MessageInfos: file_envoy_service_tap_v3_tap_proto_msgTypes, 352 }.Build() 353 File_envoy_service_tap_v3_tap_proto = out.File 354 file_envoy_service_tap_v3_tap_proto_rawDesc = nil 355 file_envoy_service_tap_v3_tap_proto_goTypes = nil 356 file_envoy_service_tap_v3_tap_proto_depIdxs = nil 357 } 358 359 // Reference imports to suppress errors if they are not otherwise used. 360 var _ context.Context 361 var _ grpc.ClientConnInterface 362 363 // This is a compile-time assertion to ensure that this generated file 364 // is compatible with the grpc package it is being compiled against. 365 const _ = grpc.SupportPackageIsVersion6 366 367 // TapSinkServiceClient is the client API for TapSinkService service. 368 // 369 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 370 type TapSinkServiceClient interface { 371 // Envoy will connect and send StreamTapsRequest messages forever. It does not expect any 372 // response to be sent as nothing would be done in the case of failure. The server should 373 // disconnect if it expects Envoy to reconnect. 374 StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error) 375 } 376 377 type tapSinkServiceClient struct { 378 cc grpc.ClientConnInterface 379 } 380 381 func NewTapSinkServiceClient(cc grpc.ClientConnInterface) TapSinkServiceClient { 382 return &tapSinkServiceClient{cc} 383 } 384 385 func (c *tapSinkServiceClient) StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error) { 386 stream, err := c.cc.NewStream(ctx, &_TapSinkService_serviceDesc.Streams[0], "/envoy.service.tap.v3.TapSinkService/StreamTaps", opts...) 387 if err != nil { 388 return nil, err 389 } 390 x := &tapSinkServiceStreamTapsClient{stream} 391 return x, nil 392 } 393 394 type TapSinkService_StreamTapsClient interface { 395 Send(*StreamTapsRequest) error 396 CloseAndRecv() (*StreamTapsResponse, error) 397 grpc.ClientStream 398 } 399 400 type tapSinkServiceStreamTapsClient struct { 401 grpc.ClientStream 402 } 403 404 func (x *tapSinkServiceStreamTapsClient) Send(m *StreamTapsRequest) error { 405 return x.ClientStream.SendMsg(m) 406 } 407 408 func (x *tapSinkServiceStreamTapsClient) CloseAndRecv() (*StreamTapsResponse, error) { 409 if err := x.ClientStream.CloseSend(); err != nil { 410 return nil, err 411 } 412 m := new(StreamTapsResponse) 413 if err := x.ClientStream.RecvMsg(m); err != nil { 414 return nil, err 415 } 416 return m, nil 417 } 418 419 // TapSinkServiceServer is the server API for TapSinkService service. 420 type TapSinkServiceServer interface { 421 // Envoy will connect and send StreamTapsRequest messages forever. It does not expect any 422 // response to be sent as nothing would be done in the case of failure. The server should 423 // disconnect if it expects Envoy to reconnect. 424 StreamTaps(TapSinkService_StreamTapsServer) error 425 } 426 427 // UnimplementedTapSinkServiceServer can be embedded to have forward compatible implementations. 428 type UnimplementedTapSinkServiceServer struct { 429 } 430 431 func (*UnimplementedTapSinkServiceServer) StreamTaps(TapSinkService_StreamTapsServer) error { 432 return status.Errorf(codes.Unimplemented, "method StreamTaps not implemented") 433 } 434 435 func RegisterTapSinkServiceServer(s *grpc.Server, srv TapSinkServiceServer) { 436 s.RegisterService(&_TapSinkService_serviceDesc, srv) 437 } 438 439 func _TapSinkService_StreamTaps_Handler(srv interface{}, stream grpc.ServerStream) error { 440 return srv.(TapSinkServiceServer).StreamTaps(&tapSinkServiceStreamTapsServer{stream}) 441 } 442 443 type TapSinkService_StreamTapsServer interface { 444 SendAndClose(*StreamTapsResponse) error 445 Recv() (*StreamTapsRequest, error) 446 grpc.ServerStream 447 } 448 449 type tapSinkServiceStreamTapsServer struct { 450 grpc.ServerStream 451 } 452 453 func (x *tapSinkServiceStreamTapsServer) SendAndClose(m *StreamTapsResponse) error { 454 return x.ServerStream.SendMsg(m) 455 } 456 457 func (x *tapSinkServiceStreamTapsServer) Recv() (*StreamTapsRequest, error) { 458 m := new(StreamTapsRequest) 459 if err := x.ServerStream.RecvMsg(m); err != nil { 460 return nil, err 461 } 462 return m, nil 463 } 464 465 var _TapSinkService_serviceDesc = grpc.ServiceDesc{ 466 ServiceName: "envoy.service.tap.v3.TapSinkService", 467 HandlerType: (*TapSinkServiceServer)(nil), 468 Methods: []grpc.MethodDesc{}, 469 Streams: []grpc.StreamDesc{ 470 { 471 StreamName: "StreamTaps", 472 Handler: _TapSinkService_StreamTaps_Handler, 473 ClientStreams: true, 474 }, 475 }, 476 Metadata: "envoy/service/tap/v3/tap.proto", 477 }