WAWebProtobufsChatLockSettings.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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: waChatLockSettings/WAWebProtobufsChatLockSettings.proto
  6. package waChatLockSettings
  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. waUserPassword "go.mau.fi/whatsmeow/proto/waUserPassword"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type ChatLockSettings struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. HideLockedChats *bool `protobuf:"varint,1,opt,name=hideLockedChats" json:"hideLockedChats,omitempty"`
  24. SecretCode *waUserPassword.UserPassword `protobuf:"bytes,2,opt,name=secretCode" json:"secretCode,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *ChatLockSettings) Reset() {
  29. *x = ChatLockSettings{}
  30. mi := &file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *ChatLockSettings) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*ChatLockSettings) ProtoMessage() {}
  38. func (x *ChatLockSettings) ProtoReflect() protoreflect.Message {
  39. mi := &file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use ChatLockSettings.ProtoReflect.Descriptor instead.
  50. func (*ChatLockSettings) Descriptor() ([]byte, []int) {
  51. return file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *ChatLockSettings) GetHideLockedChats() bool {
  54. if x != nil && x.HideLockedChats != nil {
  55. return *x.HideLockedChats
  56. }
  57. return false
  58. }
  59. func (x *ChatLockSettings) GetSecretCode() *waUserPassword.UserPassword {
  60. if x != nil {
  61. return x.SecretCode
  62. }
  63. return nil
  64. }
  65. var File_waChatLockSettings_WAWebProtobufsChatLockSettings_proto protoreflect.FileDescriptor
  66. const file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDesc = "" +
  67. "\n" +
  68. "7waChatLockSettings/WAWebProtobufsChatLockSettings.proto\x12\x1eWAWebProtobufsChatLockSettings\x1a/waUserPassword/WAWebProtobufsUserPassword.proto\"\x86\x01\n" +
  69. "\x10ChatLockSettings\x12(\n" +
  70. "\x0fhideLockedChats\x18\x01 \x01(\bR\x0fhideLockedChats\x12H\n" +
  71. "\n" +
  72. "secretCode\x18\x02 \x01(\v2(.WAWebProtobufsUserPassword.UserPasswordR\n" +
  73. "secretCodeB.Z,go.mau.fi/whatsmeow/proto/waChatLockSettings"
  74. var (
  75. file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescOnce sync.Once
  76. file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescData []byte
  77. )
  78. func file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescGZIP() []byte {
  79. file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescOnce.Do(func() {
  80. file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDesc), len(file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDesc)))
  81. })
  82. return file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDescData
  83. }
  84. var file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  85. var file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_goTypes = []any{
  86. (*ChatLockSettings)(nil), // 0: WAWebProtobufsChatLockSettings.ChatLockSettings
  87. (*waUserPassword.UserPassword)(nil), // 1: WAWebProtobufsUserPassword.UserPassword
  88. }
  89. var file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_depIdxs = []int32{
  90. 1, // 0: WAWebProtobufsChatLockSettings.ChatLockSettings.secretCode:type_name -> WAWebProtobufsUserPassword.UserPassword
  91. 1, // [1:1] is the sub-list for method output_type
  92. 1, // [1:1] is the sub-list for method input_type
  93. 1, // [1:1] is the sub-list for extension type_name
  94. 1, // [1:1] is the sub-list for extension extendee
  95. 0, // [0:1] is the sub-list for field type_name
  96. }
  97. func init() { file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_init() }
  98. func file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_init() {
  99. if File_waChatLockSettings_WAWebProtobufsChatLockSettings_proto != nil {
  100. return
  101. }
  102. type x struct{}
  103. out := protoimpl.TypeBuilder{
  104. File: protoimpl.DescBuilder{
  105. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  106. RawDescriptor: unsafe.Slice(unsafe.StringData(file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDesc), len(file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_rawDesc)),
  107. NumEnums: 0,
  108. NumMessages: 1,
  109. NumExtensions: 0,
  110. NumServices: 0,
  111. },
  112. GoTypes: file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_goTypes,
  113. DependencyIndexes: file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_depIdxs,
  114. MessageInfos: file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_msgTypes,
  115. }.Build()
  116. File_waChatLockSettings_WAWebProtobufsChatLockSettings_proto = out.File
  117. file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_goTypes = nil
  118. file_waChatLockSettings_WAWebProtobufsChatLockSettings_proto_depIdxs = nil
  119. }