Debian Codegraph @

trace/apiv1/tracepb/trace.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/devtools/cloudtrace/v1/trace.proto
20
21 package tracepb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 emptypb "google.golang.org/protobuf/types/known/emptypb"
32 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
33 reflect "reflect"
34 sync "sync"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // Type of span. Can be used to specify additional relationships between spans
45 // in addition to a parent/child relationship.
46 type TraceSpan_SpanKind int32
47
48 const (
49 // Unspecified.
50 TraceSpan_SPAN_KIND_UNSPECIFIED TraceSpan_SpanKind = 0
51 // Indicates that the span covers server-side handling of an RPC or other
52 // remote network request.
53 TraceSpan_RPC_SERVER TraceSpan_SpanKind = 1
54 // Indicates that the span covers the client-side wrapper around an RPC or
55 // other remote request.
56 TraceSpan_RPC_CLIENT TraceSpan_SpanKind = 2
57 )
58
59 // Enum value maps for TraceSpan_SpanKind.
60 var (
61 TraceSpan_SpanKind_name = map[int32]string{
62 0: "SPAN_KIND_UNSPECIFIED",
63 1: "RPC_SERVER",
64 2: "RPC_CLIENT",
65 }
66 TraceSpan_SpanKind_value = map[string]int32{
67 "SPAN_KIND_UNSPECIFIED": 0,
68 "RPC_SERVER": 1,
69 "RPC_CLIENT": 2,
70 }
71 )
72
73 func (x TraceSpan_SpanKind) Enum() *TraceSpan_SpanKind {
74 p := new(TraceSpan_SpanKind)
75 *p = x
76 return p
77 }
78
79 func (x TraceSpan_SpanKind) String() string {
80 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
81 }
82
83 func (TraceSpan_SpanKind) Descriptor() protoreflect.EnumDescriptor {
84 return file_google_devtools_cloudtrace_v1_trace_proto_enumTypes[0].Descriptor()
85 }
86
87 func (TraceSpan_SpanKind) Type() protoreflect.EnumType {
88 return &file_google_devtools_cloudtrace_v1_trace_proto_enumTypes[0]
89 }
90
91 func (x TraceSpan_SpanKind) Number() protoreflect.EnumNumber {
92 return protoreflect.EnumNumber(x)
93 }
94
95 // Deprecated: Use TraceSpan_SpanKind.Descriptor instead.
96 func (TraceSpan_SpanKind) EnumDescriptor() ([]byte, []int) {
97 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{2, 0}
98 }
99
100 // Type of data returned for traces in the list.
101 type ListTracesRequest_ViewType int32
102
103 const (
104 // Default is `MINIMAL` if unspecified.
105 ListTracesRequest_VIEW_TYPE_UNSPECIFIED ListTracesRequest_ViewType = 0
106 // Minimal view of the trace record that contains only the project
107 // and trace IDs.
108 ListTracesRequest_MINIMAL ListTracesRequest_ViewType = 1
109 // Root span view of the trace record that returns the root spans along
110 // with the minimal trace data.
111 ListTracesRequest_ROOTSPAN ListTracesRequest_ViewType = 2
112 // Complete view of the trace record that contains the actual trace data.
113 // This is equivalent to calling the REST `get` or RPC `GetTrace` method
114 // using the ID of each listed trace.
115 ListTracesRequest_COMPLETE ListTracesRequest_ViewType = 3
116 )
117
118 // Enum value maps for ListTracesRequest_ViewType.
119 var (
120 ListTracesRequest_ViewType_name = map[int32]string{
121 0: "VIEW_TYPE_UNSPECIFIED",
122 1: "MINIMAL",
123 2: "ROOTSPAN",
124 3: "COMPLETE",
125 }
126 ListTracesRequest_ViewType_value = map[string]int32{
127 "VIEW_TYPE_UNSPECIFIED": 0,
128 "MINIMAL": 1,
129 "ROOTSPAN": 2,
130 "COMPLETE": 3,
131 }
132 )
133
134 func (x ListTracesRequest_ViewType) Enum() *ListTracesRequest_ViewType {
135 p := new(ListTracesRequest_ViewType)
136 *p = x
137 return p
138 }
139
140 func (x ListTracesRequest_ViewType) String() string {
141 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
142 }
143
144 func (ListTracesRequest_ViewType) Descriptor() protoreflect.EnumDescriptor {
145 return file_google_devtools_cloudtrace_v1_trace_proto_enumTypes[1].Descriptor()
146 }
147
148 func (ListTracesRequest_ViewType) Type() protoreflect.EnumType {
149 return &file_google_devtools_cloudtrace_v1_trace_proto_enumTypes[1]
150 }
151
152 func (x ListTracesRequest_ViewType) Number() protoreflect.EnumNumber {
153 return protoreflect.EnumNumber(x)
154 }
155
156 // Deprecated: Use ListTracesRequest_ViewType.Descriptor instead.
157 func (ListTracesRequest_ViewType) EnumDescriptor() ([]byte, []int) {
158 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{3, 0}
159 }
160
161 // A trace describes how long it takes for an application to perform an
162 // operation. It consists of a set of spans, each of which represent a single
163 // timed event within the operation.
164 type Trace struct {
165 state protoimpl.MessageState
166 sizeCache protoimpl.SizeCache
167 unknownFields protoimpl.UnknownFields
168
169 // Project ID of the Cloud project where the trace data is stored.
170 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
171 // Globally unique identifier for the trace. This identifier is a 128-bit
172 // numeric value formatted as a 32-byte hex string. For example,
173 // `382d4f4c6b7bb2f4a972559d9085001d`.
174 TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
175 // Collection of spans in the trace.
176 Spans []*TraceSpan `protobuf:"bytes,3,rep,name=spans,proto3" json:"spans,omitempty"`
177 }
178
179 func (x *Trace) Reset() {
180 *x = Trace{}
181 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[0]
182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
183 ms.StoreMessageInfo(mi)
184 }
185
186 func (x *Trace) String() string {
187 return protoimpl.X.MessageStringOf(x)
188 }
189
190 func (*Trace) ProtoMessage() {}
191
192 func (x *Trace) ProtoReflect() protoreflect.Message {
193 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[0]
194 if x != nil {
195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
196 if ms.LoadMessageInfo() == nil {
197 ms.StoreMessageInfo(mi)
198 }
199 return ms
200 }
201 return mi.MessageOf(x)
202 }
203
204 // Deprecated: Use Trace.ProtoReflect.Descriptor instead.
205 func (*Trace) Descriptor() ([]byte, []int) {
206 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{0}
207 }
208
209 func (x *Trace) GetProjectId() string {
210 if x != nil {
211 return x.ProjectId
212 }
213 return ""
214 }
215
216 func (x *Trace) GetTraceId() string {
217 if x != nil {
218 return x.TraceId
219 }
220 return ""
221 }
222
223 func (x *Trace) GetSpans() []*TraceSpan {
224 if x != nil {
225 return x.Spans
226 }
227 return nil
228 }
229
230 // List of new or updated traces.
231 type Traces struct {
232 state protoimpl.MessageState
233 sizeCache protoimpl.SizeCache
234 unknownFields protoimpl.UnknownFields
235
236 // List of traces.
237 Traces []*Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
238 }
239
240 func (x *Traces) Reset() {
241 *x = Traces{}
242 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[1]
243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
244 ms.StoreMessageInfo(mi)
245 }
246
247 func (x *Traces) String() string {
248 return protoimpl.X.MessageStringOf(x)
249 }
250
251 func (*Traces) ProtoMessage() {}
252
253 func (x *Traces) ProtoReflect() protoreflect.Message {
254 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[1]
255 if x != nil {
256 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
257 if ms.LoadMessageInfo() == nil {
258 ms.StoreMessageInfo(mi)
259 }
260 return ms
261 }
262 return mi.MessageOf(x)
263 }
264
265 // Deprecated: Use Traces.ProtoReflect.Descriptor instead.
266 func (*Traces) Descriptor() ([]byte, []int) {
267 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{1}
268 }
269
270 func (x *Traces) GetTraces() []*Trace {
271 if x != nil {
272 return x.Traces
273 }
274 return nil
275 }
276
277 // A span represents a single timed event within a trace. Spans can be nested
278 // and form a trace tree. Often, a trace contains a root span that describes the
279 // end-to-end latency of an operation and, optionally, one or more subspans for
280 // its suboperations. Spans do not need to be contiguous. There may be gaps
281 // between spans in a trace.
282 type TraceSpan struct {
283 state protoimpl.MessageState
284 sizeCache protoimpl.SizeCache
285 unknownFields protoimpl.UnknownFields
286
287 // Identifier for the span. Must be a 64-bit integer other than 0 and
288 // unique within a trace. For example, `2205310701640571284`.
289 SpanId uint64 `protobuf:"fixed64,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
290 // Distinguishes between spans generated in a particular context. For example,
291 // two spans with the same name may be distinguished using `RPC_CLIENT`
292 // and `RPC_SERVER` to identify queueing latency associated with the span.
293 Kind TraceSpan_SpanKind `protobuf:"varint,2,opt,name=kind,proto3,enum=google.devtools.cloudtrace.v1.TraceSpan_SpanKind" json:"kind,omitempty"`
294 // Name of the span. Must be less than 128 bytes. The span name is sanitized
295 // and displayed in the Stackdriver Trace tool in the
296 // Google Cloud Platform Console.
297 // The name may be a method name or some other per-call site name.
298 // For the same executable and the same call point, a best practice is
299 // to use a consistent name, which makes it easier to correlate
300 // cross-trace spans.
301 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
302 // Start time of the span in nanoseconds from the UNIX epoch.
303 StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
304 // End time of the span in nanoseconds from the UNIX epoch.
305 EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
306 // Optional. ID of the parent span, if any.
307 ParentSpanId uint64 `protobuf:"fixed64,6,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
308 // Collection of labels associated with the span. Label keys must be less than
309 // 128 bytes. Label values must be less than 16 kilobytes (10MB for
310 // `/stacktrace` values).
311 //
312 // Some predefined label keys exist, or you may create your own. When creating
313 // your own, we recommend the following formats:
314 //
315 // - `/category/product/key` for agents of well-known products (e.g.
316 // `/db/mongodb/read_size`).
317 // - `short_host/path/key` for domain-specific keys (e.g.
318 // `foo.com/myproduct/bar`)
319 //
320 // Predefined labels include:
321 //
322 // * `/agent`
323 // * `/component`
324 // * `/error/message`
325 // * `/error/name`
326 // * `/http/client_city`
327 // * `/http/client_country`
328 // * `/http/client_protocol`
329 // * `/http/client_region`
330 // * `/http/host`
331 // * `/http/method`
332 // * `/http/path`
333 // * `/http/redirected_url`
334 // * `/http/request/size`
335 // * `/http/response/size`
336 // * `/http/route`
337 // * `/http/status_code`
338 // * `/http/url`
339 // * `/http/user_agent`
340 // * `/pid`
341 // * `/stacktrace`
342 // * `/tid`
343 Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
344 }
345
346 func (x *TraceSpan) Reset() {
347 *x = TraceSpan{}
348 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[2]
349 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
350 ms.StoreMessageInfo(mi)
351 }
352
353 func (x *TraceSpan) String() string {
354 return protoimpl.X.MessageStringOf(x)
355 }
356
357 func (*TraceSpan) ProtoMessage() {}
358
359 func (x *TraceSpan) ProtoReflect() protoreflect.Message {
360 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[2]
361 if x != nil {
362 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
363 if ms.LoadMessageInfo() == nil {
364 ms.StoreMessageInfo(mi)
365 }
366 return ms
367 }
368 return mi.MessageOf(x)
369 }
370
371 // Deprecated: Use TraceSpan.ProtoReflect.Descriptor instead.
372 func (*TraceSpan) Descriptor() ([]byte, []int) {
373 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{2}
374 }
375
376 func (x *TraceSpan) GetSpanId() uint64 {
377 if x != nil {
378 return x.SpanId
379 }
380 return 0
381 }
382
383 func (x *TraceSpan) GetKind() TraceSpan_SpanKind {
384 if x != nil {
385 return x.Kind
386 }
387 return TraceSpan_SPAN_KIND_UNSPECIFIED
388 }
389
390 func (x *TraceSpan) GetName() string {
391 if x != nil {
392 return x.Name
393 }
394 return ""
395 }
396
397 func (x *TraceSpan) GetStartTime() *timestamppb.Timestamp {
398 if x != nil {
399 return x.StartTime
400 }
401 return nil
402 }
403
404 func (x *TraceSpan) GetEndTime() *timestamppb.Timestamp {
405 if x != nil {
406 return x.EndTime
407 }
408 return nil
409 }
410
411 func (x *TraceSpan) GetParentSpanId() uint64 {
412 if x != nil {
413 return x.ParentSpanId
414 }
415 return 0
416 }
417
418 func (x *TraceSpan) GetLabels() map[string]string {
419 if x != nil {
420 return x.Labels
421 }
422 return nil
423 }
424
425 // The request message for the `ListTraces` method. All fields are required
426 // unless specified.
427 type ListTracesRequest struct {
428 state protoimpl.MessageState
429 sizeCache protoimpl.SizeCache
430 unknownFields protoimpl.UnknownFields
431
432 // Required. ID of the Cloud project where the trace data is stored.
433 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
434 // Optional. Type of data returned for traces in the list. Default is
435 // `MINIMAL`.
436 View ListTracesRequest_ViewType `protobuf:"varint,2,opt,name=view,proto3,enum=google.devtools.cloudtrace.v1.ListTracesRequest_ViewType" json:"view,omitempty"`
437 // Optional. Maximum number of traces to return. If not specified or <= 0, the
438 // implementation selects a reasonable value. The implementation may
439 // return fewer traces than the requested page size.
440 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
441 // Token identifying the page of results to return. If provided, use the
442 // value of the `next_page_token` field from a previous request.
443 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
444 // Start of the time interval (inclusive) during which the trace data was
445 // collected from the application.
446 StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
447 // End of the time interval (inclusive) during which the trace data was
448 // collected from the application.
449 EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
450 // Optional. A filter against labels for the request.
451 //
452 // By default, searches use prefix matching. To specify exact match, prepend
453 // a plus symbol (`+`) to the search term.
454 // Multiple terms are ANDed. Syntax:
455 //
456 // - `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root
457 // span starts with `NAME_PREFIX`.
458 // - `+root:NAME` or `+NAME`: Return traces where any root span's name is
459 // exactly `NAME`.
460 // - `span:NAME_PREFIX`: Return traces where any span starts with
461 // `NAME_PREFIX`.
462 // - `+span:NAME`: Return traces where any span's name is exactly
463 // `NAME`.
464 // - `latency:DURATION`: Return traces whose overall latency is
465 // greater or equal to than `DURATION`. Accepted units are nanoseconds
466 // (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For
467 // example, `latency:24ms` returns traces whose overall latency
468 // is greater than or equal to 24 milliseconds.
469 // - `label:LABEL_KEY`: Return all traces containing the specified
470 // label key (exact match, case-sensitive) regardless of the key:value
471 // pair's value (including empty values).
472 // - `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified
473 // label key (exact match, case-sensitive) whose value starts with
474 // `VALUE_PREFIX`. Both a key and a value must be specified.
475 // - `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair
476 // exactly matching the specified text. Both a key and a value must be
477 // specified.
478 // - `method:VALUE`: Equivalent to `/http/method:VALUE`.
479 // - `url:VALUE`: Equivalent to `/http/url:VALUE`.
480 Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"`
481 // Optional. Field used to sort the returned traces.
482 // Can be one of the following:
483 //
484 // - `trace_id`
485 // - `name` (`name` field of root span in the trace)
486 // - `duration` (difference between `end_time` and `start_time` fields of
487 // the root span)
488 // - `start` (`start_time` field of the root span)
489 //
490 // Descending order can be specified by appending `desc` to the sort field
491 // (for example, `name desc`).
492 //
493 // Only one sort field is permitted.
494 OrderBy string `protobuf:"bytes,8,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
495 }
496
497 func (x *ListTracesRequest) Reset() {
498 *x = ListTracesRequest{}
499 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[3]
500 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
501 ms.StoreMessageInfo(mi)
502 }
503
504 func (x *ListTracesRequest) String() string {
505 return protoimpl.X.MessageStringOf(x)
506 }
507
508 func (*ListTracesRequest) ProtoMessage() {}
509
510 func (x *ListTracesRequest) ProtoReflect() protoreflect.Message {
511 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[3]
512 if x != nil {
513 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
514 if ms.LoadMessageInfo() == nil {
515 ms.StoreMessageInfo(mi)
516 }
517 return ms
518 }
519 return mi.MessageOf(x)
520 }
521
522 // Deprecated: Use ListTracesRequest.ProtoReflect.Descriptor instead.
523 func (*ListTracesRequest) Descriptor() ([]byte, []int) {
524 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{3}
525 }
526
527 func (x *ListTracesRequest) GetProjectId() string {
528 if x != nil {
529 return x.ProjectId
530 }
531 return ""
532 }
533
534 func (x *ListTracesRequest) GetView() ListTracesRequest_ViewType {
535 if x != nil {
536 return x.View
537 }
538 return ListTracesRequest_VIEW_TYPE_UNSPECIFIED
539 }
540
541 func (x *ListTracesRequest) GetPageSize() int32 {
542 if x != nil {
543 return x.PageSize
544 }
545 return 0
546 }
547
548 func (x *ListTracesRequest) GetPageToken() string {
549 if x != nil {
550 return x.PageToken
551 }
552 return ""
553 }
554
555 func (x *ListTracesRequest) GetStartTime() *timestamppb.Timestamp {
556 if x != nil {
557 return x.StartTime
558 }
559 return nil
560 }
561
562 func (x *ListTracesRequest) GetEndTime() *timestamppb.Timestamp {
563 if x != nil {
564 return x.EndTime
565 }
566 return nil
567 }
568
569 func (x *ListTracesRequest) GetFilter() string {
570 if x != nil {
571 return x.Filter
572 }
573 return ""
574 }
575
576 func (x *ListTracesRequest) GetOrderBy() string {
577 if x != nil {
578 return x.OrderBy
579 }
580 return ""
581 }
582
583 // The response message for the `ListTraces` method.
584 type ListTracesResponse struct {
585 state protoimpl.MessageState
586 sizeCache protoimpl.SizeCache
587 unknownFields protoimpl.UnknownFields
588
589 // List of trace records as specified by the view parameter.
590 Traces []*Trace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
591 // If defined, indicates that there are more traces that match the request
592 // and that this value should be passed to the next request to continue
593 // retrieving additional traces.
594 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
595 }
596
597 func (x *ListTracesResponse) Reset() {
598 *x = ListTracesResponse{}
599 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[4]
600 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
601 ms.StoreMessageInfo(mi)
602 }
603
604 func (x *ListTracesResponse) String() string {
605 return protoimpl.X.MessageStringOf(x)
606 }
607
608 func (*ListTracesResponse) ProtoMessage() {}
609
610 func (x *ListTracesResponse) ProtoReflect() protoreflect.Message {
611 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[4]
612 if x != nil {
613 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
614 if ms.LoadMessageInfo() == nil {
615 ms.StoreMessageInfo(mi)
616 }
617 return ms
618 }
619 return mi.MessageOf(x)
620 }
621
622 // Deprecated: Use ListTracesResponse.ProtoReflect.Descriptor instead.
623 func (*ListTracesResponse) Descriptor() ([]byte, []int) {
624 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{4}
625 }
626
627 func (x *ListTracesResponse) GetTraces() []*Trace {
628 if x != nil {
629 return x.Traces
630 }
631 return nil
632 }
633
634 func (x *ListTracesResponse) GetNextPageToken() string {
635 if x != nil {
636 return x.NextPageToken
637 }
638 return ""
639 }
640
641 // The request message for the `GetTrace` method.
642 type GetTraceRequest struct {
643 state protoimpl.MessageState
644 sizeCache protoimpl.SizeCache
645 unknownFields protoimpl.UnknownFields
646
647 // Required. ID of the Cloud project where the trace data is stored.
648 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
649 // Required. ID of the trace to return.
650 TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
651 }
652
653 func (x *GetTraceRequest) Reset() {
654 *x = GetTraceRequest{}
655 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[5]
656 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
657 ms.StoreMessageInfo(mi)
658 }
659
660 func (x *GetTraceRequest) String() string {
661 return protoimpl.X.MessageStringOf(x)
662 }
663
664 func (*GetTraceRequest) ProtoMessage() {}
665
666 func (x *GetTraceRequest) ProtoReflect() protoreflect.Message {
667 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[5]
668 if x != nil {
669 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
670 if ms.LoadMessageInfo() == nil {
671 ms.StoreMessageInfo(mi)
672 }
673 return ms
674 }
675 return mi.MessageOf(x)
676 }
677
678 // Deprecated: Use GetTraceRequest.ProtoReflect.Descriptor instead.
679 func (*GetTraceRequest) Descriptor() ([]byte, []int) {
680 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{5}
681 }
682
683 func (x *GetTraceRequest) GetProjectId() string {
684 if x != nil {
685 return x.ProjectId
686 }
687 return ""
688 }
689
690 func (x *GetTraceRequest) GetTraceId() string {
691 if x != nil {
692 return x.TraceId
693 }
694 return ""
695 }
696
697 // The request message for the `PatchTraces` method.
698 type PatchTracesRequest struct {
699 state protoimpl.MessageState
700 sizeCache protoimpl.SizeCache
701 unknownFields protoimpl.UnknownFields
702
703 // Required. ID of the Cloud project where the trace data is stored.
704 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
705 // Required. The body of the message.
706 Traces *Traces `protobuf:"bytes,2,opt,name=traces,proto3" json:"traces,omitempty"`
707 }
708
709 func (x *PatchTracesRequest) Reset() {
710 *x = PatchTracesRequest{}
711 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[6]
712 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
713 ms.StoreMessageInfo(mi)
714 }
715
716 func (x *PatchTracesRequest) String() string {
717 return protoimpl.X.MessageStringOf(x)
718 }
719
720 func (*PatchTracesRequest) ProtoMessage() {}
721
722 func (x *PatchTracesRequest) ProtoReflect() protoreflect.Message {
723 mi := &file_google_devtools_cloudtrace_v1_trace_proto_msgTypes[6]
724 if x != nil {
725 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
726 if ms.LoadMessageInfo() == nil {
727 ms.StoreMessageInfo(mi)
728 }
729 return ms
730 }
731 return mi.MessageOf(x)
732 }
733
734 // Deprecated: Use PatchTracesRequest.ProtoReflect.Descriptor instead.
735 func (*PatchTracesRequest) Descriptor() ([]byte, []int) {
736 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP(), []int{6}
737 }
738
739 func (x *PatchTracesRequest) GetProjectId() string {
740 if x != nil {
741 return x.ProjectId
742 }
743 return ""
744 }
745
746 func (x *PatchTracesRequest) GetTraces() *Traces {
747 if x != nil {
748 return x.Traces
749 }
750 return nil
751 }
752
753 var File_google_devtools_cloudtrace_v1_trace_proto protoreflect.FileDescriptor
754
755 var file_google_devtools_cloudtrace_v1_trace_proto_rawDesc = []byte{
756 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
757 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f,
758 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f,
759 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f,
760 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,
761 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72,
762 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
763 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70,
764 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
765 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
766 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
767 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
768 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
769 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
770 0x22, 0x81, 0x01, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72,
771 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
772 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61,
773 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61,
774 0x63, 0x65, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x03, 0x20,
775 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76,
776 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65,
777 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05, 0x73,
778 0x70, 0x61, 0x6e, 0x73, 0x22, 0x46, 0x0a, 0x06, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x12, 0x3c,
779 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
780 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
781 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54,
782 0x72, 0x61, 0x63, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x22, 0xec, 0x03, 0x0a,
783 0x09, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70,
784 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x73, 0x70, 0x61,
785 0x6e, 0x49, 0x64, 0x12, 0x45, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
786 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
787 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76,
788 0x31, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x53, 0x70, 0x61, 0x6e,
789 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
790 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39,
791 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,
792 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
793 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09,
794 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64,
795 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
796 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
797 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65,
798 0x12, 0x29, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x5f,
799 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x06, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x70,
800 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x06, 0x6c,
801 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f,
802 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c,
803 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x63,
804 0x65, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72,
805 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62,
806 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
807 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
808 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
809 0x3a, 0x02, 0x38, 0x01, 0x22, 0x45, 0x0a, 0x08, 0x53, 0x70, 0x61, 0x6e, 0x4b, 0x69, 0x6e, 0x64,
810 0x12, 0x19, 0x0a, 0x15, 0x53, 0x50, 0x41, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e,
811 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x52,
812 0x50, 0x43, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x52,
813 0x50, 0x43, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x22, 0xcb, 0x03, 0x0a, 0x11,
814 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
815 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18,
816 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a,
817 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20,
818 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76,
819 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65,
820 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65,
821 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03,
822 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67,
823 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41,
824 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
825 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
826 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74,
827 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
828 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
829 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72,
830 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d,
831 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
832 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
833 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06,
834 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
835 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64,
836 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
837 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x4e, 0x0a, 0x08, 0x56, 0x69, 0x65,
838 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x54, 0x59,
839 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
840 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x4e, 0x49, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0c, 0x0a,
841 0x08, 0x52, 0x4f, 0x4f, 0x54, 0x53, 0x50, 0x41, 0x4e, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43,
842 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x22, 0x7a, 0x0a, 0x12, 0x4c, 0x69, 0x73,
843 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
844 0x3c, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
845 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
846 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e,
847 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x12, 0x26, 0x0a,
848 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
849 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
850 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x55, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x63,
851 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a,
852 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
853 0x02, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x08,
854 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
855 0xe0, 0x41, 0x02, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x12,
856 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
857 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
858 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x72, 0x6f,
859 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73,
860 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
861 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72,
862 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x42, 0x03, 0xe0,
863 0x41, 0x02, 0x52, 0x06, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x32, 0xb5, 0x05, 0x0a, 0x0c, 0x54,
864 0x72, 0x61, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x0a,
865 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f,
866 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f,
867 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54,
868 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67,
869 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63,
870 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
871 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
872 0x35, 0xda, 0x41, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x82, 0xd3,
873 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
874 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f,
875 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x12, 0xab, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x72,
876 0x61, 0x63, 0x65, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76,
877 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65,
878 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
879 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76,
880 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63, 0x65,
881 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x22, 0x49, 0xda, 0x41, 0x13, 0x70, 0x72,
882 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2c, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69,
883 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f,
884 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69,
885 0x64, 0x7d, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x72, 0x61, 0x63, 0x65,
886 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x0b, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72,
887 0x61, 0x63, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65,
888 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x72, 0x61, 0x63,
889 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73,
890 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
891 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
892 0x44, 0xda, 0x41, 0x11, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2c, 0x74,
893 0x72, 0x61, 0x63, 0x65, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x06, 0x74, 0x72, 0x61,
894 0x63, 0x65, 0x73, 0x32, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
895 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x74,
896 0x72, 0x61, 0x63, 0x65, 0x73, 0x1a, 0xaa, 0x01, 0xca, 0x41, 0x19, 0x63, 0x6c, 0x6f, 0x75, 0x64,
897 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
898 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x8a, 0x01, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f,
899 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
900 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c,
901 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77,
902 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
903 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x61, 0x70, 0x70,
904 0x65, 0x6e, 0x64, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
905 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
906 0x75, 0x74, 0x68, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e,
907 0x6c, 0x79, 0x42, 0xad, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
908 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
909 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50,
910 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
911 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63,
912 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x70, 0x62, 0x3b,
913 0x74, 0x72, 0x61, 0x63, 0x65, 0x70, 0x62, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
914 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0xca,
915 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x54,
916 0x72, 0x61, 0x63, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
917 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x3a, 0x3a,
918 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
919 }
920
921 var (
922 file_google_devtools_cloudtrace_v1_trace_proto_rawDescOnce sync.Once
923 file_google_devtools_cloudtrace_v1_trace_proto_rawDescData = file_google_devtools_cloudtrace_v1_trace_proto_rawDesc
924 )
925
926 func file_google_devtools_cloudtrace_v1_trace_proto_rawDescGZIP() []byte {
927 file_google_devtools_cloudtrace_v1_trace_proto_rawDescOnce.Do(func() {
928 file_google_devtools_cloudtrace_v1_trace_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_cloudtrace_v1_trace_proto_rawDescData)
929 })
930 return file_google_devtools_cloudtrace_v1_trace_proto_rawDescData
931 }
932
933 var file_google_devtools_cloudtrace_v1_trace_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
934 var file_google_devtools_cloudtrace_v1_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
935 var file_google_devtools_cloudtrace_v1_trace_proto_goTypes = []any{
936 (TraceSpan_SpanKind)(0), // 0: google.devtools.cloudtrace.v1.TraceSpan.SpanKind
937 (ListTracesRequest_ViewType)(0), // 1: google.devtools.cloudtrace.v1.ListTracesRequest.ViewType
938 (*Trace)(nil), // 2: google.devtools.cloudtrace.v1.Trace
939 (*Traces)(nil), // 3: google.devtools.cloudtrace.v1.Traces
940 (*TraceSpan)(nil), // 4: google.devtools.cloudtrace.v1.TraceSpan
941 (*ListTracesRequest)(nil), // 5: google.devtools.cloudtrace.v1.ListTracesRequest
942 (*ListTracesResponse)(nil), // 6: google.devtools.cloudtrace.v1.ListTracesResponse
943 (*GetTraceRequest)(nil), // 7: google.devtools.cloudtrace.v1.GetTraceRequest
944 (*PatchTracesRequest)(nil), // 8: google.devtools.cloudtrace.v1.PatchTracesRequest
945 nil, // 9: google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry
946 (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
947 (*emptypb.Empty)(nil), // 11: google.protobuf.Empty
948 }
949 var file_google_devtools_cloudtrace_v1_trace_proto_depIdxs = []int32{
950 4, // 0: google.devtools.cloudtrace.v1.Trace.spans:type_name -> google.devtools.cloudtrace.v1.TraceSpan
951 2, // 1: google.devtools.cloudtrace.v1.Traces.traces:type_name -> google.devtools.cloudtrace.v1.Trace
952 0, // 2: google.devtools.cloudtrace.v1.TraceSpan.kind:type_name -> google.devtools.cloudtrace.v1.TraceSpan.SpanKind
953 10, // 3: google.devtools.cloudtrace.v1.TraceSpan.start_time:type_name -> google.protobuf.Timestamp
954 10, // 4: google.devtools.cloudtrace.v1.TraceSpan.end_time:type_name -> google.protobuf.Timestamp
955 9, // 5: google.devtools.cloudtrace.v1.TraceSpan.labels:type_name -> google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry
956 1, // 6: google.devtools.cloudtrace.v1.ListTracesRequest.view:type_name -> google.devtools.cloudtrace.v1.ListTracesRequest.ViewType
957 10, // 7: google.devtools.cloudtrace.v1.ListTracesRequest.start_time:type_name -> google.protobuf.Timestamp
958 10, // 8: google.devtools.cloudtrace.v1.ListTracesRequest.end_time:type_name -> google.protobuf.Timestamp
959 2, // 9: google.devtools.cloudtrace.v1.ListTracesResponse.traces:type_name -> google.devtools.cloudtrace.v1.Trace
960 3, // 10: google.devtools.cloudtrace.v1.PatchTracesRequest.traces:type_name -> google.devtools.cloudtrace.v1.Traces
961 5, // 11: google.devtools.cloudtrace.v1.TraceService.ListTraces:input_type -> google.devtools.cloudtrace.v1.ListTracesRequest
962 7, // 12: google.devtools.cloudtrace.v1.TraceService.GetTrace:input_type -> google.devtools.cloudtrace.v1.GetTraceRequest
963 8, // 13: google.devtools.cloudtrace.v1.TraceService.PatchTraces:input_type -> google.devtools.cloudtrace.v1.PatchTracesRequest
964 6, // 14: google.devtools.cloudtrace.v1.TraceService.ListTraces:output_type -> google.devtools.cloudtrace.v1.ListTracesResponse
965 2, // 15: google.devtools.cloudtrace.v1.TraceService.GetTrace:output_type -> google.devtools.cloudtrace.v1.Trace
966 11, // 16: google.devtools.cloudtrace.v1.TraceService.PatchTraces:output_type -> google.protobuf.Empty
967 14, // [14:17] is the sub-list for method output_type
968 11, // [11:14] is the sub-list for method input_type
969 11, // [11:11] is the sub-list for extension type_name
970 11, // [11:11] is the sub-list for extension extendee
971 0, // [0:11] is the sub-list for field type_name
972 }
973
974 func init() { file_google_devtools_cloudtrace_v1_trace_proto_init() }
975 func file_google_devtools_cloudtrace_v1_trace_proto_init() {
976 if File_google_devtools_cloudtrace_v1_trace_proto != nil {
977 return
978 }
979 type x struct{}
980 out := protoimpl.TypeBuilder{
981 File: protoimpl.DescBuilder{
982 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
983 RawDescriptor: file_google_devtools_cloudtrace_v1_trace_proto_rawDesc,
984 NumEnums: 2,
985 NumMessages: 8,
986 NumExtensions: 0,
987 NumServices: 1,
988 },
989 GoTypes: file_google_devtools_cloudtrace_v1_trace_proto_goTypes,
990 DependencyIndexes: file_google_devtools_cloudtrace_v1_trace_proto_depIdxs,
991 EnumInfos: file_google_devtools_cloudtrace_v1_trace_proto_enumTypes,
992 MessageInfos: file_google_devtools_cloudtrace_v1_trace_proto_msgTypes,
993 }.Build()
994 File_google_devtools_cloudtrace_v1_trace_proto = out.File
995 file_google_devtools_cloudtrace_v1_trace_proto_rawDesc = nil
996 file_google_devtools_cloudtrace_v1_trace_proto_goTypes = nil
997 file_google_devtools_cloudtrace_v1_trace_proto_depIdxs = nil
998 }
999
1000 // Reference imports to suppress errors if they are not otherwise used.
1001 var _ context.Context
1002 var _ grpc.ClientConnInterface
1003
1004 // This is a compile-time assertion to ensure that this generated file
1005 // is compatible with the grpc package it is being compiled against.
1006 const _ = grpc.SupportPackageIsVersion6
1007
1008 // TraceServiceClient is the client API for TraceService service.
1009 //
1010 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1011 type TraceServiceClient interface {
1012 // Returns of a list of traces that match the specified filter conditions.
1013 ListTraces(ctx context.Context, in *ListTracesRequest, opts ...grpc.CallOption) (*ListTracesResponse, error)
1014 // Gets a single trace by its ID.
1015 GetTrace(ctx context.Context, in *GetTraceRequest, opts ...grpc.CallOption) (*Trace, error)
1016 // Sends new traces to Stackdriver Trace or updates existing traces. If the ID
1017 // of a trace that you send matches that of an existing trace, any fields
1018 // in the existing trace and its spans are overwritten by the provided values,
1019 // and any new fields provided are merged with the existing trace data. If the
1020 // ID does not match, a new trace is created.
1021 PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
1022 }
1023
1024 type traceServiceClient struct {
1025 cc grpc.ClientConnInterface
1026 }
1027
1028 func NewTraceServiceClient(cc grpc.ClientConnInterface) TraceServiceClient {
1029 return &traceServiceClient{cc}
1030 }
1031
1032 func (c *traceServiceClient) ListTraces(ctx context.Context, in *ListTracesRequest, opts ...grpc.CallOption) (*ListTracesResponse, error) {
1033 out := new(ListTracesResponse)
1034 err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/ListTraces", in, out, opts...)
1035 if err != nil {
1036 return nil, err
1037 }
1038 return out, nil
1039 }
1040
1041 func (c *traceServiceClient) GetTrace(ctx context.Context, in *GetTraceRequest, opts ...grpc.CallOption) (*Trace, error) {
1042 out := new(Trace)
1043 err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/GetTrace", in, out, opts...)
1044 if err != nil {
1045 return nil, err
1046 }
1047 return out, nil
1048 }
1049
1050 func (c *traceServiceClient) PatchTraces(ctx context.Context, in *PatchTracesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
1051 out := new(emptypb.Empty)
1052 err := c.cc.Invoke(ctx, "/google.devtools.cloudtrace.v1.TraceService/PatchTraces", in, out, opts...)
1053 if err != nil {
1054 return nil, err
1055 }
1056 return out, nil
1057 }
1058
1059 // TraceServiceServer is the server API for TraceService service.
1060 type TraceServiceServer interface {
1061 // Returns of a list of traces that match the specified filter conditions.
1062 ListTraces(context.Context, *ListTracesRequest) (*ListTracesResponse, error)
1063 // Gets a single trace by its ID.
1064 GetTrace(context.Context, *GetTraceRequest) (*Trace, error)
1065 // Sends new traces to Stackdriver Trace or updates existing traces. If the ID
1066 // of a trace that you send matches that of an existing trace, any fields
1067 // in the existing trace and its spans are overwritten by the provided values,
1068 // and any new fields provided are merged with the existing trace data. If the
1069 // ID does not match, a new trace is created.
1070 PatchTraces(context.Context, *PatchTracesRequest) (*emptypb.Empty, error)
1071 }
1072
1073 // UnimplementedTraceServiceServer can be embedded to have forward compatible implementations.
1074 type UnimplementedTraceServiceServer struct {
1075 }
1076
1077 func (*UnimplementedTraceServiceServer) ListTraces(context.Context, *ListTracesRequest) (*ListTracesResponse, error) {
1078 return nil, status.Errorf(codes.Unimplemented, "method ListTraces not implemented")
1079 }
1080 func (*UnimplementedTraceServiceServer) GetTrace(context.Context, *GetTraceRequest) (*Trace, error) {
1081 return nil, status.Errorf(codes.Unimplemented, "method GetTrace not implemented")
1082 }
1083 func (*UnimplementedTraceServiceServer) PatchTraces(context.Context, *PatchTracesRequest) (*emptypb.Empty, error) {
1084 return nil, status.Errorf(codes.Unimplemented, "method PatchTraces not implemented")
1085 }
1086
1087 func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) {
1088 s.RegisterService(&_TraceService_serviceDesc, srv)
1089 }
1090
1091 func _TraceService_ListTraces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1092 in := new(ListTracesRequest)
1093 if err := dec(in); err != nil {
1094 return nil, err
1095 }
1096 if interceptor == nil {
1097 return srv.(TraceServiceServer).ListTraces(ctx, in)
1098 }
1099 info := &grpc.UnaryServerInfo{
1100 Server: srv,
1101 FullMethod: "/google.devtools.cloudtrace.v1.TraceService/ListTraces",
1102 }
1103 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1104 return srv.(TraceServiceServer).ListTraces(ctx, req.(*ListTracesRequest))
1105 }
1106 return interceptor(ctx, in, info, handler)
1107 }
1108
1109 func _TraceService_GetTrace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1110 in := new(GetTraceRequest)
1111 if err := dec(in); err != nil {
1112 return nil, err
1113 }
1114 if interceptor == nil {
1115 return srv.(TraceServiceServer).GetTrace(ctx, in)
1116 }
1117 info := &grpc.UnaryServerInfo{
1118 Server: srv,
1119 FullMethod: "/google.devtools.cloudtrace.v1.TraceService/GetTrace",
1120 }
1121 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1122 return srv.(TraceServiceServer).GetTrace(ctx, req.(*GetTraceRequest))
1123 }
1124 return interceptor(ctx, in, info, handler)
1125 }
1126
1127 func _TraceService_PatchTraces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1128 in := new(PatchTracesRequest)
1129 if err := dec(in); err != nil {
1130 return nil, err
1131 }
1132 if interceptor == nil {
1133 return srv.(TraceServiceServer).PatchTraces(ctx, in)
1134 }
1135 info := &grpc.UnaryServerInfo{
1136 Server: srv,
1137 FullMethod: "/google.devtools.cloudtrace.v1.TraceService/PatchTraces",
1138 }
1139 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1140 return srv.(TraceServiceServer).PatchTraces(ctx, req.(*PatchTracesRequest))
1141 }
1142 return interceptor(ctx, in, info, handler)
1143 }
1144
1145 var _TraceService_serviceDesc = grpc.ServiceDesc{
1146 ServiceName: "google.devtools.cloudtrace.v1.TraceService",
1147 HandlerType: (*TraceServiceServer)(nil),
1148 Methods: []grpc.MethodDesc{
1149 {
1150 MethodName: "ListTraces",
1151 Handler: _TraceService_ListTraces_Handler,
1152 },
1153 {
1154 MethodName: "GetTrace",
1155 Handler: _TraceService_GetTrace_Handler,
1156 },
1157 {
1158 MethodName: "PatchTraces",
1159 Handler: _TraceService_PatchTraces_Handler,
1160 },
1161 },
1162 Streams: []grpc.StreamDesc{},
1163 Metadata: "google/devtools/cloudtrace/v1/trace.proto",
1164 }