| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v6.31.1
- // source: waServerSync/WAServerSync.proto
- package waServerSync
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- 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 SyncdMutation_SyncdOperation int32
- const (
- SyncdMutation_SET SyncdMutation_SyncdOperation = 0
- SyncdMutation_REMOVE SyncdMutation_SyncdOperation = 1
- )
- // Enum value maps for SyncdMutation_SyncdOperation.
- var (
- SyncdMutation_SyncdOperation_name = map[int32]string{
- 0: "SET",
- 1: "REMOVE",
- }
- SyncdMutation_SyncdOperation_value = map[string]int32{
- "SET": 0,
- "REMOVE": 1,
- }
- )
- func (x SyncdMutation_SyncdOperation) Enum() *SyncdMutation_SyncdOperation {
- p := new(SyncdMutation_SyncdOperation)
- *p = x
- return p
- }
- func (x SyncdMutation_SyncdOperation) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (SyncdMutation_SyncdOperation) Descriptor() protoreflect.EnumDescriptor {
- return file_waServerSync_WAServerSync_proto_enumTypes[0].Descriptor()
- }
- func (SyncdMutation_SyncdOperation) Type() protoreflect.EnumType {
- return &file_waServerSync_WAServerSync_proto_enumTypes[0]
- }
- func (x SyncdMutation_SyncdOperation) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Do not use.
- func (x *SyncdMutation_SyncdOperation) UnmarshalJSON(b []byte) error {
- num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
- if err != nil {
- return err
- }
- *x = SyncdMutation_SyncdOperation(num)
- return nil
- }
- // Deprecated: Use SyncdMutation_SyncdOperation.Descriptor instead.
- func (SyncdMutation_SyncdOperation) EnumDescriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{0, 0}
- }
- type SyncdMutation struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Operation *SyncdMutation_SyncdOperation `protobuf:"varint,1,opt,name=operation,enum=WAServerSync.SyncdMutation_SyncdOperation" json:"operation,omitempty"`
- Record *SyncdRecord `protobuf:"bytes,2,opt,name=record" json:"record,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdMutation) Reset() {
- *x = SyncdMutation{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdMutation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdMutation) ProtoMessage() {}
- func (x *SyncdMutation) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdMutation.ProtoReflect.Descriptor instead.
- func (*SyncdMutation) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{0}
- }
- func (x *SyncdMutation) GetOperation() SyncdMutation_SyncdOperation {
- if x != nil && x.Operation != nil {
- return *x.Operation
- }
- return SyncdMutation_SET
- }
- func (x *SyncdMutation) GetRecord() *SyncdRecord {
- if x != nil {
- return x.Record
- }
- return nil
- }
- type SyncdVersion struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Version *uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdVersion) Reset() {
- *x = SyncdVersion{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdVersion) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdVersion) ProtoMessage() {}
- func (x *SyncdVersion) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdVersion.ProtoReflect.Descriptor instead.
- func (*SyncdVersion) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{1}
- }
- func (x *SyncdVersion) GetVersion() uint64 {
- if x != nil && x.Version != nil {
- return *x.Version
- }
- return 0
- }
- type ExitCode struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Code *uint64 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
- Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ExitCode) Reset() {
- *x = ExitCode{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ExitCode) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ExitCode) ProtoMessage() {}
- func (x *ExitCode) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 ExitCode.ProtoReflect.Descriptor instead.
- func (*ExitCode) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{2}
- }
- func (x *ExitCode) GetCode() uint64 {
- if x != nil && x.Code != nil {
- return *x.Code
- }
- return 0
- }
- func (x *ExitCode) GetText() string {
- if x != nil && x.Text != nil {
- return *x.Text
- }
- return ""
- }
- type SyncdIndex struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdIndex) Reset() {
- *x = SyncdIndex{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdIndex) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdIndex) ProtoMessage() {}
- func (x *SyncdIndex) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdIndex.ProtoReflect.Descriptor instead.
- func (*SyncdIndex) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{3}
- }
- func (x *SyncdIndex) GetBlob() []byte {
- if x != nil {
- return x.Blob
- }
- return nil
- }
- type SyncdValue struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdValue) Reset() {
- *x = SyncdValue{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdValue) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdValue) ProtoMessage() {}
- func (x *SyncdValue) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdValue.ProtoReflect.Descriptor instead.
- func (*SyncdValue) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{4}
- }
- func (x *SyncdValue) GetBlob() []byte {
- if x != nil {
- return x.Blob
- }
- return nil
- }
- type KeyId struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ID []byte `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *KeyId) Reset() {
- *x = KeyId{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *KeyId) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*KeyId) ProtoMessage() {}
- func (x *KeyId) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 KeyId.ProtoReflect.Descriptor instead.
- func (*KeyId) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{5}
- }
- func (x *KeyId) GetID() []byte {
- if x != nil {
- return x.ID
- }
- return nil
- }
- type SyncdRecord struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Index *SyncdIndex `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"`
- Value *SyncdValue `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
- KeyID *KeyId `protobuf:"bytes,3,opt,name=keyID" json:"keyID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdRecord) Reset() {
- *x = SyncdRecord{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdRecord) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdRecord) ProtoMessage() {}
- func (x *SyncdRecord) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdRecord.ProtoReflect.Descriptor instead.
- func (*SyncdRecord) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{6}
- }
- func (x *SyncdRecord) GetIndex() *SyncdIndex {
- if x != nil {
- return x.Index
- }
- return nil
- }
- func (x *SyncdRecord) GetValue() *SyncdValue {
- if x != nil {
- return x.Value
- }
- return nil
- }
- func (x *SyncdRecord) GetKeyID() *KeyId {
- if x != nil {
- return x.KeyID
- }
- return nil
- }
- type ExternalBlobReference struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MediaKey []byte `protobuf:"bytes,1,opt,name=mediaKey" json:"mediaKey,omitempty"`
- DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"`
- Handle *string `protobuf:"bytes,3,opt,name=handle" json:"handle,omitempty"`
- FileSizeBytes *uint64 `protobuf:"varint,4,opt,name=fileSizeBytes" json:"fileSizeBytes,omitempty"`
- FileSHA256 []byte `protobuf:"bytes,5,opt,name=fileSHA256" json:"fileSHA256,omitempty"`
- FileEncSHA256 []byte `protobuf:"bytes,6,opt,name=fileEncSHA256" json:"fileEncSHA256,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ExternalBlobReference) Reset() {
- *x = ExternalBlobReference{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ExternalBlobReference) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ExternalBlobReference) ProtoMessage() {}
- func (x *ExternalBlobReference) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 ExternalBlobReference.ProtoReflect.Descriptor instead.
- func (*ExternalBlobReference) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{7}
- }
- func (x *ExternalBlobReference) GetMediaKey() []byte {
- if x != nil {
- return x.MediaKey
- }
- return nil
- }
- func (x *ExternalBlobReference) GetDirectPath() string {
- if x != nil && x.DirectPath != nil {
- return *x.DirectPath
- }
- return ""
- }
- func (x *ExternalBlobReference) GetHandle() string {
- if x != nil && x.Handle != nil {
- return *x.Handle
- }
- return ""
- }
- func (x *ExternalBlobReference) GetFileSizeBytes() uint64 {
- if x != nil && x.FileSizeBytes != nil {
- return *x.FileSizeBytes
- }
- return 0
- }
- func (x *ExternalBlobReference) GetFileSHA256() []byte {
- if x != nil {
- return x.FileSHA256
- }
- return nil
- }
- func (x *ExternalBlobReference) GetFileEncSHA256() []byte {
- if x != nil {
- return x.FileEncSHA256
- }
- return nil
- }
- type SyncdSnapshot struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
- Records []*SyncdRecord `protobuf:"bytes,2,rep,name=records" json:"records,omitempty"`
- Mac []byte `protobuf:"bytes,3,opt,name=mac" json:"mac,omitempty"`
- KeyID *KeyId `protobuf:"bytes,4,opt,name=keyID" json:"keyID,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdSnapshot) Reset() {
- *x = SyncdSnapshot{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdSnapshot) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdSnapshot) ProtoMessage() {}
- func (x *SyncdSnapshot) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdSnapshot.ProtoReflect.Descriptor instead.
- func (*SyncdSnapshot) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{8}
- }
- func (x *SyncdSnapshot) GetVersion() *SyncdVersion {
- if x != nil {
- return x.Version
- }
- return nil
- }
- func (x *SyncdSnapshot) GetRecords() []*SyncdRecord {
- if x != nil {
- return x.Records
- }
- return nil
- }
- func (x *SyncdSnapshot) GetMac() []byte {
- if x != nil {
- return x.Mac
- }
- return nil
- }
- func (x *SyncdSnapshot) GetKeyID() *KeyId {
- if x != nil {
- return x.KeyID
- }
- return nil
- }
- type SyncdMutations struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Mutations []*SyncdMutation `protobuf:"bytes,1,rep,name=mutations" json:"mutations,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdMutations) Reset() {
- *x = SyncdMutations{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdMutations) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdMutations) ProtoMessage() {}
- func (x *SyncdMutations) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdMutations.ProtoReflect.Descriptor instead.
- func (*SyncdMutations) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{9}
- }
- func (x *SyncdMutations) GetMutations() []*SyncdMutation {
- if x != nil {
- return x.Mutations
- }
- return nil
- }
- type SyncdPatch struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Version *SyncdVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
- Mutations []*SyncdMutation `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"`
- ExternalMutations *ExternalBlobReference `protobuf:"bytes,3,opt,name=externalMutations" json:"externalMutations,omitempty"`
- SnapshotMAC []byte `protobuf:"bytes,4,opt,name=snapshotMAC" json:"snapshotMAC,omitempty"`
- PatchMAC []byte `protobuf:"bytes,5,opt,name=patchMAC" json:"patchMAC,omitempty"`
- KeyID *KeyId `protobuf:"bytes,6,opt,name=keyID" json:"keyID,omitempty"`
- ExitCode *ExitCode `protobuf:"bytes,7,opt,name=exitCode" json:"exitCode,omitempty"`
- DeviceIndex *uint32 `protobuf:"varint,8,opt,name=deviceIndex" json:"deviceIndex,omitempty"`
- ClientDebugData []byte `protobuf:"bytes,9,opt,name=clientDebugData" json:"clientDebugData,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *SyncdPatch) Reset() {
- *x = SyncdPatch{}
- mi := &file_waServerSync_WAServerSync_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *SyncdPatch) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SyncdPatch) ProtoMessage() {}
- func (x *SyncdPatch) ProtoReflect() protoreflect.Message {
- mi := &file_waServerSync_WAServerSync_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 SyncdPatch.ProtoReflect.Descriptor instead.
- func (*SyncdPatch) Descriptor() ([]byte, []int) {
- return file_waServerSync_WAServerSync_proto_rawDescGZIP(), []int{10}
- }
- func (x *SyncdPatch) GetVersion() *SyncdVersion {
- if x != nil {
- return x.Version
- }
- return nil
- }
- func (x *SyncdPatch) GetMutations() []*SyncdMutation {
- if x != nil {
- return x.Mutations
- }
- return nil
- }
- func (x *SyncdPatch) GetExternalMutations() *ExternalBlobReference {
- if x != nil {
- return x.ExternalMutations
- }
- return nil
- }
- func (x *SyncdPatch) GetSnapshotMAC() []byte {
- if x != nil {
- return x.SnapshotMAC
- }
- return nil
- }
- func (x *SyncdPatch) GetPatchMAC() []byte {
- if x != nil {
- return x.PatchMAC
- }
- return nil
- }
- func (x *SyncdPatch) GetKeyID() *KeyId {
- if x != nil {
- return x.KeyID
- }
- return nil
- }
- func (x *SyncdPatch) GetExitCode() *ExitCode {
- if x != nil {
- return x.ExitCode
- }
- return nil
- }
- func (x *SyncdPatch) GetDeviceIndex() uint32 {
- if x != nil && x.DeviceIndex != nil {
- return *x.DeviceIndex
- }
- return 0
- }
- func (x *SyncdPatch) GetClientDebugData() []byte {
- if x != nil {
- return x.ClientDebugData
- }
- return nil
- }
- var File_waServerSync_WAServerSync_proto protoreflect.FileDescriptor
- const file_waServerSync_WAServerSync_proto_rawDesc = "" +
- "\n" +
- "\x1fwaServerSync/WAServerSync.proto\x12\fWAServerSync\"\xb3\x01\n" +
- "\rSyncdMutation\x12H\n" +
- "\toperation\x18\x01 \x01(\x0e2*.WAServerSync.SyncdMutation.SyncdOperationR\toperation\x121\n" +
- "\x06record\x18\x02 \x01(\v2\x19.WAServerSync.SyncdRecordR\x06record\"%\n" +
- "\x0eSyncdOperation\x12\a\n" +
- "\x03SET\x10\x00\x12\n" +
- "\n" +
- "\x06REMOVE\x10\x01\"(\n" +
- "\fSyncdVersion\x12\x18\n" +
- "\aversion\x18\x01 \x01(\x04R\aversion\"2\n" +
- "\bExitCode\x12\x12\n" +
- "\x04code\x18\x01 \x01(\x04R\x04code\x12\x12\n" +
- "\x04text\x18\x02 \x01(\tR\x04text\" \n" +
- "\n" +
- "SyncdIndex\x12\x12\n" +
- "\x04blob\x18\x01 \x01(\fR\x04blob\" \n" +
- "\n" +
- "SyncdValue\x12\x12\n" +
- "\x04blob\x18\x01 \x01(\fR\x04blob\"\x17\n" +
- "\x05KeyId\x12\x0e\n" +
- "\x02ID\x18\x01 \x01(\fR\x02ID\"\x98\x01\n" +
- "\vSyncdRecord\x12.\n" +
- "\x05index\x18\x01 \x01(\v2\x18.WAServerSync.SyncdIndexR\x05index\x12.\n" +
- "\x05value\x18\x02 \x01(\v2\x18.WAServerSync.SyncdValueR\x05value\x12)\n" +
- "\x05keyID\x18\x03 \x01(\v2\x13.WAServerSync.KeyIdR\x05keyID\"\xd7\x01\n" +
- "\x15ExternalBlobReference\x12\x1a\n" +
- "\bmediaKey\x18\x01 \x01(\fR\bmediaKey\x12\x1e\n" +
- "\n" +
- "directPath\x18\x02 \x01(\tR\n" +
- "directPath\x12\x16\n" +
- "\x06handle\x18\x03 \x01(\tR\x06handle\x12$\n" +
- "\rfileSizeBytes\x18\x04 \x01(\x04R\rfileSizeBytes\x12\x1e\n" +
- "\n" +
- "fileSHA256\x18\x05 \x01(\fR\n" +
- "fileSHA256\x12$\n" +
- "\rfileEncSHA256\x18\x06 \x01(\fR\rfileEncSHA256\"\xb7\x01\n" +
- "\rSyncdSnapshot\x124\n" +
- "\aversion\x18\x01 \x01(\v2\x1a.WAServerSync.SyncdVersionR\aversion\x123\n" +
- "\arecords\x18\x02 \x03(\v2\x19.WAServerSync.SyncdRecordR\arecords\x12\x10\n" +
- "\x03mac\x18\x03 \x01(\fR\x03mac\x12)\n" +
- "\x05keyID\x18\x04 \x01(\v2\x13.WAServerSync.KeyIdR\x05keyID\"K\n" +
- "\x0eSyncdMutations\x129\n" +
- "\tmutations\x18\x01 \x03(\v2\x1b.WAServerSync.SyncdMutationR\tmutations\"\xb9\x03\n" +
- "\n" +
- "SyncdPatch\x124\n" +
- "\aversion\x18\x01 \x01(\v2\x1a.WAServerSync.SyncdVersionR\aversion\x129\n" +
- "\tmutations\x18\x02 \x03(\v2\x1b.WAServerSync.SyncdMutationR\tmutations\x12Q\n" +
- "\x11externalMutations\x18\x03 \x01(\v2#.WAServerSync.ExternalBlobReferenceR\x11externalMutations\x12 \n" +
- "\vsnapshotMAC\x18\x04 \x01(\fR\vsnapshotMAC\x12\x1a\n" +
- "\bpatchMAC\x18\x05 \x01(\fR\bpatchMAC\x12)\n" +
- "\x05keyID\x18\x06 \x01(\v2\x13.WAServerSync.KeyIdR\x05keyID\x122\n" +
- "\bexitCode\x18\a \x01(\v2\x16.WAServerSync.ExitCodeR\bexitCode\x12 \n" +
- "\vdeviceIndex\x18\b \x01(\rR\vdeviceIndex\x12(\n" +
- "\x0fclientDebugData\x18\t \x01(\fR\x0fclientDebugDataB3Z1git.bobomao.top/joey/whatsmeow/proto/waServerSync"
- var (
- file_waServerSync_WAServerSync_proto_rawDescOnce sync.Once
- file_waServerSync_WAServerSync_proto_rawDescData []byte
- )
- func file_waServerSync_WAServerSync_proto_rawDescGZIP() []byte {
- file_waServerSync_WAServerSync_proto_rawDescOnce.Do(func() {
- file_waServerSync_WAServerSync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waServerSync_WAServerSync_proto_rawDesc), len(file_waServerSync_WAServerSync_proto_rawDesc)))
- })
- return file_waServerSync_WAServerSync_proto_rawDescData
- }
- var file_waServerSync_WAServerSync_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_waServerSync_WAServerSync_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_waServerSync_WAServerSync_proto_goTypes = []any{
- (SyncdMutation_SyncdOperation)(0), // 0: WAServerSync.SyncdMutation.SyncdOperation
- (*SyncdMutation)(nil), // 1: WAServerSync.SyncdMutation
- (*SyncdVersion)(nil), // 2: WAServerSync.SyncdVersion
- (*ExitCode)(nil), // 3: WAServerSync.ExitCode
- (*SyncdIndex)(nil), // 4: WAServerSync.SyncdIndex
- (*SyncdValue)(nil), // 5: WAServerSync.SyncdValue
- (*KeyId)(nil), // 6: WAServerSync.KeyId
- (*SyncdRecord)(nil), // 7: WAServerSync.SyncdRecord
- (*ExternalBlobReference)(nil), // 8: WAServerSync.ExternalBlobReference
- (*SyncdSnapshot)(nil), // 9: WAServerSync.SyncdSnapshot
- (*SyncdMutations)(nil), // 10: WAServerSync.SyncdMutations
- (*SyncdPatch)(nil), // 11: WAServerSync.SyncdPatch
- }
- var file_waServerSync_WAServerSync_proto_depIdxs = []int32{
- 0, // 0: WAServerSync.SyncdMutation.operation:type_name -> WAServerSync.SyncdMutation.SyncdOperation
- 7, // 1: WAServerSync.SyncdMutation.record:type_name -> WAServerSync.SyncdRecord
- 4, // 2: WAServerSync.SyncdRecord.index:type_name -> WAServerSync.SyncdIndex
- 5, // 3: WAServerSync.SyncdRecord.value:type_name -> WAServerSync.SyncdValue
- 6, // 4: WAServerSync.SyncdRecord.keyID:type_name -> WAServerSync.KeyId
- 2, // 5: WAServerSync.SyncdSnapshot.version:type_name -> WAServerSync.SyncdVersion
- 7, // 6: WAServerSync.SyncdSnapshot.records:type_name -> WAServerSync.SyncdRecord
- 6, // 7: WAServerSync.SyncdSnapshot.keyID:type_name -> WAServerSync.KeyId
- 1, // 8: WAServerSync.SyncdMutations.mutations:type_name -> WAServerSync.SyncdMutation
- 2, // 9: WAServerSync.SyncdPatch.version:type_name -> WAServerSync.SyncdVersion
- 1, // 10: WAServerSync.SyncdPatch.mutations:type_name -> WAServerSync.SyncdMutation
- 8, // 11: WAServerSync.SyncdPatch.externalMutations:type_name -> WAServerSync.ExternalBlobReference
- 6, // 12: WAServerSync.SyncdPatch.keyID:type_name -> WAServerSync.KeyId
- 3, // 13: WAServerSync.SyncdPatch.exitCode:type_name -> WAServerSync.ExitCode
- 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_waServerSync_WAServerSync_proto_init() }
- func file_waServerSync_WAServerSync_proto_init() {
- if File_waServerSync_WAServerSync_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_waServerSync_WAServerSync_proto_rawDesc), len(file_waServerSync_WAServerSync_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_waServerSync_WAServerSync_proto_goTypes,
- DependencyIndexes: file_waServerSync_WAServerSync_proto_depIdxs,
- EnumInfos: file_waServerSync_WAServerSync_proto_enumTypes,
- MessageInfos: file_waServerSync_WAServerSync_proto_msgTypes,
- }.Build()
- File_waServerSync_WAServerSync_proto = out.File
- file_waServerSync_WAServerSync_proto_goTypes = nil
- file_waServerSync_WAServerSync_proto_depIdxs = nil
- }
|