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