pb

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) Descriptor() ([]byte, []int)

Deprecated: Use Contact.ProtoReflect.Descriptor instead.

func (*Contact) GetId

func (x *Contact) GetId() string

func (*Contact) GetName

func (x *Contact) GetName() string

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) ProtoReflect

func (x *Contact) ProtoReflect() protoreflect.Message

func (*Contact) Reset

func (x *Contact) Reset()

func (*Contact) String

func (x *Contact) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAuthor

func (x *Message) GetAuthor() *Contact

func (*Message) GetChatId

func (x *Message) GetChatId() string

func (*Message) GetContent

func (m *Message) GetContent() isMessage_Content

func (*Message) GetCreatedAt

func (x *Message) GetCreatedAt() int64

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetSig

func (x *Message) GetSig() string

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) GetTextMessage

func (x *Message) GetTextMessage() *Text

func (*Message) GetType

func (x *Message) GetType() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Text.ProtoReflect.Descriptor instead.

func (*Text) GetText

func (x *Text) GetText() string

func (*Text) ProtoMessage

func (*Text) ProtoMessage()

func (*Text) ProtoReflect

func (x *Text) ProtoReflect() protoreflect.Message

func (*Text) Reset

func (x *Text) Reset()

func (*Text) String

func (x *Text) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL