| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: opencensus/proto/agent/trace/v1/trace_service.proto |
| |
| package v1 // import "github.com/census-instrumentation/opencensus-proto/gen-go/agent/trace/v1" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import v1 "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1" |
| import v11 "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" |
| |
| import ( |
| context "golang.org/x/net/context" |
| grpc "google.golang.org/grpc" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type ConfigTraceServiceRequest struct { |
| // Identifier data effectively is a structured metadata. |
| // This is required only in the first message on the stream. |
| Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` |
| // Current configuration. |
| Config *v11.TraceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ConfigTraceServiceRequest) Reset() { *m = ConfigTraceServiceRequest{} } |
| func (m *ConfigTraceServiceRequest) String() string { return proto.CompactTextString(m) } |
| func (*ConfigTraceServiceRequest) ProtoMessage() {} |
| func (*ConfigTraceServiceRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_trace_service_63b50dd6ac862852, []int{0} |
| } |
| func (m *ConfigTraceServiceRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ConfigTraceServiceRequest.Unmarshal(m, b) |
| } |
| func (m *ConfigTraceServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ConfigTraceServiceRequest.Marshal(b, m, deterministic) |
| } |
| func (dst *ConfigTraceServiceRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ConfigTraceServiceRequest.Merge(dst, src) |
| } |
| func (m *ConfigTraceServiceRequest) XXX_Size() int { |
| return xxx_messageInfo_ConfigTraceServiceRequest.Size(m) |
| } |
| func (m *ConfigTraceServiceRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ConfigTraceServiceRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ConfigTraceServiceRequest proto.InternalMessageInfo |
| |
| func (m *ConfigTraceServiceRequest) GetNode() *v1.Node { |
| if m != nil { |
| return m.Node |
| } |
| return nil |
| } |
| |
| func (m *ConfigTraceServiceRequest) GetConfig() *v11.TraceConfig { |
| if m != nil { |
| return m.Config |
| } |
| return nil |
| } |
| |
| type ConfigTraceServiceResponse struct { |
| // Requested updated configuration. |
| Config *v11.TraceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ConfigTraceServiceResponse) Reset() { *m = ConfigTraceServiceResponse{} } |
| func (m *ConfigTraceServiceResponse) String() string { return proto.CompactTextString(m) } |
| func (*ConfigTraceServiceResponse) ProtoMessage() {} |
| func (*ConfigTraceServiceResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_trace_service_63b50dd6ac862852, []int{1} |
| } |
| func (m *ConfigTraceServiceResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ConfigTraceServiceResponse.Unmarshal(m, b) |
| } |
| func (m *ConfigTraceServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ConfigTraceServiceResponse.Marshal(b, m, deterministic) |
| } |
| func (dst *ConfigTraceServiceResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ConfigTraceServiceResponse.Merge(dst, src) |
| } |
| func (m *ConfigTraceServiceResponse) XXX_Size() int { |
| return xxx_messageInfo_ConfigTraceServiceResponse.Size(m) |
| } |
| func (m *ConfigTraceServiceResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ConfigTraceServiceResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ConfigTraceServiceResponse proto.InternalMessageInfo |
| |
| func (m *ConfigTraceServiceResponse) GetConfig() *v11.TraceConfig { |
| if m != nil { |
| return m.Config |
| } |
| return nil |
| } |
| |
| type ExportTraceServiceRequest struct { |
| // Identifier data effectively is a structured metadata. |
| // This is required only in the first message on the stream. |
| Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` |
| Spans []*v11.Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ExportTraceServiceRequest) Reset() { *m = ExportTraceServiceRequest{} } |
| func (m *ExportTraceServiceRequest) String() string { return proto.CompactTextString(m) } |
| func (*ExportTraceServiceRequest) ProtoMessage() {} |
| func (*ExportTraceServiceRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_trace_service_63b50dd6ac862852, []int{2} |
| } |
| func (m *ExportTraceServiceRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ExportTraceServiceRequest.Unmarshal(m, b) |
| } |
| func (m *ExportTraceServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ExportTraceServiceRequest.Marshal(b, m, deterministic) |
| } |
| func (dst *ExportTraceServiceRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ExportTraceServiceRequest.Merge(dst, src) |
| } |
| func (m *ExportTraceServiceRequest) XXX_Size() int { |
| return xxx_messageInfo_ExportTraceServiceRequest.Size(m) |
| } |
| func (m *ExportTraceServiceRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_ExportTraceServiceRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ExportTraceServiceRequest proto.InternalMessageInfo |
| |
| func (m *ExportTraceServiceRequest) GetNode() *v1.Node { |
| if m != nil { |
| return m.Node |
| } |
| return nil |
| } |
| |
| func (m *ExportTraceServiceRequest) GetSpans() []*v11.Span { |
| if m != nil { |
| return m.Spans |
| } |
| return nil |
| } |
| |
| type ExportTraceServiceResponse struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ExportTraceServiceResponse) Reset() { *m = ExportTraceServiceResponse{} } |
| func (m *ExportTraceServiceResponse) String() string { return proto.CompactTextString(m) } |
| func (*ExportTraceServiceResponse) ProtoMessage() {} |
| func (*ExportTraceServiceResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_trace_service_63b50dd6ac862852, []int{3} |
| } |
| func (m *ExportTraceServiceResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ExportTraceServiceResponse.Unmarshal(m, b) |
| } |
| func (m *ExportTraceServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ExportTraceServiceResponse.Marshal(b, m, deterministic) |
| } |
| func (dst *ExportTraceServiceResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ExportTraceServiceResponse.Merge(dst, src) |
| } |
| func (m *ExportTraceServiceResponse) XXX_Size() int { |
| return xxx_messageInfo_ExportTraceServiceResponse.Size(m) |
| } |
| func (m *ExportTraceServiceResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_ExportTraceServiceResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ExportTraceServiceResponse proto.InternalMessageInfo |
| |
| func init() { |
| proto.RegisterType((*ConfigTraceServiceRequest)(nil), "opencensus.proto.agent.trace.v1.ConfigTraceServiceRequest") |
| proto.RegisterType((*ConfigTraceServiceResponse)(nil), "opencensus.proto.agent.trace.v1.ConfigTraceServiceResponse") |
| proto.RegisterType((*ExportTraceServiceRequest)(nil), "opencensus.proto.agent.trace.v1.ExportTraceServiceRequest") |
| proto.RegisterType((*ExportTraceServiceResponse)(nil), "opencensus.proto.agent.trace.v1.ExportTraceServiceResponse") |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // TraceServiceClient is the client API for TraceService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type TraceServiceClient interface { |
| // After initialization, this RPC must be kept alive for the |
| // entire life of the application. The agent pushes configs |
| // down to applications via a stream of requests. |
| Config(ctx context.Context, opts ...grpc.CallOption) (TraceService_ConfigClient, error) |
| // Allows applications to send spans to the agent. |
| // For performance reasons, it is recommended to keep this RPC |
| // alive for the entire life of the application. |
| Export(ctx context.Context, opts ...grpc.CallOption) (TraceService_ExportClient, error) |
| } |
| |
| type traceServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient { |
| return &traceServiceClient{cc} |
| } |
| |
| func (c *traceServiceClient) Config(ctx context.Context, opts ...grpc.CallOption) (TraceService_ConfigClient, error) { |
| stream, err := c.cc.NewStream(ctx, &_TraceService_serviceDesc.Streams[0], "/opencensus.proto.agent.trace.v1.TraceService/Config", opts...) |
| if err != nil { |
| return nil, err |
| } |
| x := &traceServiceConfigClient{stream} |
| return x, nil |
| } |
| |
| type TraceService_ConfigClient interface { |
| Send(*ConfigTraceServiceResponse) error |
| Recv() (*ConfigTraceServiceRequest, error) |
| grpc.ClientStream |
| } |
| |
| type traceServiceConfigClient struct { |
| grpc.ClientStream |
| } |
| |
| func (x *traceServiceConfigClient) Send(m *ConfigTraceServiceResponse) error { |
| return x.ClientStream.SendMsg(m) |
| } |
| |
| func (x *traceServiceConfigClient) Recv() (*ConfigTraceServiceRequest, error) { |
| m := new(ConfigTraceServiceRequest) |
| if err := x.ClientStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| func (c *traceServiceClient) Export(ctx context.Context, opts ...grpc.CallOption) (TraceService_ExportClient, error) { |
| stream, err := c.cc.NewStream(ctx, &_TraceService_serviceDesc.Streams[1], "/opencensus.proto.agent.trace.v1.TraceService/Export", opts...) |
| if err != nil { |
| return nil, err |
| } |
| x := &traceServiceExportClient{stream} |
| return x, nil |
| } |
| |
| type TraceService_ExportClient interface { |
| Send(*ExportTraceServiceRequest) error |
| Recv() (*ExportTraceServiceResponse, error) |
| grpc.ClientStream |
| } |
| |
| type traceServiceExportClient struct { |
| grpc.ClientStream |
| } |
| |
| func (x *traceServiceExportClient) Send(m *ExportTraceServiceRequest) error { |
| return x.ClientStream.SendMsg(m) |
| } |
| |
| func (x *traceServiceExportClient) Recv() (*ExportTraceServiceResponse, error) { |
| m := new(ExportTraceServiceResponse) |
| if err := x.ClientStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| // TraceServiceServer is the server API for TraceService service. |
| type TraceServiceServer interface { |
| // After initialization, this RPC must be kept alive for the |
| // entire life of the application. The agent pushes configs |
| // down to applications via a stream of requests. |
| Config(TraceService_ConfigServer) error |
| // Allows applications to send spans to the agent. |
| // For performance reasons, it is recommended to keep this RPC |
| // alive for the entire life of the application. |
| Export(TraceService_ExportServer) error |
| } |
| |
| func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) { |
| s.RegisterService(&_TraceService_serviceDesc, srv) |
| } |
| |
| func _TraceService_Config_Handler(srv interface{}, stream grpc.ServerStream) error { |
| return srv.(TraceServiceServer).Config(&traceServiceConfigServer{stream}) |
| } |
| |
| type TraceService_ConfigServer interface { |
| Send(*ConfigTraceServiceRequest) error |
| Recv() (*ConfigTraceServiceResponse, error) |
| grpc.ServerStream |
| } |
| |
| type traceServiceConfigServer struct { |
| grpc.ServerStream |
| } |
| |
| func (x *traceServiceConfigServer) Send(m *ConfigTraceServiceRequest) error { |
| return x.ServerStream.SendMsg(m) |
| } |
| |
| func (x *traceServiceConfigServer) Recv() (*ConfigTraceServiceResponse, error) { |
| m := new(ConfigTraceServiceResponse) |
| if err := x.ServerStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| func _TraceService_Export_Handler(srv interface{}, stream grpc.ServerStream) error { |
| return srv.(TraceServiceServer).Export(&traceServiceExportServer{stream}) |
| } |
| |
| type TraceService_ExportServer interface { |
| Send(*ExportTraceServiceResponse) error |
| Recv() (*ExportTraceServiceRequest, error) |
| grpc.ServerStream |
| } |
| |
| type traceServiceExportServer struct { |
| grpc.ServerStream |
| } |
| |
| func (x *traceServiceExportServer) Send(m *ExportTraceServiceResponse) error { |
| return x.ServerStream.SendMsg(m) |
| } |
| |
| func (x *traceServiceExportServer) Recv() (*ExportTraceServiceRequest, error) { |
| m := new(ExportTraceServiceRequest) |
| if err := x.ServerStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| var _TraceService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "opencensus.proto.agent.trace.v1.TraceService", |
| HandlerType: (*TraceServiceServer)(nil), |
| Methods: []grpc.MethodDesc{}, |
| Streams: []grpc.StreamDesc{ |
| { |
| StreamName: "Config", |
| Handler: _TraceService_Config_Handler, |
| ServerStreams: true, |
| ClientStreams: true, |
| }, |
| { |
| StreamName: "Export", |
| Handler: _TraceService_Export_Handler, |
| ServerStreams: true, |
| ClientStreams: true, |
| }, |
| }, |
| Metadata: "opencensus/proto/agent/trace/v1/trace_service.proto", |
| } |
| |
| func init() { |
| proto.RegisterFile("opencensus/proto/agent/trace/v1/trace_service.proto", fileDescriptor_trace_service_63b50dd6ac862852) |
| } |
| |
| var fileDescriptor_trace_service_63b50dd6ac862852 = []byte{ |
| // 368 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xbf, 0x4f, 0xf3, 0x30, |
| 0x14, 0xfc, 0xdc, 0x0f, 0x3a, 0xb8, 0x2c, 0x64, 0x6a, 0x23, 0xa4, 0x56, 0x91, 0x40, 0x1d, 0x88, |
| 0x43, 0x5b, 0xb1, 0xb4, 0x12, 0x43, 0x11, 0x12, 0x13, 0xaa, 0x52, 0x26, 0x84, 0x54, 0xa5, 0xa9, |
| 0x09, 0x19, 0xfa, 0x6c, 0x62, 0x27, 0x62, 0x67, 0x60, 0x63, 0x65, 0xe7, 0x2f, 0x45, 0xf1, 0x0b, |
| 0x6a, 0x81, 0x86, 0x48, 0x85, 0xcd, 0xf2, 0xbb, 0xbb, 0x77, 0x77, 0xf9, 0x41, 0x07, 0x42, 0x72, |
| 0x08, 0x39, 0xa8, 0x54, 0x79, 0x32, 0x11, 0x5a, 0x78, 0x41, 0xc4, 0x41, 0x7b, 0x3a, 0x09, 0x42, |
| 0xee, 0x65, 0x3d, 0x3c, 0xcc, 0x14, 0x4f, 0xb2, 0x38, 0xe4, 0xcc, 0x40, 0xac, 0xf6, 0x8a, 0x84, |
| 0x37, 0xcc, 0x90, 0x98, 0xc1, 0xb2, 0xac, 0x67, 0xbb, 0x25, 0xaa, 0xa1, 0x58, 0x2e, 0x05, 0xe4, |
| 0xb2, 0x78, 0x42, 0xb6, 0x7d, 0xf8, 0x0d, 0xfe, 0x79, 0x7d, 0x01, 0x3b, 0xae, 0x80, 0xcd, 0x42, |
| 0x01, 0x77, 0x71, 0x84, 0x68, 0xe7, 0x95, 0xd0, 0xd6, 0xb9, 0xb9, 0xb8, 0xce, 0x87, 0x53, 0x4c, |
| 0xe0, 0xf3, 0x87, 0x94, 0x2b, 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