You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
538 lines
16 KiB
538 lines
16 KiB
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) |
|
// Input file: ../client/protocol/avdl/chat1/gregor.avdl |
|
|
|
package chat1 |
|
|
|
import ( |
|
gregor1 "samhofi.us/x/keybase/v2/types/gregor1" |
|
keybase1 "samhofi.us/x/keybase/v2/types/keybase1" |
|
) |
|
|
|
type GenericPayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o GenericPayload) DeepCopy() GenericPayload { |
|
return GenericPayload{ |
|
Action: o.Action, |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
ConvID: o.ConvID.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type NewConversationPayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o NewConversationPayload) DeepCopy() NewConversationPayload { |
|
return NewConversationPayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type NewMessagePayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
Message MessageBoxed `codec:"message" json:"message"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
UntrustedTeamRole keybase1.TeamRole `codec:"untrustedTeamRole" json:"untrustedTeamRole"` |
|
MaxMsgs []MessageSummary `codec:"maxMsgs" json:"maxMsgs"` |
|
} |
|
|
|
func (o NewMessagePayload) DeepCopy() NewMessagePayload { |
|
return NewMessagePayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
Message: o.Message.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
UntrustedTeamRole: o.UntrustedTeamRole.DeepCopy(), |
|
MaxMsgs: (func(x []MessageSummary) []MessageSummary { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]MessageSummary, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.MaxMsgs), |
|
} |
|
} |
|
|
|
type ReadMessagePayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
MsgID MessageID `codec:"msgID" json:"msgID"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o ReadMessagePayload) DeepCopy() ReadMessagePayload { |
|
return ReadMessagePayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
MsgID: o.MsgID.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type SetStatusPayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
Status ConversationStatus `codec:"status" json:"status"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o SetStatusPayload) DeepCopy() SetStatusPayload { |
|
return SetStatusPayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
Status: o.Status.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type TeamTypePayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
TeamType TeamType `codec:"teamType" json:"teamType"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o TeamTypePayload) DeepCopy() TeamTypePayload { |
|
return TeamTypePayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
TeamType: o.TeamType.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type SetAppNotificationSettingsPayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
Settings ConversationNotificationInfo `codec:"settings" json:"settings"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o SetAppNotificationSettingsPayload) DeepCopy() SetAppNotificationSettingsPayload { |
|
return SetAppNotificationSettingsPayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
Settings: o.Settings.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type ExpungePayload struct { |
|
Action string `codec:"Action" json:"Action"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
Expunge Expunge `codec:"expunge" json:"expunge"` |
|
MaxMsgs []MessageSummary `codec:"maxMsgs" json:"maxMsgs"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
} |
|
|
|
func (o ExpungePayload) DeepCopy() ExpungePayload { |
|
return ExpungePayload{ |
|
Action: o.Action, |
|
ConvID: o.ConvID.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
Expunge: o.Expunge.DeepCopy(), |
|
MaxMsgs: (func(x []MessageSummary) []MessageSummary { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]MessageSummary, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.MaxMsgs), |
|
TopicType: o.TopicType.DeepCopy(), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
} |
|
} |
|
|
|
type UnreadUpdate struct { |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
UnreadMessages int `codec:"unreadMessages" json:"unreadMessages"` |
|
UnreadNotifyingMessages map[keybase1.DeviceType]int `codec:"unreadNotifyingMessages" json:"unreadNotifyingMessages"` |
|
CompatUnreadMessages int `codec:"UnreadMessages" json:"UnreadMessages"` |
|
Diff bool `codec:"diff" json:"diff"` |
|
} |
|
|
|
func (o UnreadUpdate) DeepCopy() UnreadUpdate { |
|
return UnreadUpdate{ |
|
ConvID: o.ConvID.DeepCopy(), |
|
UnreadMessages: o.UnreadMessages, |
|
UnreadNotifyingMessages: (func(x map[keybase1.DeviceType]int) map[keybase1.DeviceType]int { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make(map[keybase1.DeviceType]int, len(x)) |
|
for k, v := range x { |
|
kCopy := k.DeepCopy() |
|
vCopy := v |
|
ret[kCopy] = vCopy |
|
} |
|
return ret |
|
})(o.UnreadNotifyingMessages), |
|
CompatUnreadMessages: o.CompatUnreadMessages, |
|
Diff: o.Diff, |
|
} |
|
} |
|
|
|
type TLFFinalizeUpdate struct { |
|
FinalizeInfo ConversationFinalizeInfo `codec:"finalizeInfo" json:"finalizeInfo"` |
|
ConvIDs []ConversationID `codec:"convIDs" json:"convIDs"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
} |
|
|
|
func (o TLFFinalizeUpdate) DeepCopy() TLFFinalizeUpdate { |
|
return TLFFinalizeUpdate{ |
|
FinalizeInfo: o.FinalizeInfo.DeepCopy(), |
|
ConvIDs: (func(x []ConversationID) []ConversationID { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationID, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.ConvIDs), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
} |
|
} |
|
|
|
type TLFResolveUpdate struct { |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
} |
|
|
|
func (o TLFResolveUpdate) DeepCopy() TLFResolveUpdate { |
|
return TLFResolveUpdate{ |
|
ConvID: o.ConvID.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
} |
|
} |
|
|
|
type RemoteUserTypingUpdate struct { |
|
Uid gregor1.UID `codec:"uid" json:"uid"` |
|
DeviceID gregor1.DeviceID `codec:"deviceID" json:"deviceID"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
Typing bool `codec:"typing" json:"typing"` |
|
TeamType TeamType `codec:"t" json:"teamType"` |
|
} |
|
|
|
func (o RemoteUserTypingUpdate) DeepCopy() RemoteUserTypingUpdate { |
|
return RemoteUserTypingUpdate{ |
|
Uid: o.Uid.DeepCopy(), |
|
DeviceID: o.DeviceID.DeepCopy(), |
|
ConvID: o.ConvID.DeepCopy(), |
|
Typing: o.Typing, |
|
TeamType: o.TeamType.DeepCopy(), |
|
} |
|
} |
|
|
|
type TeamMemberRoleUpdate struct { |
|
TlfID TLFID `codec:"tlfID" json:"tlfID"` |
|
Role keybase1.TeamRole `codec:"role" json:"role"` |
|
} |
|
|
|
func (o TeamMemberRoleUpdate) DeepCopy() TeamMemberRoleUpdate { |
|
return TeamMemberRoleUpdate{ |
|
TlfID: o.TlfID.DeepCopy(), |
|
Role: o.Role.DeepCopy(), |
|
} |
|
} |
|
|
|
type UpdateConversationMembership struct { |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TeamMemberRoleUpdate *TeamMemberRoleUpdate `codec:"teamMemberRoleUpdate,omitempty" json:"teamMemberRoleUpdate,omitempty"` |
|
Joined []ConversationMember `codec:"joined" json:"joined"` |
|
Removed []ConversationMember `codec:"removed" json:"removed"` |
|
Reset []ConversationMember `codec:"reset" json:"reset"` |
|
Previewed []ConversationID `codec:"previewed" json:"previewed"` |
|
UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` |
|
UnreadUpdates []UnreadUpdate `codec:"unreadUpdates" json:"unreadUpdates"` |
|
} |
|
|
|
func (o UpdateConversationMembership) DeepCopy() UpdateConversationMembership { |
|
return UpdateConversationMembership{ |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TeamMemberRoleUpdate: (func(x *TeamMemberRoleUpdate) *TeamMemberRoleUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.TeamMemberRoleUpdate), |
|
Joined: (func(x []ConversationMember) []ConversationMember { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationMember, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.Joined), |
|
Removed: (func(x []ConversationMember) []ConversationMember { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationMember, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.Removed), |
|
Reset: (func(x []ConversationMember) []ConversationMember { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationMember, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.Reset), |
|
Previewed: (func(x []ConversationID) []ConversationID { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationID, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.Previewed), |
|
UnreadUpdate: (func(x *UnreadUpdate) *UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.UnreadUpdate), |
|
UnreadUpdates: (func(x []UnreadUpdate) []UnreadUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]UnreadUpdate, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.UnreadUpdates), |
|
} |
|
} |
|
|
|
type ConversationUpdate struct { |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
Existence ConversationExistence `codec:"existence" json:"existence"` |
|
} |
|
|
|
func (o ConversationUpdate) DeepCopy() ConversationUpdate { |
|
return ConversationUpdate{ |
|
ConvID: o.ConvID.DeepCopy(), |
|
Existence: o.Existence.DeepCopy(), |
|
} |
|
} |
|
|
|
type UpdateConversations struct { |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
ConvUpdates []ConversationUpdate `codec:"convUpdates" json:"convUpdates"` |
|
} |
|
|
|
func (o UpdateConversations) DeepCopy() UpdateConversations { |
|
return UpdateConversations{ |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
ConvUpdates: (func(x []ConversationUpdate) []ConversationUpdate { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationUpdate, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.ConvUpdates), |
|
} |
|
} |
|
|
|
type SetConvRetentionUpdate struct { |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
Policy RetentionPolicy `codec:"policy" json:"policy"` |
|
} |
|
|
|
func (o SetConvRetentionUpdate) DeepCopy() SetConvRetentionUpdate { |
|
return SetConvRetentionUpdate{ |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
ConvID: o.ConvID.DeepCopy(), |
|
Policy: o.Policy.DeepCopy(), |
|
} |
|
} |
|
|
|
type SetTeamRetentionUpdate struct { |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TeamID keybase1.TeamID `codec:"teamID" json:"teamID"` |
|
Policy RetentionPolicy `codec:"policy" json:"policy"` |
|
} |
|
|
|
func (o SetTeamRetentionUpdate) DeepCopy() SetTeamRetentionUpdate { |
|
return SetTeamRetentionUpdate{ |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TeamID: o.TeamID.DeepCopy(), |
|
Policy: o.Policy.DeepCopy(), |
|
} |
|
} |
|
|
|
type SetConvSettingsUpdate struct { |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
ConvSettings *ConversationSettings `codec:"convSettings,omitempty" json:"convSettings,omitempty"` |
|
} |
|
|
|
func (o SetConvSettingsUpdate) DeepCopy() SetConvSettingsUpdate { |
|
return SetConvSettingsUpdate{ |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
ConvID: o.ConvID.DeepCopy(), |
|
ConvSettings: (func(x *ConversationSettings) *ConversationSettings { |
|
if x == nil { |
|
return nil |
|
} |
|
tmp := (*x).DeepCopy() |
|
return &tmp |
|
})(o.ConvSettings), |
|
} |
|
} |
|
|
|
type KBFSImpteamUpgradeUpdate struct { |
|
ConvID ConversationID `codec:"convID" json:"convID"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
TopicType TopicType `codec:"topicType" json:"topicType"` |
|
} |
|
|
|
func (o KBFSImpteamUpgradeUpdate) DeepCopy() KBFSImpteamUpgradeUpdate { |
|
return KBFSImpteamUpgradeUpdate{ |
|
ConvID: o.ConvID.DeepCopy(), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
TopicType: o.TopicType.DeepCopy(), |
|
} |
|
} |
|
|
|
type SubteamRenameUpdate struct { |
|
ConvIDs []ConversationID `codec:"convIDs" json:"convIDs"` |
|
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` |
|
} |
|
|
|
func (o SubteamRenameUpdate) DeepCopy() SubteamRenameUpdate { |
|
return SubteamRenameUpdate{ |
|
ConvIDs: (func(x []ConversationID) []ConversationID { |
|
if x == nil { |
|
return nil |
|
} |
|
ret := make([]ConversationID, len(x)) |
|
for i, v := range x { |
|
vCopy := v.DeepCopy() |
|
ret[i] = vCopy |
|
} |
|
return ret |
|
})(o.ConvIDs), |
|
InboxVers: o.InboxVers.DeepCopy(), |
|
} |
|
}
|
|
|