pb

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ElementMessageType_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "ERROR",
		2:  "CHAT_MESSAGE",
		3:  "PLAY",
		4:  "PAUSE",
		5:  "CHECK_STATUS",
		6:  "TOO_FAST",
		7:  "TOO_SLOW",
		8:  "CHANGE_RATE",
		9:  "CHANGE_SEEK",
		10: "CURRENT_CHANGED",
		11: "MOVIES_CHANGED",
		12: "PEOPLE_CHANGED",
		13: "SYNC_MOVIE_STATUS",
		14: "CURRENT_EXPIRED",
		15: "CHECK_EXPIRED",
	}
	ElementMessageType_value = map[string]int32{
		"UNKNOWN":           0,
		"ERROR":             1,
		"CHAT_MESSAGE":      2,
		"PLAY":              3,
		"PAUSE":             4,
		"CHECK_STATUS":      5,
		"TOO_FAST":          6,
		"TOO_SLOW":          7,
		"CHANGE_RATE":       8,
		"CHANGE_SEEK":       9,
		"CURRENT_CHANGED":   10,
		"MOVIES_CHANGED":    11,
		"PEOPLE_CHANGED":    12,
		"SYNC_MOVIE_STATUS": 13,
		"CURRENT_EXPIRED":   14,
		"CHECK_EXPIRED":     15,
	}
)

Enum value maps for ElementMessageType.

View Source
var File_proto_message_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ChatResp added in v0.3.6

type ChatResp struct {
	Sender  *Sender `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Message string  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatResp) Descriptor deprecated added in v0.3.6

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

Deprecated: Use ChatResp.ProtoReflect.Descriptor instead.

func (*ChatResp) GetMessage added in v0.3.6

func (x *ChatResp) GetMessage() string

func (*ChatResp) GetSender added in v0.3.6

func (x *ChatResp) GetSender() *Sender

func (*ChatResp) ProtoMessage added in v0.3.6

func (*ChatResp) ProtoMessage()

func (*ChatResp) ProtoReflect added in v0.3.6

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

func (*ChatResp) Reset added in v0.3.6

func (x *ChatResp) Reset()

func (*ChatResp) String added in v0.3.6

func (x *ChatResp) String() string

type ElementMessage

type ElementMessage struct {
	Type                 ElementMessageType  `protobuf:"varint,1,opt,name=type,proto3,enum=proto.ElementMessageType" json:"type,omitempty"`
	Time                 int64               `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	Error                string              `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	ChatReq              string              `protobuf:"bytes,4,opt,name=chatReq,proto3" json:"chatReq,omitempty"`
	ChatResp             *ChatResp           `protobuf:"bytes,5,opt,name=chatResp,proto3" json:"chatResp,omitempty"`
	ChangeMovieStatusReq *MovieStatus        `protobuf:"bytes,6,opt,name=changeMovieStatusReq,proto3" json:"changeMovieStatusReq,omitempty"`
	MovieStatusChanged   *MovieStatusChanged `protobuf:"bytes,7,opt,name=movieStatusChanged,proto3" json:"movieStatusChanged,omitempty"`
	ChangeSeekReq        float64             `protobuf:"fixed64,8,opt,name=changeSeekReq,proto3" json:"changeSeekReq,omitempty"`
	CheckStatusReq       *MovieStatus        `protobuf:"bytes,9,opt,name=checkStatusReq,proto3" json:"checkStatusReq,omitempty"`
	ExpireId             uint64              `protobuf:"varint,10,opt,name=expireId,proto3" json:"expireId,omitempty"`
	PeopleChanged        int64               `protobuf:"varint,11,opt,name=peopleChanged,proto3" json:"peopleChanged,omitempty"`
	MoviesChanged        *Sender             `protobuf:"bytes,12,opt,name=moviesChanged,proto3" json:"moviesChanged,omitempty"`
	CurrentChanged       *Sender             `protobuf:"bytes,13,opt,name=currentChanged,proto3" json:"currentChanged,omitempty"`
	// contains filtered or unexported fields
}

func (*ElementMessage) Descriptor deprecated

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

Deprecated: Use ElementMessage.ProtoReflect.Descriptor instead.

func (*ElementMessage) Encode added in v0.3.6

func (em *ElementMessage) Encode(w io.Writer) error

func (*ElementMessage) GetChangeMovieStatusReq added in v0.3.6

func (x *ElementMessage) GetChangeMovieStatusReq() *MovieStatus

func (*ElementMessage) GetChangeSeekReq added in v0.3.6

func (x *ElementMessage) GetChangeSeekReq() float64

func (*ElementMessage) GetChatReq added in v0.3.6

func (x *ElementMessage) GetChatReq() string

func (*ElementMessage) GetChatResp added in v0.3.6

func (x *ElementMessage) GetChatResp() *ChatResp

func (*ElementMessage) GetCheckStatusReq added in v0.6.0

func (x *ElementMessage) GetCheckStatusReq() *MovieStatus

func (*ElementMessage) GetCurrentChanged added in v0.3.6

func (x *ElementMessage) GetCurrentChanged() *Sender

func (*ElementMessage) GetError added in v0.3.6

func (x *ElementMessage) GetError() string

func (*ElementMessage) GetExpireId added in v0.6.0

func (x *ElementMessage) GetExpireId() uint64

func (*ElementMessage) GetMovieStatusChanged added in v0.3.6

func (x *ElementMessage) GetMovieStatusChanged() *MovieStatusChanged

func (*ElementMessage) GetMoviesChanged added in v0.3.6

func (x *ElementMessage) GetMoviesChanged() *Sender

func (*ElementMessage) GetPeopleChanged added in v0.3.6

func (x *ElementMessage) GetPeopleChanged() int64

func (*ElementMessage) GetTime

func (x *ElementMessage) GetTime() int64

func (*ElementMessage) GetType

func (x *ElementMessage) GetType() ElementMessageType

func (*ElementMessage) MessageType added in v0.3.6

func (em *ElementMessage) MessageType() int

func (*ElementMessage) ProtoMessage

func (*ElementMessage) ProtoMessage()

func (*ElementMessage) ProtoReflect

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

func (*ElementMessage) Reset

func (x *ElementMessage) Reset()

func (*ElementMessage) String

func (x *ElementMessage) String() string

type ElementMessageType

type ElementMessageType int32
const (
	ElementMessageType_UNKNOWN           ElementMessageType = 0
	ElementMessageType_ERROR             ElementMessageType = 1
	ElementMessageType_CHAT_MESSAGE      ElementMessageType = 2
	ElementMessageType_PLAY              ElementMessageType = 3
	ElementMessageType_PAUSE             ElementMessageType = 4
	ElementMessageType_CHECK_STATUS      ElementMessageType = 5
	ElementMessageType_TOO_FAST          ElementMessageType = 6
	ElementMessageType_TOO_SLOW          ElementMessageType = 7
	ElementMessageType_CHANGE_RATE       ElementMessageType = 8
	ElementMessageType_CHANGE_SEEK       ElementMessageType = 9
	ElementMessageType_CURRENT_CHANGED   ElementMessageType = 10
	ElementMessageType_MOVIES_CHANGED    ElementMessageType = 11
	ElementMessageType_PEOPLE_CHANGED    ElementMessageType = 12
	ElementMessageType_SYNC_MOVIE_STATUS ElementMessageType = 13
	ElementMessageType_CURRENT_EXPIRED   ElementMessageType = 14
	ElementMessageType_CHECK_EXPIRED     ElementMessageType = 15
)

func (ElementMessageType) Descriptor

func (ElementMessageType) Enum

func (ElementMessageType) EnumDescriptor deprecated

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

Deprecated: Use ElementMessageType.Descriptor instead.

func (ElementMessageType) Number

func (ElementMessageType) String

func (x ElementMessageType) String() string

func (ElementMessageType) Type

type MovieStatus added in v0.3.6

type MovieStatus struct {
	Playing bool    `protobuf:"varint,1,opt,name=playing,proto3" json:"playing,omitempty"`
	Seek    float64 `protobuf:"fixed64,2,opt,name=seek,proto3" json:"seek,omitempty"`
	Rate    float64 `protobuf:"fixed64,3,opt,name=rate,proto3" json:"rate,omitempty"`
	// contains filtered or unexported fields
}

func (*MovieStatus) Descriptor deprecated added in v0.3.6

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

Deprecated: Use MovieStatus.ProtoReflect.Descriptor instead.

func (*MovieStatus) GetPlaying added in v0.3.6

func (x *MovieStatus) GetPlaying() bool

func (*MovieStatus) GetRate added in v0.3.6

func (x *MovieStatus) GetRate() float64

func (*MovieStatus) GetSeek added in v0.3.6

func (x *MovieStatus) GetSeek() float64

func (*MovieStatus) ProtoMessage added in v0.3.6

func (*MovieStatus) ProtoMessage()

func (*MovieStatus) ProtoReflect added in v0.3.6

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

func (*MovieStatus) Reset added in v0.3.6

func (x *MovieStatus) Reset()

func (*MovieStatus) String added in v0.3.6

func (x *MovieStatus) String() string

type MovieStatusChanged added in v0.3.6

type MovieStatusChanged struct {
	Sender *Sender      `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Status *MovieStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*MovieStatusChanged) Descriptor deprecated added in v0.3.6

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

Deprecated: Use MovieStatusChanged.ProtoReflect.Descriptor instead.

func (*MovieStatusChanged) GetSender added in v0.3.6

func (x *MovieStatusChanged) GetSender() *Sender

func (*MovieStatusChanged) GetStatus added in v0.3.6

func (x *MovieStatusChanged) GetStatus() *MovieStatus

func (*MovieStatusChanged) ProtoMessage added in v0.3.6

func (*MovieStatusChanged) ProtoMessage()

func (*MovieStatusChanged) ProtoReflect added in v0.3.6

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

func (*MovieStatusChanged) Reset added in v0.3.6

func (x *MovieStatusChanged) Reset()

func (*MovieStatusChanged) String added in v0.3.6

func (x *MovieStatusChanged) String() string

type Sender added in v0.3.6

type Sender struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Userid   string `protobuf:"bytes,2,opt,name=userid,proto3" json:"userid,omitempty"`
	// contains filtered or unexported fields
}

func (*Sender) Descriptor deprecated added in v0.3.6

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

Deprecated: Use Sender.ProtoReflect.Descriptor instead.

func (*Sender) GetUserid added in v0.3.6

func (x *Sender) GetUserid() string

func (*Sender) GetUsername added in v0.3.6

func (x *Sender) GetUsername() string

func (*Sender) ProtoMessage added in v0.3.6

func (*Sender) ProtoMessage()

func (*Sender) ProtoReflect added in v0.3.6

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

func (*Sender) Reset added in v0.3.6

func (x *Sender) Reset()

func (*Sender) String added in v0.3.6

func (x *Sender) String() string

Jump to

Keyboard shortcuts

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