proto

package
v1.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Message_TextFormat_name = map[int32]string{
	0: "PLAIN_TEXT",
}
View Source
var Message_TextFormat_value = map[string]int32{
	"PLAIN_TEXT": 0,
}

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// Types that are valid to be assigned to Bot:
	//	*Bot_Message
	//	*Bot_Reply
	//	*Bot_Private
	Bot                  isBot_Bot `protobuf_oneof:"bot"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Bot ...

These are the messages that can be moved through the outbox and the inbox.

func (*Bot) Descriptor

func (*Bot) Descriptor() ([]byte, []int)

func (*Bot) GetBot

func (m *Bot) GetBot() isBot_Bot

func (*Bot) GetMessage

func (m *Bot) GetMessage() *Message

func (*Bot) GetPrivate

func (m *Bot) GetPrivate() *Message

func (*Bot) GetReply

func (m *Bot) GetReply() *Message

func (*Bot) ProtoMessage

func (*Bot) ProtoMessage()

func (*Bot) Reset

func (m *Bot) Reset()

func (*Bot) String

func (m *Bot) String() string

func (*Bot) XXX_DiscardUnknown

func (m *Bot) XXX_DiscardUnknown()

func (*Bot) XXX_Marshal

func (m *Bot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bot) XXX_Merge

func (dst *Bot) XXX_Merge(src proto.Message)

func (*Bot) XXX_OneofFuncs

func (*Bot) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Bot) XXX_Size

func (m *Bot) XXX_Size() int

func (*Bot) XXX_Unmarshal

func (m *Bot) XXX_Unmarshal(b []byte) error

type Bot_Message

type Bot_Message struct {
	Message *Message `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}

type Bot_Private

type Bot_Private struct {
	Private *Message `protobuf:"bytes,3,opt,name=private,proto3,oneof"`
}

type Bot_Reply

type Bot_Reply struct {
	Reply *Message `protobuf:"bytes,2,opt,name=reply,proto3,oneof"`
}

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Empty ...

Empty reply.

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (dst *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type Message

type Message struct {
	// UUID ...
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// ID ...
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Type ...
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// Channel ...
	Channel *Message_Channel `protobuf:"bytes,4,opt,name=channel,proto3" json:"channel,omitempty"`
	// From ...
	From *Message_User `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"`
	// Recipient ...
	Recipient *Message_Recipient `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// isBot ...
	IsBot bool `protobuf:"varint,7,opt,name=is_bot,json=isBot,proto3" json:"is_bot,omitempty"`
	// isDirectMessage ...
	IsDirectMessage bool `protobuf:"varint,8,opt,name=is_direct_message,json=isDirectMessage,proto3" json:"is_direct_message,omitempty"`
	// Timestamp ...
	Timestamp *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// TextFormat ...
	TextFormat Message_TextFormat `protobuf:"varint,20,opt,name=text_format,json=textFormat,proto3,enum=proto.Message_TextFormat" json:"text_format,omitempty"`
	// Text ...
	Text                 string   `protobuf:"bytes,21,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Message ...

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetChannel

func (m *Message) GetChannel() *Message_Channel

func (*Message) GetFrom

func (m *Message) GetFrom() *Message_User

func (*Message) GetId

func (m *Message) GetId() string

func (*Message) GetIsBot

func (m *Message) GetIsBot() bool

func (*Message) GetIsDirectMessage

func (m *Message) GetIsDirectMessage() bool

func (*Message) GetRecipient

func (m *Message) GetRecipient() *Message_Recipient

func (*Message) GetText

func (m *Message) GetText() string

func (*Message) GetTextFormat

func (m *Message) GetTextFormat() Message_TextFormat

func (*Message) GetTimestamp

func (m *Message) GetTimestamp() *timestamp.Timestamp

func (*Message) GetType

func (m *Message) GetType() string

func (*Message) GetUuid

func (m *Message) GetUuid() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reply

func (m *Message) Reply(text string) *Message

Reply is producing a reply from a message

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (dst *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type Message_Channel

type Message_Channel struct {
	// ID ...
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name ...
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Channel ...

This is the channel of the interaction ...

func (*Message_Channel) Descriptor

func (*Message_Channel) Descriptor() ([]byte, []int)

func (*Message_Channel) GetId

func (m *Message_Channel) GetId() string

func (*Message_Channel) GetName

func (m *Message_Channel) GetName() string

func (*Message_Channel) ProtoMessage

func (*Message_Channel) ProtoMessage()

func (*Message_Channel) Reset

func (m *Message_Channel) Reset()

func (*Message_Channel) String

func (m *Message_Channel) String() string

func (*Message_Channel) XXX_DiscardUnknown

func (m *Message_Channel) XXX_DiscardUnknown()

func (*Message_Channel) XXX_Marshal

func (m *Message_Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_Channel) XXX_Merge

func (dst *Message_Channel) XXX_Merge(src proto.Message)

func (*Message_Channel) XXX_Size

func (m *Message_Channel) XXX_Size() int

func (*Message_Channel) XXX_Unmarshal

func (m *Message_Channel) XXX_Unmarshal(b []byte) error

type Message_Recipient

type Message_Recipient struct {
	// ID ...
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name ...
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Team ...
	Team                 *Message_Team `protobuf:"bytes,3,opt,name=team,proto3" json:"team,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Recipient ...

This is the recipient of an interaction ...

func (*Message_Recipient) Descriptor

func (*Message_Recipient) Descriptor() ([]byte, []int)

func (*Message_Recipient) GetId

func (m *Message_Recipient) GetId() string

func (*Message_Recipient) GetName

func (m *Message_Recipient) GetName() string

func (*Message_Recipient) GetTeam

func (m *Message_Recipient) GetTeam() *Message_Team

func (*Message_Recipient) ProtoMessage

func (*Message_Recipient) ProtoMessage()

func (*Message_Recipient) Reset

func (m *Message_Recipient) Reset()

func (*Message_Recipient) String

func (m *Message_Recipient) String() string

func (*Message_Recipient) XXX_DiscardUnknown

func (m *Message_Recipient) XXX_DiscardUnknown()

func (*Message_Recipient) XXX_Marshal

func (m *Message_Recipient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_Recipient) XXX_Merge

func (dst *Message_Recipient) XXX_Merge(src proto.Message)

func (*Message_Recipient) XXX_Size

func (m *Message_Recipient) XXX_Size() int

func (*Message_Recipient) XXX_Unmarshal

func (m *Message_Recipient) XXX_Unmarshal(b []byte) error

type Message_Team

type Message_Team struct {
	// ID ...
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name ...
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Team ...

This is a team interaction ...

func (*Message_Team) Descriptor

func (*Message_Team) Descriptor() ([]byte, []int)

func (*Message_Team) GetId

func (m *Message_Team) GetId() string

func (*Message_Team) GetName

func (m *Message_Team) GetName() string

func (*Message_Team) ProtoMessage

func (*Message_Team) ProtoMessage()

func (*Message_Team) Reset

func (m *Message_Team) Reset()

func (*Message_Team) String

func (m *Message_Team) String() string

func (*Message_Team) XXX_DiscardUnknown

func (m *Message_Team) XXX_DiscardUnknown()

func (*Message_Team) XXX_Marshal

func (m *Message_Team) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_Team) XXX_Merge

func (dst *Message_Team) XXX_Merge(src proto.Message)

func (*Message_Team) XXX_Size

func (m *Message_Team) XXX_Size() int

func (*Message_Team) XXX_Unmarshal

func (m *Message_Team) XXX_Unmarshal(b []byte) error

type Message_TextFormat

type Message_TextFormat int32

TextFormat ...

const (
	Message_PLAIN_TEXT Message_TextFormat = 0
)

func (Message_TextFormat) EnumDescriptor

func (Message_TextFormat) EnumDescriptor() ([]byte, []int)

func (Message_TextFormat) String

func (x Message_TextFormat) String() string

type Message_User

type Message_User struct {
	// ID ...
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name ...
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Team ...
	Team                 *Message_Team `protobuf:"bytes,3,opt,name=team,proto3" json:"team,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

User ...

This is a user interaction ...

func (*Message_User) Descriptor

func (*Message_User) Descriptor() ([]byte, []int)

func (*Message_User) GetId

func (m *Message_User) GetId() string

func (*Message_User) GetName

func (m *Message_User) GetName() string

func (*Message_User) GetTeam

func (m *Message_User) GetTeam() *Message_Team

func (*Message_User) ProtoMessage

func (*Message_User) ProtoMessage()

func (*Message_User) Reset

func (m *Message_User) Reset()

func (*Message_User) String

func (m *Message_User) String() string

func (*Message_User) XXX_DiscardUnknown

func (m *Message_User) XXX_DiscardUnknown()

func (*Message_User) XXX_Marshal

func (m *Message_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message_User) XXX_Merge

func (dst *Message_User) XXX_Merge(src proto.Message)

func (*Message_User) XXX_Size

func (m *Message_User) XXX_Size() int

func (*Message_User) XXX_Unmarshal

func (m *Message_User) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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