| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.10
- // protoc v3.21.12
- // source: waMsgTransport/WAMsgTransport.proto
- package waMsgTransport
- import (
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- waCommon "git.bobomao.top/joey/testwh/proto/waCommon"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type MessageTransport_Protocol_Ancillary_BackupDirective_ActionType int32
- const (
- MessageTransport_Protocol_Ancillary_BackupDirective_NOOP MessageTransport_Protocol_Ancillary_BackupDirective_ActionType = 0
- MessageTransport_Protocol_Ancillary_BackupDirective_UPSERT MessageTransport_Protocol_Ancillary_BackupDirective_ActionType = 1
- MessageTransport_Protocol_Ancillary_BackupDirective_DELETE MessageTransport_Protocol_Ancillary_BackupDirective_ActionType = 2
- MessageTransport_Protocol_Ancillary_BackupDirective_UPSERT_AND_DELETE MessageTransport_Protocol_Ancillary_BackupDirective_ActionType = 3
- )
- // Enum value maps for MessageTransport_Protocol_Ancillary_BackupDirective_ActionType.
- var (
- MessageTransport_Protocol_Ancillary_BackupDirective_ActionType_name = map[int32]string{
- 0: "NOOP",
- 1: "UPSERT",
- 2: "DELETE",
- 3: "UPSERT_AND_DELETE",
- }
- MessageTransport_Protocol_Ancillary_BackupDirective_ActionType_value = map[string]int32{
- "NOOP": 0,
- "UPSERT": 1,
- "DELETE": 2,
- "UPSERT_AND_DELETE": 3,
- }
- )
- func (x MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) Enum() *MessageTransport_Protocol_Ancillary_BackupDirective_ActionType {
- p := new(MessageTransport_Protocol_Ancillary_BackupDirective_ActionType)
- *p = x
- return p
- }
- func (x MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) Descriptor() protoreflect.EnumDescriptor {
- return file_waMsgTransport_WAMsgTransport_proto_enumTypes[0].Descriptor()
- }
- func (MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) Type() protoreflect.EnumType {
- return &file_waMsgTransport_WAMsgTransport_proto_enumTypes[0]
- }
- func (x MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Do not use.
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) UnmarshalJSON(b []byte) error {
- num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
- if err != nil {
- return err
- }
- *x = MessageTransport_Protocol_Ancillary_BackupDirective_ActionType(num)
- return nil
- }
- // Deprecated: Use MessageTransport_Protocol_Ancillary_BackupDirective_ActionType.Descriptor instead.
- func (MessageTransport_Protocol_Ancillary_BackupDirective_ActionType) EnumDescriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 0, 0, 0}
- }
- type MessageTransport struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Payload *MessageTransport_Payload `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
- Protocol *MessageTransport_Protocol `protobuf:"bytes,2,opt,name=protocol" json:"protocol,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport) Reset() {
- *x = MessageTransport{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport) ProtoMessage() {}
- func (x *MessageTransport) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport.ProtoReflect.Descriptor instead.
- func (*MessageTransport) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0}
- }
- func (x *MessageTransport) GetPayload() *MessageTransport_Payload {
- if x != nil {
- return x.Payload
- }
- return nil
- }
- func (x *MessageTransport) GetProtocol() *MessageTransport_Protocol {
- if x != nil {
- return x.Protocol
- }
- return nil
- }
- type DeviceListMetadata struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SenderKeyHash []byte `protobuf:"bytes,1,opt,name=senderKeyHash" json:"senderKeyHash,omitempty"`
- SenderTimestamp *uint64 `protobuf:"varint,2,opt,name=senderTimestamp" json:"senderTimestamp,omitempty"`
- RecipientKeyHash []byte `protobuf:"bytes,8,opt,name=recipientKeyHash" json:"recipientKeyHash,omitempty"`
- RecipientTimestamp *uint64 `protobuf:"varint,9,opt,name=recipientTimestamp" json:"recipientTimestamp,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *DeviceListMetadata) Reset() {
- *x = DeviceListMetadata{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *DeviceListMetadata) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeviceListMetadata) ProtoMessage() {}
- func (x *DeviceListMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeviceListMetadata.ProtoReflect.Descriptor instead.
- func (*DeviceListMetadata) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{1}
- }
- func (x *DeviceListMetadata) GetSenderKeyHash() []byte {
- if x != nil {
- return x.SenderKeyHash
- }
- return nil
- }
- func (x *DeviceListMetadata) GetSenderTimestamp() uint64 {
- if x != nil && x.SenderTimestamp != nil {
- return *x.SenderTimestamp
- }
- return 0
- }
- func (x *DeviceListMetadata) GetRecipientKeyHash() []byte {
- if x != nil {
- return x.RecipientKeyHash
- }
- return nil
- }
- func (x *DeviceListMetadata) GetRecipientTimestamp() uint64 {
- if x != nil && x.RecipientTimestamp != nil {
- return *x.RecipientTimestamp
- }
- return 0
- }
- type MessageTransport_Payload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ApplicationPayload *waCommon.SubProtocol `protobuf:"bytes,1,opt,name=applicationPayload" json:"applicationPayload,omitempty"`
- FutureProof *waCommon.FutureProofBehavior `protobuf:"varint,3,opt,name=futureProof,enum=WACommon.FutureProofBehavior" json:"futureProof,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Payload) Reset() {
- *x = MessageTransport_Payload{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Payload) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Payload) ProtoMessage() {}
- func (x *MessageTransport_Payload) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Payload.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Payload) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 0}
- }
- func (x *MessageTransport_Payload) GetApplicationPayload() *waCommon.SubProtocol {
- if x != nil {
- return x.ApplicationPayload
- }
- return nil
- }
- func (x *MessageTransport_Payload) GetFutureProof() waCommon.FutureProofBehavior {
- if x != nil && x.FutureProof != nil {
- return *x.FutureProof
- }
- return waCommon.FutureProofBehavior(0)
- }
- type MessageTransport_Protocol struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Integral *MessageTransport_Protocol_Integral `protobuf:"bytes,1,opt,name=integral" json:"integral,omitempty"`
- Ancillary *MessageTransport_Protocol_Ancillary `protobuf:"bytes,2,opt,name=ancillary" json:"ancillary,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol) Reset() {
- *x = MessageTransport_Protocol{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol) ProtoMessage() {}
- func (x *MessageTransport_Protocol) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1}
- }
- func (x *MessageTransport_Protocol) GetIntegral() *MessageTransport_Protocol_Integral {
- if x != nil {
- return x.Integral
- }
- return nil
- }
- func (x *MessageTransport_Protocol) GetAncillary() *MessageTransport_Protocol_Ancillary {
- if x != nil {
- return x.Ancillary
- }
- return nil
- }
- type MessageTransport_Protocol_Ancillary struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Skdm *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage `protobuf:"bytes,2,opt,name=skdm" json:"skdm,omitempty"`
- DeviceListMetadata *DeviceListMetadata `protobuf:"bytes,3,opt,name=deviceListMetadata" json:"deviceListMetadata,omitempty"`
- Icdc *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices `protobuf:"bytes,4,opt,name=icdc" json:"icdc,omitempty"`
- BackupDirective *MessageTransport_Protocol_Ancillary_BackupDirective `protobuf:"bytes,5,opt,name=backupDirective" json:"backupDirective,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Ancillary) Reset() {
- *x = MessageTransport_Protocol_Ancillary{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Ancillary) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Ancillary) ProtoMessage() {}
- func (x *MessageTransport_Protocol_Ancillary) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Ancillary.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Ancillary) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 0}
- }
- func (x *MessageTransport_Protocol_Ancillary) GetSkdm() *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage {
- if x != nil {
- return x.Skdm
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary) GetDeviceListMetadata() *DeviceListMetadata {
- if x != nil {
- return x.DeviceListMetadata
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary) GetIcdc() *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices {
- if x != nil {
- return x.Icdc
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary) GetBackupDirective() *MessageTransport_Protocol_Ancillary_BackupDirective {
- if x != nil {
- return x.BackupDirective
- }
- return nil
- }
- type MessageTransport_Protocol_Integral struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Padding []byte `protobuf:"bytes,1,opt,name=padding" json:"padding,omitempty"`
- DSM *MessageTransport_Protocol_Integral_DeviceSentMessage `protobuf:"bytes,2,opt,name=DSM" json:"DSM,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Integral) Reset() {
- *x = MessageTransport_Protocol_Integral{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Integral) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Integral) ProtoMessage() {}
- func (x *MessageTransport_Protocol_Integral) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Integral.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Integral) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 1}
- }
- func (x *MessageTransport_Protocol_Integral) GetPadding() []byte {
- if x != nil {
- return x.Padding
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Integral) GetDSM() *MessageTransport_Protocol_Integral_DeviceSentMessage {
- if x != nil {
- return x.DSM
- }
- return nil
- }
- type MessageTransport_Protocol_Ancillary_BackupDirective struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MessageID *string `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
- ActionType *MessageTransport_Protocol_Ancillary_BackupDirective_ActionType `protobuf:"varint,2,opt,name=actionType,enum=WAMsgTransport.MessageTransport_Protocol_Ancillary_BackupDirective_ActionType" json:"actionType,omitempty"`
- SupplementalKey *string `protobuf:"bytes,3,opt,name=supplementalKey" json:"supplementalKey,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective) Reset() {
- *x = MessageTransport_Protocol_Ancillary_BackupDirective{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Ancillary_BackupDirective) ProtoMessage() {}
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Ancillary_BackupDirective.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Ancillary_BackupDirective) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 0, 0}
- }
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective) GetMessageID() string {
- if x != nil && x.MessageID != nil {
- return *x.MessageID
- }
- return ""
- }
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective) GetActionType() MessageTransport_Protocol_Ancillary_BackupDirective_ActionType {
- if x != nil && x.ActionType != nil {
- return *x.ActionType
- }
- return MessageTransport_Protocol_Ancillary_BackupDirective_NOOP
- }
- func (x *MessageTransport_Protocol_Ancillary_BackupDirective) GetSupplementalKey() string {
- if x != nil && x.SupplementalKey != nil {
- return *x.SupplementalKey
- }
- return ""
- }
- type MessageTransport_Protocol_Ancillary_ICDCParticipantDevices struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SenderIdentity *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription `protobuf:"bytes,1,opt,name=senderIdentity" json:"senderIdentity,omitempty"`
- RecipientIdentities []*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription `protobuf:"bytes,2,rep,name=recipientIdentities" json:"recipientIdentities,omitempty"`
- RecipientUserJIDs []string `protobuf:"bytes,3,rep,name=recipientUserJIDs" json:"recipientUserJIDs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) Reset() {
- *x = MessageTransport_Protocol_Ancillary_ICDCParticipantDevices{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) ProtoMessage() {}
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Ancillary_ICDCParticipantDevices.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 0, 1}
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) GetSenderIdentity() *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription {
- if x != nil {
- return x.SenderIdentity
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) GetRecipientIdentities() []*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription {
- if x != nil {
- return x.RecipientIdentities
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices) GetRecipientUserJIDs() []string {
- if x != nil {
- return x.RecipientUserJIDs
- }
- return nil
- }
- type MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- GroupID *string `protobuf:"bytes,1,opt,name=groupID" json:"groupID,omitempty"`
- AxolotlSenderKeyDistributionMessage []byte `protobuf:"bytes,2,opt,name=axolotlSenderKeyDistributionMessage" json:"axolotlSenderKeyDistributionMessage,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) Reset() {
- *x = MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) ProtoMessage() {}
- func (x *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 0, 2}
- }
- func (x *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) GetGroupID() string {
- if x != nil && x.GroupID != nil {
- return *x.GroupID
- }
- return ""
- }
- func (x *MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage) GetAxolotlSenderKeyDistributionMessage() []byte {
- if x != nil {
- return x.AxolotlSenderKeyDistributionMessage
- }
- return nil
- }
- type MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Seq *int32 `protobuf:"varint,1,opt,name=seq" json:"seq,omitempty"`
- SigningDevice []byte `protobuf:"bytes,2,opt,name=signingDevice" json:"signingDevice,omitempty"`
- UnknownDevices [][]byte `protobuf:"bytes,3,rep,name=unknownDevices" json:"unknownDevices,omitempty"`
- UnknownDeviceIDs []int32 `protobuf:"varint,4,rep,name=unknownDeviceIDs" json:"unknownDeviceIDs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) Reset() {
- *x = MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) ProtoMessage() {
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 0, 1, 0}
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) GetSeq() int32 {
- if x != nil && x.Seq != nil {
- return *x.Seq
- }
- return 0
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) GetSigningDevice() []byte {
- if x != nil {
- return x.SigningDevice
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) GetUnknownDevices() [][]byte {
- if x != nil {
- return x.UnknownDevices
- }
- return nil
- }
- func (x *MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription) GetUnknownDeviceIDs() []int32 {
- if x != nil {
- return x.UnknownDeviceIDs
- }
- return nil
- }
- type MessageTransport_Protocol_Integral_DeviceSentMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- DestinationJID *string `protobuf:"bytes,1,opt,name=destinationJID" json:"destinationJID,omitempty"`
- Phash *string `protobuf:"bytes,2,opt,name=phash" json:"phash,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MessageTransport_Protocol_Integral_DeviceSentMessage) Reset() {
- *x = MessageTransport_Protocol_Integral_DeviceSentMessage{}
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MessageTransport_Protocol_Integral_DeviceSentMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MessageTransport_Protocol_Integral_DeviceSentMessage) ProtoMessage() {}
- func (x *MessageTransport_Protocol_Integral_DeviceSentMessage) ProtoReflect() protoreflect.Message {
- mi := &file_waMsgTransport_WAMsgTransport_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use MessageTransport_Protocol_Integral_DeviceSentMessage.ProtoReflect.Descriptor instead.
- func (*MessageTransport_Protocol_Integral_DeviceSentMessage) Descriptor() ([]byte, []int) {
- return file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP(), []int{0, 1, 1, 0}
- }
- func (x *MessageTransport_Protocol_Integral_DeviceSentMessage) GetDestinationJID() string {
- if x != nil && x.DestinationJID != nil {
- return *x.DestinationJID
- }
- return ""
- }
- func (x *MessageTransport_Protocol_Integral_DeviceSentMessage) GetPhash() string {
- if x != nil && x.Phash != nil {
- return *x.Phash
- }
- return ""
- }
- var File_waMsgTransport_WAMsgTransport_proto protoreflect.FileDescriptor
- const file_waMsgTransport_WAMsgTransport_proto_rawDesc = "" +
- "\n" +
- "#waMsgTransport/WAMsgTransport.proto\x12\x0eWAMsgTransport\x1a\x17waCommon/WACommon.proto\"\x8b\x10\n" +
- "\x10MessageTransport\x12B\n" +
- "\apayload\x18\x01 \x01(\v2(.WAMsgTransport.MessageTransport.PayloadR\apayload\x12E\n" +
- "\bprotocol\x18\x02 \x01(\v2).WAMsgTransport.MessageTransport.ProtocolR\bprotocol\x1a\x91\x01\n" +
- "\aPayload\x12E\n" +
- "\x12applicationPayload\x18\x01 \x01(\v2\x15.WACommon.SubProtocolR\x12applicationPayload\x12?\n" +
- "\vfutureProof\x18\x03 \x01(\x0e2\x1d.WACommon.FutureProofBehaviorR\vfutureProof\x1a\xd7\r\n" +
- "\bProtocol\x12N\n" +
- "\bintegral\x18\x01 \x01(\v22.WAMsgTransport.MessageTransport.Protocol.IntegralR\bintegral\x12Q\n" +
- "\tancillary\x18\x02 \x01(\v23.WAMsgTransport.MessageTransport.Protocol.AncillaryR\tancillary\x1a\xd5\n" +
- "\n" +
- "\tAncillary\x12d\n" +
- "\x04skdm\x18\x02 \x01(\v2P.WAMsgTransport.MessageTransport.Protocol.Ancillary.SenderKeyDistributionMessageR\x04skdm\x12R\n" +
- "\x12deviceListMetadata\x18\x03 \x01(\v2\".WAMsgTransport.DeviceListMetadataR\x12deviceListMetadata\x12^\n" +
- "\x04icdc\x18\x04 \x01(\v2J.WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevicesR\x04icdc\x12m\n" +
- "\x0fbackupDirective\x18\x05 \x01(\v2C.WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirectiveR\x0fbackupDirective\x1a\x90\x02\n" +
- "\x0fBackupDirective\x12\x1c\n" +
- "\tmessageID\x18\x01 \x01(\tR\tmessageID\x12n\n" +
- "\n" +
- "actionType\x18\x02 \x01(\x0e2N.WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirective.ActionTypeR\n" +
- "actionType\x12(\n" +
- "\x0fsupplementalKey\x18\x03 \x01(\tR\x0fsupplementalKey\"E\n" +
- "\n" +
- "ActionType\x12\b\n" +
- "\x04NOOP\x10\x00\x12\n" +
- "\n" +
- "\x06UPSERT\x10\x01\x12\n" +
- "\n" +
- "\x06DELETE\x10\x02\x12\x15\n" +
- "\x11UPSERT_AND_DELETE\x10\x03\x1a\x9e\x04\n" +
- "\x16ICDCParticipantDevices\x12\x8e\x01\n" +
- "\x0esenderIdentity\x18\x01 \x01(\v2f.WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.ICDCIdentityListDescriptionR\x0esenderIdentity\x12\x98\x01\n" +
- "\x13recipientIdentities\x18\x02 \x03(\v2f.WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.ICDCIdentityListDescriptionR\x13recipientIdentities\x12,\n" +
- "\x11recipientUserJIDs\x18\x03 \x03(\tR\x11recipientUserJIDs\x1a\xa9\x01\n" +
- "\x1bICDCIdentityListDescription\x12\x10\n" +
- "\x03seq\x18\x01 \x01(\x05R\x03seq\x12$\n" +
- "\rsigningDevice\x18\x02 \x01(\fR\rsigningDevice\x12&\n" +
- "\x0eunknownDevices\x18\x03 \x03(\fR\x0eunknownDevices\x12*\n" +
- "\x10unknownDeviceIDs\x18\x04 \x03(\x05R\x10unknownDeviceIDs\x1a\x8a\x01\n" +
- "\x1cSenderKeyDistributionMessage\x12\x18\n" +
- "\agroupID\x18\x01 \x01(\tR\agroupID\x12P\n" +
- "#axolotlSenderKeyDistributionMessage\x18\x02 \x01(\fR#axolotlSenderKeyDistributionMessage\x1a\xcf\x01\n" +
- "\bIntegral\x12\x18\n" +
- "\apadding\x18\x01 \x01(\fR\apadding\x12V\n" +
- "\x03DSM\x18\x02 \x01(\v2D.WAMsgTransport.MessageTransport.Protocol.Integral.DeviceSentMessageR\x03DSM\x1aQ\n" +
- "\x11DeviceSentMessage\x12&\n" +
- "\x0edestinationJID\x18\x01 \x01(\tR\x0edestinationJID\x12\x14\n" +
- "\x05phash\x18\x02 \x01(\tR\x05phash\"\xc0\x01\n" +
- "\x12DeviceListMetadata\x12$\n" +
- "\rsenderKeyHash\x18\x01 \x01(\fR\rsenderKeyHash\x12(\n" +
- "\x0fsenderTimestamp\x18\x02 \x01(\x04R\x0fsenderTimestamp\x12*\n" +
- "\x10recipientKeyHash\x18\b \x01(\fR\x10recipientKeyHash\x12.\n" +
- "\x12recipientTimestamp\x18\t \x01(\x04R\x12recipientTimestampB*Z(git.bobomao.top/joey/testwh/proto/waMsgTransport"
- var (
- file_waMsgTransport_WAMsgTransport_proto_rawDescOnce sync.Once
- file_waMsgTransport_WAMsgTransport_proto_rawDescData []byte
- )
- func file_waMsgTransport_WAMsgTransport_proto_rawDescGZIP() []byte {
- file_waMsgTransport_WAMsgTransport_proto_rawDescOnce.Do(func() {
- file_waMsgTransport_WAMsgTransport_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waMsgTransport_WAMsgTransport_proto_rawDesc), len(file_waMsgTransport_WAMsgTransport_proto_rawDesc)))
- })
- return file_waMsgTransport_WAMsgTransport_proto_rawDescData
- }
- var file_waMsgTransport_WAMsgTransport_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_waMsgTransport_WAMsgTransport_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_waMsgTransport_WAMsgTransport_proto_goTypes = []any{
- (MessageTransport_Protocol_Ancillary_BackupDirective_ActionType)(0), // 0: WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirective.ActionType
- (*MessageTransport)(nil), // 1: WAMsgTransport.MessageTransport
- (*DeviceListMetadata)(nil), // 2: WAMsgTransport.DeviceListMetadata
- (*MessageTransport_Payload)(nil), // 3: WAMsgTransport.MessageTransport.Payload
- (*MessageTransport_Protocol)(nil), // 4: WAMsgTransport.MessageTransport.Protocol
- (*MessageTransport_Protocol_Ancillary)(nil), // 5: WAMsgTransport.MessageTransport.Protocol.Ancillary
- (*MessageTransport_Protocol_Integral)(nil), // 6: WAMsgTransport.MessageTransport.Protocol.Integral
- (*MessageTransport_Protocol_Ancillary_BackupDirective)(nil), // 7: WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirective
- (*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices)(nil), // 8: WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices
- (*MessageTransport_Protocol_Ancillary_SenderKeyDistributionMessage)(nil), // 9: WAMsgTransport.MessageTransport.Protocol.Ancillary.SenderKeyDistributionMessage
- (*MessageTransport_Protocol_Ancillary_ICDCParticipantDevices_ICDCIdentityListDescription)(nil), // 10: WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.ICDCIdentityListDescription
- (*MessageTransport_Protocol_Integral_DeviceSentMessage)(nil), // 11: WAMsgTransport.MessageTransport.Protocol.Integral.DeviceSentMessage
- (*waCommon.SubProtocol)(nil), // 12: WACommon.SubProtocol
- (waCommon.FutureProofBehavior)(0), // 13: WACommon.FutureProofBehavior
- }
- var file_waMsgTransport_WAMsgTransport_proto_depIdxs = []int32{
- 3, // 0: WAMsgTransport.MessageTransport.payload:type_name -> WAMsgTransport.MessageTransport.Payload
- 4, // 1: WAMsgTransport.MessageTransport.protocol:type_name -> WAMsgTransport.MessageTransport.Protocol
- 12, // 2: WAMsgTransport.MessageTransport.Payload.applicationPayload:type_name -> WACommon.SubProtocol
- 13, // 3: WAMsgTransport.MessageTransport.Payload.futureProof:type_name -> WACommon.FutureProofBehavior
- 6, // 4: WAMsgTransport.MessageTransport.Protocol.integral:type_name -> WAMsgTransport.MessageTransport.Protocol.Integral
- 5, // 5: WAMsgTransport.MessageTransport.Protocol.ancillary:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary
- 9, // 6: WAMsgTransport.MessageTransport.Protocol.Ancillary.skdm:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary.SenderKeyDistributionMessage
- 2, // 7: WAMsgTransport.MessageTransport.Protocol.Ancillary.deviceListMetadata:type_name -> WAMsgTransport.DeviceListMetadata
- 8, // 8: WAMsgTransport.MessageTransport.Protocol.Ancillary.icdc:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices
- 7, // 9: WAMsgTransport.MessageTransport.Protocol.Ancillary.backupDirective:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirective
- 11, // 10: WAMsgTransport.MessageTransport.Protocol.Integral.DSM:type_name -> WAMsgTransport.MessageTransport.Protocol.Integral.DeviceSentMessage
- 0, // 11: WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirective.actionType:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary.BackupDirective.ActionType
- 10, // 12: WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.senderIdentity:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.ICDCIdentityListDescription
- 10, // 13: WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.recipientIdentities:type_name -> WAMsgTransport.MessageTransport.Protocol.Ancillary.ICDCParticipantDevices.ICDCIdentityListDescription
- 14, // [14:14] is the sub-list for method output_type
- 14, // [14:14] is the sub-list for method input_type
- 14, // [14:14] is the sub-list for extension type_name
- 14, // [14:14] is the sub-list for extension extendee
- 0, // [0:14] is the sub-list for field type_name
- }
- func init() { file_waMsgTransport_WAMsgTransport_proto_init() }
- func file_waMsgTransport_WAMsgTransport_proto_init() {
- if File_waMsgTransport_WAMsgTransport_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_waMsgTransport_WAMsgTransport_proto_rawDesc), len(file_waMsgTransport_WAMsgTransport_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_waMsgTransport_WAMsgTransport_proto_goTypes,
- DependencyIndexes: file_waMsgTransport_WAMsgTransport_proto_depIdxs,
- EnumInfos: file_waMsgTransport_WAMsgTransport_proto_enumTypes,
- MessageInfos: file_waMsgTransport_WAMsgTransport_proto_msgTypes,
- }.Build()
- File_waMsgTransport_WAMsgTransport_proto = out.File
- file_waMsgTransport_WAMsgTransport_proto_goTypes = nil
- file_waMsgTransport_WAMsgTransport_proto_depIdxs = nil
- }
|