2018-03-09 20:44:13 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: group_message.proto
|
|
|
|
|
|
|
|
package protocol
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
import Protocol_Data_Control "github.com/s-rah/go-ricochet/wire/control"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
type CwtchServerPacket struct {
|
|
|
|
GroupMessage *GroupMessage `protobuf:"bytes,1,opt,name=group_message,json=groupMessage" json:"group_message,omitempty"`
|
|
|
|
FetchMessage *FetchMessage `protobuf:"bytes,2,opt,name=fetch_message,json=fetchMessage" json:"fetch_message,omitempty"`
|
|
|
|
GroupMessages []*GroupMessage `protobuf:"bytes,3,rep,name=group_messages,json=groupMessages" json:"group_messages,omitempty"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
}
|
|
|
|
|
2018-03-09 21:02:42 +00:00
|
|
|
func (m *CwtchServerPacket) Reset() { *m = CwtchServerPacket{} }
|
|
|
|
func (m *CwtchServerPacket) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CwtchServerPacket) ProtoMessage() {}
|
2018-03-09 20:44:13 +00:00
|
|
|
|
|
|
|
func (m *CwtchServerPacket) GetGroupMessage() *GroupMessage {
|
|
|
|
if m != nil {
|
|
|
|
return m.GroupMessage
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CwtchServerPacket) GetFetchMessage() *FetchMessage {
|
|
|
|
if m != nil {
|
|
|
|
return m.FetchMessage
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CwtchServerPacket) GetGroupMessages() []*GroupMessage {
|
|
|
|
if m != nil {
|
|
|
|
return m.GroupMessages
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type FetchMessage struct {
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
}
|
|
|
|
|
2018-03-09 21:02:42 +00:00
|
|
|
func (m *FetchMessage) Reset() { *m = FetchMessage{} }
|
|
|
|
func (m *FetchMessage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FetchMessage) ProtoMessage() {}
|
2018-03-09 20:44:13 +00:00
|
|
|
|
|
|
|
type GroupMessage struct {
|
|
|
|
Ciphertext []byte `protobuf:"bytes,1,req,name=ciphertext" json:"ciphertext,omitempty"`
|
|
|
|
Spamguard []byte `protobuf:"bytes,2,req,name=spamguard" json:"spamguard,omitempty"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
}
|
|
|
|
|
2018-03-09 21:02:42 +00:00
|
|
|
func (m *GroupMessage) Reset() { *m = GroupMessage{} }
|
|
|
|
func (m *GroupMessage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GroupMessage) ProtoMessage() {}
|
2018-03-09 20:44:13 +00:00
|
|
|
|
|
|
|
func (m *GroupMessage) GetCiphertext() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ciphertext
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GroupMessage) GetSpamguard() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Spamguard
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecryptedGroupMessage is *never* sent in the clear on the wire
|
|
|
|
// and is only ever sent when encrypted in the ciphertext parameter of
|
|
|
|
// GroupMessage
|
|
|
|
type DecryptedGroupMessage struct {
|
|
|
|
Onion *string `protobuf:"bytes,1,req,name=onion" json:"onion,omitempty"`
|
|
|
|
Text *string `protobuf:"bytes,2,req,name=text" json:"text,omitempty"`
|
|
|
|
Signature []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
}
|
|
|
|
|
2018-03-09 21:02:42 +00:00
|
|
|
func (m *DecryptedGroupMessage) Reset() { *m = DecryptedGroupMessage{} }
|
|
|
|
func (m *DecryptedGroupMessage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DecryptedGroupMessage) ProtoMessage() {}
|
2018-03-09 20:44:13 +00:00
|
|
|
|
|
|
|
func (m *DecryptedGroupMessage) GetOnion() string {
|
|
|
|
if m != nil && m.Onion != nil {
|
|
|
|
return *m.Onion
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DecryptedGroupMessage) GetText() string {
|
|
|
|
if m != nil && m.Text != nil {
|
|
|
|
return *m.Text
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DecryptedGroupMessage) GetSignature() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Signature
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var E_ServerNonce = &proto.ExtensionDesc{
|
|
|
|
ExtendedType: (*Protocol_Data_Control.ChannelResult)(nil),
|
|
|
|
ExtensionType: ([]byte)(nil),
|
|
|
|
Field: 8200,
|
|
|
|
Name: "im.cwtch.server_nonce",
|
|
|
|
Tag: "bytes,8200,opt,name=server_nonce",
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterExtension(E_ServerNonce)
|
|
|
|
}
|