status-go/protocol/protobuf/status_update.pb.go

242 lines
8.3 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.24.4
// source: status_update.proto
package protobuf
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
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
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
)
// Enum value maps for StatusUpdate_StatusType.
var (
StatusUpdate_StatusType_name = map[int32]string{
0: "UNKNOWN_STATUS_TYPE",
1: "AUTOMATIC",
2: "DO_NOT_DISTURB",
3: "ALWAYS_ONLINE",
4: "INACTIVE",
}
StatusUpdate_StatusType_value = map[string]int32{
"UNKNOWN_STATUS_TYPE": 0,
"AUTOMATIC": 1,
"DO_NOT_DISTURB": 2,
"ALWAYS_ONLINE": 3,
"INACTIVE": 4,
}
)
func (x StatusUpdate_StatusType) Enum() *StatusUpdate_StatusType {
p := new(StatusUpdate_StatusType)
*p = x
return p
}
func (x StatusUpdate_StatusType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StatusUpdate_StatusType) Descriptor() protoreflect.EnumDescriptor {
return file_status_update_proto_enumTypes[0].Descriptor()
}
func (StatusUpdate_StatusType) Type() protoreflect.EnumType {
return &file_status_update_proto_enumTypes[0]
}
func (x StatusUpdate_StatusType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StatusUpdate_StatusType.Descriptor instead.
func (StatusUpdate_StatusType) EnumDescriptor() ([]byte, []int) {
return file_status_update_proto_rawDescGZIP(), []int{0, 0}
}
2021-10-28 15:21:28 +00:00
// Specs:
// :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.
type StatusUpdate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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"`
}
func (x *StatusUpdate) Reset() {
*x = StatusUpdate{}
if protoimpl.UnsafeEnabled {
mi := &file_status_update_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StatusUpdate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StatusUpdate) ProtoMessage() {}
func (x *StatusUpdate) ProtoReflect() protoreflect.Message {
mi := &file_status_update_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StatusUpdate.ProtoReflect.Descriptor instead.
func (*StatusUpdate) Descriptor() ([]byte, []int) {
return file_status_update_proto_rawDescGZIP(), []int{0}
}
func (x *StatusUpdate) GetClock() uint64 {
if x != nil {
return x.Clock
}
return 0
}
func (x *StatusUpdate) GetStatusType() StatusUpdate_StatusType {
if x != nil {
return x.StatusType
}
return StatusUpdate_UNKNOWN_STATUS_TYPE
}
func (x *StatusUpdate) GetCustomText() string {
if x != nil {
return x.CustomText
}
return ""
}
var File_status_update_proto protoreflect.FileDescriptor
var file_status_update_proto_rawDesc = []byte{
0x0a, 0x13, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22,
0xf4, 0x01, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a,
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x75,
0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x54, 0x65, 0x78, 0x74, 0x22, 0x69, 0x0a, 0x0a, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x55, 0x4e, 0x4b,
0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45,
0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10,
0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x54,
0x55, 0x52, 0x42, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f,
0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43,
0x54, 0x49, 0x56, 0x45, 0x10, 0x04, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_status_update_proto_rawDescOnce sync.Once
file_status_update_proto_rawDescData = file_status_update_proto_rawDesc
)
func file_status_update_proto_rawDescGZIP() []byte {
file_status_update_proto_rawDescOnce.Do(func() {
file_status_update_proto_rawDescData = protoimpl.X.CompressGZIP(file_status_update_proto_rawDescData)
})
return file_status_update_proto_rawDescData
}
var file_status_update_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_status_update_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_status_update_proto_goTypes = []interface{}{
(StatusUpdate_StatusType)(0), // 0: protobuf.StatusUpdate.StatusType
(*StatusUpdate)(nil), // 1: protobuf.StatusUpdate
}
var file_status_update_proto_depIdxs = []int32{
0, // 0: protobuf.StatusUpdate.status_type:type_name -> protobuf.StatusUpdate.StatusType
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_status_update_proto_init() }
func file_status_update_proto_init() {
if File_status_update_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_status_update_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StatusUpdate); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_status_update_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_status_update_proto_goTypes,
DependencyIndexes: file_status_update_proto_depIdxs,
EnumInfos: file_status_update_proto_enumTypes,
MessageInfos: file_status_update_proto_msgTypes,
}.Build()
File_status_update_proto = out.File
file_status_update_proto_rawDesc = nil
file_status_update_proto_goTypes = nil
file_status_update_proto_depIdxs = nil
}