| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/devtools/cloudtrace/v2/tracing.proto |
| |
| package cloudtrace |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| math "math" |
| |
| proto "github.com/golang/protobuf/proto" |
| empty "github.com/golang/protobuf/ptypes/empty" |
| _ "github.com/golang/protobuf/ptypes/timestamp" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // The request message for the `BatchWriteSpans` method. |
| type BatchWriteSpansRequest struct { |
| // Required. The name of the project where the spans belong. The format is |
| // `projects/[PROJECT_ID]`. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Required. A list of new spans. The span names must not match existing |
| // spans, or the results are undefined. |
| Spans []*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 *BatchWriteSpansRequest) Reset() { *m = BatchWriteSpansRequest{} } |
| func (m *BatchWriteSpansRequest) String() string { return proto.CompactTextString(m) } |
| func (*BatchWriteSpansRequest) ProtoMessage() {} |
| func (*BatchWriteSpansRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_d1f9b588db05fdc6, []int{0} |
| } |
| |
| func (m *BatchWriteSpansRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_BatchWriteSpansRequest.Unmarshal(m, b) |
| } |
| func (m *BatchWriteSpansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_BatchWriteSpansRequest.Marshal(b, m, deterministic) |
| } |
| func (m *BatchWriteSpansRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_BatchWriteSpansRequest.Merge(m, src) |
| } |
| func (m *BatchWriteSpansRequest) XXX_Size() int { |
| return xxx_messageInfo_BatchWriteSpansRequest.Size(m) |
| } |
| func (m *BatchWriteSpansRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_BatchWriteSpansRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_BatchWriteSpansRequest proto.InternalMessageInfo |
| |
| func (m *BatchWriteSpansRequest) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *BatchWriteSpansRequest) GetSpans() []*Span { |
| if m != nil { |
| return m.Spans |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*BatchWriteSpansRequest)(nil), "google.devtools.cloudtrace.v2.BatchWriteSpansRequest") |
| } |
| |
| func init() { |
| proto.RegisterFile("google/devtools/cloudtrace/v2/tracing.proto", fileDescriptor_d1f9b588db05fdc6) |
| } |
| |
| var fileDescriptor_d1f9b588db05fdc6 = []byte{ |
| // 534 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6e, 0x13, 0x3d, |
| 0x10, 0xc7, 0xb5, 0xc9, 0xf7, 0x21, 0x61, 0x90, 0x90, 0x56, 0xa2, 0xb4, 0x01, 0x44, 0x09, 0x12, |
| 0x94, 0x24, 0xb5, 0xc5, 0x56, 0x5c, 0x82, 0x00, 0x6d, 0x2a, 0x94, 0x6b, 0x94, 0xa2, 0x22, 0x41, |
| 0x24, 0xe4, 0x6c, 0x26, 0x1b, 0xa3, 0x5d, 0xdb, 0xd8, 0xce, 0x46, 0x80, 0x7a, 0xe1, 0xc6, 0x99, |
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, 0x91, 0xba, 0x4d, 0xc8, 0x6c, 0x36, 0x5b, 0x76, 0x92, 0x4e, 0xcd, |
| 0xc4, 0x3d, 0xbe, 0x6d, 0x99, 0x50, 0x33, 0x16, 0x2a, 0x6d, 0xad, 0x92, 0xbb, 0x2e, 0x54, 0x4a, |
| 0xe0, 0xa3, 0xce, 0x57, 0x0f, 0xdd, 0x8e, 0x44, 0x7a, 0xf6, 0x64, 0x1d, 0xeb, 0x2f, 0xe3, 0x71, |
| 0x2f, 0x77, 0xa1, 0xe7, 0xbd, 0xec, 0x16, 0xf2, 0x58, 0x24, 0x94, 0xc7, 0x58, 0xa8, 0x98, 0xc4, |
| 0xc0, 0xad, 0x47, 0x64, 0xde, 0xf2, 0x1f, 0xbf, 0xc7, 0xa3, 0xf9, 0xe9, 0x4b, 0xe5, 0x6a, 0xd7, |
| 0x55, 0xda, 0xcd, 0x63, 0xd8, 0x3e, 0x23, 0xbc, 0x1f, 0x1c, 0x95, 0xf1, 0x81, 0x8d, 0x0f, 0x6c, |
| 0x7c, 0xb0, 0x1f, 0x0c, 0x2f, 0xd8, 0x1e, 0x3b, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc9, 0xb4, |
| 0x7d, 0x35, 0x40, 0x04, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConnInterface |
| |
| // 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.SupportPackageIsVersion6 |
| |
| // 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 { |
| // Sends new spans to new or existing traces. You cannot update |
| // existing spans. |
| BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Creates a new span. |
| CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error) |
| } |
| |
| type traceServiceClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewTraceServiceClient(cc grpc.ClientConnInterface) TraceServiceClient { |
| return &traceServiceClient{cc} |
| } |
| |
| func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *traceServiceClient) CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error) { |
| out := new(Span) |
| err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // TraceServiceServer is the server API for TraceService service. |
| type TraceServiceServer interface { |
| // Sends new spans to new or existing traces. You cannot update |
| // existing spans. |
| BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.Empty, error) |
| // Creates a new span. |
| CreateSpan(context.Context, *Span) (*Span, error) |
| } |
| |
| // UnimplementedTraceServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedTraceServiceServer struct { |
| } |
| |
| func (*UnimplementedTraceServiceServer) BatchWriteSpans(ctx context.Context, req *BatchWriteSpansRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method BatchWriteSpans not implemented") |
| } |
| func (*UnimplementedTraceServiceServer) CreateSpan(ctx context.Context, req *Span) (*Span, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CreateSpan not implemented") |
| } |
| |
| func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) { |
| s.RegisterService(&_TraceService_serviceDesc, srv) |
| } |
| |
| func _TraceService_BatchWriteSpans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(BatchWriteSpansRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(TraceServiceServer).BatchWriteSpans(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(TraceServiceServer).BatchWriteSpans(ctx, req.(*BatchWriteSpansRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _TraceService_CreateSpan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(Span) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(TraceServiceServer).CreateSpan(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(TraceServiceServer).CreateSpan(ctx, req.(*Span)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _TraceService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "google.devtools.cloudtrace.v2.TraceService", |
| HandlerType: (*TraceServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "BatchWriteSpans", |
| Handler: _TraceService_BatchWriteSpans_Handler, |
| }, |
| { |
| MethodName: "CreateSpan", |
| Handler: _TraceService_CreateSpan_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "google/devtools/cloudtrace/v2/tracing.proto", |
| } |