github.com/status-im/status-go@v1.1.0/protocol/protobuf/pin_message.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: pin_message.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 PinMessage struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Clock     uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
    29  	MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
    30  	ChatId    string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
    31  	Pinned    bool   `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,omitempty"`
    32  	// The type of message (public/one-to-one/private-group-chat)
    33  	MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=protobuf.MessageType" json:"message_type,omitempty"`
    34  }
    35  
    36  func (x *PinMessage) Reset() {
    37  	*x = PinMessage{}
    38  	if protoimpl.UnsafeEnabled {
    39  		mi := &file_pin_message_proto_msgTypes[0]
    40  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  		ms.StoreMessageInfo(mi)
    42  	}
    43  }
    44  
    45  func (x *PinMessage) String() string {
    46  	return protoimpl.X.MessageStringOf(x)
    47  }
    48  
    49  func (*PinMessage) ProtoMessage() {}
    50  
    51  func (x *PinMessage) ProtoReflect() protoreflect.Message {
    52  	mi := &file_pin_message_proto_msgTypes[0]
    53  	if protoimpl.UnsafeEnabled && x != nil {
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		if ms.LoadMessageInfo() == nil {
    56  			ms.StoreMessageInfo(mi)
    57  		}
    58  		return ms
    59  	}
    60  	return mi.MessageOf(x)
    61  }
    62  
    63  // Deprecated: Use PinMessage.ProtoReflect.Descriptor instead.
    64  func (*PinMessage) Descriptor() ([]byte, []int) {
    65  	return file_pin_message_proto_rawDescGZIP(), []int{0}
    66  }
    67  
    68  func (x *PinMessage) GetClock() uint64 {
    69  	if x != nil {
    70  		return x.Clock
    71  	}
    72  	return 0
    73  }
    74  
    75  func (x *PinMessage) GetMessageId() string {
    76  	if x != nil {
    77  		return x.MessageId
    78  	}
    79  	return ""
    80  }
    81  
    82  func (x *PinMessage) GetChatId() string {
    83  	if x != nil {
    84  		return x.ChatId
    85  	}
    86  	return ""
    87  }
    88  
    89  func (x *PinMessage) GetPinned() bool {
    90  	if x != nil {
    91  		return x.Pinned
    92  	}
    93  	return false
    94  }
    95  
    96  func (x *PinMessage) GetMessageType() MessageType {
    97  	if x != nil {
    98  		return x.MessageType
    99  	}
   100  	return MessageType_UNKNOWN_MESSAGE_TYPE
   101  }
   102  
   103  var File_pin_message_proto protoreflect.FileDescriptor
   104  
   105  var file_pin_message_proto_rawDesc = []byte{
   106  	0x0a, 0x11, 0x70, 0x69, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
   107  	0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x65,
   108  	0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x0a, 0x50,
   109  	0x69, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f,
   110  	0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x12,
   111  	0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
   112  	0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x17,
   113  	0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
   114  	0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65,
   115  	0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x12,
   116  	0x38, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
   117  	0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   118  	0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65,
   119  	0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b,
   120  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   121  }
   122  
   123  var (
   124  	file_pin_message_proto_rawDescOnce sync.Once
   125  	file_pin_message_proto_rawDescData = file_pin_message_proto_rawDesc
   126  )
   127  
   128  func file_pin_message_proto_rawDescGZIP() []byte {
   129  	file_pin_message_proto_rawDescOnce.Do(func() {
   130  		file_pin_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_pin_message_proto_rawDescData)
   131  	})
   132  	return file_pin_message_proto_rawDescData
   133  }
   134  
   135  var file_pin_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   136  var file_pin_message_proto_goTypes = []interface{}{
   137  	(*PinMessage)(nil), // 0: protobuf.PinMessage
   138  	(MessageType)(0),   // 1: protobuf.MessageType
   139  }
   140  var file_pin_message_proto_depIdxs = []int32{
   141  	1, // 0: protobuf.PinMessage.message_type:type_name -> protobuf.MessageType
   142  	1, // [1:1] is the sub-list for method output_type
   143  	1, // [1:1] is the sub-list for method input_type
   144  	1, // [1:1] is the sub-list for extension type_name
   145  	1, // [1:1] is the sub-list for extension extendee
   146  	0, // [0:1] is the sub-list for field type_name
   147  }
   148  
   149  func init() { file_pin_message_proto_init() }
   150  func file_pin_message_proto_init() {
   151  	if File_pin_message_proto != nil {
   152  		return
   153  	}
   154  	file_enums_proto_init()
   155  	if !protoimpl.UnsafeEnabled {
   156  		file_pin_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   157  			switch v := v.(*PinMessage); i {
   158  			case 0:
   159  				return &v.state
   160  			case 1:
   161  				return &v.sizeCache
   162  			case 2:
   163  				return &v.unknownFields
   164  			default:
   165  				return nil
   166  			}
   167  		}
   168  	}
   169  	type x struct{}
   170  	out := protoimpl.TypeBuilder{
   171  		File: protoimpl.DescBuilder{
   172  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   173  			RawDescriptor: file_pin_message_proto_rawDesc,
   174  			NumEnums:      0,
   175  			NumMessages:   1,
   176  			NumExtensions: 0,
   177  			NumServices:   0,
   178  		},
   179  		GoTypes:           file_pin_message_proto_goTypes,
   180  		DependencyIndexes: file_pin_message_proto_depIdxs,
   181  		MessageInfos:      file_pin_message_proto_msgTypes,
   182  	}.Build()
   183  	File_pin_message_proto = out.File
   184  	file_pin_message_proto_rawDesc = nil
   185  	file_pin_message_proto_goTypes = nil
   186  	file_pin_message_proto_depIdxs = nil
   187  }