config.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. package filesystemstorage
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type StateStorageRoot int32
  17. const (
  18. StateStorageRoot_WorkDir StateStorageRoot = 0
  19. )
  20. // Enum value maps for StateStorageRoot.
  21. var (
  22. StateStorageRoot_name = map[int32]string{
  23. 0: "WorkDir",
  24. }
  25. StateStorageRoot_value = map[string]int32{
  26. "WorkDir": 0,
  27. }
  28. )
  29. func (x StateStorageRoot) Enum() *StateStorageRoot {
  30. p := new(StateStorageRoot)
  31. *p = x
  32. return p
  33. }
  34. func (x StateStorageRoot) String() string {
  35. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  36. }
  37. func (StateStorageRoot) Descriptor() protoreflect.EnumDescriptor {
  38. return file_app_persistentstorage_filesystemstorage_config_proto_enumTypes[0].Descriptor()
  39. }
  40. func (StateStorageRoot) Type() protoreflect.EnumType {
  41. return &file_app_persistentstorage_filesystemstorage_config_proto_enumTypes[0]
  42. }
  43. func (x StateStorageRoot) Number() protoreflect.EnumNumber {
  44. return protoreflect.EnumNumber(x)
  45. }
  46. // Deprecated: Use StateStorageRoot.Descriptor instead.
  47. func (StateStorageRoot) EnumDescriptor() ([]byte, []int) {
  48. return file_app_persistentstorage_filesystemstorage_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. type Config struct {
  51. state protoimpl.MessageState `protogen:"open.v1"`
  52. StateStorageRoot StateStorageRoot `protobuf:"varint,1,opt,name=state_storage_root,json=stateStorageRoot,proto3,enum=v2ray.core.app.persistentstorage.filesystemstorage.StateStorageRoot" json:"state_storage_root,omitempty"`
  53. InstanceName string `protobuf:"bytes,4,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
  54. Protojson bool `protobuf:"varint,5,opt,name=protojson,proto3" json:"protojson,omitempty"`
  55. unknownFields protoimpl.UnknownFields
  56. sizeCache protoimpl.SizeCache
  57. }
  58. func (x *Config) Reset() {
  59. *x = Config{}
  60. mi := &file_app_persistentstorage_filesystemstorage_config_proto_msgTypes[0]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. func (x *Config) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*Config) ProtoMessage() {}
  68. func (x *Config) ProtoReflect() protoreflect.Message {
  69. mi := &file_app_persistentstorage_filesystemstorage_config_proto_msgTypes[0]
  70. if x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  80. func (*Config) Descriptor() ([]byte, []int) {
  81. return file_app_persistentstorage_filesystemstorage_config_proto_rawDescGZIP(), []int{0}
  82. }
  83. func (x *Config) GetStateStorageRoot() StateStorageRoot {
  84. if x != nil {
  85. return x.StateStorageRoot
  86. }
  87. return StateStorageRoot_WorkDir
  88. }
  89. func (x *Config) GetInstanceName() string {
  90. if x != nil {
  91. return x.InstanceName
  92. }
  93. return ""
  94. }
  95. func (x *Config) GetProtojson() bool {
  96. if x != nil {
  97. return x.Protojson
  98. }
  99. return false
  100. }
  101. var File_app_persistentstorage_filesystemstorage_config_proto protoreflect.FileDescriptor
  102. var file_app_persistentstorage_filesystemstorage_config_proto_rawDesc = string([]byte{
  103. 0x0a, 0x34, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74,
  104. 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74,
  105. 0x65, 0x6d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  106. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x32, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  107. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e,
  108. 0x74, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73,
  109. 0x74, 0x65, 0x6d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  110. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  111. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x01, 0x0a,
  112. 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x72, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x74, 0x65,
  113. 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x01, 0x20,
  114. 0x01, 0x28, 0x0e, 0x32, 0x44, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  115. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x73,
  116. 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
  117. 0x6d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x74,
  118. 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x52, 0x10, 0x73, 0x74, 0x61, 0x74, 0x65,
  119. 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69,
  120. 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,
  121. 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  122. 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20,
  123. 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x20,
  124. 0x82, 0xb5, 0x18, 0x1c, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x11, 0x66,
  125. 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
  126. 0x2a, 0x1f, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
  127. 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x10,
  128. 0x00, 0x42, 0xb3, 0x01, 0x0a, 0x32, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  129. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x73,
  130. 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65,
  131. 0x6d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68,
  132. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
  133. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70,
  134. 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
  135. 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x74, 0x6f, 0x72, 0x61,
  136. 0x67, 0x65, 0xaa, 0x02, 0x32, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e,
  137. 0x41, 0x70, 0x70, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x74,
  138. 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
  139. 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  140. })
  141. var (
  142. file_app_persistentstorage_filesystemstorage_config_proto_rawDescOnce sync.Once
  143. file_app_persistentstorage_filesystemstorage_config_proto_rawDescData []byte
  144. )
  145. func file_app_persistentstorage_filesystemstorage_config_proto_rawDescGZIP() []byte {
  146. file_app_persistentstorage_filesystemstorage_config_proto_rawDescOnce.Do(func() {
  147. file_app_persistentstorage_filesystemstorage_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_persistentstorage_filesystemstorage_config_proto_rawDesc), len(file_app_persistentstorage_filesystemstorage_config_proto_rawDesc)))
  148. })
  149. return file_app_persistentstorage_filesystemstorage_config_proto_rawDescData
  150. }
  151. var file_app_persistentstorage_filesystemstorage_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  152. var file_app_persistentstorage_filesystemstorage_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  153. var file_app_persistentstorage_filesystemstorage_config_proto_goTypes = []any{
  154. (StateStorageRoot)(0), // 0: v2ray.core.app.persistentstorage.filesystemstorage.StateStorageRoot
  155. (*Config)(nil), // 1: v2ray.core.app.persistentstorage.filesystemstorage.Config
  156. }
  157. var file_app_persistentstorage_filesystemstorage_config_proto_depIdxs = []int32{
  158. 0, // 0: v2ray.core.app.persistentstorage.filesystemstorage.Config.state_storage_root:type_name -> v2ray.core.app.persistentstorage.filesystemstorage.StateStorageRoot
  159. 1, // [1:1] is the sub-list for method output_type
  160. 1, // [1:1] is the sub-list for method input_type
  161. 1, // [1:1] is the sub-list for extension type_name
  162. 1, // [1:1] is the sub-list for extension extendee
  163. 0, // [0:1] is the sub-list for field type_name
  164. }
  165. func init() { file_app_persistentstorage_filesystemstorage_config_proto_init() }
  166. func file_app_persistentstorage_filesystemstorage_config_proto_init() {
  167. if File_app_persistentstorage_filesystemstorage_config_proto != nil {
  168. return
  169. }
  170. type x struct{}
  171. out := protoimpl.TypeBuilder{
  172. File: protoimpl.DescBuilder{
  173. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  174. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_persistentstorage_filesystemstorage_config_proto_rawDesc), len(file_app_persistentstorage_filesystemstorage_config_proto_rawDesc)),
  175. NumEnums: 1,
  176. NumMessages: 1,
  177. NumExtensions: 0,
  178. NumServices: 0,
  179. },
  180. GoTypes: file_app_persistentstorage_filesystemstorage_config_proto_goTypes,
  181. DependencyIndexes: file_app_persistentstorage_filesystemstorage_config_proto_depIdxs,
  182. EnumInfos: file_app_persistentstorage_filesystemstorage_config_proto_enumTypes,
  183. MessageInfos: file_app_persistentstorage_filesystemstorage_config_proto_msgTypes,
  184. }.Build()
  185. File_app_persistentstorage_filesystemstorage_config_proto = out.File
  186. file_app_persistentstorage_filesystemstorage_config_proto_goTypes = nil
  187. file_app_persistentstorage_filesystemstorage_config_proto_depIdxs = nil
  188. }