github.com/imannamdari/v2ray-core/v5@v5.0.5/app/stats/config.pb.go (about)

     1  package stats
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	_ "github.com/imannamdari/v2ray-core/v5/common/protoext"
     8  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     9  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    10  )
    11  
    12  const (
    13  	// Verify that this generated code is sufficiently up-to-date.
    14  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    15  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    17  )
    18  
    19  type Config struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  }
    24  
    25  func (x *Config) Reset() {
    26  	*x = Config{}
    27  	if protoimpl.UnsafeEnabled {
    28  		mi := &file_app_stats_config_proto_msgTypes[0]
    29  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    30  		ms.StoreMessageInfo(mi)
    31  	}
    32  }
    33  
    34  func (x *Config) String() string {
    35  	return protoimpl.X.MessageStringOf(x)
    36  }
    37  
    38  func (*Config) ProtoMessage() {}
    39  
    40  func (x *Config) ProtoReflect() protoreflect.Message {
    41  	mi := &file_app_stats_config_proto_msgTypes[0]
    42  	if protoimpl.UnsafeEnabled && x != nil {
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		if ms.LoadMessageInfo() == nil {
    45  			ms.StoreMessageInfo(mi)
    46  		}
    47  		return ms
    48  	}
    49  	return mi.MessageOf(x)
    50  }
    51  
    52  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    53  func (*Config) Descriptor() ([]byte, []int) {
    54  	return file_app_stats_config_proto_rawDescGZIP(), []int{0}
    55  }
    56  
    57  type ChannelConfig struct {
    58  	state         protoimpl.MessageState
    59  	sizeCache     protoimpl.SizeCache
    60  	unknownFields protoimpl.UnknownFields
    61  
    62  	Blocking        bool  `protobuf:"varint,1,opt,name=Blocking,proto3" json:"Blocking,omitempty"`
    63  	SubscriberLimit int32 `protobuf:"varint,2,opt,name=SubscriberLimit,proto3" json:"SubscriberLimit,omitempty"`
    64  	BufferSize      int32 `protobuf:"varint,3,opt,name=BufferSize,proto3" json:"BufferSize,omitempty"`
    65  }
    66  
    67  func (x *ChannelConfig) Reset() {
    68  	*x = ChannelConfig{}
    69  	if protoimpl.UnsafeEnabled {
    70  		mi := &file_app_stats_config_proto_msgTypes[1]
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		ms.StoreMessageInfo(mi)
    73  	}
    74  }
    75  
    76  func (x *ChannelConfig) String() string {
    77  	return protoimpl.X.MessageStringOf(x)
    78  }
    79  
    80  func (*ChannelConfig) ProtoMessage() {}
    81  
    82  func (x *ChannelConfig) ProtoReflect() protoreflect.Message {
    83  	mi := &file_app_stats_config_proto_msgTypes[1]
    84  	if protoimpl.UnsafeEnabled && x != nil {
    85  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    86  		if ms.LoadMessageInfo() == nil {
    87  			ms.StoreMessageInfo(mi)
    88  		}
    89  		return ms
    90  	}
    91  	return mi.MessageOf(x)
    92  }
    93  
    94  // Deprecated: Use ChannelConfig.ProtoReflect.Descriptor instead.
    95  func (*ChannelConfig) Descriptor() ([]byte, []int) {
    96  	return file_app_stats_config_proto_rawDescGZIP(), []int{1}
    97  }
    98  
    99  func (x *ChannelConfig) GetBlocking() bool {
   100  	if x != nil {
   101  		return x.Blocking
   102  	}
   103  	return false
   104  }
   105  
   106  func (x *ChannelConfig) GetSubscriberLimit() int32 {
   107  	if x != nil {
   108  		return x.SubscriberLimit
   109  	}
   110  	return 0
   111  }
   112  
   113  func (x *ChannelConfig) GetBufferSize() int32 {
   114  	if x != nil {
   115  		return x.BufferSize
   116  	}
   117  	return 0
   118  }
   119  
   120  var File_app_stats_config_proto protoreflect.FileDescriptor
   121  
   122  var file_app_stats_config_proto_rawDesc = []byte{
   123  	0x0a, 0x16, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
   124  	0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
   125  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x20,
   126  	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
   127  	0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   128  	0x22, 0x22, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x09,
   129  	0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x07, 0x12, 0x05, 0x73,
   130  	0x74, 0x61, 0x74, 0x73, 0x22, 0x75, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43,
   131  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e,
   132  	0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x69, 0x6e,
   133  	0x67, 0x12, 0x28, 0x0a, 0x0f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4c,
   134  	0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x53, 0x75, 0x62, 0x73,
   135  	0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x42,
   136  	0x75, 0x66, 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
   137  	0x0a, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x5d, 0x0a, 0x18, 0x63,
   138  	0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
   139  	0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75,
   140  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
   141  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x74,
   142  	0x61, 0x74, 0x73, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
   143  	0x2e, 0x41, 0x70, 0x70, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   144  	0x6f, 0x33,
   145  }
   146  
   147  var (
   148  	file_app_stats_config_proto_rawDescOnce sync.Once
   149  	file_app_stats_config_proto_rawDescData = file_app_stats_config_proto_rawDesc
   150  )
   151  
   152  func file_app_stats_config_proto_rawDescGZIP() []byte {
   153  	file_app_stats_config_proto_rawDescOnce.Do(func() {
   154  		file_app_stats_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_stats_config_proto_rawDescData)
   155  	})
   156  	return file_app_stats_config_proto_rawDescData
   157  }
   158  
   159  var file_app_stats_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   160  var file_app_stats_config_proto_goTypes = []interface{}{
   161  	(*Config)(nil),        // 0: v2ray.core.app.stats.Config
   162  	(*ChannelConfig)(nil), // 1: v2ray.core.app.stats.ChannelConfig
   163  }
   164  var file_app_stats_config_proto_depIdxs = []int32{
   165  	0, // [0:0] is the sub-list for method output_type
   166  	0, // [0:0] is the sub-list for method input_type
   167  	0, // [0:0] is the sub-list for extension type_name
   168  	0, // [0:0] is the sub-list for extension extendee
   169  	0, // [0:0] is the sub-list for field type_name
   170  }
   171  
   172  func init() { file_app_stats_config_proto_init() }
   173  func file_app_stats_config_proto_init() {
   174  	if File_app_stats_config_proto != nil {
   175  		return
   176  	}
   177  	if !protoimpl.UnsafeEnabled {
   178  		file_app_stats_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   179  			switch v := v.(*Config); i {
   180  			case 0:
   181  				return &v.state
   182  			case 1:
   183  				return &v.sizeCache
   184  			case 2:
   185  				return &v.unknownFields
   186  			default:
   187  				return nil
   188  			}
   189  		}
   190  		file_app_stats_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   191  			switch v := v.(*ChannelConfig); i {
   192  			case 0:
   193  				return &v.state
   194  			case 1:
   195  				return &v.sizeCache
   196  			case 2:
   197  				return &v.unknownFields
   198  			default:
   199  				return nil
   200  			}
   201  		}
   202  	}
   203  	type x struct{}
   204  	out := protoimpl.TypeBuilder{
   205  		File: protoimpl.DescBuilder{
   206  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   207  			RawDescriptor: file_app_stats_config_proto_rawDesc,
   208  			NumEnums:      0,
   209  			NumMessages:   2,
   210  			NumExtensions: 0,
   211  			NumServices:   0,
   212  		},
   213  		GoTypes:           file_app_stats_config_proto_goTypes,
   214  		DependencyIndexes: file_app_stats_config_proto_depIdxs,
   215  		MessageInfos:      file_app_stats_config_proto_msgTypes,
   216  	}.Build()
   217  	File_app_stats_config_proto = out.File
   218  	file_app_stats_config_proto_rawDesc = nil
   219  	file_app_stats_config_proto_goTypes = nil
   220  	file_app_stats_config_proto_depIdxs = nil
   221  }