github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/app/restfulapi/config.pb.go (about) 1 package restfulapi 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 ListenAddr string `protobuf:"bytes,1,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"` 24 ListenPort int32 `protobuf:"varint,2,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"` 25 AuthToken string `protobuf:"bytes,3,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` 26 } 27 28 func (x *Config) Reset() { 29 *x = Config{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_app_restfulapi_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_restfulapi_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_restfulapi_config_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *Config) GetListenAddr() string { 61 if x != nil { 62 return x.ListenAddr 63 } 64 return "" 65 } 66 67 func (x *Config) GetListenPort() int32 { 68 if x != nil { 69 return x.ListenPort 70 } 71 return 0 72 } 73 74 func (x *Config) GetAuthToken() string { 75 if x != nil { 76 return x.AuthToken 77 } 78 return "" 79 } 80 81 var File_app_restfulapi_config_proto protoreflect.FileDescriptor 82 83 var file_app_restfulapi_config_proto_rawDesc = []byte{ 84 0x0a, 0x1b, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x61, 0x70, 0x69, 85 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 86 0x32, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 87 0x61, 0x70, 0x69, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 88 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 89 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 90 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 91 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 92 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 93 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x50, 0x6f, 94 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 95 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 96 0x6e, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x15, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 97 0x12, 0x0a, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x61, 0x70, 0x69, 0x42, 0x61, 0x0a, 0x1a, 98 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 99 0x70, 0x70, 0x2e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x70, 0x69, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 100 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 101 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 102 0x2f, 0x72, 0x65, 0x73, 0x74, 0x66, 0x75, 0x6c, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x11, 0x56, 0x32, 103 0x52, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x70, 0x69, 0x62, 104 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 105 } 106 107 var ( 108 file_app_restfulapi_config_proto_rawDescOnce sync.Once 109 file_app_restfulapi_config_proto_rawDescData = file_app_restfulapi_config_proto_rawDesc 110 ) 111 112 func file_app_restfulapi_config_proto_rawDescGZIP() []byte { 113 file_app_restfulapi_config_proto_rawDescOnce.Do(func() { 114 file_app_restfulapi_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_restfulapi_config_proto_rawDescData) 115 }) 116 return file_app_restfulapi_config_proto_rawDescData 117 } 118 119 var file_app_restfulapi_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 120 var file_app_restfulapi_config_proto_goTypes = []interface{}{ 121 (*Config)(nil), // 0: v2ray.app.restfulapi.Config 122 } 123 var file_app_restfulapi_config_proto_depIdxs = []int32{ 124 0, // [0:0] is the sub-list for method output_type 125 0, // [0:0] is the sub-list for method input_type 126 0, // [0:0] is the sub-list for extension type_name 127 0, // [0:0] is the sub-list for extension extendee 128 0, // [0:0] is the sub-list for field type_name 129 } 130 131 func init() { file_app_restfulapi_config_proto_init() } 132 func file_app_restfulapi_config_proto_init() { 133 if File_app_restfulapi_config_proto != nil { 134 return 135 } 136 if !protoimpl.UnsafeEnabled { 137 file_app_restfulapi_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 138 switch v := v.(*Config); i { 139 case 0: 140 return &v.state 141 case 1: 142 return &v.sizeCache 143 case 2: 144 return &v.unknownFields 145 default: 146 return nil 147 } 148 } 149 } 150 type x struct{} 151 out := protoimpl.TypeBuilder{ 152 File: protoimpl.DescBuilder{ 153 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 154 RawDescriptor: file_app_restfulapi_config_proto_rawDesc, 155 NumEnums: 0, 156 NumMessages: 1, 157 NumExtensions: 0, 158 NumServices: 0, 159 }, 160 GoTypes: file_app_restfulapi_config_proto_goTypes, 161 DependencyIndexes: file_app_restfulapi_config_proto_depIdxs, 162 MessageInfos: file_app_restfulapi_config_proto_msgTypes, 163 }.Build() 164 File_app_restfulapi_config_proto = out.File 165 file_app_restfulapi_config_proto_rawDesc = nil 166 file_app_restfulapi_config_proto_goTypes = nil 167 file_app_restfulapi_config_proto_depIdxs = nil 168 }