pb

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgId_name = map[int32]string{
		0:    "None",
		1001: "Echo",
	}
	MsgId_value = map[string]int32{
		"None": 0,
		"Echo": 1001,
	}
)

Enum value maps for MsgId.

View Source
var File_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EchoRequest

type EchoRequest struct {
	Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message"`
	// contains filtered or unexported fields
}

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetMessage

func (x *EchoRequest) GetMessage() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

type EchoResponse struct {
	Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message"`
	// contains filtered or unexported fields
}

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetMessage

func (x *EchoResponse) GetMessage() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

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

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type MsgId

type MsgId int32
const (
	MsgId_None MsgId = 0
	MsgId_Echo MsgId = 1001 // 透传
)

func (MsgId) Descriptor

func (MsgId) Descriptor() protoreflect.EnumDescriptor

func (MsgId) Enum

func (x MsgId) Enum() *MsgId

func (MsgId) EnumDescriptor deprecated

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

Deprecated: Use MsgId.Descriptor instead.

func (MsgId) Number

func (x MsgId) Number() protoreflect.EnumNumber

func (MsgId) String

func (x MsgId) String() string

func (MsgId) Type

func (MsgId) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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