2022-03-23 18:47:00 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: sync_settings.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
2023-12-22 12:37:37 +00:00
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
2022-03-23 18:47:00 +00:00
|
|
|
)
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2022-03-23 18:47:00 +00:00
|
|
|
|
|
|
|
type SyncSetting_Type int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
SyncSetting_UNKNOWN SyncSetting_Type = 0
|
|
|
|
SyncSetting_CURRENCY SyncSetting_Type = 1
|
|
|
|
SyncSetting_GIF_RECENTS SyncSetting_Type = 2
|
|
|
|
SyncSetting_GIF_FAVOURITES SyncSetting_Type = 3
|
|
|
|
SyncSetting_MESSAGES_FROM_CONTACTS_ONLY SyncSetting_Type = 4
|
|
|
|
SyncSetting_PREFERRED_NAME SyncSetting_Type = 5
|
|
|
|
SyncSetting_PREVIEW_PRIVACY SyncSetting_Type = 6
|
|
|
|
SyncSetting_PROFILE_PICTURES_SHOW_TO SyncSetting_Type = 7
|
|
|
|
SyncSetting_PROFILE_PICTURES_VISIBILITY SyncSetting_Type = 8
|
|
|
|
SyncSetting_SEND_STATUS_UPDATES SyncSetting_Type = 9
|
|
|
|
SyncSetting_STICKERS_PACKS_INSTALLED SyncSetting_Type = 10
|
|
|
|
SyncSetting_STICKERS_PACKS_PENDING SyncSetting_Type = 11
|
|
|
|
SyncSetting_STICKERS_RECENT_STICKERS SyncSetting_Type = 12
|
2022-11-30 09:41:35 +00:00
|
|
|
SyncSetting_DISPLAY_NAME SyncSetting_Type = 13
|
2023-04-13 00:45:25 +00:00
|
|
|
SyncSetting_BIO SyncSetting_Type = 14
|
|
|
|
SyncSetting_MNEMONIC_REMOVED SyncSetting_Type = 15
|
2023-10-13 14:31:56 +00:00
|
|
|
SyncSetting_URL_UNFURLING_MODE SyncSetting_Type = 18
|
2022-03-23 18:47:00 +00:00
|
|
|
)
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
var SyncSetting_Type_name = map[int32]string{
|
|
|
|
0: "UNKNOWN",
|
|
|
|
1: "CURRENCY",
|
|
|
|
2: "GIF_RECENTS",
|
|
|
|
3: "GIF_FAVOURITES",
|
|
|
|
4: "MESSAGES_FROM_CONTACTS_ONLY",
|
|
|
|
5: "PREFERRED_NAME",
|
|
|
|
6: "PREVIEW_PRIVACY",
|
|
|
|
7: "PROFILE_PICTURES_SHOW_TO",
|
|
|
|
8: "PROFILE_PICTURES_VISIBILITY",
|
|
|
|
9: "SEND_STATUS_UPDATES",
|
|
|
|
10: "STICKERS_PACKS_INSTALLED",
|
|
|
|
11: "STICKERS_PACKS_PENDING",
|
|
|
|
12: "STICKERS_RECENT_STICKERS",
|
|
|
|
13: "DISPLAY_NAME",
|
|
|
|
14: "BIO",
|
|
|
|
15: "MNEMONIC_REMOVED",
|
|
|
|
18: "URL_UNFURLING_MODE",
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
var SyncSetting_Type_value = map[string]int32{
|
|
|
|
"UNKNOWN": 0,
|
|
|
|
"CURRENCY": 1,
|
|
|
|
"GIF_RECENTS": 2,
|
|
|
|
"GIF_FAVOURITES": 3,
|
|
|
|
"MESSAGES_FROM_CONTACTS_ONLY": 4,
|
|
|
|
"PREFERRED_NAME": 5,
|
|
|
|
"PREVIEW_PRIVACY": 6,
|
|
|
|
"PROFILE_PICTURES_SHOW_TO": 7,
|
|
|
|
"PROFILE_PICTURES_VISIBILITY": 8,
|
|
|
|
"SEND_STATUS_UPDATES": 9,
|
|
|
|
"STICKERS_PACKS_INSTALLED": 10,
|
|
|
|
"STICKERS_PACKS_PENDING": 11,
|
|
|
|
"STICKERS_RECENT_STICKERS": 12,
|
|
|
|
"DISPLAY_NAME": 13,
|
|
|
|
"BIO": 14,
|
|
|
|
"MNEMONIC_REMOVED": 15,
|
|
|
|
"URL_UNFURLING_MODE": 18,
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (x SyncSetting_Type) String() string {
|
|
|
|
return proto.EnumName(SyncSetting_Type_name, int32(x))
|
2022-03-23 18:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (SyncSetting_Type) EnumDescriptor() ([]byte, []int) {
|
2023-12-22 12:37:37 +00:00
|
|
|
return fileDescriptor_e2f7a0bce2873c78, []int{0, 0}
|
2022-03-23 18:47:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SyncSetting struct {
|
|
|
|
Type SyncSetting_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protobuf.SyncSetting_Type" json:"type,omitempty"`
|
|
|
|
Clock uint64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"`
|
2023-12-22 12:37:37 +00:00
|
|
|
// Types that are valid to be assigned to Value:
|
2023-06-29 10:45:57 +00:00
|
|
|
//
|
2022-03-23 18:47:00 +00:00
|
|
|
// *SyncSetting_ValueString
|
|
|
|
// *SyncSetting_ValueBytes
|
|
|
|
// *SyncSetting_ValueBool
|
|
|
|
// *SyncSetting_ValueInt64
|
2023-12-22 12:37:37 +00:00
|
|
|
Value isSyncSetting_Value `protobuf_oneof:"value"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2023-10-12 15:45:23 +00:00
|
|
|
}
|
2023-10-29 08:04:01 +00:00
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) Reset() { *m = SyncSetting{} }
|
|
|
|
func (m *SyncSetting) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SyncSetting) ProtoMessage() {}
|
2023-11-09 18:59:01 +00:00
|
|
|
func (*SyncSetting) Descriptor() ([]byte, []int) {
|
2023-12-22 12:37:37 +00:00
|
|
|
return fileDescriptor_e2f7a0bce2873c78, []int{0}
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-11-09 18:59:01 +00:00
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SyncSetting.Unmarshal(m, b)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SyncSetting.Marshal(b, m, deterministic)
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SyncSetting.Merge(m, src)
|
2023-10-29 08:04:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SyncSetting.Size(m)
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SyncSetting.DiscardUnknown(m)
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
var xxx_messageInfo_SyncSetting proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SyncSetting) GetType() SyncSetting_Type {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
return SyncSetting_UNKNOWN
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) GetClock() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Clock
|
2022-03-23 18:47:00 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type isSyncSetting_Value interface {
|
|
|
|
isSyncSetting_Value()
|
|
|
|
}
|
|
|
|
|
|
|
|
type SyncSetting_ValueString struct {
|
|
|
|
ValueString string `protobuf:"bytes,3,opt,name=value_string,json=valueString,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SyncSetting_ValueBytes struct {
|
|
|
|
ValueBytes []byte `protobuf:"bytes,4,opt,name=value_bytes,json=valueBytes,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SyncSetting_ValueBool struct {
|
|
|
|
ValueBool bool `protobuf:"varint,5,opt,name=value_bool,json=valueBool,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SyncSetting_ValueInt64 struct {
|
|
|
|
ValueInt64 int64 `protobuf:"varint,6,opt,name=value_int64,json=valueInt64,proto3,oneof"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*SyncSetting_ValueString) isSyncSetting_Value() {}
|
|
|
|
|
|
|
|
func (*SyncSetting_ValueBytes) isSyncSetting_Value() {}
|
|
|
|
|
|
|
|
func (*SyncSetting_ValueBool) isSyncSetting_Value() {}
|
|
|
|
|
|
|
|
func (*SyncSetting_ValueInt64) isSyncSetting_Value() {}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) GetValue() isSyncSetting_Value {
|
|
|
|
if m != nil {
|
|
|
|
return m.Value
|
|
|
|
}
|
|
|
|
return nil
|
2022-03-23 18:47:00 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) GetValueString() string {
|
|
|
|
if x, ok := m.GetValue().(*SyncSetting_ValueString); ok {
|
|
|
|
return x.ValueString
|
|
|
|
}
|
|
|
|
return ""
|
2023-10-25 13:03:26 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) GetValueBytes() []byte {
|
|
|
|
if x, ok := m.GetValue().(*SyncSetting_ValueBytes); ok {
|
|
|
|
return x.ValueBytes
|
|
|
|
}
|
|
|
|
return nil
|
2023-10-31 14:20:40 +00:00
|
|
|
}
|
|
|
|
|
2023-12-22 12:37:37 +00:00
|
|
|
func (m *SyncSetting) GetValueBool() bool {
|
|
|
|
if x, ok := m.GetValue().(*SyncSetting_ValueBool); ok {
|
|
|
|
return x.ValueBool
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SyncSetting) GetValueInt64() int64 {
|
|
|
|
if x, ok := m.GetValue().(*SyncSetting_ValueInt64); ok {
|
|
|
|
return x.ValueInt64
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
|
|
func (*SyncSetting) XXX_OneofWrappers() []interface{} {
|
|
|
|
return []interface{}{
|
2022-03-23 18:47:00 +00:00
|
|
|
(*SyncSetting_ValueString)(nil),
|
|
|
|
(*SyncSetting_ValueBytes)(nil),
|
|
|
|
(*SyncSetting_ValueBool)(nil),
|
|
|
|
(*SyncSetting_ValueInt64)(nil),
|
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("protobuf.SyncSetting_Type", SyncSetting_Type_name, SyncSetting_Type_value)
|
|
|
|
proto.RegisterType((*SyncSetting)(nil), "protobuf.SyncSetting")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("sync_settings.proto", fileDescriptor_e2f7a0bce2873c78)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_e2f7a0bce2873c78 = []byte{
|
|
|
|
// 539 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x4d, 0x6f, 0x1a, 0x3d,
|
|
|
|
0x10, 0xc7, 0xd9, 0xb0, 0x04, 0x32, 0x90, 0xc4, 0x71, 0xa2, 0x3c, 0xfb, 0xa4, 0x95, 0x42, 0xe9,
|
|
|
|
0x05, 0xe5, 0x40, 0xa5, 0xb6, 0xea, 0xa5, 0x27, 0xe3, 0x1d, 0xc0, 0xca, 0xae, 0xbd, 0xf2, 0x0b,
|
|
|
|
0x88, 0x5e, 0xac, 0x06, 0xd1, 0x28, 0x2a, 0x62, 0xa3, 0xb0, 0xa9, 0xc4, 0x57, 0xea, 0x97, 0xe8,
|
|
|
|
0x57, 0xab, 0x96, 0x6d, 0xfa, 0x7a, 0xb2, 0xe7, 0x3f, 0xbf, 0xf9, 0x7b, 0x3c, 0x36, 0x9c, 0x6e,
|
|
|
|
0xb6, 0xeb, 0x85, 0xdf, 0x2c, 0x8b, 0xe2, 0x6e, 0x7d, 0xbb, 0x19, 0xdc, 0x3f, 0xe4, 0x45, 0x4e,
|
|
|
|
0x5b, 0xbb, 0xe5, 0xe6, 0xf1, 0x53, 0xef, 0x6b, 0x03, 0xda, 0x66, 0xbb, 0x5e, 0x98, 0x0a, 0xa0,
|
|
|
|
0x03, 0x08, 0x8b, 0xed, 0xfd, 0x32, 0x0a, 0xba, 0x41, 0xff, 0xe8, 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