github.com/moqsien/xraycore@v1.8.5/common/protocol/user.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v4.23.1
     5  // source: common/protocol/user.proto
     6  
     7  package protocol
     8  
     9  import (
    10  	serial "github.com/moqsien/xraycore/common/serial"
    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  // User is a generic user for all procotols.
    25  type User struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
    31  	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
    32  	// Protocol specific account information. Must be the account proto in one of
    33  	// the proxies.
    34  	Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
    35  }
    36  
    37  func (x *User) Reset() {
    38  	*x = User{}
    39  	if protoimpl.UnsafeEnabled {
    40  		mi := &file_common_protocol_user_proto_msgTypes[0]
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		ms.StoreMessageInfo(mi)
    43  	}
    44  }
    45  
    46  func (x *User) String() string {
    47  	return protoimpl.X.MessageStringOf(x)
    48  }
    49  
    50  func (*User) ProtoMessage() {}
    51  
    52  func (x *User) ProtoReflect() protoreflect.Message {
    53  	mi := &file_common_protocol_user_proto_msgTypes[0]
    54  	if protoimpl.UnsafeEnabled && x != nil {
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		if ms.LoadMessageInfo() == nil {
    57  			ms.StoreMessageInfo(mi)
    58  		}
    59  		return ms
    60  	}
    61  	return mi.MessageOf(x)
    62  }
    63  
    64  // Deprecated: Use User.ProtoReflect.Descriptor instead.
    65  func (*User) Descriptor() ([]byte, []int) {
    66  	return file_common_protocol_user_proto_rawDescGZIP(), []int{0}
    67  }
    68  
    69  func (x *User) GetLevel() uint32 {
    70  	if x != nil {
    71  		return x.Level
    72  	}
    73  	return 0
    74  }
    75  
    76  func (x *User) GetEmail() string {
    77  	if x != nil {
    78  		return x.Email
    79  	}
    80  	return ""
    81  }
    82  
    83  func (x *User) GetAccount() *serial.TypedMessage {
    84  	if x != nil {
    85  		return x.Account
    86  	}
    87  	return nil
    88  }
    89  
    90  var File_common_protocol_user_proto protoreflect.FileDescriptor
    91  
    92  var file_common_protocol_user_proto_rawDesc = []byte{
    93  	0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
    94  	0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x78, 0x72,
    95  	0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
    96  	0x6f, 0x6c, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61,
    97  	0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
    98  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a,
    99  	0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65,
   100  	0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01,
   101  	0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3a, 0x0a, 0x07, 0x61, 0x63, 0x63,
   102  	0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
   103  	0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
   104  	0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x61, 0x63,
   105  	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61,
   106  	0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   107  	0x6c, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   108  	0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63,
   109  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02,
   110  	0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f,
   111  	0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   112  }
   113  
   114  var (
   115  	file_common_protocol_user_proto_rawDescOnce sync.Once
   116  	file_common_protocol_user_proto_rawDescData = file_common_protocol_user_proto_rawDesc
   117  )
   118  
   119  func file_common_protocol_user_proto_rawDescGZIP() []byte {
   120  	file_common_protocol_user_proto_rawDescOnce.Do(func() {
   121  		file_common_protocol_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_user_proto_rawDescData)
   122  	})
   123  	return file_common_protocol_user_proto_rawDescData
   124  }
   125  
   126  var file_common_protocol_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   127  var file_common_protocol_user_proto_goTypes = []interface{}{
   128  	(*User)(nil),                // 0: xray.common.protocol.User
   129  	(*serial.TypedMessage)(nil), // 1: xray.common.serial.TypedMessage
   130  }
   131  var file_common_protocol_user_proto_depIdxs = []int32{
   132  	1, // 0: xray.common.protocol.User.account:type_name -> xray.common.serial.TypedMessage
   133  	1, // [1:1] is the sub-list for method output_type
   134  	1, // [1:1] is the sub-list for method input_type
   135  	1, // [1:1] is the sub-list for extension type_name
   136  	1, // [1:1] is the sub-list for extension extendee
   137  	0, // [0:1] is the sub-list for field type_name
   138  }
   139  
   140  func init() { file_common_protocol_user_proto_init() }
   141  func file_common_protocol_user_proto_init() {
   142  	if File_common_protocol_user_proto != nil {
   143  		return
   144  	}
   145  	if !protoimpl.UnsafeEnabled {
   146  		file_common_protocol_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   147  			switch v := v.(*User); 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_user_proto_rawDesc,
   164  			NumEnums:      0,
   165  			NumMessages:   1,
   166  			NumExtensions: 0,
   167  			NumServices:   0,
   168  		},
   169  		GoTypes:           file_common_protocol_user_proto_goTypes,
   170  		DependencyIndexes: file_common_protocol_user_proto_depIdxs,
   171  		MessageInfos:      file_common_protocol_user_proto_msgTypes,
   172  	}.Build()
   173  	File_common_protocol_user_proto = out.File
   174  	file_common_protocol_user_proto_rawDesc = nil
   175  	file_common_protocol_user_proto_goTypes = nil
   176  	file_common_protocol_user_proto_depIdxs = nil
   177  }