2021-07-22 17:41:49 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: status_update.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
2024-01-25 16:48:27 +00:00
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
2021-07-22 17:41:49 +00:00
|
|
|
)
|
|
|
|
|
2024-01-25 16:48:27 +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
|
2021-07-22 17:41:49 +00:00
|
|
|
|
|
|
|
type StatusUpdate_StatusType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
StatusUpdate_UNKNOWN_STATUS_TYPE StatusUpdate_StatusType = 0
|
2021-10-28 15:21:28 +00:00
|
|
|
StatusUpdate_AUTOMATIC StatusUpdate_StatusType = 1
|
2021-07-22 17:41:49 +00:00
|
|
|
StatusUpdate_DO_NOT_DISTURB StatusUpdate_StatusType = 2
|
2021-10-28 15:21:28 +00:00
|
|
|
StatusUpdate_ALWAYS_ONLINE StatusUpdate_StatusType = 3
|
|
|
|
StatusUpdate_INACTIVE StatusUpdate_StatusType = 4
|
2021-07-22 17:41:49 +00:00
|
|
|
)
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
var StatusUpdate_StatusType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_STATUS_TYPE",
|
|
|
|
1: "AUTOMATIC",
|
|
|
|
2: "DO_NOT_DISTURB",
|
|
|
|
3: "ALWAYS_ONLINE",
|
|
|
|
4: "INACTIVE",
|
2024-01-17 13:12:49 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
var StatusUpdate_StatusType_value = map[string]int32{
|
|
|
|
"UNKNOWN_STATUS_TYPE": 0,
|
|
|
|
"AUTOMATIC": 1,
|
|
|
|
"DO_NOT_DISTURB": 2,
|
|
|
|
"ALWAYS_ONLINE": 3,
|
|
|
|
"INACTIVE": 4,
|
2023-12-15 16:16:18 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (x StatusUpdate_StatusType) String() string {
|
|
|
|
return proto.EnumName(StatusUpdate_StatusType_name, int32(x))
|
2023-12-15 16:16:18 +00:00
|
|
|
}
|
|
|
|
|
2021-07-22 17:41:49 +00:00
|
|
|
func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) {
|
2024-01-25 16:48:27 +00:00
|
|
|
return fileDescriptor_911acd91e62cd3d7, []int{0, 0}
|
2021-07-22 17:41:49 +00:00
|
|
|
}
|
|
|
|
|
2021-10-28 15:21:28 +00:00
|
|
|
// Specs:
|
2023-06-29 10:45:57 +00:00
|
|
|
// :AUTOMATIC
|
|
|
|
// To Send - "AUTOMATIC" status ping every 5 minutes
|
|
|
|
// Display - Online for up to 5 minutes from the last clock, after that Offline
|
|
|
|
// :ALWAYS_ONLINE
|
|
|
|
// To Send - "ALWAYS_ONLINE" status ping every 5 minutes
|
|
|
|
// Display - Online for up to 2 weeks from the last clock, after that Offline
|
|
|
|
// :INACTIVE
|
|
|
|
// To Send - A single "INACTIVE" status ping
|
|
|
|
// Display - Offline forever
|
|
|
|
// Note: Only send pings if the user interacted with the app in the last x minutes.
|
2021-07-22 17:41:49 +00:00
|
|
|
type StatusUpdate struct {
|
2024-01-25 16:48:27 +00:00
|
|
|
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
|
|
|
|
StatusType StatusUpdate_StatusType `protobuf:"varint,2,opt,name=status_type,json=statusType,proto3,enum=protobuf.StatusUpdate_StatusType" json:"status_type,omitempty"`
|
|
|
|
CustomText string `protobuf:"bytes,3,opt,name=custom_text,json=customText,proto3" json:"custom_text,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2023-12-22 12:37:37 +00:00
|
|
|
}
|
2024-01-17 13:12:49 +00:00
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *StatusUpdate) Reset() { *m = StatusUpdate{} }
|
|
|
|
func (m *StatusUpdate) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatusUpdate) ProtoMessage() {}
|
|
|
|
func (*StatusUpdate) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_911acd91e62cd3d7, []int{0}
|
2024-01-21 10:55:14 +00:00
|
|
|
}
|
2023-12-15 16:16:18 +00:00
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *StatusUpdate) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatusUpdate.Unmarshal(m, b)
|
2024-01-21 10:55:14 +00:00
|
|
|
}
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *StatusUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatusUpdate.Marshal(b, m, deterministic)
|
2024-01-17 13:12:49 +00:00
|
|
|
}
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *StatusUpdate) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatusUpdate.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatusUpdate) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatusUpdate.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatusUpdate) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatusUpdate.DiscardUnknown(m)
|
2023-12-15 16:16:18 +00:00
|
|
|
}
|
2024-01-21 10:55:14 +00:00
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
var xxx_messageInfo_StatusUpdate proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatusUpdate) GetClock() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Clock
|
2021-07-22 17:41:49 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *StatusUpdate) GetStatusType() StatusUpdate_StatusType {
|
|
|
|
if m != nil {
|
|
|
|
return m.StatusType
|
2021-07-22 17:41:49 +00:00
|
|
|
}
|
|
|
|
return StatusUpdate_UNKNOWN_STATUS_TYPE
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *StatusUpdate) GetCustomText() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.CustomText
|
2021-07-22 17:41:49 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("protobuf.StatusUpdate_StatusType", StatusUpdate_StatusType_name, StatusUpdate_StatusType_value)
|
|
|
|
proto.RegisterType((*StatusUpdate)(nil), "protobuf.StatusUpdate")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("status_update.proto", fileDescriptor_911acd91e62cd3d7)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_911acd91e62cd3d7 = []byte{
|
|
|
|
// 253 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8e, 0xc1, 0x4e, 0xc2, 0x40,
|
|
|
|
0x10, 0x86, 0x5d, 0x40, 0x03, 0x53, 0x4a, 0xea, 0x60, 0x62, 0x6f, 0x56, 0x4e, 0x3d, 0xd5, 0x44,
|
|
|
|
0x8f, 0x9e,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