protobuf

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2020 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationMetadataMessage_Type_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "CHAT_MESSAGE",
	2:  "CONTACT_UPDATE",
	3:  "MEMBERSHIP_UPDATE_MESSAGE",
	4:  "PAIR_INSTALLATION",
	5:  "SYNC_INSTALLATION",
	6:  "REQUEST_ADDRESS_FOR_TRANSACTION",
	7:  "ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION",
	8:  "DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION",
	9:  "REQUEST_TRANSACTION",
	10: "SEND_TRANSACTION",
	11: "DECLINE_REQUEST_TRANSACTION",
	12: "SYNC_INSTALLATION_CONTACT",
	13: "SYNC_INSTALLATION_ACCOUNT",
	14: "SYNC_INSTALLATION_PUBLIC_CHAT",
}
View Source
var ApplicationMetadataMessage_Type_value = map[string]int32{
	"UNKNOWN":                                 0,
	"CHAT_MESSAGE":                            1,
	"CONTACT_UPDATE":                          2,
	"MEMBERSHIP_UPDATE_MESSAGE":               3,
	"PAIR_INSTALLATION":                       4,
	"SYNC_INSTALLATION":                       5,
	"REQUEST_ADDRESS_FOR_TRANSACTION":         6,
	"ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION":  7,
	"DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION": 8,
	"REQUEST_TRANSACTION":                     9,
	"SEND_TRANSACTION":                        10,
	"DECLINE_REQUEST_TRANSACTION":             11,
	"SYNC_INSTALLATION_CONTACT":               12,
	"SYNC_INSTALLATION_ACCOUNT":               13,
	"SYNC_INSTALLATION_PUBLIC_CHAT":           14,
}
View Source
var ChatMessage_ContentType_name = map[int32]string{
	0: "UNKNOWN_CONTENT_TYPE",
	1: "TEXT_PLAIN",
	2: "STICKER",
	3: "STATUS",
	4: "EMOJI",
	5: "TRANSACTION_COMMAND",
}
View Source
var ChatMessage_ContentType_value = map[string]int32{
	"UNKNOWN_CONTENT_TYPE": 0,
	"TEXT_PLAIN":           1,
	"STICKER":              2,
	"STATUS":               3,
	"EMOJI":                4,
	"TRANSACTION_COMMAND":  5,
}
View Source
var ChatMessage_MessageType_name = map[int32]string{
	0: "UNKNOWN_MESSAGE_TYPE",
	1: "ONE_TO_ONE",
	2: "PUBLIC_GROUP",
	3: "PRIVATE_GROUP",
	4: "SYSTEM_MESSAGE_PRIVATE_GROUP",
}
View Source
var ChatMessage_MessageType_value = map[string]int32{
	"UNKNOWN_MESSAGE_TYPE":         0,
	"ONE_TO_ONE":                   1,
	"PUBLIC_GROUP":                 2,
	"PRIVATE_GROUP":                3,
	"SYSTEM_MESSAGE_PRIVATE_GROUP": 4,
}
View Source
var MembershipUpdateEvent_EventType_name = map[int32]string{
	0: "UNKNOWN",
	1: "CHAT_CREATED",
	2: "NAME_CHANGED",
	3: "MEMBERS_ADDED",
	4: "MEMBER_JOINED",
	5: "MEMBER_REMOVED",
	6: "ADMINS_ADDED",
	7: "ADMIN_REMOVED",
}
View Source
var MembershipUpdateEvent_EventType_value = map[string]int32{
	"UNKNOWN":        0,
	"CHAT_CREATED":   1,
	"NAME_CHANGED":   2,
	"MEMBERS_ADDED":  3,
	"MEMBER_JOINED":  4,
	"MEMBER_REMOVED": 5,
	"ADMINS_ADDED":   6,
	"ADMIN_REMOVED":  7,
}

Functions

This section is empty.

Types

type AcceptRequestAddressForTransaction added in v1.1.1

type AcceptRequestAddressForTransaction struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Address              string   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AcceptRequestAddressForTransaction) Descriptor added in v1.1.1

func (*AcceptRequestAddressForTransaction) Descriptor() ([]byte, []int)

func (*AcceptRequestAddressForTransaction) GetAddress added in v1.1.1

func (*AcceptRequestAddressForTransaction) GetClock added in v1.1.1

func (*AcceptRequestAddressForTransaction) GetId added in v1.1.1

func (*AcceptRequestAddressForTransaction) ProtoMessage added in v1.1.1

func (*AcceptRequestAddressForTransaction) ProtoMessage()

func (*AcceptRequestAddressForTransaction) Reset added in v1.1.1

func (*AcceptRequestAddressForTransaction) String added in v1.1.1

func (*AcceptRequestAddressForTransaction) XXX_DiscardUnknown added in v1.1.1

func (m *AcceptRequestAddressForTransaction) XXX_DiscardUnknown()

func (*AcceptRequestAddressForTransaction) XXX_Marshal added in v1.1.1

func (m *AcceptRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AcceptRequestAddressForTransaction) XXX_Merge added in v1.1.1

func (*AcceptRequestAddressForTransaction) XXX_Size added in v1.1.1

func (*AcceptRequestAddressForTransaction) XXX_Unmarshal added in v1.1.1

func (m *AcceptRequestAddressForTransaction) XXX_Unmarshal(b []byte) error

type ApplicationMetadataMessage

type ApplicationMetadataMessage struct {
	// Signature of the payload field
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// This is the encoded protobuf of the application level message, i.e ChatMessage
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// The type of protobuf message sent
	Type                 ApplicationMetadataMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.ApplicationMetadataMessage_Type" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func Unmarshal

func Unmarshal(payload []byte) (*ApplicationMetadataMessage, error)

func (*ApplicationMetadataMessage) Descriptor

func (*ApplicationMetadataMessage) Descriptor() ([]byte, []int)

func (*ApplicationMetadataMessage) GetPayload

func (m *ApplicationMetadataMessage) GetPayload() []byte

func (*ApplicationMetadataMessage) GetSignature

func (m *ApplicationMetadataMessage) GetSignature() []byte

func (*ApplicationMetadataMessage) GetType added in v1.0.2

func (*ApplicationMetadataMessage) ProtoMessage

func (*ApplicationMetadataMessage) ProtoMessage()

func (*ApplicationMetadataMessage) RecoverKey

func (m *ApplicationMetadataMessage) RecoverKey() (*ecdsa.PublicKey, error)

func (*ApplicationMetadataMessage) Reset

func (m *ApplicationMetadataMessage) Reset()

func (*ApplicationMetadataMessage) String

func (m *ApplicationMetadataMessage) String() string

func (*ApplicationMetadataMessage) XXX_DiscardUnknown

func (m *ApplicationMetadataMessage) XXX_DiscardUnknown()

func (*ApplicationMetadataMessage) XXX_Marshal

func (m *ApplicationMetadataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplicationMetadataMessage) XXX_Merge

func (m *ApplicationMetadataMessage) XXX_Merge(src proto.Message)

func (*ApplicationMetadataMessage) XXX_Size

func (m *ApplicationMetadataMessage) XXX_Size() int

func (*ApplicationMetadataMessage) XXX_Unmarshal

func (m *ApplicationMetadataMessage) XXX_Unmarshal(b []byte) error

type ApplicationMetadataMessage_Type added in v1.0.2

type ApplicationMetadataMessage_Type int32
const (
	ApplicationMetadataMessage_UNKNOWN                                 ApplicationMetadataMessage_Type = 0
	ApplicationMetadataMessage_CHAT_MESSAGE                            ApplicationMetadataMessage_Type = 1
	ApplicationMetadataMessage_CONTACT_UPDATE                          ApplicationMetadataMessage_Type = 2
	ApplicationMetadataMessage_MEMBERSHIP_UPDATE_MESSAGE               ApplicationMetadataMessage_Type = 3
	ApplicationMetadataMessage_PAIR_INSTALLATION                       ApplicationMetadataMessage_Type = 4
	ApplicationMetadataMessage_SYNC_INSTALLATION                       ApplicationMetadataMessage_Type = 5
	ApplicationMetadataMessage_REQUEST_ADDRESS_FOR_TRANSACTION         ApplicationMetadataMessage_Type = 6
	ApplicationMetadataMessage_ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION  ApplicationMetadataMessage_Type = 7
	ApplicationMetadataMessage_DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION ApplicationMetadataMessage_Type = 8
	ApplicationMetadataMessage_REQUEST_TRANSACTION                     ApplicationMetadataMessage_Type = 9
	ApplicationMetadataMessage_SEND_TRANSACTION                        ApplicationMetadataMessage_Type = 10
	ApplicationMetadataMessage_DECLINE_REQUEST_TRANSACTION             ApplicationMetadataMessage_Type = 11
	ApplicationMetadataMessage_SYNC_INSTALLATION_CONTACT               ApplicationMetadataMessage_Type = 12
	ApplicationMetadataMessage_SYNC_INSTALLATION_ACCOUNT               ApplicationMetadataMessage_Type = 13
	ApplicationMetadataMessage_SYNC_INSTALLATION_PUBLIC_CHAT           ApplicationMetadataMessage_Type = 14
)

func (ApplicationMetadataMessage_Type) EnumDescriptor added in v1.0.2

func (ApplicationMetadataMessage_Type) EnumDescriptor() ([]byte, []int)

func (ApplicationMetadataMessage_Type) String added in v1.0.2

type ChatMessage

type ChatMessage struct {
	// Lamport timestamp of the chat message
	Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	// Unix timestamps in milliseconds, currently not used as we use whisper as more reliable, but here
	// so that we don't rely on it
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Text of the message
	Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	// Id of the message that we are replying to
	ResponseTo string `protobuf:"bytes,4,opt,name=response_to,json=responseTo,proto3" json:"response_to,omitempty"`
	// Ens name of the sender
	EnsName string `protobuf:"bytes,5,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
	// Chat id, this field is symmetric for public-chats and private group chats,
	// but asymmetric in case of one-to-ones, as the sender will use the chat-id
	// of the received, while the receiver will use the chat-id of the sender.
	// Probably should be the concatenation of sender-pk & receiver-pk in alphabetical order
	ChatId string `protobuf:"bytes,6,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// The type of message (public/one-to-one/private-group-chat)
	MessageType ChatMessage_MessageType `` /* 133-byte string literal not displayed */
	// The type of the content of the message
	ContentType ChatMessage_ContentType `` /* 133-byte string literal not displayed */
	// Types that are valid to be assigned to Payload:
	//	*ChatMessage_Sticker
	Payload              isChatMessage_Payload `protobuf_oneof:"payload"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ChatMessage) Descriptor

func (*ChatMessage) Descriptor() ([]byte, []int)

func (*ChatMessage) GetChatId

func (m *ChatMessage) GetChatId() string

func (*ChatMessage) GetClock

func (m *ChatMessage) GetClock() uint64

func (*ChatMessage) GetContentType

func (m *ChatMessage) GetContentType() ChatMessage_ContentType

func (*ChatMessage) GetEnsName

func (m *ChatMessage) GetEnsName() string

func (*ChatMessage) GetMessageType

func (m *ChatMessage) GetMessageType() ChatMessage_MessageType

func (*ChatMessage) GetPayload

func (m *ChatMessage) GetPayload() isChatMessage_Payload

func (*ChatMessage) GetResponseTo

func (m *ChatMessage) GetResponseTo() string

func (*ChatMessage) GetSticker

func (m *ChatMessage) GetSticker() *StickerMessage

func (*ChatMessage) GetText

func (m *ChatMessage) GetText() string

func (*ChatMessage) GetTimestamp

func (m *ChatMessage) GetTimestamp() uint64

func (*ChatMessage) ProtoMessage

func (*ChatMessage) ProtoMessage()

func (*ChatMessage) Reset

func (m *ChatMessage) Reset()

func (*ChatMessage) String

func (m *ChatMessage) String() string

func (*ChatMessage) XXX_DiscardUnknown

func (m *ChatMessage) XXX_DiscardUnknown()

func (*ChatMessage) XXX_Marshal

func (m *ChatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChatMessage) XXX_Merge

func (m *ChatMessage) XXX_Merge(src proto.Message)

func (*ChatMessage) XXX_OneofWrappers

func (*ChatMessage) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ChatMessage) XXX_Size

func (m *ChatMessage) XXX_Size() int

func (*ChatMessage) XXX_Unmarshal

func (m *ChatMessage) XXX_Unmarshal(b []byte) error

type ChatMessage_ContentType

type ChatMessage_ContentType int32
const (
	ChatMessage_UNKNOWN_CONTENT_TYPE ChatMessage_ContentType = 0
	ChatMessage_TEXT_PLAIN           ChatMessage_ContentType = 1
	ChatMessage_STICKER              ChatMessage_ContentType = 2
	ChatMessage_STATUS               ChatMessage_ContentType = 3
	ChatMessage_EMOJI                ChatMessage_ContentType = 4
	ChatMessage_TRANSACTION_COMMAND  ChatMessage_ContentType = 5
)

func (ChatMessage_ContentType) EnumDescriptor

func (ChatMessage_ContentType) EnumDescriptor() ([]byte, []int)

func (ChatMessage_ContentType) String

func (x ChatMessage_ContentType) String() string

type ChatMessage_MessageType

type ChatMessage_MessageType int32
const (
	ChatMessage_UNKNOWN_MESSAGE_TYPE ChatMessage_MessageType = 0
	ChatMessage_ONE_TO_ONE           ChatMessage_MessageType = 1
	ChatMessage_PUBLIC_GROUP         ChatMessage_MessageType = 2
	ChatMessage_PRIVATE_GROUP        ChatMessage_MessageType = 3
	// Only local
	ChatMessage_SYSTEM_MESSAGE_PRIVATE_GROUP ChatMessage_MessageType = 4
)

func (ChatMessage_MessageType) EnumDescriptor

func (ChatMessage_MessageType) EnumDescriptor() ([]byte, []int)

func (ChatMessage_MessageType) String

func (x ChatMessage_MessageType) String() string

type ChatMessage_Sticker

type ChatMessage_Sticker struct {
	Sticker *StickerMessage `protobuf:"bytes,9,opt,name=sticker,proto3,oneof"`
}

type ContactUpdate added in v1.1.1

type ContactUpdate struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	EnsName              string   `protobuf:"bytes,2,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
	ProfileImage         string   `protobuf:"bytes,3,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContactUpdate) Descriptor added in v1.1.1

func (*ContactUpdate) Descriptor() ([]byte, []int)

func (*ContactUpdate) GetClock added in v1.1.1

func (m *ContactUpdate) GetClock() uint64

func (*ContactUpdate) GetEnsName added in v1.1.1

func (m *ContactUpdate) GetEnsName() string

func (*ContactUpdate) GetProfileImage added in v1.1.1

func (m *ContactUpdate) GetProfileImage() string

func (*ContactUpdate) ProtoMessage added in v1.1.1

func (*ContactUpdate) ProtoMessage()

func (*ContactUpdate) Reset added in v1.1.1

func (m *ContactUpdate) Reset()

func (*ContactUpdate) String added in v1.1.1

func (m *ContactUpdate) String() string

func (*ContactUpdate) XXX_DiscardUnknown added in v1.1.1

func (m *ContactUpdate) XXX_DiscardUnknown()

func (*ContactUpdate) XXX_Marshal added in v1.1.1

func (m *ContactUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContactUpdate) XXX_Merge added in v1.1.1

func (m *ContactUpdate) XXX_Merge(src proto.Message)

func (*ContactUpdate) XXX_Size added in v1.1.1

func (m *ContactUpdate) XXX_Size() int

func (*ContactUpdate) XXX_Unmarshal added in v1.1.1

func (m *ContactUpdate) XXX_Unmarshal(b []byte) error

type DeclineRequestAddressForTransaction added in v1.1.1

type DeclineRequestAddressForTransaction struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeclineRequestAddressForTransaction) Descriptor added in v1.1.1

func (*DeclineRequestAddressForTransaction) Descriptor() ([]byte, []int)

func (*DeclineRequestAddressForTransaction) GetClock added in v1.1.1

func (*DeclineRequestAddressForTransaction) GetId added in v1.1.1

func (*DeclineRequestAddressForTransaction) ProtoMessage added in v1.1.1

func (*DeclineRequestAddressForTransaction) ProtoMessage()

func (*DeclineRequestAddressForTransaction) Reset added in v1.1.1

func (*DeclineRequestAddressForTransaction) String added in v1.1.1

func (*DeclineRequestAddressForTransaction) XXX_DiscardUnknown added in v1.1.1

func (m *DeclineRequestAddressForTransaction) XXX_DiscardUnknown()

func (*DeclineRequestAddressForTransaction) XXX_Marshal added in v1.1.1

func (m *DeclineRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeclineRequestAddressForTransaction) XXX_Merge added in v1.1.1

func (*DeclineRequestAddressForTransaction) XXX_Size added in v1.1.1

func (*DeclineRequestAddressForTransaction) XXX_Unmarshal added in v1.1.1

func (m *DeclineRequestAddressForTransaction) XXX_Unmarshal(b []byte) error

type DeclineRequestTransaction added in v1.1.1

type DeclineRequestTransaction struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeclineRequestTransaction) Descriptor added in v1.1.1

func (*DeclineRequestTransaction) Descriptor() ([]byte, []int)

func (*DeclineRequestTransaction) GetClock added in v1.1.1

func (m *DeclineRequestTransaction) GetClock() uint64

func (*DeclineRequestTransaction) GetId added in v1.1.1

func (m *DeclineRequestTransaction) GetId() string

func (*DeclineRequestTransaction) ProtoMessage added in v1.1.1

func (*DeclineRequestTransaction) ProtoMessage()

func (*DeclineRequestTransaction) Reset added in v1.1.1

func (m *DeclineRequestTransaction) Reset()

func (*DeclineRequestTransaction) String added in v1.1.1

func (m *DeclineRequestTransaction) String() string

func (*DeclineRequestTransaction) XXX_DiscardUnknown added in v1.1.1

func (m *DeclineRequestTransaction) XXX_DiscardUnknown()

func (*DeclineRequestTransaction) XXX_Marshal added in v1.1.1

func (m *DeclineRequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeclineRequestTransaction) XXX_Merge added in v1.1.1

func (m *DeclineRequestTransaction) XXX_Merge(src proto.Message)

func (*DeclineRequestTransaction) XXX_Size added in v1.1.1

func (m *DeclineRequestTransaction) XXX_Size() int

func (*DeclineRequestTransaction) XXX_Unmarshal added in v1.1.1

func (m *DeclineRequestTransaction) XXX_Unmarshal(b []byte) error

type MembershipUpdateEvent added in v1.0.2

type MembershipUpdateEvent struct {
	// Lamport timestamp of the event
	Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	// List of public keys of objects of the action
	Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// Name of the chat for the CHAT_CREATED/NAME_CHANGED event types
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the event
	Type                 MembershipUpdateEvent_EventType `protobuf:"varint,4,opt,name=type,proto3,enum=protobuf.MembershipUpdateEvent_EventType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func (*MembershipUpdateEvent) Descriptor added in v1.0.2

func (*MembershipUpdateEvent) Descriptor() ([]byte, []int)

func (*MembershipUpdateEvent) GetClock added in v1.0.2

func (m *MembershipUpdateEvent) GetClock() uint64

func (*MembershipUpdateEvent) GetMembers added in v1.0.2

func (m *MembershipUpdateEvent) GetMembers() []string

func (*MembershipUpdateEvent) GetName added in v1.0.2

func (m *MembershipUpdateEvent) GetName() string

func (*MembershipUpdateEvent) GetType added in v1.0.2

func (*MembershipUpdateEvent) ProtoMessage added in v1.0.2

func (*MembershipUpdateEvent) ProtoMessage()

func (*MembershipUpdateEvent) Reset added in v1.0.2

func (m *MembershipUpdateEvent) Reset()

func (*MembershipUpdateEvent) String added in v1.0.2

func (m *MembershipUpdateEvent) String() string

func (*MembershipUpdateEvent) XXX_DiscardUnknown added in v1.0.2

func (m *MembershipUpdateEvent) XXX_DiscardUnknown()

func (*MembershipUpdateEvent) XXX_Marshal added in v1.0.2

func (m *MembershipUpdateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MembershipUpdateEvent) XXX_Merge added in v1.0.2

func (m *MembershipUpdateEvent) XXX_Merge(src proto.Message)

func (*MembershipUpdateEvent) XXX_Size added in v1.0.2

func (m *MembershipUpdateEvent) XXX_Size() int

func (*MembershipUpdateEvent) XXX_Unmarshal added in v1.0.2

func (m *MembershipUpdateEvent) XXX_Unmarshal(b []byte) error

type MembershipUpdateEvent_EventType added in v1.0.2

type MembershipUpdateEvent_EventType int32
const (
	MembershipUpdateEvent_UNKNOWN        MembershipUpdateEvent_EventType = 0
	MembershipUpdateEvent_CHAT_CREATED   MembershipUpdateEvent_EventType = 1
	MembershipUpdateEvent_NAME_CHANGED   MembershipUpdateEvent_EventType = 2
	MembershipUpdateEvent_MEMBERS_ADDED  MembershipUpdateEvent_EventType = 3
	MembershipUpdateEvent_MEMBER_JOINED  MembershipUpdateEvent_EventType = 4
	MembershipUpdateEvent_MEMBER_REMOVED MembershipUpdateEvent_EventType = 5
	MembershipUpdateEvent_ADMINS_ADDED   MembershipUpdateEvent_EventType = 6
	MembershipUpdateEvent_ADMIN_REMOVED  MembershipUpdateEvent_EventType = 7
)

func (MembershipUpdateEvent_EventType) EnumDescriptor added in v1.0.2

func (MembershipUpdateEvent_EventType) EnumDescriptor() ([]byte, []int)

func (MembershipUpdateEvent_EventType) String added in v1.0.2

type MembershipUpdateMessage added in v1.0.2

type MembershipUpdateMessage struct {
	// The chat id of the private group chat
	ChatId string `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// A list of events for this group chat, first x bytes are the signature, then is a
	// protobuf encoded MembershipUpdateEvent
	Events [][]byte `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
	// An optional chat message
	Message              *ChatMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

MembershipUpdateMessage is a message used to propagate information about group membership changes. For more information, see https://github.com/status-im/specs/blob/master/status-group-chats-spec.md.

func (*MembershipUpdateMessage) Descriptor added in v1.0.2

func (*MembershipUpdateMessage) Descriptor() ([]byte, []int)

func (*MembershipUpdateMessage) GetChatId added in v1.0.2

func (m *MembershipUpdateMessage) GetChatId() string

func (*MembershipUpdateMessage) GetEvents added in v1.0.2

func (m *MembershipUpdateMessage) GetEvents() [][]byte

func (*MembershipUpdateMessage) GetMessage added in v1.0.2

func (m *MembershipUpdateMessage) GetMessage() *ChatMessage

func (*MembershipUpdateMessage) ProtoMessage added in v1.0.2

func (*MembershipUpdateMessage) ProtoMessage()

func (*MembershipUpdateMessage) Reset added in v1.0.2

func (m *MembershipUpdateMessage) Reset()

func (*MembershipUpdateMessage) String added in v1.0.2

func (m *MembershipUpdateMessage) String() string

func (*MembershipUpdateMessage) XXX_DiscardUnknown added in v1.0.2

func (m *MembershipUpdateMessage) XXX_DiscardUnknown()

func (*MembershipUpdateMessage) XXX_Marshal added in v1.0.2

func (m *MembershipUpdateMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MembershipUpdateMessage) XXX_Merge added in v1.0.2

func (m *MembershipUpdateMessage) XXX_Merge(src proto.Message)

func (*MembershipUpdateMessage) XXX_Size added in v1.0.2

func (m *MembershipUpdateMessage) XXX_Size() int

func (*MembershipUpdateMessage) XXX_Unmarshal added in v1.0.2

func (m *MembershipUpdateMessage) XXX_Unmarshal(b []byte) error

type PairInstallation added in v1.1.1

type PairInstallation struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	InstallationId       string   `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	DeviceType           string   `protobuf:"bytes,3,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PairInstallation) Descriptor added in v1.1.1

func (*PairInstallation) Descriptor() ([]byte, []int)

func (*PairInstallation) GetClock added in v1.1.1

func (m *PairInstallation) GetClock() uint64

func (*PairInstallation) GetDeviceType added in v1.1.1

func (m *PairInstallation) GetDeviceType() string

func (*PairInstallation) GetInstallationId added in v1.1.1

func (m *PairInstallation) GetInstallationId() string

func (*PairInstallation) GetName added in v1.1.1

func (m *PairInstallation) GetName() string

func (*PairInstallation) ProtoMessage added in v1.1.1

func (*PairInstallation) ProtoMessage()

func (*PairInstallation) Reset added in v1.1.1

func (m *PairInstallation) Reset()

func (*PairInstallation) String added in v1.1.1

func (m *PairInstallation) String() string

func (*PairInstallation) XXX_DiscardUnknown added in v1.1.1

func (m *PairInstallation) XXX_DiscardUnknown()

func (*PairInstallation) XXX_Marshal added in v1.1.1

func (m *PairInstallation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PairInstallation) XXX_Merge added in v1.1.1

func (m *PairInstallation) XXX_Merge(src proto.Message)

func (*PairInstallation) XXX_Size added in v1.1.1

func (m *PairInstallation) XXX_Size() int

func (*PairInstallation) XXX_Unmarshal added in v1.1.1

func (m *PairInstallation) XXX_Unmarshal(b []byte) error

type RequestAddressForTransaction added in v1.1.1

type RequestAddressForTransaction struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Contract             string   `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestAddressForTransaction) Descriptor added in v1.1.1

func (*RequestAddressForTransaction) Descriptor() ([]byte, []int)

func (*RequestAddressForTransaction) GetClock added in v1.1.1

func (m *RequestAddressForTransaction) GetClock() uint64

func (*RequestAddressForTransaction) GetContract added in v1.1.1

func (m *RequestAddressForTransaction) GetContract() string

func (*RequestAddressForTransaction) GetValue added in v1.1.1

func (m *RequestAddressForTransaction) GetValue() string

func (*RequestAddressForTransaction) ProtoMessage added in v1.1.1

func (*RequestAddressForTransaction) ProtoMessage()

func (*RequestAddressForTransaction) Reset added in v1.1.1

func (m *RequestAddressForTransaction) Reset()

func (*RequestAddressForTransaction) String added in v1.1.1

func (*RequestAddressForTransaction) XXX_DiscardUnknown added in v1.1.1

func (m *RequestAddressForTransaction) XXX_DiscardUnknown()

func (*RequestAddressForTransaction) XXX_Marshal added in v1.1.1

func (m *RequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestAddressForTransaction) XXX_Merge added in v1.1.1

func (m *RequestAddressForTransaction) XXX_Merge(src proto.Message)

func (*RequestAddressForTransaction) XXX_Size added in v1.1.1

func (m *RequestAddressForTransaction) XXX_Size() int

func (*RequestAddressForTransaction) XXX_Unmarshal added in v1.1.1

func (m *RequestAddressForTransaction) XXX_Unmarshal(b []byte) error

type RequestTransaction added in v1.1.1

type RequestTransaction struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Value                string   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Contract             string   `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RequestTransaction) Descriptor added in v1.1.1

func (*RequestTransaction) Descriptor() ([]byte, []int)

func (*RequestTransaction) GetAddress added in v1.1.1

func (m *RequestTransaction) GetAddress() string

func (*RequestTransaction) GetClock added in v1.1.1

func (m *RequestTransaction) GetClock() uint64

func (*RequestTransaction) GetContract added in v1.1.1

func (m *RequestTransaction) GetContract() string

func (*RequestTransaction) GetValue added in v1.1.1

func (m *RequestTransaction) GetValue() string

func (*RequestTransaction) ProtoMessage added in v1.1.1

func (*RequestTransaction) ProtoMessage()

func (*RequestTransaction) Reset added in v1.1.1

func (m *RequestTransaction) Reset()

func (*RequestTransaction) String added in v1.1.1

func (m *RequestTransaction) String() string

func (*RequestTransaction) XXX_DiscardUnknown added in v1.1.1

func (m *RequestTransaction) XXX_DiscardUnknown()

func (*RequestTransaction) XXX_Marshal added in v1.1.1

func (m *RequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestTransaction) XXX_Merge added in v1.1.1

func (m *RequestTransaction) XXX_Merge(src proto.Message)

func (*RequestTransaction) XXX_Size added in v1.1.1

func (m *RequestTransaction) XXX_Size() int

func (*RequestTransaction) XXX_Unmarshal added in v1.1.1

func (m *RequestTransaction) XXX_Unmarshal(b []byte) error

type SendTransaction added in v1.1.1

type SendTransaction struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	TransactionHash      string   `protobuf:"bytes,3,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	Signature            []byte   `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendTransaction) Descriptor added in v1.1.1

func (*SendTransaction) Descriptor() ([]byte, []int)

func (*SendTransaction) GetClock added in v1.1.1

func (m *SendTransaction) GetClock() uint64

func (*SendTransaction) GetId added in v1.1.1

func (m *SendTransaction) GetId() string

func (*SendTransaction) GetSignature added in v1.1.1

func (m *SendTransaction) GetSignature() []byte

func (*SendTransaction) GetTransactionHash added in v1.1.1

func (m *SendTransaction) GetTransactionHash() string

func (*SendTransaction) ProtoMessage added in v1.1.1

func (*SendTransaction) ProtoMessage()

func (*SendTransaction) Reset added in v1.1.1

func (m *SendTransaction) Reset()

func (*SendTransaction) String added in v1.1.1

func (m *SendTransaction) String() string

func (*SendTransaction) XXX_DiscardUnknown added in v1.1.1

func (m *SendTransaction) XXX_DiscardUnknown()

func (*SendTransaction) XXX_Marshal added in v1.1.1

func (m *SendTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendTransaction) XXX_Merge added in v1.1.1

func (m *SendTransaction) XXX_Merge(src proto.Message)

func (*SendTransaction) XXX_Size added in v1.1.1

func (m *SendTransaction) XXX_Size() int

func (*SendTransaction) XXX_Unmarshal added in v1.1.1

func (m *SendTransaction) XXX_Unmarshal(b []byte) error

type StickerMessage

type StickerMessage struct {
	Hash                 string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Pack                 int32    `protobuf:"varint,2,opt,name=pack,proto3" json:"pack,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StickerMessage) Descriptor

func (*StickerMessage) Descriptor() ([]byte, []int)

func (*StickerMessage) GetHash

func (m *StickerMessage) GetHash() string

func (*StickerMessage) GetPack

func (m *StickerMessage) GetPack() int32

func (*StickerMessage) ProtoMessage

func (*StickerMessage) ProtoMessage()

func (*StickerMessage) Reset

func (m *StickerMessage) Reset()

func (*StickerMessage) String

func (m *StickerMessage) String() string

func (*StickerMessage) XXX_DiscardUnknown

func (m *StickerMessage) XXX_DiscardUnknown()

func (*StickerMessage) XXX_Marshal

func (m *StickerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StickerMessage) XXX_Merge

func (m *StickerMessage) XXX_Merge(src proto.Message)

func (*StickerMessage) XXX_Size

func (m *StickerMessage) XXX_Size() int

func (*StickerMessage) XXX_Unmarshal

func (m *StickerMessage) XXX_Unmarshal(b []byte) error

type SyncInstallation added in v1.1.1

type SyncInstallation struct {
	Contacts             []*SyncInstallationContact    `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
	PublicChats          []*SyncInstallationPublicChat `protobuf:"bytes,2,rep,name=public_chats,json=publicChats,proto3" json:"public_chats,omitempty"`
	Account              *SyncInstallationAccount      `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func (*SyncInstallation) Descriptor added in v1.1.1

func (*SyncInstallation) Descriptor() ([]byte, []int)

func (*SyncInstallation) GetAccount added in v1.1.1

func (m *SyncInstallation) GetAccount() *SyncInstallationAccount

func (*SyncInstallation) GetContacts added in v1.1.1

func (m *SyncInstallation) GetContacts() []*SyncInstallationContact

func (*SyncInstallation) GetPublicChats added in v1.1.1

func (m *SyncInstallation) GetPublicChats() []*SyncInstallationPublicChat

func (*SyncInstallation) ProtoMessage added in v1.1.1

func (*SyncInstallation) ProtoMessage()

func (*SyncInstallation) Reset added in v1.1.1

func (m *SyncInstallation) Reset()

func (*SyncInstallation) String added in v1.1.1

func (m *SyncInstallation) String() string

func (*SyncInstallation) XXX_DiscardUnknown added in v1.1.1

func (m *SyncInstallation) XXX_DiscardUnknown()

func (*SyncInstallation) XXX_Marshal added in v1.1.1

func (m *SyncInstallation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncInstallation) XXX_Merge added in v1.1.1

func (m *SyncInstallation) XXX_Merge(src proto.Message)

func (*SyncInstallation) XXX_Size added in v1.1.1

func (m *SyncInstallation) XXX_Size() int

func (*SyncInstallation) XXX_Unmarshal added in v1.1.1

func (m *SyncInstallation) XXX_Unmarshal(b []byte) error

type SyncInstallationAccount added in v1.1.1

type SyncInstallationAccount struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	ProfileImage         string   `protobuf:"bytes,2,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"`
	LastUpdated          uint64   `protobuf:"varint,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SyncInstallationAccount) Descriptor added in v1.1.1

func (*SyncInstallationAccount) Descriptor() ([]byte, []int)

func (*SyncInstallationAccount) GetClock added in v1.1.1

func (m *SyncInstallationAccount) GetClock() uint64

func (*SyncInstallationAccount) GetLastUpdated added in v1.1.1

func (m *SyncInstallationAccount) GetLastUpdated() uint64

func (*SyncInstallationAccount) GetProfileImage added in v1.1.1

func (m *SyncInstallationAccount) GetProfileImage() string

func (*SyncInstallationAccount) ProtoMessage added in v1.1.1

func (*SyncInstallationAccount) ProtoMessage()

func (*SyncInstallationAccount) Reset added in v1.1.1

func (m *SyncInstallationAccount) Reset()

func (*SyncInstallationAccount) String added in v1.1.1

func (m *SyncInstallationAccount) String() string

func (*SyncInstallationAccount) XXX_DiscardUnknown added in v1.1.1

func (m *SyncInstallationAccount) XXX_DiscardUnknown()

func (*SyncInstallationAccount) XXX_Marshal added in v1.1.1

func (m *SyncInstallationAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncInstallationAccount) XXX_Merge added in v1.1.1

func (m *SyncInstallationAccount) XXX_Merge(src proto.Message)

func (*SyncInstallationAccount) XXX_Size added in v1.1.1

func (m *SyncInstallationAccount) XXX_Size() int

func (*SyncInstallationAccount) XXX_Unmarshal added in v1.1.1

func (m *SyncInstallationAccount) XXX_Unmarshal(b []byte) error

type SyncInstallationContact added in v1.1.1

type SyncInstallationContact struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	ProfileImage         string   `protobuf:"bytes,3,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,omitempty"`
	EnsName              string   `protobuf:"bytes,4,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"`
	LastUpdated          uint64   `protobuf:"varint,5,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	SystemTags           []string `protobuf:"bytes,6,rep,name=system_tags,json=systemTags,proto3" json:"system_tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SyncInstallationContact) Descriptor added in v1.1.1

func (*SyncInstallationContact) Descriptor() ([]byte, []int)

func (*SyncInstallationContact) GetClock added in v1.1.1

func (m *SyncInstallationContact) GetClock() uint64

func (*SyncInstallationContact) GetEnsName added in v1.1.1

func (m *SyncInstallationContact) GetEnsName() string

func (*SyncInstallationContact) GetId added in v1.1.1

func (m *SyncInstallationContact) GetId() string

func (*SyncInstallationContact) GetLastUpdated added in v1.1.1

func (m *SyncInstallationContact) GetLastUpdated() uint64

func (*SyncInstallationContact) GetProfileImage added in v1.1.1

func (m *SyncInstallationContact) GetProfileImage() string

func (*SyncInstallationContact) GetSystemTags added in v1.1.1

func (m *SyncInstallationContact) GetSystemTags() []string

func (*SyncInstallationContact) ProtoMessage added in v1.1.1

func (*SyncInstallationContact) ProtoMessage()

func (*SyncInstallationContact) Reset added in v1.1.1

func (m *SyncInstallationContact) Reset()

func (*SyncInstallationContact) String added in v1.1.1

func (m *SyncInstallationContact) String() string

func (*SyncInstallationContact) XXX_DiscardUnknown added in v1.1.1

func (m *SyncInstallationContact) XXX_DiscardUnknown()

func (*SyncInstallationContact) XXX_Marshal added in v1.1.1

func (m *SyncInstallationContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncInstallationContact) XXX_Merge added in v1.1.1

func (m *SyncInstallationContact) XXX_Merge(src proto.Message)

func (*SyncInstallationContact) XXX_Size added in v1.1.1

func (m *SyncInstallationContact) XXX_Size() int

func (*SyncInstallationContact) XXX_Unmarshal added in v1.1.1

func (m *SyncInstallationContact) XXX_Unmarshal(b []byte) error

type SyncInstallationPublicChat added in v1.1.1

type SyncInstallationPublicChat struct {
	Clock                uint64   `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SyncInstallationPublicChat) Descriptor added in v1.1.1

func (*SyncInstallationPublicChat) Descriptor() ([]byte, []int)

func (*SyncInstallationPublicChat) GetClock added in v1.1.1

func (m *SyncInstallationPublicChat) GetClock() uint64

func (*SyncInstallationPublicChat) GetId added in v1.1.1

func (*SyncInstallationPublicChat) ProtoMessage added in v1.1.1

func (*SyncInstallationPublicChat) ProtoMessage()

func (*SyncInstallationPublicChat) Reset added in v1.1.1

func (m *SyncInstallationPublicChat) Reset()

func (*SyncInstallationPublicChat) String added in v1.1.1

func (m *SyncInstallationPublicChat) String() string

func (*SyncInstallationPublicChat) XXX_DiscardUnknown added in v1.1.1

func (m *SyncInstallationPublicChat) XXX_DiscardUnknown()

func (*SyncInstallationPublicChat) XXX_Marshal added in v1.1.1

func (m *SyncInstallationPublicChat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncInstallationPublicChat) XXX_Merge added in v1.1.1

func (m *SyncInstallationPublicChat) XXX_Merge(src proto.Message)

func (*SyncInstallationPublicChat) XXX_Size added in v1.1.1

func (m *SyncInstallationPublicChat) XXX_Size() int

func (*SyncInstallationPublicChat) XXX_Unmarshal added in v1.1.1

func (m *SyncInstallationPublicChat) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL