mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-19 07:22:01 -08:00
c4157a4d5b
* Update dependencies * Fix whatsmeow API changes
282 lines
8.5 KiB
Go
Generated
282 lines
8.5 KiB
Go
Generated
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.34.2
|
|
// protoc v3.21.12
|
|
// source: waMmsRetry/WAMmsRetry.proto
|
|
|
|
package waMmsRetry
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
_ "embed"
|
|
)
|
|
|
|
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 MediaRetryNotification_ResultType int32
|
|
|
|
const (
|
|
MediaRetryNotification_GENERAL_ERROR MediaRetryNotification_ResultType = 0
|
|
MediaRetryNotification_SUCCESS MediaRetryNotification_ResultType = 1
|
|
MediaRetryNotification_NOT_FOUND MediaRetryNotification_ResultType = 2
|
|
MediaRetryNotification_DECRYPTION_ERROR MediaRetryNotification_ResultType = 3
|
|
)
|
|
|
|
// Enum value maps for MediaRetryNotification_ResultType.
|
|
var (
|
|
MediaRetryNotification_ResultType_name = map[int32]string{
|
|
0: "GENERAL_ERROR",
|
|
1: "SUCCESS",
|
|
2: "NOT_FOUND",
|
|
3: "DECRYPTION_ERROR",
|
|
}
|
|
MediaRetryNotification_ResultType_value = map[string]int32{
|
|
"GENERAL_ERROR": 0,
|
|
"SUCCESS": 1,
|
|
"NOT_FOUND": 2,
|
|
"DECRYPTION_ERROR": 3,
|
|
}
|
|
)
|
|
|
|
func (x MediaRetryNotification_ResultType) Enum() *MediaRetryNotification_ResultType {
|
|
p := new(MediaRetryNotification_ResultType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x MediaRetryNotification_ResultType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (MediaRetryNotification_ResultType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_waMmsRetry_WAMmsRetry_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (MediaRetryNotification_ResultType) Type() protoreflect.EnumType {
|
|
return &file_waMmsRetry_WAMmsRetry_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x MediaRetryNotification_ResultType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Do not use.
|
|
func (x *MediaRetryNotification_ResultType) UnmarshalJSON(b []byte) error {
|
|
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = MediaRetryNotification_ResultType(num)
|
|
return nil
|
|
}
|
|
|
|
// Deprecated: Use MediaRetryNotification_ResultType.Descriptor instead.
|
|
func (MediaRetryNotification_ResultType) EnumDescriptor() ([]byte, []int) {
|
|
return file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
type MediaRetryNotification struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
StanzaID *string `protobuf:"bytes,1,opt,name=stanzaID" json:"stanzaID,omitempty"`
|
|
DirectPath *string `protobuf:"bytes,2,opt,name=directPath" json:"directPath,omitempty"`
|
|
Result *MediaRetryNotification_ResultType `protobuf:"varint,3,opt,name=result,enum=WAMmsRetry.MediaRetryNotification_ResultType" json:"result,omitempty"`
|
|
}
|
|
|
|
func (x *MediaRetryNotification) Reset() {
|
|
*x = MediaRetryNotification{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *MediaRetryNotification) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MediaRetryNotification) ProtoMessage() {}
|
|
|
|
func (x *MediaRetryNotification) ProtoReflect() protoreflect.Message {
|
|
mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MediaRetryNotification.ProtoReflect.Descriptor instead.
|
|
func (*MediaRetryNotification) Descriptor() ([]byte, []int) {
|
|
return file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MediaRetryNotification) GetStanzaID() string {
|
|
if x != nil && x.StanzaID != nil {
|
|
return *x.StanzaID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MediaRetryNotification) GetDirectPath() string {
|
|
if x != nil && x.DirectPath != nil {
|
|
return *x.DirectPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MediaRetryNotification) GetResult() MediaRetryNotification_ResultType {
|
|
if x != nil && x.Result != nil {
|
|
return *x.Result
|
|
}
|
|
return MediaRetryNotification_GENERAL_ERROR
|
|
}
|
|
|
|
type ServerErrorReceipt struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
StanzaID *string `protobuf:"bytes,1,opt,name=stanzaID" json:"stanzaID,omitempty"`
|
|
}
|
|
|
|
func (x *ServerErrorReceipt) Reset() {
|
|
*x = ServerErrorReceipt{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ServerErrorReceipt) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ServerErrorReceipt) ProtoMessage() {}
|
|
|
|
func (x *ServerErrorReceipt) ProtoReflect() protoreflect.Message {
|
|
mi := &file_waMmsRetry_WAMmsRetry_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ServerErrorReceipt.ProtoReflect.Descriptor instead.
|
|
func (*ServerErrorReceipt) Descriptor() ([]byte, []int) {
|
|
return file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ServerErrorReceipt) GetStanzaID() string {
|
|
if x != nil && x.StanzaID != nil {
|
|
return *x.StanzaID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_waMmsRetry_WAMmsRetry_proto protoreflect.FileDescriptor
|
|
|
|
//go:embed WAMmsRetry.pb.raw
|
|
var file_waMmsRetry_WAMmsRetry_proto_rawDesc []byte
|
|
|
|
var (
|
|
file_waMmsRetry_WAMmsRetry_proto_rawDescOnce sync.Once
|
|
file_waMmsRetry_WAMmsRetry_proto_rawDescData = file_waMmsRetry_WAMmsRetry_proto_rawDesc
|
|
)
|
|
|
|
func file_waMmsRetry_WAMmsRetry_proto_rawDescGZIP() []byte {
|
|
file_waMmsRetry_WAMmsRetry_proto_rawDescOnce.Do(func() {
|
|
file_waMmsRetry_WAMmsRetry_proto_rawDescData = protoimpl.X.CompressGZIP(file_waMmsRetry_WAMmsRetry_proto_rawDescData)
|
|
})
|
|
return file_waMmsRetry_WAMmsRetry_proto_rawDescData
|
|
}
|
|
|
|
var file_waMmsRetry_WAMmsRetry_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_waMmsRetry_WAMmsRetry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_waMmsRetry_WAMmsRetry_proto_goTypes = []any{
|
|
(MediaRetryNotification_ResultType)(0), // 0: WAMmsRetry.MediaRetryNotification.ResultType
|
|
(*MediaRetryNotification)(nil), // 1: WAMmsRetry.MediaRetryNotification
|
|
(*ServerErrorReceipt)(nil), // 2: WAMmsRetry.ServerErrorReceipt
|
|
}
|
|
var file_waMmsRetry_WAMmsRetry_proto_depIdxs = []int32{
|
|
0, // 0: WAMmsRetry.MediaRetryNotification.result:type_name -> WAMmsRetry.MediaRetryNotification.ResultType
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_waMmsRetry_WAMmsRetry_proto_init() }
|
|
func file_waMmsRetry_WAMmsRetry_proto_init() {
|
|
if File_waMmsRetry_WAMmsRetry_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_waMmsRetry_WAMmsRetry_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
|
switch v := v.(*MediaRetryNotification); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_waMmsRetry_WAMmsRetry_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
|
switch v := v.(*ServerErrorReceipt); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_waMmsRetry_WAMmsRetry_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_waMmsRetry_WAMmsRetry_proto_goTypes,
|
|
DependencyIndexes: file_waMmsRetry_WAMmsRetry_proto_depIdxs,
|
|
EnumInfos: file_waMmsRetry_WAMmsRetry_proto_enumTypes,
|
|
MessageInfos: file_waMmsRetry_WAMmsRetry_proto_msgTypes,
|
|
}.Build()
|
|
File_waMmsRetry_WAMmsRetry_proto = out.File
|
|
file_waMmsRetry_WAMmsRetry_proto_rawDesc = nil
|
|
file_waMmsRetry_WAMmsRetry_proto_goTypes = nil
|
|
file_waMmsRetry_WAMmsRetry_proto_depIdxs = nil
|
|
}
|