server_spec.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package protocol
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. net "v2ray.com/core/common/net"
  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 ServerEndpoint struct {
  18. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  19. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  20. User []*User `protobuf:"bytes,3,rep,name=user,proto3" json:"user,omitempty"`
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *ServerEndpoint) Reset() { *m = ServerEndpoint{} }
  26. func (m *ServerEndpoint) String() string { return proto.CompactTextString(m) }
  27. func (*ServerEndpoint) ProtoMessage() {}
  28. func (*ServerEndpoint) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_8741b2fa976e72fc, []int{0}
  30. }
  31. func (m *ServerEndpoint) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_ServerEndpoint.Unmarshal(m, b)
  33. }
  34. func (m *ServerEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_ServerEndpoint.Marshal(b, m, deterministic)
  36. }
  37. func (m *ServerEndpoint) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_ServerEndpoint.Merge(m, src)
  39. }
  40. func (m *ServerEndpoint) XXX_Size() int {
  41. return xxx_messageInfo_ServerEndpoint.Size(m)
  42. }
  43. func (m *ServerEndpoint) XXX_DiscardUnknown() {
  44. xxx_messageInfo_ServerEndpoint.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_ServerEndpoint proto.InternalMessageInfo
  47. func (m *ServerEndpoint) GetAddress() *net.IPOrDomain {
  48. if m != nil {
  49. return m.Address
  50. }
  51. return nil
  52. }
  53. func (m *ServerEndpoint) GetPort() uint32 {
  54. if m != nil {
  55. return m.Port
  56. }
  57. return 0
  58. }
  59. func (m *ServerEndpoint) GetUser() []*User {
  60. if m != nil {
  61. return m.User
  62. }
  63. return nil
  64. }
  65. func init() {
  66. proto.RegisterType((*ServerEndpoint)(nil), "v2ray.core.common.protocol.ServerEndpoint")
  67. }
  68. func init() {
  69. proto.RegisterFile("v2ray.com/core/common/protocol/server_spec.proto", fileDescriptor_8741b2fa976e72fc)
  70. }
  71. var fileDescriptor_8741b2fa976e72fc = []byte{
  72. // 241 bytes of a gzipped FileDescriptorProto
  73. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0xcf, 0xbd, 0x4e, 0xc3, 0x30,
  74. 0x10, 0x07, 0x70, 0xb9, 0xad, 0x00, 0xb9, 0x82, 0xc1, 0x53, 0x94, 0x01, 0x05, 0x16, 0xc2, 0x72,
  75. 0x46, 0x81, 0x8d, 0x8d, 0xc2, 0xd0, 0x89, 0x28, 0x08, 0x06, 0x16, 0x14, 0x9c, 0x1b, 0x2a, 0x61,
  76. 0x5f, 0x74, 0x36, 0x95, 0xfa, 0x24, 0xbc, 0x03, 0x4f, 0x89, 0x6a, 0xd7, 0x13, 0x5f, 0xdb, 0xc9,
  77. 0xfe, 0xdd, 0xdd, 0xff, 0xe4, 0xc5, 0xba, 0xe1, 0x7e, 0x03, 0x86, 0xac, 0x36, 0xc4, 0xa8, 0x0d,
  78. 0x59, 0x4b, 0x4e, 0x8f, 0x4c, 0x81, 0x0c, 0xbd, 0x69, 0x8f, 0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