config.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. package mtproto
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. protocol "v2ray.com/core/common/protocol"
  7. )
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. type Account struct {
  18. Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *Account) Reset() { *m = Account{} }
  24. func (m *Account) String() string { return proto.CompactTextString(m) }
  25. func (*Account) ProtoMessage() {}
  26. func (*Account) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_64514e21c693811b, []int{0}
  28. }
  29. func (m *Account) XXX_Unmarshal(b []byte) error {
  30. return xxx_messageInfo_Account.Unmarshal(m, b)
  31. }
  32. func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  33. return xxx_messageInfo_Account.Marshal(b, m, deterministic)
  34. }
  35. func (m *Account) XXX_Merge(src proto.Message) {
  36. xxx_messageInfo_Account.Merge(m, src)
  37. }
  38. func (m *Account) XXX_Size() int {
  39. return xxx_messageInfo_Account.Size(m)
  40. }
  41. func (m *Account) XXX_DiscardUnknown() {
  42. xxx_messageInfo_Account.DiscardUnknown(m)
  43. }
  44. var xxx_messageInfo_Account proto.InternalMessageInfo
  45. func (m *Account) GetSecret() []byte {
  46. if m != nil {
  47. return m.Secret
  48. }
  49. return nil
  50. }
  51. type ServerConfig struct {
  52. // User is a list of users that allowed to connect to this inbound.
  53. // Although this is a repeated field, only the first user is effective for now.
  54. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  55. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  56. XXX_unrecognized []byte `json:"-"`
  57. XXX_sizecache int32 `json:"-"`
  58. }
  59. func (m *ServerConfig) Reset() { *m = ServerConfig{} }
  60. func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
  61. func (*ServerConfig) ProtoMessage() {}
  62. func (*ServerConfig) Descriptor() ([]byte, []int) {
  63. return fileDescriptor_64514e21c693811b, []int{1}
  64. }
  65. func (m *ServerConfig) XXX_Unmarshal(b []byte) error {
  66. return xxx_messageInfo_ServerConfig.Unmarshal(m, b)
  67. }
  68. func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  69. return xxx_messageInfo_ServerConfig.Marshal(b, m, deterministic)
  70. }
  71. func (m *ServerConfig) XXX_Merge(src proto.Message) {
  72. xxx_messageInfo_ServerConfig.Merge(m, src)
  73. }
  74. func (m *ServerConfig) XXX_Size() int {
  75. return xxx_messageInfo_ServerConfig.Size(m)
  76. }
  77. func (m *ServerConfig) XXX_DiscardUnknown() {
  78. xxx_messageInfo_ServerConfig.DiscardUnknown(m)
  79. }
  80. var xxx_messageInfo_ServerConfig proto.InternalMessageInfo
  81. func (m *ServerConfig) GetUser() []*protocol.User {
  82. if m != nil {
  83. return m.User
  84. }
  85. return nil
  86. }
  87. type ClientConfig struct {
  88. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  89. XXX_unrecognized []byte `json:"-"`
  90. XXX_sizecache int32 `json:"-"`
  91. }
  92. func (m *ClientConfig) Reset() { *m = ClientConfig{} }
  93. func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
  94. func (*ClientConfig) ProtoMessage() {}
  95. func (*ClientConfig) Descriptor() ([]byte, []int) {
  96. return fileDescriptor_64514e21c693811b, []int{2}
  97. }
  98. func (m *ClientConfig) XXX_Unmarshal(b []byte) error {
  99. return xxx_messageInfo_ClientConfig.Unmarshal(m, b)
  100. }
  101. func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  102. return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic)
  103. }
  104. func (m *ClientConfig) XXX_Merge(src proto.Message) {
  105. xxx_messageInfo_ClientConfig.Merge(m, src)
  106. }
  107. func (m *ClientConfig) XXX_Size() int {
  108. return xxx_messageInfo_ClientConfig.Size(m)
  109. }
  110. func (m *ClientConfig) XXX_DiscardUnknown() {
  111. xxx_messageInfo_ClientConfig.DiscardUnknown(m)
  112. }
  113. var xxx_messageInfo_ClientConfig proto.InternalMessageInfo
  114. func init() {
  115. proto.RegisterType((*Account)(nil), "v2ray.core.proxy.mtproto.Account")
  116. proto.RegisterType((*ServerConfig)(nil), "v2ray.core.proxy.mtproto.ServerConfig")
  117. proto.RegisterType((*ClientConfig)(nil), "v2ray.core.proxy.mtproto.ClientConfig")
  118. }
  119. func init() {
  120. proto.RegisterFile("v2ray.com/core/proxy/mtproto/config.proto", fileDescriptor_64514e21c693811b)
  121. }
  122. var fileDescriptor_64514e21c693811b = []byte{
  123. // 221 bytes of a gzipped FileDescriptorProto
  124. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x8f, 0xc1, 0x4a, 0xc4, 0x30,
  125. 0x10, 0x86, 0x89, 0xca, 0x2e, 0xc4, 0xe2, 0xa1, 0x07, 0x09, 0xe2, 0xa1, 0xf6, 0xb4, 0x5e, 0x26,
  126. 0x50, 0x7d, 0x01, 0xed, 0x5e, 0x85, 0xa5, 0xa2, 0x07, 0x6f, 0xeb, 0x30, 0xca, 0xc2, 0x26, 0x53,
  127. 0xa6, 0x69, 0xb1, 0xaf, 0xe4, 0x53, 0x4a, 0x93, 0x16, 0x44, 0xf0, 0x94, 0xfc, 0xfc, 0x1f, 0xdf,
  128. 0x9f, 0xe8, 0xdb, 0xa1, 0x92, 0xfd, 0x08, 0xc8, 0xce, 0x22, 0x0b, 0xd9, 0x56, 0xf8, 0x6b, 0xb4,
  129. 0x2e, 0xb4, 0xc2, 0x81, 0x2d, 0xb2, 0xff, 0x38, 0x7c, 0x42, 0x0c, 0xb9, 0x59, 0x50, 0x21, 0x88,
  130. 0x18, 0xcc, 0xd8, 0xd5, 0x5f, 0x09, 0xb2, 0x73, 0xec, 0x6d, 0x2c, 0x91, 0x8f, 0xb6, 0xef, 0x48,
  131. 0x92, 0xa4, 0xbc, 0xd1, 0xeb, 0x07, 0x44, 0xee, 0x7d, 0xc8, 0x2f, 0xf5, 0xaa, 0x23, 0x14, 0x0a,
  132. 0x46, 0x15, 0x6a, 0x93, 0x35, 0x73, 0x2a, 0xb7, 0x3a, 0x7b, 0x26, 0x19, 0x48, 0xea, 0xb8, 0x9e,
  133. 0xdf, 0xeb, 0xb3, 0x49, 0x60, 0x54, 0x71, 0xba, 0x39, 0xaf, 0x0a, 0xf8, 0xf5, 0x8c, 0x34, 0x04,
  134. 0xcb, 0x10, 0xbc, 0x74, 0x24, 0x4d, 0xa4, 0xcb, 0x0b, 0x9d, 0xd5, 0xc7, 0x03, 0xf9, 0x90, 0x2c,
  135. 0x8f, 0x5b, 0x7d, 0x8d, 0xec, 0xe0, 0xbf, 0x3f, 0xec, 0xd4, 0xdb, 0x7a, 0xbe, 0x7e, 0x9f, 0x98,
  136. 0xd7, 0xaa, 0xd9, 0x8f, 0x50, 0x4f, 0xd4, 0x2e, 0x52, 0x4f, 0xa9, 0x7a, 0x5f, 0xc5, 0xe3, 0xee,
  137. 0x27, 0x00, 0x00, 0xff, 0xff, 0x54, 0x23, 0xa0, 0xae, 0x37, 0x01, 0x00, 0x00,
  138. }