forked from googleapis/java-spanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trace.pb.go
1865 lines (1672 loc) · 78.2 KB
/
trace.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.12.3
// source: google/devtools/cloudtrace/v2/trace.proto
package cloudtrace
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Indicates whether the message was sent or received.
type Span_TimeEvent_MessageEvent_Type int32
const (
// Unknown event type.
Span_TimeEvent_MessageEvent_TYPE_UNSPECIFIED Span_TimeEvent_MessageEvent_Type = 0
// Indicates a sent message.
Span_TimeEvent_MessageEvent_SENT Span_TimeEvent_MessageEvent_Type = 1
// Indicates a received message.
Span_TimeEvent_MessageEvent_RECEIVED Span_TimeEvent_MessageEvent_Type = 2
)
// Enum value maps for Span_TimeEvent_MessageEvent_Type.
var (
Span_TimeEvent_MessageEvent_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SENT",
2: "RECEIVED",
}
Span_TimeEvent_MessageEvent_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SENT": 1,
"RECEIVED": 2,
}
)
func (x Span_TimeEvent_MessageEvent_Type) Enum() *Span_TimeEvent_MessageEvent_Type {
p := new(Span_TimeEvent_MessageEvent_Type)
*p = x
return p
}
func (x Span_TimeEvent_MessageEvent_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Span_TimeEvent_MessageEvent_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_devtools_cloudtrace_v2_trace_proto_enumTypes[0].Descriptor()
}
func (Span_TimeEvent_MessageEvent_Type) Type() protoreflect.EnumType {
return &file_google_devtools_cloudtrace_v2_trace_proto_enumTypes[0]
}
func (x Span_TimeEvent_MessageEvent_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Span_TimeEvent_MessageEvent_Type.Descriptor instead.
func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 1, 1, 0}
}
// The relationship of the current span relative to the linked span: child,
// parent, or unspecified.
type Span_Link_Type int32
const (
// The relationship of the two spans is unknown.
Span_Link_TYPE_UNSPECIFIED Span_Link_Type = 0
// The linked span is a child of the current span.
Span_Link_CHILD_LINKED_SPAN Span_Link_Type = 1
// The linked span is a parent of the current span.
Span_Link_PARENT_LINKED_SPAN Span_Link_Type = 2
)
// Enum value maps for Span_Link_Type.
var (
Span_Link_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "CHILD_LINKED_SPAN",
2: "PARENT_LINKED_SPAN",
}
Span_Link_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"CHILD_LINKED_SPAN": 1,
"PARENT_LINKED_SPAN": 2,
}
)
func (x Span_Link_Type) Enum() *Span_Link_Type {
p := new(Span_Link_Type)
*p = x
return p
}
func (x Span_Link_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Span_Link_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_devtools_cloudtrace_v2_trace_proto_enumTypes[1].Descriptor()
}
func (Span_Link_Type) Type() protoreflect.EnumType {
return &file_google_devtools_cloudtrace_v2_trace_proto_enumTypes[1]
}
func (x Span_Link_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Span_Link_Type.Descriptor instead.
func (Span_Link_Type) EnumDescriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 3, 0}
}
// A span represents a single operation within a trace. Spans can be
// nested to form a trace tree. Often, a trace contains a root span
// that describes the end-to-end latency, and one or more subspans for
// its sub-operations. A trace can also contain multiple root spans,
// or none at all. Spans do not need to be contiguous—there may be
// gaps or overlaps between spans in a trace.
type Span struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the span in the following format:
//
// projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
//
// [TRACE_ID] is a unique identifier for a trace within a project;
// it is a 32-character hexadecimal encoding of a 16-byte array.
//
// [SPAN_ID] is a unique identifier for a span within a trace; it
// is a 16-character hexadecimal encoding of an 8-byte array.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The [SPAN_ID] portion of the span's resource name.
SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// The [SPAN_ID] of this span's parent span. If this is a root span,
// then this field must be empty.
ParentSpanId string `protobuf:"bytes,3,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
// A description of the span's operation (up to 128 bytes).
// Stackdriver Trace displays the description in the
// Google Cloud Platform Console.
// For example, the display name can be a qualified method name or a file name
// and a line number where the operation is called. A best practice is to use
// the same display name within an application and at the same call point.
// This makes it easier to correlate spans in different traces.
DisplayName *TruncatableString `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The start time of the span. On the client side, this is the time kept by
// the local machine where the span execution starts. On the server side, this
// is the time when the server's application handler starts running.
StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// The end time of the span. On the client side, this is the time kept by
// the local machine where the span execution ends. On the server side, this
// is the time when the server application handler stops running.
EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// A set of attributes on the span. You can have up to 32 attributes per
// span.
Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
// Stack trace captured at the start of the span.
StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
// A set of time events. You can have up to 32 annotations and 128 message
// events per span.
TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents,proto3" json:"time_events,omitempty"`
// Links associated with the span. You can have up to 128 links per Span.
Links *Span_Links `protobuf:"bytes,10,opt,name=links,proto3" json:"links,omitempty"`
// Optional. The final status for this span.
Status *status.Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
// Optional. Set this parameter to indicate whether this span is in
// the same process as its parent. If you do not set this parameter,
// Stackdriver Trace is unable to take advantage of this helpful
// information.
SameProcessAsParentSpan *wrappers.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan,proto3" json:"same_process_as_parent_span,omitempty"`
// Optional. The number of child spans that were generated while this span
// was active. If set, allows implementation to detect missing child spans.
ChildSpanCount *wrappers.Int32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"`
}
func (x *Span) Reset() {
*x = Span{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span) ProtoMessage() {}
func (x *Span) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span.ProtoReflect.Descriptor instead.
func (*Span) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0}
}
func (x *Span) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Span) GetSpanId() string {
if x != nil {
return x.SpanId
}
return ""
}
func (x *Span) GetParentSpanId() string {
if x != nil {
return x.ParentSpanId
}
return ""
}
func (x *Span) GetDisplayName() *TruncatableString {
if x != nil {
return x.DisplayName
}
return nil
}
func (x *Span) GetStartTime() *timestamp.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *Span) GetEndTime() *timestamp.Timestamp {
if x != nil {
return x.EndTime
}
return nil
}
func (x *Span) GetAttributes() *Span_Attributes {
if x != nil {
return x.Attributes
}
return nil
}
func (x *Span) GetStackTrace() *StackTrace {
if x != nil {
return x.StackTrace
}
return nil
}
func (x *Span) GetTimeEvents() *Span_TimeEvents {
if x != nil {
return x.TimeEvents
}
return nil
}
func (x *Span) GetLinks() *Span_Links {
if x != nil {
return x.Links
}
return nil
}
func (x *Span) GetStatus() *status.Status {
if x != nil {
return x.Status
}
return nil
}
func (x *Span) GetSameProcessAsParentSpan() *wrappers.BoolValue {
if x != nil {
return x.SameProcessAsParentSpan
}
return nil
}
func (x *Span) GetChildSpanCount() *wrappers.Int32Value {
if x != nil {
return x.ChildSpanCount
}
return nil
}
// The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
type AttributeValue struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The type of the value.
//
// Types that are assignable to Value:
// *AttributeValue_StringValue
// *AttributeValue_IntValue
// *AttributeValue_BoolValue
Value isAttributeValue_Value `protobuf_oneof:"value"`
}
func (x *AttributeValue) Reset() {
*x = AttributeValue{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AttributeValue) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AttributeValue) ProtoMessage() {}
func (x *AttributeValue) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AttributeValue.ProtoReflect.Descriptor instead.
func (*AttributeValue) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{1}
}
func (m *AttributeValue) GetValue() isAttributeValue_Value {
if m != nil {
return m.Value
}
return nil
}
func (x *AttributeValue) GetStringValue() *TruncatableString {
if x, ok := x.GetValue().(*AttributeValue_StringValue); ok {
return x.StringValue
}
return nil
}
func (x *AttributeValue) GetIntValue() int64 {
if x, ok := x.GetValue().(*AttributeValue_IntValue); ok {
return x.IntValue
}
return 0
}
func (x *AttributeValue) GetBoolValue() bool {
if x, ok := x.GetValue().(*AttributeValue_BoolValue); ok {
return x.BoolValue
}
return false
}
type isAttributeValue_Value interface {
isAttributeValue_Value()
}
type AttributeValue_StringValue struct {
// A string up to 256 bytes long.
StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type AttributeValue_IntValue struct {
// A 64-bit signed integer.
IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}
type AttributeValue_BoolValue struct {
// A Boolean value represented by `true` or `false`.
BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
func (*AttributeValue_StringValue) isAttributeValue_Value() {}
func (*AttributeValue_IntValue) isAttributeValue_Value() {}
func (*AttributeValue_BoolValue) isAttributeValue_Value() {}
// A call stack appearing in a trace.
type StackTrace struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Stack frames in this stack trace. A maximum of 128 frames are allowed.
StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames,proto3" json:"stack_frames,omitempty"`
// The hash ID is used to conserve network bandwidth for duplicate
// stack traces within a single trace.
//
// Often multiple spans will have identical stack traces.
// The first occurrence of a stack trace should contain both the
// `stackFrame` content and a value in `stackTraceHashId`.
//
// Subsequent spans within the same request can refer
// to that stack trace by only setting `stackTraceHashId`.
StackTraceHashId int64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId,proto3" json:"stack_trace_hash_id,omitempty"`
}
func (x *StackTrace) Reset() {
*x = StackTrace{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StackTrace) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StackTrace) ProtoMessage() {}
func (x *StackTrace) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StackTrace.ProtoReflect.Descriptor instead.
func (*StackTrace) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{2}
}
func (x *StackTrace) GetStackFrames() *StackTrace_StackFrames {
if x != nil {
return x.StackFrames
}
return nil
}
func (x *StackTrace) GetStackTraceHashId() int64 {
if x != nil {
return x.StackTraceHashId
}
return 0
}
// Binary module.
type Module struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// For example: main binary, kernel modules, and dynamic libraries
// such as libc.so, sharedlib.so (up to 256 bytes).
Module *TruncatableString `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
// A unique identifier for the module, usually a hash of its
// contents (up to 128 bytes).
BuildId *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
}
func (x *Module) Reset() {
*x = Module{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Module) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Module) ProtoMessage() {}
func (x *Module) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Module.ProtoReflect.Descriptor instead.
func (*Module) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{3}
}
func (x *Module) GetModule() *TruncatableString {
if x != nil {
return x.Module
}
return nil
}
func (x *Module) GetBuildId() *TruncatableString {
if x != nil {
return x.BuildId
}
return nil
}
// Represents a string that might be shortened to a specified length.
type TruncatableString struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The shortened string. For example, if the original string is 500
// bytes long and the limit of the string is 128 bytes, then
// `value` contains the first 128 bytes of the 500-byte string.
//
// Truncation always happens on a UTF8 character boundary. If there
// are multi-byte characters in the string, then the length of the
// shortened string might be less than the size limit.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// The number of bytes removed from the original string. If this
// value is 0, then the string was not shortened.
TruncatedByteCount int32 `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount,proto3" json:"truncated_byte_count,omitempty"`
}
func (x *TruncatableString) Reset() {
*x = TruncatableString{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TruncatableString) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TruncatableString) ProtoMessage() {}
func (x *TruncatableString) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TruncatableString.ProtoReflect.Descriptor instead.
func (*TruncatableString) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{4}
}
func (x *TruncatableString) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *TruncatableString) GetTruncatedByteCount() int32 {
if x != nil {
return x.TruncatedByteCount
}
return 0
}
// A set of attributes, each in the format `[KEY]:[VALUE]`.
type Span_Attributes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The set of attributes. Each attribute's key can be up to 128 bytes
// long. The value can be a string up to 256 bytes, a signed 64-bit integer,
// or the Boolean values `true` and `false`. For example:
//
// "/instance_id": "my-instance"
// "/http/user_agent": ""
// "/http/request_bytes": 300
// "abc.com/myattribute": true
AttributeMap map[string]*AttributeValue `protobuf:"bytes,1,rep,name=attribute_map,json=attributeMap,proto3" json:"attribute_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The number of attributes that were discarded. Attributes can be discarded
// because their keys are too long or because there are too many attributes.
// If this value is 0 then all attributes are valid.
DroppedAttributesCount int32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
}
func (x *Span_Attributes) Reset() {
*x = Span_Attributes{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span_Attributes) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span_Attributes) ProtoMessage() {}
func (x *Span_Attributes) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span_Attributes.ProtoReflect.Descriptor instead.
func (*Span_Attributes) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Span_Attributes) GetAttributeMap() map[string]*AttributeValue {
if x != nil {
return x.AttributeMap
}
return nil
}
func (x *Span_Attributes) GetDroppedAttributesCount() int32 {
if x != nil {
return x.DroppedAttributesCount
}
return 0
}
// A time-stamped annotation or message event in the Span.
type Span_TimeEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The timestamp indicating the time the event occurred.
Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// A `TimeEvent` can contain either an `Annotation` object or a
// `MessageEvent` object, but not both.
//
// Types that are assignable to Value:
// *Span_TimeEvent_Annotation_
// *Span_TimeEvent_MessageEvent_
Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
}
func (x *Span_TimeEvent) Reset() {
*x = Span_TimeEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span_TimeEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span_TimeEvent) ProtoMessage() {}
func (x *Span_TimeEvent) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span_TimeEvent.ProtoReflect.Descriptor instead.
func (*Span_TimeEvent) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 1}
}
func (x *Span_TimeEvent) GetTime() *timestamp.Timestamp {
if x != nil {
return x.Time
}
return nil
}
func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value {
if m != nil {
return m.Value
}
return nil
}
func (x *Span_TimeEvent) GetAnnotation() *Span_TimeEvent_Annotation {
if x, ok := x.GetValue().(*Span_TimeEvent_Annotation_); ok {
return x.Annotation
}
return nil
}
func (x *Span_TimeEvent) GetMessageEvent() *Span_TimeEvent_MessageEvent {
if x, ok := x.GetValue().(*Span_TimeEvent_MessageEvent_); ok {
return x.MessageEvent
}
return nil
}
type isSpan_TimeEvent_Value interface {
isSpan_TimeEvent_Value()
}
type Span_TimeEvent_Annotation_ struct {
// Text annotation with a set of attributes.
Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,proto3,oneof"`
}
type Span_TimeEvent_MessageEvent_ struct {
// An event describing a message sent/received between Spans.
MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,proto3,oneof"`
}
func (*Span_TimeEvent_Annotation_) isSpan_TimeEvent_Value() {}
func (*Span_TimeEvent_MessageEvent_) isSpan_TimeEvent_Value() {}
// A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
// on the span, consisting of either user-supplied key:value pairs, or
// details of a message sent/received between Spans.
type Span_TimeEvents struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A collection of `TimeEvent`s.
TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent,proto3" json:"time_event,omitempty"`
// The number of dropped annotations in all the included time events.
// If the value is 0, then no annotations were dropped.
DroppedAnnotationsCount int32 `protobuf:"varint,2,opt,name=dropped_annotations_count,json=droppedAnnotationsCount,proto3" json:"dropped_annotations_count,omitempty"`
// The number of dropped message events in all the included time events.
// If the value is 0, then no message events were dropped.
DroppedMessageEventsCount int32 `protobuf:"varint,3,opt,name=dropped_message_events_count,json=droppedMessageEventsCount,proto3" json:"dropped_message_events_count,omitempty"`
}
func (x *Span_TimeEvents) Reset() {
*x = Span_TimeEvents{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span_TimeEvents) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span_TimeEvents) ProtoMessage() {}
func (x *Span_TimeEvents) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span_TimeEvents.ProtoReflect.Descriptor instead.
func (*Span_TimeEvents) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 2}
}
func (x *Span_TimeEvents) GetTimeEvent() []*Span_TimeEvent {
if x != nil {
return x.TimeEvent
}
return nil
}
func (x *Span_TimeEvents) GetDroppedAnnotationsCount() int32 {
if x != nil {
return x.DroppedAnnotationsCount
}
return 0
}
func (x *Span_TimeEvents) GetDroppedMessageEventsCount() int32 {
if x != nil {
return x.DroppedMessageEventsCount
}
return 0
}
// A pointer from the current span to another span in the same trace or in a
// different trace. For example, this can be used in batching operations,
// where a single batch handler processes multiple requests from different
// traces or when the handler receives a request from a different project.
type Span_Link struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The [TRACE_ID] for a trace within a project.
TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// The [SPAN_ID] for a span within a trace.
SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// The relationship of the current span relative to the linked span.
Type Span_Link_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.devtools.cloudtrace.v2.Span_Link_Type" json:"type,omitempty"`
// A set of attributes on the link. You have have up to 32 attributes per
// link.
Attributes *Span_Attributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
}
func (x *Span_Link) Reset() {
*x = Span_Link{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span_Link) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span_Link) ProtoMessage() {}
func (x *Span_Link) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span_Link.ProtoReflect.Descriptor instead.
func (*Span_Link) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 3}
}
func (x *Span_Link) GetTraceId() string {
if x != nil {
return x.TraceId
}
return ""
}
func (x *Span_Link) GetSpanId() string {
if x != nil {
return x.SpanId
}
return ""
}
func (x *Span_Link) GetType() Span_Link_Type {
if x != nil {
return x.Type
}
return Span_Link_TYPE_UNSPECIFIED
}
func (x *Span_Link) GetAttributes() *Span_Attributes {
if x != nil {
return x.Attributes
}
return nil
}
// A collection of links, which are references from this span to a span
// in the same or different trace.
type Span_Links struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A collection of links.
Link []*Span_Link `protobuf:"bytes,1,rep,name=link,proto3" json:"link,omitempty"`
// The number of dropped links after the maximum size was enforced. If
// this value is 0, then no links were dropped.
DroppedLinksCount int32 `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`
}
func (x *Span_Links) Reset() {
*x = Span_Links{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Span_Links) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Span_Links) ProtoMessage() {}
func (x *Span_Links) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Span_Links.ProtoReflect.Descriptor instead.
func (*Span_Links) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudtrace_v2_trace_proto_rawDescGZIP(), []int{0, 4}
}
func (x *Span_Links) GetLink() []*Span_Link {
if x != nil {
return x.Link
}
return nil
}
func (x *Span_Links) GetDroppedLinksCount() int32 {
if x != nil {
return x.DroppedLinksCount