github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/trace/v2/lightstep.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.16.0
     5  // source: envoy/config/trace/v2/lightstep.proto
     6  
     7  package envoy_config_trace_v2
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	_ "github.com/envoyproxy/protoc-gen-validate/validate"
    12  	proto "github.com/golang/protobuf/proto"
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  	reflect "reflect"
    16  	sync "sync"
    17  )
    18  
    19  const (
    20  	// Verify that this generated code is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    22  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    24  )
    25  
    26  // This is a compile-time assertion that a sufficiently up-to-date version
    27  // of the legacy proto package is being used.
    28  const _ = proto.ProtoPackageIsVersion4
    29  
    30  // Available propagation modes
    31  type LightstepConfig_PropagationMode int32
    32  
    33  const (
    34  	// Propagate trace context in the single header x-ot-span-context.
    35  	LightstepConfig_ENVOY LightstepConfig_PropagationMode = 0
    36  	// Propagate trace context using LightStep's native format.
    37  	LightstepConfig_LIGHTSTEP LightstepConfig_PropagationMode = 1
    38  	// Propagate trace context using the b3 format.
    39  	LightstepConfig_B3 LightstepConfig_PropagationMode = 2
    40  	// Propagation trace context using the w3 trace-context standard.
    41  	LightstepConfig_TRACE_CONTEXT LightstepConfig_PropagationMode = 3
    42  )
    43  
    44  // Enum value maps for LightstepConfig_PropagationMode.
    45  var (
    46  	LightstepConfig_PropagationMode_name = map[int32]string{
    47  		0: "ENVOY",
    48  		1: "LIGHTSTEP",
    49  		2: "B3",
    50  		3: "TRACE_CONTEXT",
    51  	}
    52  	LightstepConfig_PropagationMode_value = map[string]int32{
    53  		"ENVOY":         0,
    54  		"LIGHTSTEP":     1,
    55  		"B3":            2,
    56  		"TRACE_CONTEXT": 3,
    57  	}
    58  )
    59  
    60  func (x LightstepConfig_PropagationMode) Enum() *LightstepConfig_PropagationMode {
    61  	p := new(LightstepConfig_PropagationMode)
    62  	*p = x
    63  	return p
    64  }
    65  
    66  func (x LightstepConfig_PropagationMode) String() string {
    67  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    68  }
    69  
    70  func (LightstepConfig_PropagationMode) Descriptor() protoreflect.EnumDescriptor {
    71  	return file_envoy_config_trace_v2_lightstep_proto_enumTypes[0].Descriptor()
    72  }
    73  
    74  func (LightstepConfig_PropagationMode) Type() protoreflect.EnumType {
    75  	return &file_envoy_config_trace_v2_lightstep_proto_enumTypes[0]
    76  }
    77  
    78  func (x LightstepConfig_PropagationMode) Number() protoreflect.EnumNumber {
    79  	return protoreflect.EnumNumber(x)
    80  }
    81  
    82  // Deprecated: Use LightstepConfig_PropagationMode.Descriptor instead.
    83  func (LightstepConfig_PropagationMode) EnumDescriptor() ([]byte, []int) {
    84  	return file_envoy_config_trace_v2_lightstep_proto_rawDescGZIP(), []int{0, 0}
    85  }
    86  
    87  // Configuration for the LightStep tracer.
    88  // [#extension: envoy.tracers.lightstep]
    89  type LightstepConfig struct {
    90  	state         protoimpl.MessageState
    91  	sizeCache     protoimpl.SizeCache
    92  	unknownFields protoimpl.UnknownFields
    93  
    94  	// The cluster manager cluster that hosts the LightStep collectors.
    95  	CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"`
    96  	// File containing the access token to the `LightStep
    97  	// <https://lightstep.com/>`_ API.
    98  	AccessTokenFile string `protobuf:"bytes,2,opt,name=access_token_file,json=accessTokenFile,proto3" json:"access_token_file,omitempty"`
    99  	// Propagation modes to use by LightStep's tracer.
   100  	PropagationModes []LightstepConfig_PropagationMode `protobuf:"varint,3,rep,packed,name=propagation_modes,json=propagationModes,proto3,enum=envoy.config.trace.v2.LightstepConfig_PropagationMode" json:"propagation_modes,omitempty"`
   101  }
   102  
   103  func (x *LightstepConfig) Reset() {
   104  	*x = LightstepConfig{}
   105  	if protoimpl.UnsafeEnabled {
   106  		mi := &file_envoy_config_trace_v2_lightstep_proto_msgTypes[0]
   107  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   108  		ms.StoreMessageInfo(mi)
   109  	}
   110  }
   111  
   112  func (x *LightstepConfig) String() string {
   113  	return protoimpl.X.MessageStringOf(x)
   114  }
   115  
   116  func (*LightstepConfig) ProtoMessage() {}
   117  
   118  func (x *LightstepConfig) ProtoReflect() protoreflect.Message {
   119  	mi := &file_envoy_config_trace_v2_lightstep_proto_msgTypes[0]
   120  	if protoimpl.UnsafeEnabled && x != nil {
   121  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   122  		if ms.LoadMessageInfo() == nil {
   123  			ms.StoreMessageInfo(mi)
   124  		}
   125  		return ms
   126  	}
   127  	return mi.MessageOf(x)
   128  }
   129  
   130  // Deprecated: Use LightstepConfig.ProtoReflect.Descriptor instead.
   131  func (*LightstepConfig) Descriptor() ([]byte, []int) {
   132  	return file_envoy_config_trace_v2_lightstep_proto_rawDescGZIP(), []int{0}
   133  }
   134  
   135  func (x *LightstepConfig) GetCollectorCluster() string {
   136  	if x != nil {
   137  		return x.CollectorCluster
   138  	}
   139  	return ""
   140  }
   141  
   142  func (x *LightstepConfig) GetAccessTokenFile() string {
   143  	if x != nil {
   144  		return x.AccessTokenFile
   145  	}
   146  	return ""
   147  }
   148  
   149  func (x *LightstepConfig) GetPropagationModes() []LightstepConfig_PropagationMode {
   150  	if x != nil {
   151  		return x.PropagationModes
   152  	}
   153  	return nil
   154  }
   155  
   156  var File_envoy_config_trace_v2_lightstep_proto protoreflect.FileDescriptor
   157  
   158  var file_envoy_config_trace_v2_lightstep_proto_rawDesc = []byte{
   159  	0x0a, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74,
   160  	0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65,
   161  	0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63,
   162  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x1d,
   163  	0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   164  	0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76,
   165  	0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
   166  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb8, 0x02, 0x0a, 0x0f, 0x4c, 0x69, 0x67, 0x68, 0x74,
   167  	0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f,
   168  	0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18,
   169  	0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x10,
   170  	0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
   171  	0x12, 0x33, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
   172  	0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04,
   173  	0x72, 0x02, 0x20, 0x01, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
   174  	0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x72, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61,
   175  	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e,
   176  	0x32, 0x36, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   177  	0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74,
   178  	0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61,
   179  	0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x92, 0x01, 0x07,
   180  	0x22, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61,
   181  	0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x46, 0x0a, 0x0f, 0x50, 0x72, 0x6f,
   182  	0x70, 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05,
   183  	0x45, 0x4e, 0x56, 0x4f, 0x59, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x49, 0x47, 0x48, 0x54,
   184  	0x53, 0x54, 0x45, 0x50, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x42, 0x33, 0x10, 0x02, 0x12, 0x11,
   185  	0x0a, 0x0d, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x58, 0x54, 0x10,
   186  	0x03, 0x42, 0x3f, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
   187  	0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   188  	0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73,
   189  	0x74, 0x65, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02,
   190  	0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   191  }
   192  
   193  var (
   194  	file_envoy_config_trace_v2_lightstep_proto_rawDescOnce sync.Once
   195  	file_envoy_config_trace_v2_lightstep_proto_rawDescData = file_envoy_config_trace_v2_lightstep_proto_rawDesc
   196  )
   197  
   198  func file_envoy_config_trace_v2_lightstep_proto_rawDescGZIP() []byte {
   199  	file_envoy_config_trace_v2_lightstep_proto_rawDescOnce.Do(func() {
   200  		file_envoy_config_trace_v2_lightstep_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v2_lightstep_proto_rawDescData)
   201  	})
   202  	return file_envoy_config_trace_v2_lightstep_proto_rawDescData
   203  }
   204  
   205  var file_envoy_config_trace_v2_lightstep_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   206  var file_envoy_config_trace_v2_lightstep_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   207  var file_envoy_config_trace_v2_lightstep_proto_goTypes = []interface{}{
   208  	(LightstepConfig_PropagationMode)(0), // 0: envoy.config.trace.v2.LightstepConfig.PropagationMode
   209  	(*LightstepConfig)(nil),              // 1: envoy.config.trace.v2.LightstepConfig
   210  }
   211  var file_envoy_config_trace_v2_lightstep_proto_depIdxs = []int32{
   212  	0, // 0: envoy.config.trace.v2.LightstepConfig.propagation_modes:type_name -> envoy.config.trace.v2.LightstepConfig.PropagationMode
   213  	1, // [1:1] is the sub-list for method output_type
   214  	1, // [1:1] is the sub-list for method input_type
   215  	1, // [1:1] is the sub-list for extension type_name
   216  	1, // [1:1] is the sub-list for extension extendee
   217  	0, // [0:1] is the sub-list for field type_name
   218  }
   219  
   220  func init() { file_envoy_config_trace_v2_lightstep_proto_init() }
   221  func file_envoy_config_trace_v2_lightstep_proto_init() {
   222  	if File_envoy_config_trace_v2_lightstep_proto != nil {
   223  		return
   224  	}
   225  	if !protoimpl.UnsafeEnabled {
   226  		file_envoy_config_trace_v2_lightstep_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   227  			switch v := v.(*LightstepConfig); i {
   228  			case 0:
   229  				return &v.state
   230  			case 1:
   231  				return &v.sizeCache
   232  			case 2:
   233  				return &v.unknownFields
   234  			default:
   235  				return nil
   236  			}
   237  		}
   238  	}
   239  	type x struct{}
   240  	out := protoimpl.TypeBuilder{
   241  		File: protoimpl.DescBuilder{
   242  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   243  			RawDescriptor: file_envoy_config_trace_v2_lightstep_proto_rawDesc,
   244  			NumEnums:      1,
   245  			NumMessages:   1,
   246  			NumExtensions: 0,
   247  			NumServices:   0,
   248  		},
   249  		GoTypes:           file_envoy_config_trace_v2_lightstep_proto_goTypes,
   250  		DependencyIndexes: file_envoy_config_trace_v2_lightstep_proto_depIdxs,
   251  		EnumInfos:         file_envoy_config_trace_v2_lightstep_proto_enumTypes,
   252  		MessageInfos:      file_envoy_config_trace_v2_lightstep_proto_msgTypes,
   253  	}.Build()
   254  	File_envoy_config_trace_v2_lightstep_proto = out.File
   255  	file_envoy_config_trace_v2_lightstep_proto_rawDesc = nil
   256  	file_envoy_config_trace_v2_lightstep_proto_goTypes = nil
   257  	file_envoy_config_trace_v2_lightstep_proto_depIdxs = nil
   258  }