github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/common/protocol/server_spec.pb.go (about)

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