types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package types is a generated protocol buffer package.

It is generated from these files:

echo.proto

It has these top-level messages:

Ping
Pang
EchoMsg
PingLog
PangLog

Index

Constants

This section is empty.

Variables

View Source
var EchoOp_name = map[int32]string{
	0: "Undefined",
	1: "PingAction",
	2: "PangAction",
}
View Source
var EchoOp_value = map[string]int32{
	"Undefined":  0,
	"PingAction": 1,
	"PangAction": 2,
}

Functions

This section is empty.

Types

type EchoMsg

type EchoMsg struct {
	// Types that are valid to be assigned to Value:
	//	*EchoMsg_Ping
	//	*EchoMsg_Pang
	Value isEchoMsg_Value `protobuf_oneof:"value"`
	Ty    int32           `protobuf:"varint,3,opt,name=ty" json:"ty,omitempty"`
}

func (*EchoMsg) Descriptor

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

func (*EchoMsg) GetPang

func (m *EchoMsg) GetPang() *Pang

func (*EchoMsg) GetPing

func (m *EchoMsg) GetPing() *Ping

func (*EchoMsg) GetTy

func (m *EchoMsg) GetTy() int32

func (*EchoMsg) GetValue

func (m *EchoMsg) GetValue() isEchoMsg_Value

func (*EchoMsg) ProtoMessage

func (*EchoMsg) ProtoMessage()

func (*EchoMsg) Reset

func (m *EchoMsg) Reset()

func (*EchoMsg) String

func (m *EchoMsg) String() string

func (*EchoMsg) XXX_OneofFuncs

func (*EchoMsg) 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.

type EchoMsg_Pang

type EchoMsg_Pang struct {
	Pang *Pang `protobuf:"bytes,2,opt,name=pang,oneof"`
}

type EchoMsg_Ping

type EchoMsg_Ping struct {
	Ping *Ping `protobuf:"bytes,1,opt,name=ping,oneof"`
}

type EchoOp

type EchoOp int32
const (
	EchoOp_Undefined  EchoOp = 0
	EchoOp_PingAction EchoOp = 1
	EchoOp_PangAction EchoOp = 2
)

func (EchoOp) EnumDescriptor

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

func (EchoOp) String

func (x EchoOp) String() string

type Pang

type Pang struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}

func (*Pang) Descriptor

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

func (*Pang) GetMsg

func (m *Pang) GetMsg() string

func (*Pang) ProtoMessage

func (*Pang) ProtoMessage()

func (*Pang) Reset

func (m *Pang) Reset()

func (*Pang) String

func (m *Pang) String() string

type PangLog

type PangLog struct {
	Msg  string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
	Echo string `protobuf:"bytes,2,opt,name=echo" json:"echo,omitempty"`
}

func (*PangLog) Descriptor

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

func (*PangLog) GetEcho

func (m *PangLog) GetEcho() string

func (*PangLog) GetMsg

func (m *PangLog) GetMsg() string

func (*PangLog) ProtoMessage

func (*PangLog) ProtoMessage()

func (*PangLog) Reset

func (m *PangLog) Reset()

func (*PangLog) String

func (m *PangLog) String() string

type Ping

type Ping struct {
	Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}

func (*Ping) Descriptor

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

func (*Ping) GetMsg

func (m *Ping) GetMsg() string

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

type PingLog

type PingLog struct {
	Msg  string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
	Echo string `protobuf:"bytes,2,opt,name=echo" json:"echo,omitempty"`
}

func (*PingLog) Descriptor

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

func (*PingLog) GetEcho

func (m *PingLog) GetEcho() string

func (*PingLog) GetMsg

func (m *PingLog) GetMsg() string

func (*PingLog) ProtoMessage

func (*PingLog) ProtoMessage()

func (*PingLog) Reset

func (m *PingLog) Reset()

func (*PingLog) String

func (m *PingLog) String() string

Jump to

Keyboard shortcuts

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