2023-06-30 09:54:08 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.30.0
|
|
|
|
// protoc v3.21.12
|
|
|
|
// source: client.proto
|
|
|
|
|
|
|
|
package binary
|
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
2023-07-16 23:06:35 +00:00
|
|
|
import _ "embed"
|
|
|
|
|
2023-06-30 09:54:08 +00:00
|
|
|
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)
|
|
|
|
)
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
type BugleMessageType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
BugleMessageType_UNKNOWN_BUGLE_MESSAGE_TYPE BugleMessageType = 0
|
|
|
|
BugleMessageType_SMS BugleMessageType = 1
|
|
|
|
BugleMessageType_MMS BugleMessageType = 2
|
|
|
|
BugleMessageType_RCS BugleMessageType = 3
|
|
|
|
BugleMessageType_CLOUD_SYNC BugleMessageType = 4
|
|
|
|
BugleMessageType_IMDN_DELIVERED BugleMessageType = 5
|
|
|
|
BugleMessageType_IMDN_DISPLAYED BugleMessageType = 6
|
|
|
|
BugleMessageType_IMDN_FALLBACK BugleMessageType = 7
|
|
|
|
BugleMessageType_RCS_GENERIC BugleMessageType = 8
|
|
|
|
BugleMessageType_FTD BugleMessageType = 9
|
|
|
|
BugleMessageType_FT_E2EE_LEGACY BugleMessageType = 10
|
|
|
|
BugleMessageType_FT_E2EE_XML BugleMessageType = 11
|
|
|
|
BugleMessageType_LIGHTER_MESSAGE BugleMessageType = 12
|
|
|
|
BugleMessageType_RBM_SPAM_REPORT BugleMessageType = 13
|
|
|
|
BugleMessageType_SATELLITE BugleMessageType = 14
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for BugleMessageType.
|
|
|
|
var (
|
|
|
|
BugleMessageType_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_BUGLE_MESSAGE_TYPE",
|
|
|
|
1: "SMS",
|
|
|
|
2: "MMS",
|
|
|
|
3: "RCS",
|
|
|
|
4: "CLOUD_SYNC",
|
|
|
|
5: "IMDN_DELIVERED",
|
|
|
|
6: "IMDN_DISPLAYED",
|
|
|
|
7: "IMDN_FALLBACK",
|
|
|
|
8: "RCS_GENERIC",
|
|
|
|
9: "FTD",
|
|
|
|
10: "FT_E2EE_LEGACY",
|
|
|
|
11: "FT_E2EE_XML",
|
|
|
|
12: "LIGHTER_MESSAGE",
|
|
|
|
13: "RBM_SPAM_REPORT",
|
|
|
|
14: "SATELLITE",
|
|
|
|
}
|
|
|
|
BugleMessageType_value = map[string]int32{
|
|
|
|
"UNKNOWN_BUGLE_MESSAGE_TYPE": 0,
|
|
|
|
"SMS": 1,
|
|
|
|
"MMS": 2,
|
|
|
|
"RCS": 3,
|
|
|
|
"CLOUD_SYNC": 4,
|
|
|
|
"IMDN_DELIVERED": 5,
|
|
|
|
"IMDN_DISPLAYED": 6,
|
|
|
|
"IMDN_FALLBACK": 7,
|
|
|
|
"RCS_GENERIC": 8,
|
|
|
|
"FTD": 9,
|
|
|
|
"FT_E2EE_LEGACY": 10,
|
|
|
|
"FT_E2EE_XML": 11,
|
|
|
|
"LIGHTER_MESSAGE": 12,
|
|
|
|
"RBM_SPAM_REPORT": 13,
|
|
|
|
"SATELLITE": 14,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x BugleMessageType) Enum() *BugleMessageType {
|
|
|
|
p := new(BugleMessageType)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x BugleMessageType) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (BugleMessageType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_client_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (BugleMessageType) Type() protoreflect.EnumType {
|
|
|
|
return &file_client_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x BugleMessageType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use BugleMessageType.Descriptor instead.
|
|
|
|
func (BugleMessageType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_client_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type BrowserTypes int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
BrowserTypes_UNKNOWN_BROWSER_TYPE BrowserTypes = 0
|
|
|
|
BrowserTypes_OTHER BrowserTypes = 1
|
|
|
|
BrowserTypes_CHROME BrowserTypes = 2
|
|
|
|
BrowserTypes_FIREFOX BrowserTypes = 3
|
|
|
|
BrowserTypes_SAFARI BrowserTypes = 4
|
|
|
|
BrowserTypes_OPERA BrowserTypes = 5
|
|
|
|
BrowserTypes_IE BrowserTypes = 6
|
|
|
|
BrowserTypes_EDGE BrowserTypes = 7
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for BrowserTypes.
|
|
|
|
var (
|
|
|
|
BrowserTypes_name = map[int32]string{
|
|
|
|
0: "UNKNOWN_BROWSER_TYPE",
|
|
|
|
1: "OTHER",
|
|
|
|
2: "CHROME",
|
|
|
|
3: "FIREFOX",
|
|
|
|
4: "SAFARI",
|
|
|
|
5: "OPERA",
|
|
|
|
6: "IE",
|
|
|
|
7: "EDGE",
|
|
|
|
}
|
|
|
|
BrowserTypes_value = map[string]int32{
|
|
|
|
"UNKNOWN_BROWSER_TYPE": 0,
|
|
|
|
"OTHER": 1,
|
|
|
|
"CHROME": 2,
|
|
|
|
"FIREFOX": 3,
|
|
|
|
"SAFARI": 4,
|
|
|
|
"OPERA": 5,
|
|
|
|
"IE": 6,
|
|
|
|
"EDGE": 7,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x BrowserTypes) Enum() *BrowserTypes {
|
|
|
|
p := new(BrowserTypes)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x BrowserTypes) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (BrowserTypes) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_client_proto_enumTypes[1].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (BrowserTypes) Type() protoreflect.EnumType {
|
|
|
|
return &file_client_proto_enumTypes[1]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x BrowserTypes) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use BrowserTypes.Descriptor instead.
|
|
|
|
func (BrowserTypes) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_client_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyDittoActivityPayload struct {
|
2023-06-30 09:54:08 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-07-15 22:56:11 +00:00
|
|
|
// This is not actually a boolean: after logging out, field 2 has value 2, and field 3 has value 1.
|
2023-07-09 11:16:52 +00:00
|
|
|
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *NotifyDittoActivityPayload) Reset() {
|
|
|
|
*x = NotifyDittoActivityPayload{}
|
2023-06-30 09:54:08 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_client_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *NotifyDittoActivityPayload) String() string {
|
2023-06-30 09:54:08 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (*NotifyDittoActivityPayload) ProtoMessage() {}
|
2023-06-30 09:54:08 +00:00
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *NotifyDittoActivityPayload) ProtoReflect() protoreflect.Message {
|
2023-06-30 09:54:08 +00:00
|
|
|
mi := &file_client_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)
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
// Deprecated: Use NotifyDittoActivityPayload.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NotifyDittoActivityPayload) Descriptor() ([]byte, []int) {
|
2023-06-30 09:54:08 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
func (x *NotifyDittoActivityPayload) GetSuccess() bool {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
2023-07-09 11:16:52 +00:00
|
|
|
return x.Success
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
2023-07-09 11:16:52 +00:00
|
|
|
return false
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-15 11:38:24 +00:00
|
|
|
type MessageReadPayload struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"`
|
|
|
|
MessageID string `protobuf:"bytes,3,opt,name=messageID,proto3" json:"messageID,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *MessageReadPayload) Reset() {
|
|
|
|
*x = MessageReadPayload{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_client_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *MessageReadPayload) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*MessageReadPayload) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *MessageReadPayload) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_client_proto_msgTypes[1]
|
|
|
|
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 MessageReadPayload.ProtoReflect.Descriptor instead.
|
|
|
|
func (*MessageReadPayload) Descriptor() ([]byte, []int) {
|
|
|
|
return file_client_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *MessageReadPayload) GetConversationID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.ConversationID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *MessageReadPayload) GetMessageID() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MessageID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2023-06-30 09:54:08 +00:00
|
|
|
type AckMessagePayload struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-07-15 12:49:51 +00:00
|
|
|
AuthData *AuthMessage `protobuf:"bytes,1,opt,name=authData,proto3" json:"authData,omitempty"`
|
|
|
|
EmptyArr *EmptyArr `protobuf:"bytes,2,opt,name=emptyArr,proto3" json:"emptyArr,omitempty"`
|
|
|
|
Acks []*AckMessageData `protobuf:"bytes,4,rep,name=acks,proto3" json:"acks,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessagePayload) Reset() {
|
|
|
|
*x = AckMessagePayload{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[2]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessagePayload) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AckMessagePayload) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AckMessagePayload) ProtoReflect() protoreflect.Message {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[2]
|
2023-06-30 09:54:08 +00:00
|
|
|
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 AckMessagePayload.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AckMessagePayload) Descriptor() ([]byte, []int) {
|
2023-07-15 12:49:51 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{2}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessagePayload) GetAuthData() *AuthMessage {
|
|
|
|
if x != nil {
|
|
|
|
return x.AuthData
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessagePayload) GetEmptyArr() *EmptyArr {
|
|
|
|
if x != nil {
|
|
|
|
return x.EmptyArr
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-07-15 12:49:51 +00:00
|
|
|
func (x *AckMessagePayload) GetAcks() []*AckMessageData {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
2023-07-15 12:49:51 +00:00
|
|
|
return x.Acks
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type AckMessageData struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-06-30 13:26:46 +00:00
|
|
|
RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
Device *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessageData) Reset() {
|
|
|
|
*x = AckMessageData{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[3]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessageData) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*AckMessageData) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AckMessageData) ProtoReflect() protoreflect.Message {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[3]
|
2023-06-30 09:54:08 +00:00
|
|
|
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 AckMessageData.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AckMessageData) Descriptor() ([]byte, []int) {
|
2023-07-15 12:49:51 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{3}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-06-30 13:26:46 +00:00
|
|
|
func (x *AckMessageData) GetRequestID() string {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
2023-06-30 13:26:46 +00:00
|
|
|
return x.RequestID
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *AckMessageData) GetDevice() *Device {
|
|
|
|
if x != nil {
|
|
|
|
return x.Device
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ImageMetaData struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-06-30 13:26:46 +00:00
|
|
|
ImageID string `protobuf:"bytes,1,opt,name=imageID,proto3" json:"imageID,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
Encrypted bool `protobuf:"varint,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ImageMetaData) Reset() {
|
|
|
|
*x = ImageMetaData{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[4]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ImageMetaData) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ImageMetaData) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ImageMetaData) ProtoReflect() protoreflect.Message {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[4]
|
2023-06-30 09:54:08 +00:00
|
|
|
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 ImageMetaData.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ImageMetaData) Descriptor() ([]byte, []int) {
|
2023-07-15 12:49:51 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{4}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-06-30 13:26:46 +00:00
|
|
|
func (x *ImageMetaData) GetImageID() string {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
2023-06-30 13:26:46 +00:00
|
|
|
return x.ImageID
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ImageMetaData) GetEncrypted() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Encrypted
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type UploadImagePayload struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2023-06-30 12:49:32 +00:00
|
|
|
MetaData *ImageMetaData `protobuf:"bytes,1,opt,name=metaData,proto3" json:"metaData,omitempty"`
|
|
|
|
AuthData *AuthMessage `protobuf:"bytes,2,opt,name=authData,proto3" json:"authData,omitempty"`
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UploadImagePayload) Reset() {
|
|
|
|
*x = UploadImagePayload{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[5]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UploadImagePayload) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UploadImagePayload) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *UploadImagePayload) ProtoReflect() protoreflect.Message {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[5]
|
2023-06-30 09:54:08 +00:00
|
|
|
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 UploadImagePayload.ProtoReflect.Descriptor instead.
|
|
|
|
func (*UploadImagePayload) Descriptor() ([]byte, []int) {
|
2023-07-15 12:49:51 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{5}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *UploadImagePayload) GetMetaData() *ImageMetaData {
|
|
|
|
if x != nil {
|
|
|
|
return x.MetaData
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-06-30 12:49:32 +00:00
|
|
|
func (x *UploadImagePayload) GetAuthData() *AuthMessage {
|
2023-06-30 09:54:08 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.AuthData
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BugleBackendService struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Data *BugleCode `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BugleBackendService) Reset() {
|
|
|
|
*x = BugleBackendService{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[6]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BugleBackendService) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*BugleBackendService) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BugleBackendService) ProtoReflect() protoreflect.Message {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[6]
|
2023-06-30 09:54:08 +00:00
|
|
|
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 BugleBackendService.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BugleBackendService) Descriptor() ([]byte, []int) {
|
2023-07-15 12:49:51 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{6}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BugleBackendService) GetData() *BugleCode {
|
|
|
|
if x != nil {
|
|
|
|
return x.Data
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BugleCode struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Type int64 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BugleCode) Reset() {
|
|
|
|
*x = BugleCode{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[7]
|
2023-06-30 09:54:08 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BugleCode) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*BugleCode) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *BugleCode) ProtoReflect() protoreflect.Message {
|
2023-07-15 12:49:51 +00:00
|
|
|
mi := &file_client_proto_msgTypes[7]
|
2023-06-30 09:54:08 +00:00
|
|
|
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 BugleCode.ProtoReflect.Descriptor instead.
|
|
|
|
func (*BugleCode) Descriptor() ([]byte, []int) {
|
2023-07-15 12:49:51 +00:00
|
|
|
return file_client_proto_rawDescGZIP(), []int{7}
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *BugleCode) GetType() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
var File_client_proto protoreflect.FileDescriptor
|
|
|
|
|
2023-07-16 23:06:35 +00:00
|
|
|
//go:embed client.pb.raw
|
|
|
|
var file_client_proto_rawDesc []byte
|
2023-06-30 09:54:08 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
file_client_proto_rawDescOnce sync.Once
|
|
|
|
file_client_proto_rawDescData = file_client_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_client_proto_rawDescGZIP() []byte {
|
|
|
|
file_client_proto_rawDescOnce.Do(func() {
|
|
|
|
file_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_client_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_client_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
var file_client_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
2023-07-15 12:49:51 +00:00
|
|
|
var file_client_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
2023-06-30 09:54:08 +00:00
|
|
|
var file_client_proto_goTypes = []interface{}{
|
2023-07-09 11:16:52 +00:00
|
|
|
(BugleMessageType)(0), // 0: client.BugleMessageType
|
|
|
|
(BrowserTypes)(0), // 1: client.BrowserTypes
|
|
|
|
(*NotifyDittoActivityPayload)(nil), // 2: client.NotifyDittoActivityPayload
|
2023-07-15 11:38:24 +00:00
|
|
|
(*MessageReadPayload)(nil), // 3: client.MessageReadPayload
|
2023-07-15 12:49:51 +00:00
|
|
|
(*AckMessagePayload)(nil), // 4: client.AckMessagePayload
|
|
|
|
(*AckMessageData)(nil), // 5: client.AckMessageData
|
|
|
|
(*ImageMetaData)(nil), // 6: client.ImageMetaData
|
|
|
|
(*UploadImagePayload)(nil), // 7: client.UploadImagePayload
|
|
|
|
(*BugleBackendService)(nil), // 8: client.BugleBackendService
|
|
|
|
(*BugleCode)(nil), // 9: client.BugleCode
|
|
|
|
(*AuthMessage)(nil), // 10: messages.AuthMessage
|
|
|
|
(*EmptyArr)(nil), // 11: messages.EmptyArr
|
|
|
|
(*Device)(nil), // 12: messages.Device
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
var file_client_proto_depIdxs = []int32{
|
2023-07-15 12:49:51 +00:00
|
|
|
10, // 0: client.AckMessagePayload.authData:type_name -> messages.AuthMessage
|
|
|
|
11, // 1: client.AckMessagePayload.emptyArr:type_name -> messages.EmptyArr
|
|
|
|
5, // 2: client.AckMessagePayload.acks:type_name -> client.AckMessageData
|
|
|
|
12, // 3: client.AckMessageData.device:type_name -> messages.Device
|
|
|
|
6, // 4: client.UploadImagePayload.metaData:type_name -> client.ImageMetaData
|
|
|
|
10, // 5: client.UploadImagePayload.authData:type_name -> messages.AuthMessage
|
|
|
|
9, // 6: client.BugleBackendService.data:type_name -> client.BugleCode
|
|
|
|
7, // [7:7] is the sub-list for method output_type
|
|
|
|
7, // [7:7] is the sub-list for method input_type
|
|
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
|
|
0, // [0:7] is the sub-list for field type_name
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_client_proto_init() }
|
|
|
|
func file_client_proto_init() {
|
|
|
|
if File_client_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
file_messages_proto_init()
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-09 11:16:52 +00:00
|
|
|
switch v := v.(*NotifyDittoActivityPayload); i {
|
2023-06-30 09:54:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-15 11:38:24 +00:00
|
|
|
switch v := v.(*MessageReadPayload); i {
|
2023-06-30 09:54:08 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_client_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-15 11:38:24 +00:00
|
|
|
switch v := v.(*AckMessagePayload); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-15 12:49:51 +00:00
|
|
|
file_client_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-15 11:38:24 +00:00
|
|
|
switch v := v.(*AckMessageData); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-15 12:49:51 +00:00
|
|
|
file_client_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-15 11:38:24 +00:00
|
|
|
switch v := v.(*ImageMetaData); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-15 12:49:51 +00:00
|
|
|
file_client_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-15 11:38:24 +00:00
|
|
|
switch v := v.(*UploadImagePayload); i {
|
2023-07-09 11:16:52 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-15 12:49:51 +00:00
|
|
|
file_client_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2023-07-15 11:38:24 +00:00
|
|
|
switch v := v.(*BugleBackendService); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2023-07-15 12:49:51 +00:00
|
|
|
file_client_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2023-06-30 09:54:08 +00:00
|
|
|
switch v := v.(*BugleCode); 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_client_proto_rawDesc,
|
2023-07-09 11:16:52 +00:00
|
|
|
NumEnums: 2,
|
2023-07-15 12:49:51 +00:00
|
|
|
NumMessages: 8,
|
2023-06-30 09:54:08 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_client_proto_goTypes,
|
|
|
|
DependencyIndexes: file_client_proto_depIdxs,
|
2023-07-09 11:16:52 +00:00
|
|
|
EnumInfos: file_client_proto_enumTypes,
|
2023-06-30 09:54:08 +00:00
|
|
|
MessageInfos: file_client_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_client_proto = out.File
|
|
|
|
file_client_proto_rawDesc = nil
|
|
|
|
file_client_proto_goTypes = nil
|
|
|
|
file_client_proto_depIdxs = nil
|
|
|
|
}
|