config.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. package dtls
  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 DTLSMode int32
  17. const (
  18. DTLSMode_INVALID DTLSMode = 0
  19. DTLSMode_PSK DTLSMode = 1
  20. )
  21. // Enum value maps for DTLSMode.
  22. var (
  23. DTLSMode_name = map[int32]string{
  24. 0: "INVALID",
  25. 1: "PSK",
  26. }
  27. DTLSMode_value = map[string]int32{
  28. "INVALID": 0,
  29. "PSK": 1,
  30. }
  31. )
  32. func (x DTLSMode) Enum() *DTLSMode {
  33. p := new(DTLSMode)
  34. *p = x
  35. return p
  36. }
  37. func (x DTLSMode) String() string {
  38. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  39. }
  40. func (DTLSMode) Descriptor() protoreflect.EnumDescriptor {
  41. return file_transport_internet_dtls_config_proto_enumTypes[0].Descriptor()
  42. }
  43. func (DTLSMode) Type() protoreflect.EnumType {
  44. return &file_transport_internet_dtls_config_proto_enumTypes[0]
  45. }
  46. func (x DTLSMode) Number() protoreflect.EnumNumber {
  47. return protoreflect.EnumNumber(x)
  48. }
  49. // Deprecated: Use DTLSMode.Descriptor instead.
  50. func (DTLSMode) EnumDescriptor() ([]byte, []int) {
  51. return file_transport_internet_dtls_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. type Config struct {
  54. state protoimpl.MessageState `protogen:"open.v1"`
  55. Mode DTLSMode `protobuf:"varint,1,opt,name=mode,proto3,enum=v2ray.core.transport.internet.dtls.DTLSMode" json:"mode,omitempty"`
  56. Psk []byte `protobuf:"bytes,2,opt,name=psk,proto3" json:"psk,omitempty"`
  57. Mtu uint32 `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
  58. ReplayProtectionWindow uint32 `protobuf:"varint,4,opt,name=replay_protection_window,json=replayProtectionWindow,proto3" json:"replay_protection_window,omitempty"`
  59. unknownFields protoimpl.UnknownFields
  60. sizeCache protoimpl.SizeCache
  61. }
  62. func (x *Config) Reset() {
  63. *x = Config{}
  64. mi := &file_transport_internet_dtls_config_proto_msgTypes[0]
  65. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  66. ms.StoreMessageInfo(mi)
  67. }
  68. func (x *Config) String() string {
  69. return protoimpl.X.MessageStringOf(x)
  70. }
  71. func (*Config) ProtoMessage() {}
  72. func (x *Config) ProtoReflect() protoreflect.Message {
  73. mi := &file_transport_internet_dtls_config_proto_msgTypes[0]
  74. if x != nil {
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. if ms.LoadMessageInfo() == nil {
  77. ms.StoreMessageInfo(mi)
  78. }
  79. return ms
  80. }
  81. return mi.MessageOf(x)
  82. }
  83. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  84. func (*Config) Descriptor() ([]byte, []int) {
  85. return file_transport_internet_dtls_config_proto_rawDescGZIP(), []int{0}
  86. }
  87. func (x *Config) GetMode() DTLSMode {
  88. if x != nil {
  89. return x.Mode
  90. }
  91. return DTLSMode_INVALID
  92. }
  93. func (x *Config) GetPsk() []byte {
  94. if x != nil {
  95. return x.Psk
  96. }
  97. return nil
  98. }
  99. func (x *Config) GetMtu() uint32 {
  100. if x != nil {
  101. return x.Mtu
  102. }
  103. return 0
  104. }
  105. func (x *Config) GetReplayProtectionWindow() uint32 {
  106. if x != nil {
  107. return x.ReplayProtectionWindow
  108. }
  109. return 0
  110. }
  111. var File_transport_internet_dtls_config_proto protoreflect.FileDescriptor
  112. var file_transport_internet_dtls_config_proto_rawDesc = string([]byte{
  113. 0x0a, 0x24, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  114. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  115. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  116. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  117. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x74, 0x6c, 0x73, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  118. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  119. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x01, 0x0a,
  120. 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x40, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18,
  121. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  122. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  123. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x74, 0x6c, 0x73, 0x2e, 0x44, 0x54, 0x4c, 0x53, 0x4d,
  124. 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x73, 0x6b,
  125. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x70, 0x73, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x6d,
  126. 0x74, 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x38, 0x0a,
  127. 0x18, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69,
  128. 0x6f, 0x6e, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
  129. 0x16, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f,
  130. 0x6e, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x3a, 0x15, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x09, 0x74,
  131. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x04, 0x64, 0x74, 0x6c, 0x73, 0x2a, 0x20,
  132. 0x0a, 0x08, 0x44, 0x54, 0x4c, 0x53, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e,
  133. 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x53, 0x4b, 0x10, 0x01,
  134. 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  135. 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e,
  136. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x36, 0x67,
  137. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  138. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72,
  139. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  140. 0x2f, 0x64, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  141. 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74,
  142. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x74, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  143. 0x6f, 0x33,
  144. })
  145. var (
  146. file_transport_internet_dtls_config_proto_rawDescOnce sync.Once
  147. file_transport_internet_dtls_config_proto_rawDescData []byte
  148. )
  149. func file_transport_internet_dtls_config_proto_rawDescGZIP() []byte {
  150. file_transport_internet_dtls_config_proto_rawDescOnce.Do(func() {
  151. file_transport_internet_dtls_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_dtls_config_proto_rawDesc), len(file_transport_internet_dtls_config_proto_rawDesc)))
  152. })
  153. return file_transport_internet_dtls_config_proto_rawDescData
  154. }
  155. var file_transport_internet_dtls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  156. var file_transport_internet_dtls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  157. var file_transport_internet_dtls_config_proto_goTypes = []any{
  158. (DTLSMode)(0), // 0: v2ray.core.transport.internet.dtls.DTLSMode
  159. (*Config)(nil), // 1: v2ray.core.transport.internet.dtls.Config
  160. }
  161. var file_transport_internet_dtls_config_proto_depIdxs = []int32{
  162. 0, // 0: v2ray.core.transport.internet.dtls.Config.mode:type_name -> v2ray.core.transport.internet.dtls.DTLSMode
  163. 1, // [1:1] is the sub-list for method output_type
  164. 1, // [1:1] is the sub-list for method input_type
  165. 1, // [1:1] is the sub-list for extension type_name
  166. 1, // [1:1] is the sub-list for extension extendee
  167. 0, // [0:1] is the sub-list for field type_name
  168. }
  169. func init() { file_transport_internet_dtls_config_proto_init() }
  170. func file_transport_internet_dtls_config_proto_init() {
  171. if File_transport_internet_dtls_config_proto != nil {
  172. return
  173. }
  174. type x struct{}
  175. out := protoimpl.TypeBuilder{
  176. File: protoimpl.DescBuilder{
  177. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  178. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_dtls_config_proto_rawDesc), len(file_transport_internet_dtls_config_proto_rawDesc)),
  179. NumEnums: 1,
  180. NumMessages: 1,
  181. NumExtensions: 0,
  182. NumServices: 0,
  183. },
  184. GoTypes: file_transport_internet_dtls_config_proto_goTypes,
  185. DependencyIndexes: file_transport_internet_dtls_config_proto_depIdxs,
  186. EnumInfos: file_transport_internet_dtls_config_proto_enumTypes,
  187. MessageInfos: file_transport_internet_dtls_config_proto_msgTypes,
  188. }.Build()
  189. File_transport_internet_dtls_config_proto = out.File
  190. file_transport_internet_dtls_config_proto_goTypes = nil
  191. file_transport_internet_dtls_config_proto_depIdxs = nil
  192. }