github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/app/observatory/burst/config.pb.go (about)

     1  package burst
     2  
     3  import (
     4  	_ "github.com/v2fly/v2ray-core/v5/common/protoext"
     5  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     6  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
     7  	reflect "reflect"
     8  	sync "sync"
     9  )
    10  
    11  const (
    12  	// Verify that this generated code is sufficiently up-to-date.
    13  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    14  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    15  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    16  )
    17  
    18  type Config struct {
    19  	state         protoimpl.MessageState
    20  	sizeCache     protoimpl.SizeCache
    21  	unknownFields protoimpl.UnknownFields
    22  
    23  	// @Document The selectors for outbound under observation
    24  	SubjectSelector []string          `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
    25  	PingConfig      *HealthPingConfig `protobuf:"bytes,3,opt,name=ping_config,json=pingConfig,proto3" json:"ping_config,omitempty"`
    26  }
    27  
    28  func (x *Config) Reset() {
    29  	*x = Config{}
    30  	if protoimpl.UnsafeEnabled {
    31  		mi := &file_app_observatory_burst_config_proto_msgTypes[0]
    32  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    33  		ms.StoreMessageInfo(mi)
    34  	}
    35  }
    36  
    37  func (x *Config) String() string {
    38  	return protoimpl.X.MessageStringOf(x)
    39  }
    40  
    41  func (*Config) ProtoMessage() {}
    42  
    43  func (x *Config) ProtoReflect() protoreflect.Message {
    44  	mi := &file_app_observatory_burst_config_proto_msgTypes[0]
    45  	if protoimpl.UnsafeEnabled && x != nil {
    46  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    47  		if ms.LoadMessageInfo() == nil {
    48  			ms.StoreMessageInfo(mi)
    49  		}
    50  		return ms
    51  	}
    52  	return mi.MessageOf(x)
    53  }
    54  
    55  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    56  func (*Config) Descriptor() ([]byte, []int) {
    57  	return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{0}
    58  }
    59  
    60  func (x *Config) GetSubjectSelector() []string {
    61  	if x != nil {
    62  		return x.SubjectSelector
    63  	}
    64  	return nil
    65  }
    66  
    67  func (x *Config) GetPingConfig() *HealthPingConfig {
    68  	if x != nil {
    69  		return x.PingConfig
    70  	}
    71  	return nil
    72  }
    73  
    74  type HealthPingConfig struct {
    75  	state         protoimpl.MessageState
    76  	sizeCache     protoimpl.SizeCache
    77  	unknownFields protoimpl.UnknownFields
    78  
    79  	// destination url, need 204 for success return
    80  	// default https://connectivitycheck.gstatic.com/generate_204
    81  	Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
    82  	// connectivity check url
    83  	Connectivity string `protobuf:"bytes,2,opt,name=connectivity,proto3" json:"connectivity,omitempty"`
    84  	// health check interval, int64 values of time.Duration
    85  	Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
    86  	// sampling count is the amount of recent ping results which are kept for calculation
    87  	SamplingCount int32 `protobuf:"varint,4,opt,name=samplingCount,proto3" json:"samplingCount,omitempty"`
    88  	// ping timeout, int64 values of time.Duration
    89  	Timeout int64 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
    90  }
    91  
    92  func (x *HealthPingConfig) Reset() {
    93  	*x = HealthPingConfig{}
    94  	if protoimpl.UnsafeEnabled {
    95  		mi := &file_app_observatory_burst_config_proto_msgTypes[1]
    96  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    97  		ms.StoreMessageInfo(mi)
    98  	}
    99  }
   100  
   101  func (x *HealthPingConfig) String() string {
   102  	return protoimpl.X.MessageStringOf(x)
   103  }
   104  
   105  func (*HealthPingConfig) ProtoMessage() {}
   106  
   107  func (x *HealthPingConfig) ProtoReflect() protoreflect.Message {
   108  	mi := &file_app_observatory_burst_config_proto_msgTypes[1]
   109  	if protoimpl.UnsafeEnabled && x != nil {
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		if ms.LoadMessageInfo() == nil {
   112  			ms.StoreMessageInfo(mi)
   113  		}
   114  		return ms
   115  	}
   116  	return mi.MessageOf(x)
   117  }
   118  
   119  // Deprecated: Use HealthPingConfig.ProtoReflect.Descriptor instead.
   120  func (*HealthPingConfig) Descriptor() ([]byte, []int) {
   121  	return file_app_observatory_burst_config_proto_rawDescGZIP(), []int{1}
   122  }
   123  
   124  func (x *HealthPingConfig) GetDestination() string {
   125  	if x != nil {
   126  		return x.Destination
   127  	}
   128  	return ""
   129  }
   130  
   131  func (x *HealthPingConfig) GetConnectivity() string {
   132  	if x != nil {
   133  		return x.Connectivity
   134  	}
   135  	return ""
   136  }
   137  
   138  func (x *HealthPingConfig) GetInterval() int64 {
   139  	if x != nil {
   140  		return x.Interval
   141  	}
   142  	return 0
   143  }
   144  
   145  func (x *HealthPingConfig) GetSamplingCount() int32 {
   146  	if x != nil {
   147  		return x.SamplingCount
   148  	}
   149  	return 0
   150  }
   151  
   152  func (x *HealthPingConfig) GetTimeout() int64 {
   153  	if x != nil {
   154  		return x.Timeout
   155  	}
   156  	return 0
   157  }
   158  
   159  var File_app_observatory_burst_config_proto protoreflect.FileDescriptor
   160  
   161  var file_app_observatory_burst_config_proto_rawDesc = []byte{
   162  	0x0a, 0x22, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72,
   163  	0x79, 0x2f, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
   164  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   165  	0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79,
   166  	0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
   167  	0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   168  	0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
   169  	0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73,
   170  	0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73,
   171  	0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x53,
   172  	0x0a, 0x0b, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20,
   173  	0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   174  	0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79,
   175  	0x2e, 0x62, 0x75, 0x72, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x69, 0x6e,
   176  	0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e,
   177  	0x66, 0x69, 0x67, 0x3a, 0x1f, 0x82, 0xb5, 0x18, 0x1b, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
   178  	0x63, 0x65, 0x12, 0x10, 0x62, 0x75, 0x72, 0x73, 0x74, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61,
   179  	0x74, 0x6f, 0x72, 0x79, 0x22, 0xb4, 0x01, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50,
   180  	0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
   181  	0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
   182  	0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x63,
   183  	0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
   184  	0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12,
   185  	0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
   186  	0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x73,
   187  	0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
   188  	0x28, 0x05, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e,
   189  	0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01,
   190  	0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x81, 0x01, 0x0a, 0x24,
   191  	0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
   192  	0x70, 0x70, 0x2e, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x62,
   193  	0x75, 0x72, 0x73, 0x74, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
   194  	0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63,
   195  	0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6f, 0x62, 0x73, 0x65, 0x72,
   196  	0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x62, 0x75, 0x72, 0x73, 0x74, 0xaa, 0x02, 0x20, 0x56,
   197  	0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4f, 0x62,
   198  	0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x42, 0x75, 0x72, 0x73, 0x74, 0x62,
   199  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   200  }
   201  
   202  var (
   203  	file_app_observatory_burst_config_proto_rawDescOnce sync.Once
   204  	file_app_observatory_burst_config_proto_rawDescData = file_app_observatory_burst_config_proto_rawDesc
   205  )
   206  
   207  func file_app_observatory_burst_config_proto_rawDescGZIP() []byte {
   208  	file_app_observatory_burst_config_proto_rawDescOnce.Do(func() {
   209  		file_app_observatory_burst_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_observatory_burst_config_proto_rawDescData)
   210  	})
   211  	return file_app_observatory_burst_config_proto_rawDescData
   212  }
   213  
   214  var file_app_observatory_burst_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   215  var file_app_observatory_burst_config_proto_goTypes = []interface{}{
   216  	(*Config)(nil),           // 0: v2ray.core.app.observatory.burst.Config
   217  	(*HealthPingConfig)(nil), // 1: v2ray.core.app.observatory.burst.HealthPingConfig
   218  }
   219  var file_app_observatory_burst_config_proto_depIdxs = []int32{
   220  	1, // 0: v2ray.core.app.observatory.burst.Config.ping_config:type_name -> v2ray.core.app.observatory.burst.HealthPingConfig
   221  	1, // [1:1] is the sub-list for method output_type
   222  	1, // [1:1] is the sub-list for method input_type
   223  	1, // [1:1] is the sub-list for extension type_name
   224  	1, // [1:1] is the sub-list for extension extendee
   225  	0, // [0:1] is the sub-list for field type_name
   226  }
   227  
   228  func init() { file_app_observatory_burst_config_proto_init() }
   229  func file_app_observatory_burst_config_proto_init() {
   230  	if File_app_observatory_burst_config_proto != nil {
   231  		return
   232  	}
   233  	if !protoimpl.UnsafeEnabled {
   234  		file_app_observatory_burst_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   235  			switch v := v.(*Config); i {
   236  			case 0:
   237  				return &v.state
   238  			case 1:
   239  				return &v.sizeCache
   240  			case 2:
   241  				return &v.unknownFields
   242  			default:
   243  				return nil
   244  			}
   245  		}
   246  		file_app_observatory_burst_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   247  			switch v := v.(*HealthPingConfig); i {
   248  			case 0:
   249  				return &v.state
   250  			case 1:
   251  				return &v.sizeCache
   252  			case 2:
   253  				return &v.unknownFields
   254  			default:
   255  				return nil
   256  			}
   257  		}
   258  	}
   259  	type x struct{}
   260  	out := protoimpl.TypeBuilder{
   261  		File: protoimpl.DescBuilder{
   262  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   263  			RawDescriptor: file_app_observatory_burst_config_proto_rawDesc,
   264  			NumEnums:      0,
   265  			NumMessages:   2,
   266  			NumExtensions: 0,
   267  			NumServices:   0,
   268  		},
   269  		GoTypes:           file_app_observatory_burst_config_proto_goTypes,
   270  		DependencyIndexes: file_app_observatory_burst_config_proto_depIdxs,
   271  		MessageInfos:      file_app_observatory_burst_config_proto_msgTypes,
   272  	}.Build()
   273  	File_app_observatory_burst_config_proto = out.File
   274  	file_app_observatory_burst_config_proto_rawDesc = nil
   275  	file_app_observatory_burst_config_proto_goTypes = nil
   276  	file_app_observatory_burst_config_proto_depIdxs = nil
   277  }