config.pb.go 5.9 KB

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