github.com/imannamdari/v2ray-core/v5@v5.0.5/common/protocol/server_spec.pb.go (about)

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