diff --git a/gen/go/users/users.pb.go b/gen/go/users/users.pb.go index 3c1747a..faa0cbb 100644 --- a/gen/go/users/users.pb.go +++ b/gen/go/users/users.pb.go @@ -23,19 +23,19 @@ const ( type UserSettingsMessage struct { state protoimpl.MessageState `protogen:"open.v1"` - PrivacyPhone string `protobuf:"bytes,1,opt,name=privacy_phone,json=privacyPhone,proto3" json:"privacy_phone,omitempty"` - PrivacyLastSeen string `protobuf:"bytes,2,opt,name=privacy_last_seen,json=privacyLastSeen,proto3" json:"privacy_last_seen,omitempty"` - PrivacyPhoto string `protobuf:"bytes,3,opt,name=privacy_photo,json=privacyPhoto,proto3" json:"privacy_photo,omitempty"` - PrivacyBio string `protobuf:"bytes,4,opt,name=privacy_bio,json=privacyBio,proto3" json:"privacy_bio,omitempty"` - PrivacyCalls string `protobuf:"bytes,5,opt,name=privacy_calls,json=privacyCalls,proto3" json:"privacy_calls,omitempty"` - PrivacyGroups string `protobuf:"bytes,6,opt,name=privacy_groups,json=privacyGroups,proto3" json:"privacy_groups,omitempty"` - PrivacyVoiceMsgs string `protobuf:"bytes,7,opt,name=privacy_voice_msgs,json=privacyVoiceMsgs,proto3" json:"privacy_voice_msgs,omitempty"` - NotifyPrivateChats bool `protobuf:"varint,8,opt,name=notify_private_chats,json=notifyPrivateChats,proto3" json:"notify_private_chats,omitempty"` - NotifyGroups bool `protobuf:"varint,9,opt,name=notify_groups,json=notifyGroups,proto3" json:"notify_groups,omitempty"` - NotifyChannels bool `protobuf:"varint,10,opt,name=notify_channels,json=notifyChannels,proto3" json:"notify_channels,omitempty"` - ShowMessagePreview bool `protobuf:"varint,11,opt,name=show_message_preview,json=showMessagePreview,proto3" json:"show_message_preview,omitempty"` - Theme string `protobuf:"bytes,12,opt,name=theme,proto3" json:"theme,omitempty"` - TextSize int32 `protobuf:"varint,13,opt,name=text_size,json=textSize,proto3" json:"text_size,omitempty"` + PrivacyPhone *string `protobuf:"bytes,1,opt,name=privacy_phone,json=privacyPhone,proto3,oneof" json:"privacy_phone,omitempty"` + PrivacyLastSeen *string `protobuf:"bytes,2,opt,name=privacy_last_seen,json=privacyLastSeen,proto3,oneof" json:"privacy_last_seen,omitempty"` + PrivacyPhoto *string `protobuf:"bytes,3,opt,name=privacy_photo,json=privacyPhoto,proto3,oneof" json:"privacy_photo,omitempty"` + PrivacyBio *string `protobuf:"bytes,4,opt,name=privacy_bio,json=privacyBio,proto3,oneof" json:"privacy_bio,omitempty"` + PrivacyCalls *string `protobuf:"bytes,5,opt,name=privacy_calls,json=privacyCalls,proto3,oneof" json:"privacy_calls,omitempty"` + PrivacyGroups *string `protobuf:"bytes,6,opt,name=privacy_groups,json=privacyGroups,proto3,oneof" json:"privacy_groups,omitempty"` + PrivacyVoiceMsgs *string `protobuf:"bytes,7,opt,name=privacy_voice_msgs,json=privacyVoiceMsgs,proto3,oneof" json:"privacy_voice_msgs,omitempty"` + NotifyPrivateChats *bool `protobuf:"varint,8,opt,name=notify_private_chats,json=notifyPrivateChats,proto3,oneof" json:"notify_private_chats,omitempty"` + NotifyGroups *bool `protobuf:"varint,9,opt,name=notify_groups,json=notifyGroups,proto3,oneof" json:"notify_groups,omitempty"` + NotifyChannels *bool `protobuf:"varint,10,opt,name=notify_channels,json=notifyChannels,proto3,oneof" json:"notify_channels,omitempty"` + ShowMessagePreview *bool `protobuf:"varint,11,opt,name=show_message_preview,json=showMessagePreview,proto3,oneof" json:"show_message_preview,omitempty"` + Theme *string `protobuf:"bytes,12,opt,name=theme,proto3,oneof" json:"theme,omitempty"` + TextSize *int32 `protobuf:"varint,13,opt,name=text_size,json=textSize,proto3,oneof" json:"text_size,omitempty"` ChatBackground *string `protobuf:"bytes,14,opt,name=chat_background,json=chatBackground,proto3,oneof" json:"chat_background,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -72,92 +72,92 @@ func (*UserSettingsMessage) Descriptor() ([]byte, []int) { } func (x *UserSettingsMessage) GetPrivacyPhone() string { - if x != nil { - return x.PrivacyPhone + if x != nil && x.PrivacyPhone != nil { + return *x.PrivacyPhone } return "" } func (x *UserSettingsMessage) GetPrivacyLastSeen() string { - if x != nil { - return x.PrivacyLastSeen + if x != nil && x.PrivacyLastSeen != nil { + return *x.PrivacyLastSeen } return "" } func (x *UserSettingsMessage) GetPrivacyPhoto() string { - if x != nil { - return x.PrivacyPhoto + if x != nil && x.PrivacyPhoto != nil { + return *x.PrivacyPhoto } return "" } func (x *UserSettingsMessage) GetPrivacyBio() string { - if x != nil { - return x.PrivacyBio + if x != nil && x.PrivacyBio != nil { + return *x.PrivacyBio } return "" } func (x *UserSettingsMessage) GetPrivacyCalls() string { - if x != nil { - return x.PrivacyCalls + if x != nil && x.PrivacyCalls != nil { + return *x.PrivacyCalls } return "" } func (x *UserSettingsMessage) GetPrivacyGroups() string { - if x != nil { - return x.PrivacyGroups + if x != nil && x.PrivacyGroups != nil { + return *x.PrivacyGroups } return "" } func (x *UserSettingsMessage) GetPrivacyVoiceMsgs() string { - if x != nil { - return x.PrivacyVoiceMsgs + if x != nil && x.PrivacyVoiceMsgs != nil { + return *x.PrivacyVoiceMsgs } return "" } func (x *UserSettingsMessage) GetNotifyPrivateChats() bool { - if x != nil { - return x.NotifyPrivateChats + if x != nil && x.NotifyPrivateChats != nil { + return *x.NotifyPrivateChats } return false } func (x *UserSettingsMessage) GetNotifyGroups() bool { - if x != nil { - return x.NotifyGroups + if x != nil && x.NotifyGroups != nil { + return *x.NotifyGroups } return false } func (x *UserSettingsMessage) GetNotifyChannels() bool { - if x != nil { - return x.NotifyChannels + if x != nil && x.NotifyChannels != nil { + return *x.NotifyChannels } return false } func (x *UserSettingsMessage) GetShowMessagePreview() bool { - if x != nil { - return x.ShowMessagePreview + if x != nil && x.ShowMessagePreview != nil { + return *x.ShowMessagePreview } return false } func (x *UserSettingsMessage) GetTheme() string { - if x != nil { - return x.Theme + if x != nil && x.Theme != nil { + return *x.Theme } return "" } func (x *UserSettingsMessage) GetTextSize() int32 { - if x != nil { - return x.TextSize + if x != nil && x.TextSize != nil { + return *x.TextSize } return 0 } @@ -1302,24 +1302,39 @@ var File_users_users_proto protoreflect.FileDescriptor const file_users_users_proto_rawDesc = "" + "\n" + - "\x11users/users.proto\x12\busers.v1\"\xcd\x04\n" + - "\x13UserSettingsMessage\x12#\n" + - "\rprivacy_phone\x18\x01 \x01(\tR\fprivacyPhone\x12*\n" + - "\x11privacy_last_seen\x18\x02 \x01(\tR\x0fprivacyLastSeen\x12#\n" + - "\rprivacy_photo\x18\x03 \x01(\tR\fprivacyPhoto\x12\x1f\n" + - "\vprivacy_bio\x18\x04 \x01(\tR\n" + - "privacyBio\x12#\n" + - "\rprivacy_calls\x18\x05 \x01(\tR\fprivacyCalls\x12%\n" + - "\x0eprivacy_groups\x18\x06 \x01(\tR\rprivacyGroups\x12,\n" + - "\x12privacy_voice_msgs\x18\a \x01(\tR\x10privacyVoiceMsgs\x120\n" + - "\x14notify_private_chats\x18\b \x01(\bR\x12notifyPrivateChats\x12#\n" + - "\rnotify_groups\x18\t \x01(\bR\fnotifyGroups\x12'\n" + + "\x11users/users.proto\x12\busers.v1\"\x84\a\n" + + "\x13UserSettingsMessage\x12(\n" + + "\rprivacy_phone\x18\x01 \x01(\tH\x00R\fprivacyPhone\x88\x01\x01\x12/\n" + + "\x11privacy_last_seen\x18\x02 \x01(\tH\x01R\x0fprivacyLastSeen\x88\x01\x01\x12(\n" + + "\rprivacy_photo\x18\x03 \x01(\tH\x02R\fprivacyPhoto\x88\x01\x01\x12$\n" + + "\vprivacy_bio\x18\x04 \x01(\tH\x03R\n" + + "privacyBio\x88\x01\x01\x12(\n" + + "\rprivacy_calls\x18\x05 \x01(\tH\x04R\fprivacyCalls\x88\x01\x01\x12*\n" + + "\x0eprivacy_groups\x18\x06 \x01(\tH\x05R\rprivacyGroups\x88\x01\x01\x121\n" + + "\x12privacy_voice_msgs\x18\a \x01(\tH\x06R\x10privacyVoiceMsgs\x88\x01\x01\x125\n" + + "\x14notify_private_chats\x18\b \x01(\bH\aR\x12notifyPrivateChats\x88\x01\x01\x12(\n" + + "\rnotify_groups\x18\t \x01(\bH\bR\fnotifyGroups\x88\x01\x01\x12,\n" + "\x0fnotify_channels\x18\n" + - " \x01(\bR\x0enotifyChannels\x120\n" + - "\x14show_message_preview\x18\v \x01(\bR\x12showMessagePreview\x12\x14\n" + - "\x05theme\x18\f \x01(\tR\x05theme\x12\x1b\n" + - "\ttext_size\x18\r \x01(\x05R\btextSize\x12,\n" + - "\x0fchat_background\x18\x0e \x01(\tH\x00R\x0echatBackground\x88\x01\x01B\x12\n" + + " \x01(\bH\tR\x0enotifyChannels\x88\x01\x01\x125\n" + + "\x14show_message_preview\x18\v \x01(\bH\n" + + "R\x12showMessagePreview\x88\x01\x01\x12\x19\n" + + "\x05theme\x18\f \x01(\tH\vR\x05theme\x88\x01\x01\x12 \n" + + "\ttext_size\x18\r \x01(\x05H\fR\btextSize\x88\x01\x01\x12,\n" + + "\x0fchat_background\x18\x0e \x01(\tH\rR\x0echatBackground\x88\x01\x01B\x10\n" + + "\x0e_privacy_phoneB\x14\n" + + "\x12_privacy_last_seenB\x10\n" + + "\x0e_privacy_photoB\x0e\n" + + "\f_privacy_bioB\x10\n" + + "\x0e_privacy_callsB\x11\n" + + "\x0f_privacy_groupsB\x15\n" + + "\x13_privacy_voice_msgsB\x17\n" + + "\x15_notify_private_chatsB\x10\n" + + "\x0e_notify_groupsB\x12\n" + + "\x10_notify_channelsB\x17\n" + + "\x15_show_message_previewB\b\n" + + "\x06_themeB\f\n" + + "\n" + + "_text_sizeB\x12\n" + "\x10_chat_background\",\n" + "\x11GetProfileRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\"\x8a\x04\n" + diff --git a/gen/users/users.ts b/gen/users/users.ts index 79f4237..acf625b 100644 --- a/gen/users/users.ts +++ b/gen/users/users.ts @@ -12,19 +12,19 @@ import { Observable } from "rxjs"; export const protobufPackage = "users.v1"; export interface UserSettingsMessage { - privacyPhone: string; - privacyLastSeen: string; - privacyPhoto: string; - privacyBio: string; - privacyCalls: string; - privacyGroups: string; - privacyVoiceMsgs: string; - notifyPrivateChats: boolean; - notifyGroups: boolean; - notifyChannels: boolean; - showMessagePreview: boolean; - theme: string; - textSize: number; + privacyPhone?: string | undefined; + privacyLastSeen?: string | undefined; + privacyPhoto?: string | undefined; + privacyBio?: string | undefined; + privacyCalls?: string | undefined; + privacyGroups?: string | undefined; + privacyVoiceMsgs?: string | undefined; + notifyPrivateChats?: boolean | undefined; + notifyGroups?: boolean | undefined; + notifyChannels?: boolean | undefined; + showMessagePreview?: boolean | undefined; + theme?: string | undefined; + textSize?: number | undefined; chatBackground?: string | undefined; }