github.com/xmplusdev/xray-core@v1.8.10/common/protocol/server_spec.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.33.0
     4  // 	protoc        v4.23.1
     5  // source: common/protocol/server_spec.proto
     6  
     7  package protocol
     8  
     9  import (
    10  	net "github.com/xmplusdev/xray-core/common/net"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type ServerEndpoint struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    30  	Port    uint32          `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    31  	User    []*User         `protobuf:"bytes,3,rep,name=user,proto3" json:"user,omitempty"`
    32  }
    33  
    34  func (x *ServerEndpoint) Reset() {
    35  	*x = ServerEndpoint{}
    36  	if protoimpl.UnsafeEnabled {
    37  		mi := &file_common_protocol_server_spec_proto_msgTypes[0]
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		ms.StoreMessageInfo(mi)
    40  	}
    41  }
    42  
    43  func (x *ServerEndpoint) String() string {
    44  	return protoimpl.X.MessageStringOf(x)
    45  }
    46  
    47  func (*ServerEndpoint) ProtoMessage() {}
    48  
    49  func (x *ServerEndpoint) ProtoReflect() protoreflect.Message {
    50  	mi := &file_common_protocol_server_spec_proto_msgTypes[0]
    51  	if protoimpl.UnsafeEnabled && x != nil {
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		if ms.LoadMessageInfo() == nil {
    54  			ms.StoreMessageInfo(mi)
    55  		}
    56  		return ms
    57  	}
    58  	return mi.MessageOf(x)
    59  }
    60  
    61  // Deprecated: Use ServerEndpoint.ProtoReflect.Descriptor instead.
    62  func (*ServerEndpoint) Descriptor() ([]byte, []int) {
    63  	return file_common_protocol_server_spec_proto_rawDescGZIP(), []int{0}
    64  }
    65  
    66  func (x *ServerEndpoint) GetAddress() *net.IPOrDomain {
    67  	if x != nil {
    68  		return x.Address
    69  	}
    70  	return nil
    71  }
    72  
    73  func (x *ServerEndpoint) GetPort() uint32 {
    74  	if x != nil {
    75  		return x.Port
    76  	}
    77  	return 0
    78  }
    79  
    80  func (x *ServerEndpoint) GetUser() []*User {
    81  	if x != nil {
    82  		return x.User
    83  	}
    84  	return nil
    85  }
    86  
    87  var File_common_protocol_server_spec_proto protoreflect.FileDescriptor
    88  
    89  var file_common_protocol_server_spec_proto_rawDesc = []byte{
    90  	0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
    91  	0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
    92  	0x6f, 0x74, 0x6f, 0x12, 0x14, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
    93  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
    94  	0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72,
    95  	0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
    96  	0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
    97  	0x8b, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
    98  	0x6e, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
    99  	0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   100  	0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
   101  	0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
   102  	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2e, 0x0a,
   103  	0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72,
   104  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
   105  	0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, 0x5e, 0x0a,
   106  	0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   107  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74,
   108  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
   109  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72,
   110  	0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f,
   111  	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70,
   112  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   113  }
   114  
   115  var (
   116  	file_common_protocol_server_spec_proto_rawDescOnce sync.Once
   117  	file_common_protocol_server_spec_proto_rawDescData = file_common_protocol_server_spec_proto_rawDesc
   118  )
   119  
   120  func file_common_protocol_server_spec_proto_rawDescGZIP() []byte {
   121  	file_common_protocol_server_spec_proto_rawDescOnce.Do(func() {
   122  		file_common_protocol_server_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_server_spec_proto_rawDescData)
   123  	})
   124  	return file_common_protocol_server_spec_proto_rawDescData
   125  }
   126  
   127  var file_common_protocol_server_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   128  var file_common_protocol_server_spec_proto_goTypes = []interface{}{
   129  	(*ServerEndpoint)(nil), // 0: xray.common.protocol.ServerEndpoint
   130  	(*net.IPOrDomain)(nil), // 1: xray.common.net.IPOrDomain
   131  	(*User)(nil),           // 2: xray.common.protocol.User
   132  }
   133  var file_common_protocol_server_spec_proto_depIdxs = []int32{
   134  	1, // 0: xray.common.protocol.ServerEndpoint.address:type_name -> xray.common.net.IPOrDomain
   135  	2, // 1: xray.common.protocol.ServerEndpoint.user:type_name -> xray.common.protocol.User
   136  	2, // [2:2] is the sub-list for method output_type
   137  	2, // [2:2] is the sub-list for method input_type
   138  	2, // [2:2] is the sub-list for extension type_name
   139  	2, // [2:2] is the sub-list for extension extendee
   140  	0, // [0:2] is the sub-list for field type_name
   141  }
   142  
   143  func init() { file_common_protocol_server_spec_proto_init() }
   144  func file_common_protocol_server_spec_proto_init() {
   145  	if File_common_protocol_server_spec_proto != nil {
   146  		return
   147  	}
   148  	file_common_protocol_user_proto_init()
   149  	if !protoimpl.UnsafeEnabled {
   150  		file_common_protocol_server_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   151  			switch v := v.(*ServerEndpoint); i {
   152  			case 0:
   153  				return &v.state
   154  			case 1:
   155  				return &v.sizeCache
   156  			case 2:
   157  				return &v.unknownFields
   158  			default:
   159  				return nil
   160  			}
   161  		}
   162  	}
   163  	type x struct{}
   164  	out := protoimpl.TypeBuilder{
   165  		File: protoimpl.DescBuilder{
   166  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   167  			RawDescriptor: file_common_protocol_server_spec_proto_rawDesc,
   168  			NumEnums:      0,
   169  			NumMessages:   1,
   170  			NumExtensions: 0,
   171  			NumServices:   0,
   172  		},
   173  		GoTypes:           file_common_protocol_server_spec_proto_goTypes,
   174  		DependencyIndexes: file_common_protocol_server_spec_proto_depIdxs,
   175  		MessageInfos:      file_common_protocol_server_spec_proto_msgTypes,
   176  	}.Build()
   177  	File_common_protocol_server_spec_proto = out.File
   178  	file_common_protocol_server_spec_proto_rawDesc = nil
   179  	file_common_protocol_server_spec_proto_goTypes = nil
   180  	file_common_protocol_server_spec_proto_depIdxs = nil
   181  }