github.com/status-im/status-go@v1.1.0/protocol/protobuf/status_update.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v3.20.3 5 // source: status_update.proto 6 7 package protobuf 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type StatusUpdate_StatusType int32 24 25 const ( 26 StatusUpdate_UNKNOWN_STATUS_TYPE StatusUpdate_StatusType = 0 27 StatusUpdate_AUTOMATIC StatusUpdate_StatusType = 1 28 StatusUpdate_DO_NOT_DISTURB StatusUpdate_StatusType = 2 29 StatusUpdate_ALWAYS_ONLINE StatusUpdate_StatusType = 3 30 StatusUpdate_INACTIVE StatusUpdate_StatusType = 4 31 ) 32 33 // Enum value maps for StatusUpdate_StatusType. 34 var ( 35 StatusUpdate_StatusType_name = map[int32]string{ 36 0: "UNKNOWN_STATUS_TYPE", 37 1: "AUTOMATIC", 38 2: "DO_NOT_DISTURB", 39 3: "ALWAYS_ONLINE", 40 4: "INACTIVE", 41 } 42 StatusUpdate_StatusType_value = map[string]int32{ 43 "UNKNOWN_STATUS_TYPE": 0, 44 "AUTOMATIC": 1, 45 "DO_NOT_DISTURB": 2, 46 "ALWAYS_ONLINE": 3, 47 "INACTIVE": 4, 48 } 49 ) 50 51 func (x StatusUpdate_StatusType) Enum() *StatusUpdate_StatusType { 52 p := new(StatusUpdate_StatusType) 53 *p = x 54 return p 55 } 56 57 func (x StatusUpdate_StatusType) String() string { 58 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 59 } 60 61 func (StatusUpdate_StatusType) Descriptor() protoreflect.EnumDescriptor { 62 return file_status_update_proto_enumTypes[0].Descriptor() 63 } 64 65 func (StatusUpdate_StatusType) Type() protoreflect.EnumType { 66 return &file_status_update_proto_enumTypes[0] 67 } 68 69 func (x StatusUpdate_StatusType) Number() protoreflect.EnumNumber { 70 return protoreflect.EnumNumber(x) 71 } 72 73 // Deprecated: Use StatusUpdate_StatusType.Descriptor instead. 74 func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) { 75 return file_status_update_proto_rawDescGZIP(), []int{0, 0} 76 } 77 78 // Specs: 79 // :AUTOMATIC 80 // To Send - "AUTOMATIC" status ping every 5 minutes 81 // Display - Online for up to 5 minutes from the last clock, after that Offline 82 // :ALWAYS_ONLINE 83 // To Send - "ALWAYS_ONLINE" status ping every 5 minutes 84 // Display - Online for up to 2 weeks from the last clock, after that Offline 85 // :INACTIVE 86 // To Send - A single "INACTIVE" status ping 87 // Display - Offline forever 88 // Note: Only send pings if the user interacted with the app in the last x minutes. 89 type StatusUpdate struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"` 95 StatusType StatusUpdate_StatusType `protobuf:"varint,2,opt,name=status_type,json=statusType,proto3,enum=protobuf.StatusUpdate_StatusType" json:"status_type,omitempty"` 96 CustomText string `protobuf:"bytes,3,opt,name=custom_text,json=customText,proto3" json:"custom_text,omitempty"` 97 } 98 99 func (x *StatusUpdate) Reset() { 100 *x = StatusUpdate{} 101 if protoimpl.UnsafeEnabled { 102 mi := &file_status_update_proto_msgTypes[0] 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 ms.StoreMessageInfo(mi) 105 } 106 } 107 108 func (x *StatusUpdate) String() string { 109 return protoimpl.X.MessageStringOf(x) 110 } 111 112 func (*StatusUpdate) ProtoMessage() {} 113 114 func (x *StatusUpdate) ProtoReflect() protoreflect.Message { 115 mi := &file_status_update_proto_msgTypes[0] 116 if protoimpl.UnsafeEnabled && x != nil { 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 if ms.LoadMessageInfo() == nil { 119 ms.StoreMessageInfo(mi) 120 } 121 return ms 122 } 123 return mi.MessageOf(x) 124 } 125 126 // Deprecated: Use StatusUpdate.ProtoReflect.Descriptor instead. 127 func (*StatusUpdate) Descriptor() ([]byte, []int) { 128 return file_status_update_proto_rawDescGZIP(), []int{0} 129 } 130 131 func (x *StatusUpdate) GetClock() uint64 { 132 if x != nil { 133 return x.Clock 134 } 135 return 0 136 } 137 138 func (x *StatusUpdate) GetStatusType() StatusUpdate_StatusType { 139 if x != nil { 140 return x.StatusType 141 } 142 return StatusUpdate_UNKNOWN_STATUS_TYPE 143 } 144 145 func (x *StatusUpdate) GetCustomText() string { 146 if x != nil { 147 return x.CustomText 148 } 149 return "" 150 } 151 152 var File_status_update_proto protoreflect.FileDescriptor 153 154 var file_status_update_proto_rawDesc = []byte{ 155 0x0a, 0x13, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 156 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 157 0xf4, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 158 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 159 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 160 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x70, 0x72, 161 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 162 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 163 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x75, 164 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 165 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x22, 0x69, 0x0a, 0x0a, 0x53, 166 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 167 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 168 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 169 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x54, 170 0x55, 0x52, 0x42, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 171 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 172 0x54, 0x49, 0x56, 0x45, 0x10, 0x04, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 173 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 174 } 175 176 var ( 177 file_status_update_proto_rawDescOnce sync.Once 178 file_status_update_proto_rawDescData = file_status_update_proto_rawDesc 179 ) 180 181 func file_status_update_proto_rawDescGZIP() []byte { 182 file_status_update_proto_rawDescOnce.Do(func() { 183 file_status_update_proto_rawDescData = protoimpl.X.CompressGZIP(file_status_update_proto_rawDescData) 184 }) 185 return file_status_update_proto_rawDescData 186 } 187 188 var file_status_update_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 189 var file_status_update_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 190 var file_status_update_proto_goTypes = []interface{}{ 191 (StatusUpdate_StatusType)(0), // 0: protobuf.StatusUpdate.StatusType 192 (*StatusUpdate)(nil), // 1: protobuf.StatusUpdate 193 } 194 var file_status_update_proto_depIdxs = []int32{ 195 0, // 0: protobuf.StatusUpdate.status_type:type_name -> protobuf.StatusUpdate.StatusType 196 1, // [1:1] is the sub-list for method output_type 197 1, // [1:1] is the sub-list for method input_type 198 1, // [1:1] is the sub-list for extension type_name 199 1, // [1:1] is the sub-list for extension extendee 200 0, // [0:1] is the sub-list for field type_name 201 } 202 203 func init() { file_status_update_proto_init() } 204 func file_status_update_proto_init() { 205 if File_status_update_proto != nil { 206 return 207 } 208 if !protoimpl.UnsafeEnabled { 209 file_status_update_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*StatusUpdate); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_status_update_proto_rawDesc, 227 NumEnums: 1, 228 NumMessages: 1, 229 NumExtensions: 0, 230 NumServices: 0, 231 }, 232 GoTypes: file_status_update_proto_goTypes, 233 DependencyIndexes: file_status_update_proto_depIdxs, 234 EnumInfos: file_status_update_proto_enumTypes, 235 MessageInfos: file_status_update_proto_msgTypes, 236 }.Build() 237 File_status_update_proto = out.File 238 file_status_update_proto_rawDesc = nil 239 file_status_update_proto_goTypes = nil 240 file_status_update_proto_depIdxs = nil 241 }