...

Source file src/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb/span_context.pb.go

Documentation: cloud.google.com/go/monitoring/apiv3/v2/monitoringpb

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

View as plain text