forked from jshiffer/matterbridge
c4157a4d5b
* Update dependencies * Fix whatsmeow API changes
203 lines
7.5 KiB
Go
Generated
203 lines
7.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: waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto
|
|
|
|
package waDeviceCapabilities
|
|
|
|
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 DeviceCapabilities_ChatLockSupportLevel int32
|
|
|
|
const (
|
|
DeviceCapabilities_NONE DeviceCapabilities_ChatLockSupportLevel = 0
|
|
DeviceCapabilities_MINIMAL DeviceCapabilities_ChatLockSupportLevel = 1
|
|
DeviceCapabilities_FULL DeviceCapabilities_ChatLockSupportLevel = 2
|
|
)
|
|
|
|
// Enum value maps for DeviceCapabilities_ChatLockSupportLevel.
|
|
var (
|
|
DeviceCapabilities_ChatLockSupportLevel_name = map[int32]string{
|
|
0: "NONE",
|
|
1: "MINIMAL",
|
|
2: "FULL",
|
|
}
|
|
DeviceCapabilities_ChatLockSupportLevel_value = map[string]int32{
|
|
"NONE": 0,
|
|
"MINIMAL": 1,
|
|
"FULL": 2,
|
|
}
|
|
)
|
|
|
|
func (x DeviceCapabilities_ChatLockSupportLevel) Enum() *DeviceCapabilities_ChatLockSupportLevel {
|
|
p := new(DeviceCapabilities_ChatLockSupportLevel)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DeviceCapabilities_ChatLockSupportLevel) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (DeviceCapabilities_ChatLockSupportLevel) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (DeviceCapabilities_ChatLockSupportLevel) Type() protoreflect.EnumType {
|
|
return &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x DeviceCapabilities_ChatLockSupportLevel) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Do not use.
|
|
func (x *DeviceCapabilities_ChatLockSupportLevel) UnmarshalJSON(b []byte) error {
|
|
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = DeviceCapabilities_ChatLockSupportLevel(num)
|
|
return nil
|
|
}
|
|
|
|
// Deprecated: Use DeviceCapabilities_ChatLockSupportLevel.Descriptor instead.
|
|
func (DeviceCapabilities_ChatLockSupportLevel) EnumDescriptor() ([]byte, []int) {
|
|
return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
type DeviceCapabilities struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ChatLockSupportLevel *DeviceCapabilities_ChatLockSupportLevel `protobuf:"varint,1,opt,name=chatLockSupportLevel,enum=WAProtobufsDeviceCapabilities.DeviceCapabilities_ChatLockSupportLevel" json:"chatLockSupportLevel,omitempty"`
|
|
}
|
|
|
|
func (x *DeviceCapabilities) Reset() {
|
|
*x = DeviceCapabilities{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DeviceCapabilities) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeviceCapabilities) ProtoMessage() {}
|
|
|
|
func (x *DeviceCapabilities) ProtoReflect() protoreflect.Message {
|
|
mi := &file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_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 DeviceCapabilities.ProtoReflect.Descriptor instead.
|
|
func (*DeviceCapabilities) Descriptor() ([]byte, []int) {
|
|
return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DeviceCapabilities) GetChatLockSupportLevel() DeviceCapabilities_ChatLockSupportLevel {
|
|
if x != nil && x.ChatLockSupportLevel != nil {
|
|
return *x.ChatLockSupportLevel
|
|
}
|
|
return DeviceCapabilities_NONE
|
|
}
|
|
|
|
var File_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto protoreflect.FileDescriptor
|
|
|
|
//go:embed WAProtobufsDeviceCapabilities.pb.raw
|
|
var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc []byte
|
|
|
|
var (
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescOnce sync.Once
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescData = file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc
|
|
)
|
|
|
|
func file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescGZIP() []byte {
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescOnce.Do(func() {
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescData = protoimpl.X.CompressGZIP(file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescData)
|
|
})
|
|
return file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDescData
|
|
}
|
|
|
|
var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_goTypes = []any{
|
|
(DeviceCapabilities_ChatLockSupportLevel)(0), // 0: WAProtobufsDeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel
|
|
(*DeviceCapabilities)(nil), // 1: WAProtobufsDeviceCapabilities.DeviceCapabilities
|
|
}
|
|
var file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_depIdxs = []int32{
|
|
0, // 0: WAProtobufsDeviceCapabilities.DeviceCapabilities.chatLockSupportLevel:type_name -> WAProtobufsDeviceCapabilities.DeviceCapabilities.ChatLockSupportLevel
|
|
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_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_init() }
|
|
func file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_init() {
|
|
if File_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
|
switch v := v.(*DeviceCapabilities); 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_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_goTypes,
|
|
DependencyIndexes: file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_depIdxs,
|
|
EnumInfos: file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_enumTypes,
|
|
MessageInfos: file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_msgTypes,
|
|
}.Build()
|
|
File_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto = out.File
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_rawDesc = nil
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_goTypes = nil
|
|
file_waDeviceCapabilities_WAProtobufsDeviceCapabilities_proto_depIdxs = nil
|
|
}
|