config.pb.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  5. // source: app/metrics/config.proto
  6. package metrics
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // Config is the settings for metrics.
  20. type Config struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. // Tag of the outbound handler that handles metrics http connections.
  25. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  26. Listen string `protobuf:"bytes,2,opt,name=listen,proto3" json:"listen,omitempty"`
  27. }
  28. func (x *Config) Reset() {
  29. *x = Config{}
  30. mi := &file_app_metrics_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *Config) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Config) ProtoMessage() {}
  38. func (x *Config) ProtoReflect() protoreflect.Message {
  39. mi := &file_app_metrics_config_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  50. func (*Config) Descriptor() ([]byte, []int) {
  51. return file_app_metrics_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Config) GetTag() string {
  54. if x != nil {
  55. return x.Tag
  56. }
  57. return ""
  58. }
  59. func (x *Config) GetListen() string {
  60. if x != nil {
  61. return x.Listen
  62. }
  63. return ""
  64. }
  65. var File_app_metrics_config_proto protoreflect.FileDescriptor
  66. var file_app_metrics_config_proto_rawDesc = []byte{
  67. 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x63, 0x6f,
  68. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61, 0x79,
  69. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x32, 0x0a, 0x06,
  70. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  71. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x73, 0x74,
  72. 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e,
  73. 0x42, 0x52, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  74. 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68,
  75. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79,
  76. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
  77. 0x73, 0xaa, 0x02, 0x10, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4d, 0x65, 0x74,
  78. 0x72, 0x69, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  79. }
  80. var (
  81. file_app_metrics_config_proto_rawDescOnce sync.Once
  82. file_app_metrics_config_proto_rawDescData = file_app_metrics_config_proto_rawDesc
  83. )
  84. func file_app_metrics_config_proto_rawDescGZIP() []byte {
  85. file_app_metrics_config_proto_rawDescOnce.Do(func() {
  86. file_app_metrics_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_metrics_config_proto_rawDescData)
  87. })
  88. return file_app_metrics_config_proto_rawDescData
  89. }
  90. var file_app_metrics_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  91. var file_app_metrics_config_proto_goTypes = []any{
  92. (*Config)(nil), // 0: xray.app.metrics.Config
  93. }
  94. var file_app_metrics_config_proto_depIdxs = []int32{
  95. 0, // [0:0] is the sub-list for method output_type
  96. 0, // [0:0] is the sub-list for method input_type
  97. 0, // [0:0] is the sub-list for extension type_name
  98. 0, // [0:0] is the sub-list for extension extendee
  99. 0, // [0:0] is the sub-list for field type_name
  100. }
  101. func init() { file_app_metrics_config_proto_init() }
  102. func file_app_metrics_config_proto_init() {
  103. if File_app_metrics_config_proto != nil {
  104. return
  105. }
  106. type x struct{}
  107. out := protoimpl.TypeBuilder{
  108. File: protoimpl.DescBuilder{
  109. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  110. RawDescriptor: file_app_metrics_config_proto_rawDesc,
  111. NumEnums: 0,
  112. NumMessages: 1,
  113. NumExtensions: 0,
  114. NumServices: 0,
  115. },
  116. GoTypes: file_app_metrics_config_proto_goTypes,
  117. DependencyIndexes: file_app_metrics_config_proto_depIdxs,
  118. MessageInfos: file_app_metrics_config_proto_msgTypes,
  119. }.Build()
  120. File_app_metrics_config_proto = out.File
  121. file_app_metrics_config_proto_rawDesc = nil
  122. file_app_metrics_config_proto_goTypes = nil
  123. file_app_metrics_config_proto_depIdxs = nil
  124. }