github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/protocol/server_spec.pb.go (about)

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