Debian Codegraph @

go/types/v1/user.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.5
4 // protoc (unknown)
5 // source: types/v1/user.proto
6
7 package typesv1
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
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 type User struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
28 Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
29 ProfilePictureUrl string `protobuf:"bytes,3,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
30 FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
31 LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
32 EmailVerified bool `protobuf:"varint,6,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
33 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
34 unknownFields protoimpl.UnknownFields
35 sizeCache protoimpl.SizeCache
36 }
37
38 func (x *User) Reset() {
39 *x = User{}
40 mi := &file_types_v1_user_proto_msgTypes[0]
41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42 ms.StoreMessageInfo(mi)
43 }
44
45 func (x *User) String() string {
46 return protoimpl.X.MessageStringOf(x)
47 }
48
49 func (*User) ProtoMessage() {}
50
51 func (x *User) ProtoReflect() protoreflect.Message {
52 mi := &file_types_v1_user_proto_msgTypes[0]
53 if x != nil {
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 if ms.LoadMessageInfo() == nil {
56 ms.StoreMessageInfo(mi)
57 }
58 return ms
59 }
60 return mi.MessageOf(x)
61 }
62
63 // Deprecated: Use User.ProtoReflect.Descriptor instead.
64 func (*User) Descriptor() ([]byte, []int) {
65 return file_types_v1_user_proto_rawDescGZIP(), []int{0}
66 }
67
68 func (x *User) GetId() int64 {
69 if x != nil {
70 return x.Id
71 }
72 return 0
73 }
74
75 func (x *User) GetEmail() string {
76 if x != nil {
77 return x.Email
78 }
79 return ""
80 }
81
82 func (x *User) GetProfilePictureUrl() string {
83 if x != nil {
84 return x.ProfilePictureUrl
85 }
86 return ""
87 }
88
89 func (x *User) GetFirstName() string {
90 if x != nil {
91 return x.FirstName
92 }
93 return ""
94 }
95
96 func (x *User) GetLastName() string {
97 if x != nil {
98 return x.LastName
99 }
100 return ""
101 }
102
103 func (x *User) GetEmailVerified() bool {
104 if x != nil {
105 return x.EmailVerified
106 }
107 return false
108 }
109
110 func (x *User) GetCreatedAt() *timestamppb.Timestamp {
111 if x != nil {
112 return x.CreatedAt
113 }
114 return nil
115 }
116
117 var File_types_v1_user_proto protoreflect.FileDescriptor
118
119 var file_types_v1_user_proto_rawDesc = string([]byte{
120 0x0a, 0x13, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e,
121 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a,
122 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
123 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
124 0x22, 0xfa, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
125 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61,
126 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12,
127 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75,
128 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72,
129 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x12,
130 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20,
131 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b,
132 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
133 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65,
134 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x06, 0x20,
135 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69,
136 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
137 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
138 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
139 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x89, 0x01,
140 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x09,
141 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74,
142 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67,
143 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f,
144 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58,
145 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x08, 0x54, 0x79,
146 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56,
147 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09,
148 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
149 0x33,
150 })
151
152 var (
153 file_types_v1_user_proto_rawDescOnce sync.Once
154 file_types_v1_user_proto_rawDescData []byte
155 )
156
157 func file_types_v1_user_proto_rawDescGZIP() []byte {
158 file_types_v1_user_proto_rawDescOnce.Do(func() {
159 file_types_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_v1_user_proto_rawDesc), len(file_types_v1_user_proto_rawDesc)))
160 })
161 return file_types_v1_user_proto_rawDescData
162 }
163
164 var file_types_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
165 var file_types_v1_user_proto_goTypes = []any{
166 (*User)(nil), // 0: types.v1.User
167 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
168 }
169 var file_types_v1_user_proto_depIdxs = []int32{
170 1, // 0: types.v1.User.created_at:type_name -> google.protobuf.Timestamp
171 1, // [1:1] is the sub-list for method output_type
172 1, // [1:1] is the sub-list for method input_type
173 1, // [1:1] is the sub-list for extension type_name
174 1, // [1:1] is the sub-list for extension extendee
175 0, // [0:1] is the sub-list for field type_name
176 }
177
178 func init() { file_types_v1_user_proto_init() }
179 func file_types_v1_user_proto_init() {
180 if File_types_v1_user_proto != nil {
181 return
182 }
183 type x struct{}
184 out := protoimpl.TypeBuilder{
185 File: protoimpl.DescBuilder{
186 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
187 RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_user_proto_rawDesc), len(file_types_v1_user_proto_rawDesc)),
188 NumEnums: 0,
189 NumMessages: 1,
190 NumExtensions: 0,
191 NumServices: 0,
192 },
193 GoTypes: file_types_v1_user_proto_goTypes,
194 DependencyIndexes: file_types_v1_user_proto_depIdxs,
195 MessageInfos: file_types_v1_user_proto_msgTypes,
196 }.Build()
197 File_types_v1_user_proto = out.File
198 file_types_v1_user_proto_goTypes = nil
199 file_types_v1_user_proto_depIdxs = nil
200 }