Documentation
¶
Index ¶
- Variables
- type Contact
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAuthor() *Contact
- func (x *Message) GetChatId() string
- func (m *Message) GetContent() isMessage_Content
- func (x *Message) GetCreatedAt() int64
- func (x *Message) GetId() string
- func (x *Message) GetSig() string
- func (x *Message) GetText() string
- func (x *Message) GetTextMessage() *Text
- func (x *Message) GetType() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageStatus
- func (*MessageStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MessageStatus) GetMsgId() int64
- func (x *MessageStatus) GetStatus() string
- func (*MessageStatus) ProtoMessage()
- func (x *MessageStatus) ProtoReflect() protoreflect.Message
- func (x *MessageStatus) Reset()
- func (x *MessageStatus) String() string
- type Message_TextMessage
- type Text
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Contact) Descriptor
deprecated
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
func (*Contact) ProtoReflect ¶
func (x *Contact) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Author *Contact `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` CreatedAt int64 `protobuf:"varint,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // Types that are assignable to Content: // *Message_TextMessage Content isMessage_Content `protobuf_oneof:"content"` Sig string `protobuf:"bytes,6,opt,name=sig,proto3" json:"sig,omitempty"` ChatId string `protobuf:"bytes,7,opt,name=chatId,proto3" json:"chatId,omitempty"` Text string `protobuf:"bytes,8,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (m *Message) GetContent() isMessage_Content
func (*Message) GetCreatedAt ¶
func (*Message) GetTextMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageStatus ¶
type MessageStatus struct { MsgId int64 `protobuf:"varint,1,opt,name=msgId,proto3" json:"msgId,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*MessageStatus) Descriptor
deprecated
func (*MessageStatus) Descriptor() ([]byte, []int)
Deprecated: Use MessageStatus.ProtoReflect.Descriptor instead.
func (*MessageStatus) GetMsgId ¶
func (x *MessageStatus) GetMsgId() int64
func (*MessageStatus) GetStatus ¶
func (x *MessageStatus) GetStatus() string
func (*MessageStatus) ProtoMessage ¶
func (*MessageStatus) ProtoMessage()
func (*MessageStatus) ProtoReflect ¶
func (x *MessageStatus) ProtoReflect() protoreflect.Message
func (*MessageStatus) Reset ¶
func (x *MessageStatus) Reset()
func (*MessageStatus) String ¶
func (x *MessageStatus) String() string
type Message_TextMessage ¶
type Message_TextMessage struct {
TextMessage *Text `protobuf:"bytes,5,opt,name=textMessage,proto3,oneof"`
}
type Text ¶
type Text struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*Text) Descriptor
deprecated
func (*Text) ProtoMessage ¶
func (*Text) ProtoMessage()
func (*Text) ProtoReflect ¶
func (x *Text) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.