github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/protocol/user.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: user.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  	serial "v2ray.com/core/common/serial"
    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 User struct {
    30  	state         protoimpl.MessageState
    31  	sizeCache     protoimpl.SizeCache
    32  	unknownFields protoimpl.UnknownFields
    33  
    34  	Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
    35  	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
    36  	Rate  uint64 `protobuf:"varint,4,opt,name=rate,proto3" json:"rate,omitempty"`
    37  	// Protocol specific account information. Must be the account proto in one of
    38  	// the proxies.
    39  	Account *serial.TypedMessage `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
    40  }
    41  
    42  func (x *User) Reset() {
    43  	*x = User{}
    44  	if protoimpl.UnsafeEnabled {
    45  		mi := &file_user_proto_msgTypes[0]
    46  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    47  		ms.StoreMessageInfo(mi)
    48  	}
    49  }
    50  
    51  func (x *User) String() string {
    52  	return protoimpl.X.MessageStringOf(x)
    53  }
    54  
    55  func (*User) ProtoMessage() {}
    56  
    57  func (x *User) ProtoReflect() protoreflect.Message {
    58  	mi := &file_user_proto_msgTypes[0]
    59  	if protoimpl.UnsafeEnabled && x != nil {
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		if ms.LoadMessageInfo() == nil {
    62  			ms.StoreMessageInfo(mi)
    63  		}
    64  		return ms
    65  	}
    66  	return mi.MessageOf(x)
    67  }
    68  
    69  // Deprecated: Use User.ProtoReflect.Descriptor instead.
    70  func (*User) Descriptor() ([]byte, []int) {
    71  	return file_user_proto_rawDescGZIP(), []int{0}
    72  }
    73  
    74  func (x *User) GetLevel() uint32 {
    75  	if x != nil {
    76  		return x.Level
    77  	}
    78  	return 0
    79  }
    80  
    81  func (x *User) GetEmail() string {
    82  	if x != nil {
    83  		return x.Email
    84  	}
    85  	return ""
    86  }
    87  
    88  func (x *User) GetRate() uint64 {
    89  	if x != nil {
    90  		return x.Rate
    91  	}
    92  	return 0
    93  }
    94  
    95  func (x *User) GetAccount() *serial.TypedMessage {
    96  	if x != nil {
    97  		return x.Account
    98  	}
    99  	return nil
   100  }
   101  
   102  var File_user_proto protoreflect.FileDescriptor
   103  
   104  var file_user_proto_rawDesc = []byte{
   105  	0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32,
   106  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   107  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x13, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
   108  	0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01,
   109  	0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
   110  	0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05,
   111  	0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61,
   112  	0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04,
   113  	0x52, 0x04, 0x72, 0x61, 0x74, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
   114  	0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
   115  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69,
   116  	0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
   117  	0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x5f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e,
   118  	0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   119  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x1e, 0x76, 0x32,
   120  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d,
   121  	0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a, 0x56,
   122  	0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   123  	0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   124  	0x33,
   125  }
   126  
   127  var (
   128  	file_user_proto_rawDescOnce sync.Once
   129  	file_user_proto_rawDescData = file_user_proto_rawDesc
   130  )
   131  
   132  func file_user_proto_rawDescGZIP() []byte {
   133  	file_user_proto_rawDescOnce.Do(func() {
   134  		file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData)
   135  	})
   136  	return file_user_proto_rawDescData
   137  }
   138  
   139  var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   140  var file_user_proto_goTypes = []interface{}{
   141  	(*User)(nil),                // 0: v2ray.core.common.protocol.User
   142  	(*serial.TypedMessage)(nil), // 1: v2ray.core.common.serial.TypedMessage
   143  }
   144  var file_user_proto_depIdxs = []int32{
   145  	1, // 0: v2ray.core.common.protocol.User.account:type_name -> v2ray.core.common.serial.TypedMessage
   146  	1, // [1:1] is the sub-list for method output_type
   147  	1, // [1:1] is the sub-list for method input_type
   148  	1, // [1:1] is the sub-list for extension type_name
   149  	1, // [1:1] is the sub-list for extension extendee
   150  	0, // [0:1] is the sub-list for field type_name
   151  }
   152  
   153  func init() { file_user_proto_init() }
   154  func file_user_proto_init() {
   155  	if File_user_proto != nil {
   156  		return
   157  	}
   158  	if !protoimpl.UnsafeEnabled {
   159  		file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   160  			switch v := v.(*User); i {
   161  			case 0:
   162  				return &v.state
   163  			case 1:
   164  				return &v.sizeCache
   165  			case 2:
   166  				return &v.unknownFields
   167  			default:
   168  				return nil
   169  			}
   170  		}
   171  	}
   172  	type x struct{}
   173  	out := protoimpl.TypeBuilder{
   174  		File: protoimpl.DescBuilder{
   175  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   176  			RawDescriptor: file_user_proto_rawDesc,
   177  			NumEnums:      0,
   178  			NumMessages:   1,
   179  			NumExtensions: 0,
   180  			NumServices:   0,
   181  		},
   182  		GoTypes:           file_user_proto_goTypes,
   183  		DependencyIndexes: file_user_proto_depIdxs,
   184  		MessageInfos:      file_user_proto_msgTypes,
   185  	}.Build()
   186  	File_user_proto = out.File
   187  	file_user_proto_rawDesc = nil
   188  	file_user_proto_goTypes = nil
   189  	file_user_proto_depIdxs = nil
   190  }