WAMmsRetry.pb.go 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v3.21.12
  5. // source: waMmsRetry/WAMmsRetry.proto
  6. package waMmsRetry
  7. import (
  8. reflect "reflect"
  9. sync "sync"
  10. unsafe "unsafe"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type MediaRetryNotification_ResultType int32
  21. const (
  22. MediaRetryNotification_GENERAL_ERROR MediaRetryNotification_ResultType = 0
  23. MediaRetryNotification_SUCCESS MediaRetryNotification_ResultType = 1
  24. MediaRetryNotification_NOT_FOUND MediaRetryNotification_ResultType = 2
  25. MediaRetryNotification_DECRYPTION_ERROR MediaRetryNotification_ResultType = 3
  26. )
  27. // Enum value maps for MediaRetryNotification_ResultType.
  28. var (
  29. MediaRetryNotification_ResultType_name = map[int32]string{
  30. 0: "GENERAL_ERROR",
  31. 1: "SUCCESS",
  32. 2: "NOT_FOUND",
  33. 3: "DECRYPTION_ERROR",
  34. }
  35. MediaRetryNotification_ResultType_value = map[string]int32{
  36. "GENERAL_ERROR": 0,
  37. "SUCCESS": 1,
  38. "NOT_FOUND": 2,
  39. "DECRYPTION_ERROR": 3,
  40. }
  41. )
  42. func (x MediaRetryNotification_ResultType) Enum() *MediaRetryNotification_ResultType {
  43. p := new(MediaRetryNotification_ResultType)
  44. *p = x
  45. return p
  46. }
  47. func (x MediaRetryNotification_ResultType) String() string {
  48. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  49. }
  50. func (MediaRetryNotification_ResultType) Descriptor() protoreflect.EnumDescriptor {
  51. return file_waMmsRetry_WAMmsRetry_proto_enumTypes[0].Descriptor()
  52. }
  53. func (MediaRetryNotification_ResultType) Type() protoreflect.EnumType {
  54. return &file_waMmsRetry_WAMmsRetry_proto_enumTypes[0]
  55. }
  56. func (x MediaRetryNotification_ResultType) Number() protoreflect.EnumNumber {
  57. return protoreflect.EnumNumber(x)
  58. }
  59. // Deprecated: Do not use.
  60. func (x *MediaRetryNotification_ResultType) UnmarshalJSON(b []byte) error {
  61. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  62. if err != nil {
  63. return err
  64. }
  65. *x = MediaRetryNotification_ResultType(num)
  66. return nil
  67. }
  68. // Deprecated: Use MediaRetryNotification_ResultType.Descriptor instead.
  69. func (MediaRetryNotification_ResultType) EnumDescriptor() ([]byte, []int) {
  70. return file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP(), []int{0, 0}
  71. }
  72. type MediaRetryNotification struct {
  73. state protoimpl.MessageState `protogen:"open.v1"`
  74. StanzaID *string `protobuf:"bytes,1,opt,name=stanzaID" json:"stanzaID,omitempty"`
  75. DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"`
  76. Result *MediaRetryNotification_ResultType `protobuf:"varint,3,opt,name=result,enum=WAMmsRetry.MediaRetryNotification_ResultType" json:"result,omitempty"`
  77. MessageSecret []byte `protobuf:"bytes,4,opt,name=messageSecret" json:"messageSecret,omitempty"`
  78. unknownFields protoimpl.UnknownFields
  79. sizeCache protoimpl.SizeCache
  80. }
  81. func (x *MediaRetryNotification) Reset() {
  82. *x = MediaRetryNotification{}
  83. mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[0]
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. ms.StoreMessageInfo(mi)
  86. }
  87. func (x *MediaRetryNotification) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*MediaRetryNotification) ProtoMessage() {}
  91. func (x *MediaRetryNotification) ProtoReflect() protoreflect.Message {
  92. mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[0]
  93. if x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use MediaRetryNotification.ProtoReflect.Descriptor instead.
  103. func (*MediaRetryNotification) Descriptor() ([]byte, []int) {
  104. return file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP(), []int{0}
  105. }
  106. func (x *MediaRetryNotification) GetStanzaID() string {
  107. if x != nil && x.StanzaID != nil {
  108. return *x.StanzaID
  109. }
  110. return ""
  111. }
  112. func (x *MediaRetryNotification) GetDirectPath() string {
  113. if x != nil && x.DirectPath != nil {
  114. return *x.DirectPath
  115. }
  116. return ""
  117. }
  118. func (x *MediaRetryNotification) GetResult() MediaRetryNotification_ResultType {
  119. if x != nil && x.Result != nil {
  120. return *x.Result
  121. }
  122. return MediaRetryNotification_GENERAL_ERROR
  123. }
  124. func (x *MediaRetryNotification) GetMessageSecret() []byte {
  125. if x != nil {
  126. return x.MessageSecret
  127. }
  128. return nil
  129. }
  130. type ServerErrorReceipt struct {
  131. state protoimpl.MessageState `protogen:"open.v1"`
  132. StanzaID *string `protobuf:"bytes,1,opt,name=stanzaID" json:"stanzaID,omitempty"`
  133. unknownFields protoimpl.UnknownFields
  134. sizeCache protoimpl.SizeCache
  135. }
  136. func (x *ServerErrorReceipt) Reset() {
  137. *x = ServerErrorReceipt{}
  138. mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[1]
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. ms.StoreMessageInfo(mi)
  141. }
  142. func (x *ServerErrorReceipt) String() string {
  143. return protoimpl.X.MessageStringOf(x)
  144. }
  145. func (*ServerErrorReceipt) ProtoMessage() {}
  146. func (x *ServerErrorReceipt) ProtoReflect() protoreflect.Message {
  147. mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[1]
  148. if x != nil {
  149. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  150. if ms.LoadMessageInfo() == nil {
  151. ms.StoreMessageInfo(mi)
  152. }
  153. return ms
  154. }
  155. return mi.MessageOf(x)
  156. }
  157. // Deprecated: Use ServerErrorReceipt.ProtoReflect.Descriptor instead.
  158. func (*ServerErrorReceipt) Descriptor() ([]byte, []int) {
  159. return file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP(), []int{1}
  160. }
  161. func (x *ServerErrorReceipt) GetStanzaID() string {
  162. if x != nil && x.StanzaID != nil {
  163. return *x.StanzaID
  164. }
  165. return ""
  166. }
  167. var File_waMmsRetry_WAMmsRetry_proto protoreflect.FileDescriptor
  168. const file_waMmsRetry_WAMmsRetry_proto_rawDesc = "" +
  169. "\n" +
  170. "\x1bwaMmsRetry/WAMmsRetry.proto\x12\n" +
  171. "WAMmsRetry\"\x94\x02\n" +
  172. "\x16MediaRetryNotification\x12\x1a\n" +
  173. "\bstanzaID\x18\x01 \x01(\tR\bstanzaID\x12\x1e\n" +
  174. "\n" +
  175. "directPath\x18\x02 \x01(\tR\n" +
  176. "directPath\x12E\n" +
  177. "\x06result\x18\x03 \x01(\x0e2-.WAMmsRetry.MediaRetryNotification.ResultTypeR\x06result\x12$\n" +
  178. "\rmessageSecret\x18\x04 \x01(\fR\rmessageSecret\"Q\n" +
  179. "\n" +
  180. "ResultType\x12\x11\n" +
  181. "\rGENERAL_ERROR\x10\x00\x12\v\n" +
  182. "\aSUCCESS\x10\x01\x12\r\n" +
  183. "\tNOT_FOUND\x10\x02\x12\x14\n" +
  184. "\x10DECRYPTION_ERROR\x10\x03\"0\n" +
  185. "\x12ServerErrorReceipt\x12\x1a\n" +
  186. "\bstanzaID\x18\x01 \x01(\tR\bstanzaIDB&Z$go.mau.fi/whatsmeow/proto/waMmsRetry"
  187. var (
  188. file_waMmsRetry_WAMmsRetry_proto_rawDescOnce sync.Once
  189. file_waMmsRetry_WAMmsRetry_proto_rawDescData []byte
  190. )
  191. func file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP() []byte {
  192. file_waMmsRetry_WAMmsRetry_proto_rawDescOnce.Do(func() {
  193. file_waMmsRetry_WAMmsRetry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waMmsRetry_WAMmsRetry_proto_rawDesc), len(file_waMmsRetry_WAMmsRetry_proto_rawDesc)))
  194. })
  195. return file_waMmsRetry_WAMmsRetry_proto_rawDescData
  196. }
  197. var file_waMmsRetry_WAMmsRetry_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  198. var file_waMmsRetry_WAMmsRetry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  199. var file_waMmsRetry_WAMmsRetry_proto_goTypes = []any{
  200. (MediaRetryNotification_ResultType)(0), // 0: WAMmsRetry.MediaRetryNotification.ResultType
  201. (*MediaRetryNotification)(nil), // 1: WAMmsRetry.MediaRetryNotification
  202. (*ServerErrorReceipt)(nil), // 2: WAMmsRetry.ServerErrorReceipt
  203. }
  204. var file_waMmsRetry_WAMmsRetry_proto_depIdxs = []int32{
  205. 0, // 0: WAMmsRetry.MediaRetryNotification.result:type_name -> WAMmsRetry.MediaRetryNotification.ResultType
  206. 1, // [1:1] is the sub-list for method output_type
  207. 1, // [1:1] is the sub-list for method input_type
  208. 1, // [1:1] is the sub-list for extension type_name
  209. 1, // [1:1] is the sub-list for extension extendee
  210. 0, // [0:1] is the sub-list for field type_name
  211. }
  212. func init() { file_waMmsRetry_WAMmsRetry_proto_init() }
  213. func file_waMmsRetry_WAMmsRetry_proto_init() {
  214. if File_waMmsRetry_WAMmsRetry_proto != nil {
  215. return
  216. }
  217. type x struct{}
  218. out := protoimpl.TypeBuilder{
  219. File: protoimpl.DescBuilder{
  220. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  221. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waMmsRetry_WAMmsRetry_proto_rawDesc), len(file_waMmsRetry_WAMmsRetry_proto_rawDesc)),
  222. NumEnums: 1,
  223. NumMessages: 2,
  224. NumExtensions: 0,
  225. NumServices: 0,
  226. },
  227. GoTypes: file_waMmsRetry_WAMmsRetry_proto_goTypes,
  228. DependencyIndexes: file_waMmsRetry_WAMmsRetry_proto_depIdxs,
  229. EnumInfos: file_waMmsRetry_WAMmsRetry_proto_enumTypes,
  230. MessageInfos: file_waMmsRetry_WAMmsRetry_proto_msgTypes,
  231. }.Build()
  232. File_waMmsRetry_WAMmsRetry_proto = out.File
  233. file_waMmsRetry_WAMmsRetry_proto_goTypes = nil
  234. file_waMmsRetry_WAMmsRetry_proto_depIdxs = nil
  235. }