github.com/status-im/status-go@v1.1.0/protocol/protobuf/emoji_reaction.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v3.20.3
     5  // source: emoji_reaction.proto
     6  
     7  package protobuf
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type EmojiReaction_Type int32
    24  
    25  const (
    26  	EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE EmojiReaction_Type = 0
    27  	EmojiReaction_LOVE                        EmojiReaction_Type = 1
    28  	EmojiReaction_THUMBS_UP                   EmojiReaction_Type = 2
    29  	EmojiReaction_THUMBS_DOWN                 EmojiReaction_Type = 3
    30  	EmojiReaction_LAUGH                       EmojiReaction_Type = 4
    31  	EmojiReaction_SAD                         EmojiReaction_Type = 5
    32  	EmojiReaction_ANGRY                       EmojiReaction_Type = 6
    33  )
    34  
    35  // Enum value maps for EmojiReaction_Type.
    36  var (
    37  	EmojiReaction_Type_name = map[int32]string{
    38  		0: "UNKNOWN_EMOJI_REACTION_TYPE",
    39  		1: "LOVE",
    40  		2: "THUMBS_UP",
    41  		3: "THUMBS_DOWN",
    42  		4: "LAUGH",
    43  		5: "SAD",
    44  		6: "ANGRY",
    45  	}
    46  	EmojiReaction_Type_value = map[string]int32{
    47  		"UNKNOWN_EMOJI_REACTION_TYPE": 0,
    48  		"LOVE":                        1,
    49  		"THUMBS_UP":                   2,
    50  		"THUMBS_DOWN":                 3,
    51  		"LAUGH":                       4,
    52  		"SAD":                         5,
    53  		"ANGRY":                       6,
    54  	}
    55  )
    56  
    57  func (x EmojiReaction_Type) Enum() *EmojiReaction_Type {
    58  	p := new(EmojiReaction_Type)
    59  	*p = x
    60  	return p
    61  }
    62  
    63  func (x EmojiReaction_Type) String() string {
    64  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    65  }
    66  
    67  func (EmojiReaction_Type) Descriptor() protoreflect.EnumDescriptor {
    68  	return file_emoji_reaction_proto_enumTypes[0].Descriptor()
    69  }
    70  
    71  func (EmojiReaction_Type) Type() protoreflect.EnumType {
    72  	return &file_emoji_reaction_proto_enumTypes[0]
    73  }
    74  
    75  func (x EmojiReaction_Type) Number() protoreflect.EnumNumber {
    76  	return protoreflect.EnumNumber(x)
    77  }
    78  
    79  // Deprecated: Use EmojiReaction_Type.Descriptor instead.
    80  func (EmojiReaction_Type) EnumDescriptor() ([]byte, []int) {
    81  	return file_emoji_reaction_proto_rawDescGZIP(), []int{0, 0}
    82  }
    83  
    84  type EmojiReaction struct {
    85  	state         protoimpl.MessageState
    86  	sizeCache     protoimpl.SizeCache
    87  	unknownFields protoimpl.UnknownFields
    88  
    89  	// clock Lamport timestamp of the chat message
    90  	Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
    91  	// chat_id the ID of the chat the message belongs to, for query efficiency the chat_id is stored in the db even though the
    92  	// target message also stores the chat_id
    93  	ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
    94  	// message_id the ID of the target message that the user wishes to react to
    95  	MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
    96  	// message_type is (somewhat confusingly) the ID of the type of chat the message belongs to
    97  	MessageType MessageType `protobuf:"varint,4,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
    98  	// type the ID of the emoji the user wishes to react with
    99  	Type EmojiReaction_Type `protobuf:"varint,5,opt,name=type,proto3,enum=protobuf.EmojiReaction_Type" json:"type,omitempty"`
   100  	// whether this is a rectraction of a previously sent emoji
   101  	Retracted bool `protobuf:"varint,6,opt,name=retracted,proto3" json:"retracted,omitempty"`
   102  	// Grant for organisation chat messages
   103  	//
   104  	// Deprecated: Marked as deprecated in emoji_reaction.proto.
   105  	Grant []byte `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"`
   106  }
   107  
   108  func (x *EmojiReaction) Reset() {
   109  	*x = EmojiReaction{}
   110  	if protoimpl.UnsafeEnabled {
   111  		mi := &file_emoji_reaction_proto_msgTypes[0]
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		ms.StoreMessageInfo(mi)
   114  	}
   115  }
   116  
   117  func (x *EmojiReaction) String() string {
   118  	return protoimpl.X.MessageStringOf(x)
   119  }
   120  
   121  func (*EmojiReaction) ProtoMessage() {}
   122  
   123  func (x *EmojiReaction) ProtoReflect() protoreflect.Message {
   124  	mi := &file_emoji_reaction_proto_msgTypes[0]
   125  	if protoimpl.UnsafeEnabled && x != nil {
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		if ms.LoadMessageInfo() == nil {
   128  			ms.StoreMessageInfo(mi)
   129  		}
   130  		return ms
   131  	}
   132  	return mi.MessageOf(x)
   133  }
   134  
   135  // Deprecated: Use EmojiReaction.ProtoReflect.Descriptor instead.
   136  func (*EmojiReaction) Descriptor() ([]byte, []int) {
   137  	return file_emoji_reaction_proto_rawDescGZIP(), []int{0}
   138  }
   139  
   140  func (x *EmojiReaction) GetClock() uint64 {
   141  	if x != nil {
   142  		return x.Clock
   143  	}
   144  	return 0
   145  }
   146  
   147  func (x *EmojiReaction) GetChatId() string {
   148  	if x != nil {
   149  		return x.ChatId
   150  	}
   151  	return ""
   152  }
   153  
   154  func (x *EmojiReaction) GetMessageId() string {
   155  	if x != nil {
   156  		return x.MessageId
   157  	}
   158  	return ""
   159  }
   160  
   161  func (x *EmojiReaction) GetMessageType() MessageType {
   162  	if x != nil {
   163  		return x.MessageType
   164  	}
   165  	return MessageType_UNKNOWN_MESSAGE_TYPE
   166  }
   167  
   168  func (x *EmojiReaction) GetType() EmojiReaction_Type {
   169  	if x != nil {
   170  		return x.Type
   171  	}
   172  	return EmojiReaction_UNKNOWN_EMOJI_REACTION_TYPE
   173  }
   174  
   175  func (x *EmojiReaction) GetRetracted() bool {
   176  	if x != nil {
   177  		return x.Retracted
   178  	}
   179  	return false
   180  }
   181  
   182  // Deprecated: Marked as deprecated in emoji_reaction.proto.
   183  func (x *EmojiReaction) GetGrant() []byte {
   184  	if x != nil {
   185  		return x.Grant
   186  	}
   187  	return nil
   188  }
   189  
   190  var File_emoji_reaction_proto protoreflect.FileDescriptor
   191  
   192  var file_emoji_reaction_proto_rawDesc = []byte{
   193  	0x0a, 0x14, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   194  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   195  	0x1a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x02,
   196  	0x0a, 0x0d, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
   197  	0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
   198  	0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64,
   199  	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1d,
   200  	0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
   201  	0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x38, 0x0a,
   202  	0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
   203  	0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d,
   204  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73,
   205  	0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
   206  	0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   207  	0x2e, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54,
   208  	0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x74,
   209  	0x72, 0x61, 0x63, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65,
   210  	0x74, 0x72, 0x61, 0x63, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74,
   211  	0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e,
   212  	0x74, 0x22, 0x70, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x55, 0x4e, 0x4b,
   213  	0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x4d, 0x4f, 0x4a, 0x49, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54,
   214  	0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x4f,
   215  	0x56, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x55,
   216  	0x50, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x55, 0x4d, 0x42, 0x53, 0x5f, 0x44, 0x4f,
   217  	0x57, 0x4e, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x41, 0x55, 0x47, 0x48, 0x10, 0x04, 0x12,
   218  	0x07, 0x0a, 0x03, 0x53, 0x41, 0x44, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4e, 0x47, 0x52,
   219  	0x59, 0x10, 0x06, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   220  	0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   221  }
   222  
   223  var (
   224  	file_emoji_reaction_proto_rawDescOnce sync.Once
   225  	file_emoji_reaction_proto_rawDescData = file_emoji_reaction_proto_rawDesc
   226  )
   227  
   228  func file_emoji_reaction_proto_rawDescGZIP() []byte {
   229  	file_emoji_reaction_proto_rawDescOnce.Do(func() {
   230  		file_emoji_reaction_proto_rawDescData = protoimpl.X.CompressGZIP(file_emoji_reaction_proto_rawDescData)
   231  	})
   232  	return file_emoji_reaction_proto_rawDescData
   233  }
   234  
   235  var file_emoji_reaction_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   236  var file_emoji_reaction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   237  var file_emoji_reaction_proto_goTypes = []interface{}{
   238  	(EmojiReaction_Type)(0), // 0: protobuf.EmojiReaction.Type
   239  	(*EmojiReaction)(nil),   // 1: protobuf.EmojiReaction
   240  	(MessageType)(0),        // 2: protobuf.MessageType
   241  }
   242  var file_emoji_reaction_proto_depIdxs = []int32{
   243  	2, // 0: protobuf.EmojiReaction.message_type:type_name -> protobuf.MessageType
   244  	0, // 1: protobuf.EmojiReaction.type:type_name -> protobuf.EmojiReaction.Type
   245  	2, // [2:2] is the sub-list for method output_type
   246  	2, // [2:2] is the sub-list for method input_type
   247  	2, // [2:2] is the sub-list for extension type_name
   248  	2, // [2:2] is the sub-list for extension extendee
   249  	0, // [0:2] is the sub-list for field type_name
   250  }
   251  
   252  func init() { file_emoji_reaction_proto_init() }
   253  func file_emoji_reaction_proto_init() {
   254  	if File_emoji_reaction_proto != nil {
   255  		return
   256  	}
   257  	file_enums_proto_init()
   258  	if !protoimpl.UnsafeEnabled {
   259  		file_emoji_reaction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   260  			switch v := v.(*EmojiReaction); i {
   261  			case 0:
   262  				return &v.state
   263  			case 1:
   264  				return &v.sizeCache
   265  			case 2:
   266  				return &v.unknownFields
   267  			default:
   268  				return nil
   269  			}
   270  		}
   271  	}
   272  	type x struct{}
   273  	out := protoimpl.TypeBuilder{
   274  		File: protoimpl.DescBuilder{
   275  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   276  			RawDescriptor: file_emoji_reaction_proto_rawDesc,
   277  			NumEnums:      1,
   278  			NumMessages:   1,
   279  			NumExtensions: 0,
   280  			NumServices:   0,
   281  		},
   282  		GoTypes:           file_emoji_reaction_proto_goTypes,
   283  		DependencyIndexes: file_emoji_reaction_proto_depIdxs,
   284  		EnumInfos:         file_emoji_reaction_proto_enumTypes,
   285  		MessageInfos:      file_emoji_reaction_proto_msgTypes,
   286  	}.Build()
   287  	File_emoji_reaction_proto = out.File
   288  	file_emoji_reaction_proto_rawDesc = nil
   289  	file_emoji_reaction_proto_goTypes = nil
   290  	file_emoji_reaction_proto_depIdxs = nil
   291  }