chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -23,19 +23,19 @@ const (
|
|||||||
|
|
||||||
type UserSettingsMessage struct {
|
type UserSettingsMessage struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
PrivacyPhone string `protobuf:"bytes,1,opt,name=privacy_phone,json=privacyPhone,proto3" json:"privacy_phone,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" json:"privacy_last_seen,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" json:"privacy_photo,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" json:"privacy_bio,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" json:"privacy_calls,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" json:"privacy_groups,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" json:"privacy_voice_msgs,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" json:"notify_private_chats,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" json:"notify_groups,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" json:"notify_channels,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" json:"show_message_preview,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" json:"theme,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" json:"text_size,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"`
|
ChatBackground *string `protobuf:"bytes,14,opt,name=chat_background,json=chatBackground,proto3,oneof" json:"chat_background,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -72,92 +72,92 @@ func (*UserSettingsMessage) Descriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyPhone() string {
|
func (x *UserSettingsMessage) GetPrivacyPhone() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyPhone != nil {
|
||||||
return x.PrivacyPhone
|
return *x.PrivacyPhone
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyLastSeen() string {
|
func (x *UserSettingsMessage) GetPrivacyLastSeen() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyLastSeen != nil {
|
||||||
return x.PrivacyLastSeen
|
return *x.PrivacyLastSeen
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyPhoto() string {
|
func (x *UserSettingsMessage) GetPrivacyPhoto() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyPhoto != nil {
|
||||||
return x.PrivacyPhoto
|
return *x.PrivacyPhoto
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyBio() string {
|
func (x *UserSettingsMessage) GetPrivacyBio() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyBio != nil {
|
||||||
return x.PrivacyBio
|
return *x.PrivacyBio
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyCalls() string {
|
func (x *UserSettingsMessage) GetPrivacyCalls() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyCalls != nil {
|
||||||
return x.PrivacyCalls
|
return *x.PrivacyCalls
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyGroups() string {
|
func (x *UserSettingsMessage) GetPrivacyGroups() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyGroups != nil {
|
||||||
return x.PrivacyGroups
|
return *x.PrivacyGroups
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetPrivacyVoiceMsgs() string {
|
func (x *UserSettingsMessage) GetPrivacyVoiceMsgs() string {
|
||||||
if x != nil {
|
if x != nil && x.PrivacyVoiceMsgs != nil {
|
||||||
return x.PrivacyVoiceMsgs
|
return *x.PrivacyVoiceMsgs
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetNotifyPrivateChats() bool {
|
func (x *UserSettingsMessage) GetNotifyPrivateChats() bool {
|
||||||
if x != nil {
|
if x != nil && x.NotifyPrivateChats != nil {
|
||||||
return x.NotifyPrivateChats
|
return *x.NotifyPrivateChats
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetNotifyGroups() bool {
|
func (x *UserSettingsMessage) GetNotifyGroups() bool {
|
||||||
if x != nil {
|
if x != nil && x.NotifyGroups != nil {
|
||||||
return x.NotifyGroups
|
return *x.NotifyGroups
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetNotifyChannels() bool {
|
func (x *UserSettingsMessage) GetNotifyChannels() bool {
|
||||||
if x != nil {
|
if x != nil && x.NotifyChannels != nil {
|
||||||
return x.NotifyChannels
|
return *x.NotifyChannels
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetShowMessagePreview() bool {
|
func (x *UserSettingsMessage) GetShowMessagePreview() bool {
|
||||||
if x != nil {
|
if x != nil && x.ShowMessagePreview != nil {
|
||||||
return x.ShowMessagePreview
|
return *x.ShowMessagePreview
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetTheme() string {
|
func (x *UserSettingsMessage) GetTheme() string {
|
||||||
if x != nil {
|
if x != nil && x.Theme != nil {
|
||||||
return x.Theme
|
return *x.Theme
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UserSettingsMessage) GetTextSize() int32 {
|
func (x *UserSettingsMessage) GetTextSize() int32 {
|
||||||
if x != nil {
|
if x != nil && x.TextSize != nil {
|
||||||
return x.TextSize
|
return *x.TextSize
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@@ -1302,24 +1302,39 @@ var File_users_users_proto protoreflect.FileDescriptor
|
|||||||
|
|
||||||
const file_users_users_proto_rawDesc = "" +
|
const file_users_users_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x11users/users.proto\x12\busers.v1\"\xcd\x04\n" +
|
"\x11users/users.proto\x12\busers.v1\"\x84\a\n" +
|
||||||
"\x13UserSettingsMessage\x12#\n" +
|
"\x13UserSettingsMessage\x12(\n" +
|
||||||
"\rprivacy_phone\x18\x01 \x01(\tR\fprivacyPhone\x12*\n" +
|
"\rprivacy_phone\x18\x01 \x01(\tH\x00R\fprivacyPhone\x88\x01\x01\x12/\n" +
|
||||||
"\x11privacy_last_seen\x18\x02 \x01(\tR\x0fprivacyLastSeen\x12#\n" +
|
"\x11privacy_last_seen\x18\x02 \x01(\tH\x01R\x0fprivacyLastSeen\x88\x01\x01\x12(\n" +
|
||||||
"\rprivacy_photo\x18\x03 \x01(\tR\fprivacyPhoto\x12\x1f\n" +
|
"\rprivacy_photo\x18\x03 \x01(\tH\x02R\fprivacyPhoto\x88\x01\x01\x12$\n" +
|
||||||
"\vprivacy_bio\x18\x04 \x01(\tR\n" +
|
"\vprivacy_bio\x18\x04 \x01(\tH\x03R\n" +
|
||||||
"privacyBio\x12#\n" +
|
"privacyBio\x88\x01\x01\x12(\n" +
|
||||||
"\rprivacy_calls\x18\x05 \x01(\tR\fprivacyCalls\x12%\n" +
|
"\rprivacy_calls\x18\x05 \x01(\tH\x04R\fprivacyCalls\x88\x01\x01\x12*\n" +
|
||||||
"\x0eprivacy_groups\x18\x06 \x01(\tR\rprivacyGroups\x12,\n" +
|
"\x0eprivacy_groups\x18\x06 \x01(\tH\x05R\rprivacyGroups\x88\x01\x01\x121\n" +
|
||||||
"\x12privacy_voice_msgs\x18\a \x01(\tR\x10privacyVoiceMsgs\x120\n" +
|
"\x12privacy_voice_msgs\x18\a \x01(\tH\x06R\x10privacyVoiceMsgs\x88\x01\x01\x125\n" +
|
||||||
"\x14notify_private_chats\x18\b \x01(\bR\x12notifyPrivateChats\x12#\n" +
|
"\x14notify_private_chats\x18\b \x01(\bH\aR\x12notifyPrivateChats\x88\x01\x01\x12(\n" +
|
||||||
"\rnotify_groups\x18\t \x01(\bR\fnotifyGroups\x12'\n" +
|
"\rnotify_groups\x18\t \x01(\bH\bR\fnotifyGroups\x88\x01\x01\x12,\n" +
|
||||||
"\x0fnotify_channels\x18\n" +
|
"\x0fnotify_channels\x18\n" +
|
||||||
" \x01(\bR\x0enotifyChannels\x120\n" +
|
" \x01(\bH\tR\x0enotifyChannels\x88\x01\x01\x125\n" +
|
||||||
"\x14show_message_preview\x18\v \x01(\bR\x12showMessagePreview\x12\x14\n" +
|
"\x14show_message_preview\x18\v \x01(\bH\n" +
|
||||||
"\x05theme\x18\f \x01(\tR\x05theme\x12\x1b\n" +
|
"R\x12showMessagePreview\x88\x01\x01\x12\x19\n" +
|
||||||
"\ttext_size\x18\r \x01(\x05R\btextSize\x12,\n" +
|
"\x05theme\x18\f \x01(\tH\vR\x05theme\x88\x01\x01\x12 \n" +
|
||||||
"\x0fchat_background\x18\x0e \x01(\tH\x00R\x0echatBackground\x88\x01\x01B\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" +
|
"\x10_chat_background\",\n" +
|
||||||
"\x11GetProfileRequest\x12\x17\n" +
|
"\x11GetProfileRequest\x12\x17\n" +
|
||||||
"\auser_id\x18\x01 \x01(\tR\x06userId\"\x8a\x04\n" +
|
"\auser_id\x18\x01 \x01(\tR\x06userId\"\x8a\x04\n" +
|
||||||
|
|||||||
@@ -12,19 +12,19 @@ import { Observable } from "rxjs";
|
|||||||
export const protobufPackage = "users.v1";
|
export const protobufPackage = "users.v1";
|
||||||
|
|
||||||
export interface UserSettingsMessage {
|
export interface UserSettingsMessage {
|
||||||
privacyPhone: string;
|
privacyPhone?: string | undefined;
|
||||||
privacyLastSeen: string;
|
privacyLastSeen?: string | undefined;
|
||||||
privacyPhoto: string;
|
privacyPhoto?: string | undefined;
|
||||||
privacyBio: string;
|
privacyBio?: string | undefined;
|
||||||
privacyCalls: string;
|
privacyCalls?: string | undefined;
|
||||||
privacyGroups: string;
|
privacyGroups?: string | undefined;
|
||||||
privacyVoiceMsgs: string;
|
privacyVoiceMsgs?: string | undefined;
|
||||||
notifyPrivateChats: boolean;
|
notifyPrivateChats?: boolean | undefined;
|
||||||
notifyGroups: boolean;
|
notifyGroups?: boolean | undefined;
|
||||||
notifyChannels: boolean;
|
notifyChannels?: boolean | undefined;
|
||||||
showMessagePreview: boolean;
|
showMessagePreview?: boolean | undefined;
|
||||||
theme: string;
|
theme?: string | undefined;
|
||||||
textSize: number;
|
textSize?: number | undefined;
|
||||||
chatBackground?: string | undefined;
|
chatBackground?: string | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user