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