You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

228 lines
9.4 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/cloudtrace/v2/tracing.proto
  3. package cloudtrace // import "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import _ "github.com/golang/protobuf/ptypes/timestamp"
  9. import _ "google.golang.org/genproto/googleapis/api/annotations"
  10. import (
  11. context "golang.org/x/net/context"
  12. grpc "google.golang.org/grpc"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  23. // The request message for the `BatchWriteSpans` method.
  24. type BatchWriteSpansRequest struct {
  25. // Required. The name of the project where the spans belong. The format is
  26. // `projects/[PROJECT_ID]`.
  27. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  28. // A list of new spans. The span names must not match existing
  29. // spans, or the results are undefined.
  30. Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
  31. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  32. XXX_unrecognized []byte `json:"-"`
  33. XXX_sizecache int32 `json:"-"`
  34. }
  35. func (m *BatchWriteSpansRequest) Reset() { *m = BatchWriteSpansRequest{} }
  36. func (m *BatchWriteSpansRequest) String() string { return proto.CompactTextString(m) }
  37. func (*BatchWriteSpansRequest) ProtoMessage() {}
  38. func (*BatchWriteSpansRequest) Descriptor() ([]byte, []int) {
  39. return fileDescriptor_tracing_b9cda2b913ee5eaf, []int{0}
  40. }
  41. func (m *BatchWriteSpansRequest) XXX_Unmarshal(b []byte) error {
  42. return xxx_messageInfo_BatchWriteSpansRequest.Unmarshal(m, b)
  43. }
  44. func (m *BatchWriteSpansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  45. return xxx_messageInfo_BatchWriteSpansRequest.Marshal(b, m, deterministic)
  46. }
  47. func (dst *BatchWriteSpansRequest) XXX_Merge(src proto.Message) {
  48. xxx_messageInfo_BatchWriteSpansRequest.Merge(dst, src)
  49. }
  50. func (m *BatchWriteSpansRequest) XXX_Size() int {
  51. return xxx_messageInfo_BatchWriteSpansRequest.Size(m)
  52. }
  53. func (m *BatchWriteSpansRequest) XXX_DiscardUnknown() {
  54. xxx_messageInfo_BatchWriteSpansRequest.DiscardUnknown(m)
  55. }
  56. var xxx_messageInfo_BatchWriteSpansRequest proto.InternalMessageInfo
  57. func (m *BatchWriteSpansRequest) GetName() string {
  58. if m != nil {
  59. return m.Name
  60. }
  61. return ""
  62. }
  63. func (m *BatchWriteSpansRequest) GetSpans() []*Span {
  64. if m != nil {
  65. return m.Spans
  66. }
  67. return nil
  68. }
  69. func init() {
  70. proto.RegisterType((*BatchWriteSpansRequest)(nil), "google.devtools.cloudtrace.v2.BatchWriteSpansRequest")
  71. }
  72. // Reference imports to suppress errors if they are not otherwise used.
  73. var _ context.Context
  74. var _ grpc.ClientConn
  75. // This is a compile-time assertion to ensure that this generated file
  76. // is compatible with the grpc package it is being compiled against.
  77. const _ = grpc.SupportPackageIsVersion4
  78. // TraceServiceClient is the client API for TraceService service.
  79. //
  80. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  81. type TraceServiceClient interface {
  82. // Sends new spans to new or existing traces. You cannot update
  83. // existing spans.
  84. BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  85. // Creates a new span.
  86. CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error)
  87. }
  88. type traceServiceClient struct {
  89. cc *grpc.ClientConn
  90. }
  91. func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient {
  92. return &traceServiceClient{cc}
  93. }
  94. func (c *traceServiceClient) BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  95. out := new(empty.Empty)
  96. err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *traceServiceClient) CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error) {
  103. out := new(Span)
  104. err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v2.TraceService/CreateSpan", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. // TraceServiceServer is the server API for TraceService service.
  111. type TraceServiceServer interface {
  112. // Sends new spans to new or existing traces. You cannot update
  113. // existing spans.
  114. BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.Empty, error)
  115. // Creates a new span.
  116. CreateSpan(context.Context, *Span) (*Span, error)
  117. }
  118. func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) {
  119. s.RegisterService(&_TraceService_serviceDesc, srv)
  120. }
  121. func _TraceService_BatchWriteSpans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  122. in := new(BatchWriteSpansRequest)
  123. if err := dec(in); err != nil {
  124. return nil, err
  125. }
  126. if interceptor == nil {
  127. return srv.(TraceServiceServer).BatchWriteSpans(ctx, in)
  128. }
  129. info := &grpc.UnaryServerInfo{
  130. Server: srv,
  131. FullMethod: "/google.devtools.cloudtrace.v2.TraceService/BatchWriteSpans",
  132. }
  133. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  134. return srv.(TraceServiceServer).BatchWriteSpans(ctx, req.(*BatchWriteSpansRequest))
  135. }
  136. return interceptor(ctx, in, info, handler)
  137. }
  138. func _TraceService_CreateSpan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  139. in := new(Span)
  140. if err := dec(in); err != nil {
  141. return nil, err
  142. }
  143. if interceptor == nil {
  144. return srv.(TraceServiceServer).CreateSpan(ctx, in)
  145. }
  146. info := &grpc.UnaryServerInfo{
  147. Server: srv,
  148. FullMethod: "/google.devtools.cloudtrace.v2.TraceService/CreateSpan",
  149. }
  150. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  151. return srv.(TraceServiceServer).CreateSpan(ctx, req.(*Span))
  152. }
  153. return interceptor(ctx, in, info, handler)
  154. }
  155. var _TraceService_serviceDesc = grpc.ServiceDesc{
  156. ServiceName: "google.devtools.cloudtrace.v2.TraceService",
  157. HandlerType: (*TraceServiceServer)(nil),
  158. Methods: []grpc.MethodDesc{
  159. {
  160. MethodName: "BatchWriteSpans",
  161. Handler: _TraceService_BatchWriteSpans_Handler,
  162. },
  163. {
  164. MethodName: "CreateSpan",
  165. Handler: _TraceService_CreateSpan_Handler,
  166. },
  167. },
  168. Streams: []grpc.StreamDesc{},
  169. Metadata: "google/devtools/cloudtrace/v2/tracing.proto",
  170. }
  171. func init() {
  172. proto.RegisterFile("google/devtools/cloudtrace/v2/tracing.proto", fileDescriptor_tracing_b9cda2b913ee5eaf)
  173. }
  174. var fileDescriptor_tracing_b9cda2b913ee5eaf = []byte{
  175. // 404 bytes of a gzipped FileDescriptorProto
  176. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6a, 0xdb, 0x30,
  177. 0x14, 0x46, 0xde, 0x0f, 0x4c, 0x1b, 0x0c, 0x04, 0x0b, 0xc1, 0xdb, 0x58, 0xe6, 0x0d, 0x96, 0x64,
  178. 0x43, 0x02, 0x8f, 0x5d, 0x2c, 0x63, 0x37, 0x09, 0x23, 0xb7, 0x21, 0x19, 0x19, 0x8c, 0xdc, 0x28,
  179. 0x8e, 0xa6, 0x69, 0xd8, 0x92, 0x67, 0x29, 0x86, 0x52, 0x7a, 0xd3, 0x9b, 0x3e, 0x40, 0xfb, 0x14,
  180. 0xa5, 0xd0, 0xf7, 0xe8, 0x6d, 0x5f, 0xa1, 0x0f, 0x52, 0x24, 0xd9, 0x0d, 0x84, 0x34, 0xc9, 0x9d,
  181. 0xce, 0x39, 0xdf, 0xf9, 0xce, 0xf7, 0x7d, 0x36, 0xfc, 0xc8, 0x95, 0xe2, 0x29, 0x23, 0x0b, 0x56,
  182. 0x1a, 0xa5, 0x52, 0x4d, 0x92, 0x54, 0x2d, 0x17, 0xa6, 0xa0, 0x09, 0x23, 0x65, 0x4c, 0xec, 0x43,
  183. 0x48, 0x8e, 0xf3, 0x42, 0x19, 0x85, 0x5e, 0x7b, 0x30, 0xae, 0xc1, 0x78, 0x05, 0xc6, 0x65, 0x1c,
  184. 0xbe, 0xaa, 0xb8, 0x68, 0x2e, 0x08, 0x95, 0x52, 0x19, 0x6a, 0x84, 0x92, 0xda, 0x2f, 0x87, 0x9d,
  185. 0xdd, 0x97, 0x58, 0x05, 0x7d, 0x59, 0x41, 0x5d, 0x35, 0x5f, 0xfe, 0x21, 0x2c, 0xcb, 0xcd, 0x41,
  186. 0x35, 0x7c, 0xb3, 0x3e, 0x34, 0x22, 0x63, 0xda, 0xd0, 0x2c, 0xf7, 0x80, 0x88, 0xc3, 0x46, 0x9f,
  187. 0x9a, 0xe4, 0xef, 0xaf, 0x42, 0x18, 0x36, 0xc9, 0xa9, 0xd4, 0x63, 0xf6, 0x7f, 0xc9, 0xb4, 0x41,
  188. 0x08, 0x3e, 0x94, 0x34, 0x63, 0x4d, 0xd0, 0x02, 0xed, 0x27, 0x63, 0xf7, 0x46, 0x5f, 0xe1, 0x23,
  189. 0x6d, 0x31, 0xcd, 0xa0, 0xf5, 0xa0, 0xfd, 0x34, 0x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7, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x94, 0x51, 0x1d,
  201. 0x25, 0x03, 0x00, 0x00,
  202. }