1// Copyright 2020 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.22.0 18// protoc v3.11.2 19// source: google/monitoring/v3/span_context.proto 20 21package monitoring 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37) 38 39// This is a compile-time assertion that a sufficiently up-to-date version 40// of the legacy proto package is being used. 41const _ = proto.ProtoPackageIsVersion4 42 43// The context of a span, attached to 44// [Exemplars][google.api.Distribution.Exemplars] 45// in [Distribution][google.api.Distribution] values during aggregation. 46// 47// It contains the name of a span with format: 48// 49// projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] 50type SpanContext struct { 51 state protoimpl.MessageState 52 sizeCache protoimpl.SizeCache 53 unknownFields protoimpl.UnknownFields 54 55 // The resource name of the span. The format is: 56 // 57 // projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] 58 // 59 // `[TRACE_ID]` is a unique identifier for a trace within a project; 60 // it is a 32-character hexadecimal encoding of a 16-byte array. 61 // 62 // `[SPAN_ID]` is a unique identifier for a span within a trace; it 63 // is a 16-character hexadecimal encoding of an 8-byte array. 64 SpanName string `protobuf:"bytes,1,opt,name=span_name,json=spanName,proto3" json:"span_name,omitempty"` 65} 66 67func (x *SpanContext) Reset() { 68 *x = SpanContext{} 69 if protoimpl.UnsafeEnabled { 70 mi := &file_google_monitoring_v3_span_context_proto_msgTypes[0] 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 ms.StoreMessageInfo(mi) 73 } 74} 75 76func (x *SpanContext) String() string { 77 return protoimpl.X.MessageStringOf(x) 78} 79 80func (*SpanContext) ProtoMessage() {} 81 82func (x *SpanContext) ProtoReflect() protoreflect.Message { 83 mi := &file_google_monitoring_v3_span_context_proto_msgTypes[0] 84 if protoimpl.UnsafeEnabled && x != nil { 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 if ms.LoadMessageInfo() == nil { 87 ms.StoreMessageInfo(mi) 88 } 89 return ms 90 } 91 return mi.MessageOf(x) 92} 93 94// Deprecated: Use SpanContext.ProtoReflect.Descriptor instead. 95func (*SpanContext) Descriptor() ([]byte, []int) { 96 return file_google_monitoring_v3_span_context_proto_rawDescGZIP(), []int{0} 97} 98 99func (x *SpanContext) GetSpanName() string { 100 if x != nil { 101 return x.SpanName 102 } 103 return "" 104} 105 106var File_google_monitoring_v3_span_context_proto protoreflect.FileDescriptor 107 108var file_google_monitoring_v3_span_context_proto_rawDesc = []byte{ 109 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 110 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 111 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 112 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x22, 113 0x2a, 0x0a, 0x0b, 0x53, 0x70, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1b, 114 0x0a, 0x09, 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 115 0x09, 0x52, 0x08, 0x73, 0x70, 0x61, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0xc8, 0x01, 0x0a, 0x18, 116 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 117 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x33, 0x42, 0x10, 0x53, 0x70, 0x61, 0x6e, 0x43, 0x6f, 118 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x6f, 119 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 120 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 121 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x76, 122 0x33, 0x3b, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x1a, 0x47, 123 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 124 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 125 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 126 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x33, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 127 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 128 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 129} 130 131var ( 132 file_google_monitoring_v3_span_context_proto_rawDescOnce sync.Once 133 file_google_monitoring_v3_span_context_proto_rawDescData = file_google_monitoring_v3_span_context_proto_rawDesc 134) 135 136func file_google_monitoring_v3_span_context_proto_rawDescGZIP() []byte { 137 file_google_monitoring_v3_span_context_proto_rawDescOnce.Do(func() { 138 file_google_monitoring_v3_span_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_v3_span_context_proto_rawDescData) 139 }) 140 return file_google_monitoring_v3_span_context_proto_rawDescData 141} 142 143var file_google_monitoring_v3_span_context_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 144var file_google_monitoring_v3_span_context_proto_goTypes = []interface{}{ 145 (*SpanContext)(nil), // 0: google.monitoring.v3.SpanContext 146} 147var file_google_monitoring_v3_span_context_proto_depIdxs = []int32{ 148 0, // [0:0] is the sub-list for method output_type 149 0, // [0:0] is the sub-list for method input_type 150 0, // [0:0] is the sub-list for extension type_name 151 0, // [0:0] is the sub-list for extension extendee 152 0, // [0:0] is the sub-list for field type_name 153} 154 155func init() { file_google_monitoring_v3_span_context_proto_init() } 156func file_google_monitoring_v3_span_context_proto_init() { 157 if File_google_monitoring_v3_span_context_proto != nil { 158 return 159 } 160 if !protoimpl.UnsafeEnabled { 161 file_google_monitoring_v3_span_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 162 switch v := v.(*SpanContext); i { 163 case 0: 164 return &v.state 165 case 1: 166 return &v.sizeCache 167 case 2: 168 return &v.unknownFields 169 default: 170 return nil 171 } 172 } 173 } 174 type x struct{} 175 out := protoimpl.TypeBuilder{ 176 File: protoimpl.DescBuilder{ 177 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 178 RawDescriptor: file_google_monitoring_v3_span_context_proto_rawDesc, 179 NumEnums: 0, 180 NumMessages: 1, 181 NumExtensions: 0, 182 NumServices: 0, 183 }, 184 GoTypes: file_google_monitoring_v3_span_context_proto_goTypes, 185 DependencyIndexes: file_google_monitoring_v3_span_context_proto_depIdxs, 186 MessageInfos: file_google_monitoring_v3_span_context_proto_msgTypes, 187 }.Build() 188 File_google_monitoring_v3_span_context_proto = out.File 189 file_google_monitoring_v3_span_context_proto_rawDesc = nil 190 file_google_monitoring_v3_span_context_proto_goTypes = nil 191 file_google_monitoring_v3_span_context_proto_depIdxs = nil 192} 193