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