pb

package
v0.0.0-...-f43e618 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server_name = map[int32]string{
		0: "CN",
		1: "US",
		2: "JP",
		3: "KR",
	}
	Server_value = map[string]int32{
		"CN": 0,
		"US": 1,
		"JP": 2,
		"KR": 3,
	}
)

Enum value maps for Server.

View Source
var (
	Language_name = map[int32]string{
		0: "ZH_CN",
		1: "EN_US",
		2: "JA_JP",
		3: "KO_KR",
		4: "OTHER",
	}
	Language_value = map[string]int32{
		"ZH_CN": 0,
		"EN_US": 1,
		"JA_JP": 2,
		"KO_KR": 3,
		"OTHER": 4,
	}
)

Enum value maps for Language.

View Source
var (
	MessageType_name = map[int32]string{
		0:    "UNKNOWN",
		1:    "PROBE_NAVIGATED",
		2:    "PROBE_ENTERED_SEARCH_RESULT",
		3:    "PROBE_EXECUTED_ADVANCED_QUERY",
		64:   "PROBE_SERVER_ACK",
		256:  "MATRIX_UPDATE_MESSAGE",
		4096: "MATRIX_UPDATE_SUBSCRIBE_REQ",
		4097: "MATRIX_UPDATE_SUBSCRIBE_RESP",
	}
	MessageType_value = map[string]int32{
		"UNKNOWN":                       0,
		"PROBE_NAVIGATED":               1,
		"PROBE_ENTERED_SEARCH_RESULT":   2,
		"PROBE_EXECUTED_ADVANCED_QUERY": 3,
		"PROBE_SERVER_ACK":              64,
		"MATRIX_UPDATE_MESSAGE":         256,
		"MATRIX_UPDATE_SUBSCRIBE_REQ":   4096,
		"MATRIX_UPDATE_SUBSCRIBE_RESP":  4097,
	}
)

Enum value maps for MessageType.

View Source
var File_shared_proto protoreflect.FileDescriptor
View Source
var File_websocket_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Header struct {
	Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=MessageType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetType

func (x *Header) GetType() MessageType

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Language

type Language int32
const (
	Language_ZH_CN Language = 0
	Language_EN_US Language = 1
	Language_JA_JP Language = 2
	Language_KO_KR Language = 3
	Language_OTHER Language = 4
)

func (Language) Descriptor

func (Language) Descriptor() protoreflect.EnumDescriptor

func (Language) Enum

func (x Language) Enum() *Language

func (Language) EnumDescriptor deprecated

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

Deprecated: Use Language.Descriptor instead.

func (Language) Number

func (x Language) Number() protoreflect.EnumNumber

func (Language) String

func (x Language) String() string

func (Language) Type

type MatrixUpdateMessage

type MatrixUpdateMessage struct {
	Header   *Header                        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Segments []*MatrixUpdateMessage_Element `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateMessage) Descriptor deprecated

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

Deprecated: Use MatrixUpdateMessage.ProtoReflect.Descriptor instead.

func (*MatrixUpdateMessage) GetHeader

func (x *MatrixUpdateMessage) GetHeader() *Header

func (*MatrixUpdateMessage) GetSegments

func (*MatrixUpdateMessage) ProtoMessage

func (*MatrixUpdateMessage) ProtoMessage()

func (*MatrixUpdateMessage) ProtoReflect

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

func (*MatrixUpdateMessage) Reset

func (x *MatrixUpdateMessage) Reset()

func (*MatrixUpdateMessage) String

func (x *MatrixUpdateMessage) String() string

type MatrixUpdateMessage_Element

type MatrixUpdateMessage_Element struct {
	Server   Server `protobuf:"varint,1,opt,name=server,proto3,enum=Server" json:"server,omitempty"`
	StageId  uint32 `protobuf:"varint,2,opt,name=stage_id,json=stageId,proto3" json:"stage_id,omitempty"`
	ItemId   uint32 `protobuf:"varint,3,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
	Quantity uint64 `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Times    uint64 `protobuf:"varint,5,opt,name=times,proto3" json:"times,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateMessage_Element) Descriptor deprecated

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

Deprecated: Use MatrixUpdateMessage_Element.ProtoReflect.Descriptor instead.

func (*MatrixUpdateMessage_Element) GetItemId

func (x *MatrixUpdateMessage_Element) GetItemId() uint32

func (*MatrixUpdateMessage_Element) GetQuantity

func (x *MatrixUpdateMessage_Element) GetQuantity() uint64

func (*MatrixUpdateMessage_Element) GetServer

func (x *MatrixUpdateMessage_Element) GetServer() Server

func (*MatrixUpdateMessage_Element) GetStageId

func (x *MatrixUpdateMessage_Element) GetStageId() uint32

func (*MatrixUpdateMessage_Element) GetTimes

func (x *MatrixUpdateMessage_Element) GetTimes() uint64

func (*MatrixUpdateMessage_Element) ProtoMessage

func (*MatrixUpdateMessage_Element) ProtoMessage()

func (*MatrixUpdateMessage_Element) ProtoReflect

func (*MatrixUpdateMessage_Element) Reset

func (x *MatrixUpdateMessage_Element) Reset()

func (*MatrixUpdateMessage_Element) String

func (x *MatrixUpdateMessage_Element) String() string

type MatrixUpdateSubscribeReq

type MatrixUpdateSubscribeReq struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Server Server  `protobuf:"varint,2,opt,name=server,proto3,enum=Server" json:"server,omitempty"`
	// Types that are assignable to Id:
	//	*MatrixUpdateSubscribeReq_StageId
	//	*MatrixUpdateSubscribeReq_ItemId
	Id isMatrixUpdateSubscribeReq_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateSubscribeReq) Descriptor deprecated

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

Deprecated: Use MatrixUpdateSubscribeReq.ProtoReflect.Descriptor instead.

func (*MatrixUpdateSubscribeReq) GetHeader

func (x *MatrixUpdateSubscribeReq) GetHeader() *Header

func (*MatrixUpdateSubscribeReq) GetId

func (m *MatrixUpdateSubscribeReq) GetId() isMatrixUpdateSubscribeReq_Id

func (*MatrixUpdateSubscribeReq) GetItemId

func (x *MatrixUpdateSubscribeReq) GetItemId() uint32

func (*MatrixUpdateSubscribeReq) GetServer

func (x *MatrixUpdateSubscribeReq) GetServer() Server

func (*MatrixUpdateSubscribeReq) GetStageId

func (x *MatrixUpdateSubscribeReq) GetStageId() uint32

func (*MatrixUpdateSubscribeReq) ProtoMessage

func (*MatrixUpdateSubscribeReq) ProtoMessage()

func (*MatrixUpdateSubscribeReq) ProtoReflect

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

func (*MatrixUpdateSubscribeReq) Reset

func (x *MatrixUpdateSubscribeReq) Reset()

func (*MatrixUpdateSubscribeReq) String

func (x *MatrixUpdateSubscribeReq) String() string

type MatrixUpdateSubscribeReq_ItemId

type MatrixUpdateSubscribeReq_ItemId struct {
	ItemId uint32 `protobuf:"varint,4,opt,name=item_id,json=itemId,proto3,oneof"`
}

type MatrixUpdateSubscribeReq_StageId

type MatrixUpdateSubscribeReq_StageId struct {
	StageId uint32 `protobuf:"varint,3,opt,name=stage_id,json=stageId,proto3,oneof"`
}

type MatrixUpdateSubscribeResp

type MatrixUpdateSubscribeResp struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Error  string  `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixUpdateSubscribeResp) Descriptor deprecated

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

Deprecated: Use MatrixUpdateSubscribeResp.ProtoReflect.Descriptor instead.

func (*MatrixUpdateSubscribeResp) GetError

func (x *MatrixUpdateSubscribeResp) GetError() string

func (*MatrixUpdateSubscribeResp) GetHeader

func (x *MatrixUpdateSubscribeResp) GetHeader() *Header

func (*MatrixUpdateSubscribeResp) ProtoMessage

func (*MatrixUpdateSubscribeResp) ProtoMessage()

func (*MatrixUpdateSubscribeResp) ProtoReflect

func (*MatrixUpdateSubscribeResp) Reset

func (x *MatrixUpdateSubscribeResp) Reset()

func (*MatrixUpdateSubscribeResp) String

func (x *MatrixUpdateSubscribeResp) String() string

type MessageType

type MessageType int32
const (
	// default value, leave for unknown
	MessageType_UNKNOWN                       MessageType = 0
	MessageType_PROBE_NAVIGATED               MessageType = 1
	MessageType_PROBE_ENTERED_SEARCH_RESULT   MessageType = 2
	MessageType_PROBE_EXECUTED_ADVANCED_QUERY MessageType = 3
	MessageType_PROBE_SERVER_ACK              MessageType = 64
	// server push messages. start from 1 << 8
	/// uses MatrixUpdateMessage
	MessageType_MATRIX_UPDATE_MESSAGE MessageType = 256
	// request-response pattern messages. start from 1 << 12
	/// uses MatrixUpdateSubscribeReq
	MessageType_MATRIX_UPDATE_SUBSCRIBE_REQ MessageType = 4096
	/// uses MatrixUpdateSubscribeResp
	MessageType_MATRIX_UPDATE_SUBSCRIBE_RESP MessageType = 4097
)

func (MessageType) Descriptor

func (MessageType) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor deprecated

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

Deprecated: Use MessageType.Descriptor instead.

func (MessageType) Number

func (x MessageType) Number() protoreflect.EnumNumber

func (MessageType) String

func (x MessageType) String() string

func (MessageType) Type

type Server

type Server int32
const (
	Server_CN Server = 0
	Server_US Server = 1
	Server_JP Server = 2
	Server_KR Server = 3
)

func (Server) Descriptor

func (Server) Descriptor() protoreflect.EnumDescriptor

func (Server) Enum

func (x Server) Enum() *Server

func (Server) EnumDescriptor deprecated

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

Deprecated: Use Server.Descriptor instead.

func (Server) Number

func (x Server) Number() protoreflect.EnumNumber

func (Server) String

func (x Server) String() string

func (Server) Type

func (Server) Type() protoreflect.EnumType

type Skeleton

type Skeleton struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*Skeleton) Descriptor deprecated

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

Deprecated: Use Skeleton.ProtoReflect.Descriptor instead.

func (*Skeleton) GetHeader

func (x *Skeleton) GetHeader() *Header

func (*Skeleton) ProtoMessage

func (*Skeleton) ProtoMessage()

func (*Skeleton) ProtoReflect

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

func (*Skeleton) Reset

func (x *Skeleton) Reset()

func (*Skeleton) String

func (x *Skeleton) String() string

Jump to

Keyboard shortcuts

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