fastpb_gen

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enum_name = map[int32]string{
		0: "ENUM0",
		1: "ENUM1",
		2: "ENUM2",
	}
	Enum_value = map[string]int32{
		"ENUM0": 0,
		"ENUM1": 1,
		"ENUM2": 2,
	}
)

Enum value maps for Enum.

View Source
var (
	MsgEnum_name = map[int32]string{
		0: "ENUM0",
		1: "ENUM1",
		2: "ENUM2",
	}
	MsgEnum_value = map[string]int32{
		"ENUM0": 0,
		"ENUM1": 1,
		"ENUM2": 2,
	}
)

Enum value maps for MsgEnum.

View Source
var (
	Message_Enum_name = map[int32]string{
		0: "ENUM0",
		1: "ENUM1",
		2: "ENUM2",
	}
	Message_Enum_value = map[string]int32{
		"ENUM0": 0,
		"ENUM1": 1,
		"ENUM2": 2,
	}
)

Enum value maps for Message_Enum.

Functions

This section is empty.

Types

type Base

type Base struct {
	LogID  string            `protobuf:"bytes,1,opt,name=LogID,proto3" json:"LogID,omitempty"`
	Caller string            `protobuf:"bytes,2,opt,name=Caller,proto3" json:"Caller,omitempty"`
	Addr   string            `protobuf:"bytes,3,opt,name=Addr,proto3" json:"Addr,omitempty"`
	Client string            `protobuf:"bytes,4,opt,name=Client,proto3" json:"Client,omitempty"`
	Extra  map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Base) Descriptor deprecated

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

Deprecated: Use Base.ProtoReflect.Descriptor instead.

func (*Base) FastRead

func (x *Base) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Base) FastWrite

func (x *Base) FastWrite(buf []byte) (offset int)

func (*Base) GetAddr

func (x *Base) GetAddr() string

func (*Base) GetCaller

func (x *Base) GetCaller() string

func (*Base) GetClient

func (x *Base) GetClient() string

func (*Base) GetExtra

func (x *Base) GetExtra() map[string]string

func (*Base) GetLogID

func (x *Base) GetLogID() string

func (*Base) ProtoMessage

func (*Base) ProtoMessage()

func (*Base) ProtoReflect

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

func (*Base) Reset

func (x *Base) Reset()

func (*Base) Size

func (x *Base) Size() (n int)

func (*Base) String

func (x *Base) String() string

type BaseResp

type BaseResp struct {
	StatusMessage string            `protobuf:"bytes,1,opt,name=StatusMessage,proto3" json:"StatusMessage,omitempty"`
	StatusCode    int32             `protobuf:"varint,2,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	Extra         map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) FastRead

func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*BaseResp) FastWrite

func (x *BaseResp) FastWrite(buf []byte) (offset int)

func (*BaseResp) GetExtra

func (x *BaseResp) GetExtra() map[string]string

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMessage

func (x *BaseResp) GetStatusMessage() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

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

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) Size

func (x *BaseResp) Size() (n int)

func (*BaseResp) String

func (x *BaseResp) String() string

type Enum

type Enum int32
const (
	Enum_ENUM0 Enum = 0
	Enum_ENUM1 Enum = 1
	Enum_ENUM2 Enum = 2
)

func (Enum) Descriptor

func (Enum) Descriptor() protoreflect.EnumDescriptor

func (Enum) Enum

func (x Enum) Enum() *Enum

func (Enum) EnumDescriptor deprecated

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

Deprecated: Use Enum.Descriptor instead.

func (Enum) Number

func (x Enum) Number() protoreflect.EnumNumber

func (Enum) String

func (x Enum) String() string

func (Enum) Type

func (Enum) Type() protoreflect.EnumType

type Message

type Message struct {
	Field3  int32            `protobuf:"varint,3,opt,name=field3,proto3" json:"field3,omitempty"`     // int32 = varint; int32
	Field4  int64            `protobuf:"varint,4,opt,name=field4,proto3" json:"field4,omitempty"`     // int64 = varint; int64
	Field5  uint32           `protobuf:"varint,5,opt,name=field5,proto3" json:"field5,omitempty"`     // uint32 = varint; uint32
	Field6  uint64           `protobuf:"varint,6,opt,name=field6,proto3" json:"field6,omitempty"`     // uint64 = varint; uint64
	Field7  int32            `protobuf:"zigzag32,7,opt,name=field7,proto3" json:"field7,omitempty"`   // sint32 = zigzag32; int32
	Field8  int64            `protobuf:"zigzag64,8,opt,name=field8,proto3" json:"field8,omitempty"`   // sint64 = zigzag64; int64
	Field13 bool             `protobuf:"varint,13,opt,name=field13,proto3" json:"field13,omitempty"`  // bool = varint; bool
	Field2  float32          `protobuf:"fixed32,2,opt,name=field2,proto3" json:"field2,omitempty"`    // float = fixed32; float32
	Field1  float64          `protobuf:"fixed64,1,opt,name=field1,proto3" json:"field1,omitempty"`    // double = fixed64; float64
	Field9  uint32           `protobuf:"fixed32,9,opt,name=field9,proto3" json:"field9,omitempty"`    // fixed32 = fixed32; uint32
	Field10 uint64           `protobuf:"fixed64,10,opt,name=field10,proto3" json:"field10,omitempty"` // fixed64 = fixed64; uint64
	Field11 int32            `protobuf:"fixed32,11,opt,name=field11,proto3" json:"field11,omitempty"` // sfixed32 = fixed32; int32
	Field12 int64            `protobuf:"fixed64,12,opt,name=field12,proto3" json:"field12,omitempty"` // sfixed64 = fixed64; int64
	Field14 string           `protobuf:"bytes,14,opt,name=field14,proto3" json:"field14,omitempty"`   // string = bytes; string
	Field15 []byte           `protobuf:"bytes,15,opt,name=field15,proto3" json:"field15,omitempty"`   // []byte = bytes; []byte
	Field16 *Message         `protobuf:"bytes,16,opt,name=field16,proto3" json:"field16,omitempty"`   // *struct = bytes; *struct
	Field20 []string         `protobuf:"bytes,20,rep,name=field20,proto3" json:"field20,omitempty"`   // []list = bytes; []list
	Field21 []*Message       `protobuf:"bytes,21,rep,name=field21,proto3" json:"field21,omitempty"`   // []list = bytes; []list
	Field22 map[int32]string ``                                                                       // map[] = bytes; map[]
	/* 157-byte string literal not displayed */
	Field23 map[string]*Message `` // map[] = bytes; map[]
	/* 156-byte string literal not displayed */
	Field24 map[string]*Base `` // map[] = bytes; map[]
	/* 156-byte string literal not displayed */
	Field27 Enum           `protobuf:"varint,27,opt,name=field27,proto3,enum=base.Enum" json:"field27,omitempty"`        // int32
	Field28 []Enum         `protobuf:"varint,28,rep,packed,name=field28,proto3,enum=base.Enum" json:"field28,omitempty"` // []list = bytes; []list
	Field29 map[int32]Enum ``                                                                                            // map[] = bytes; map[]
	/* 173-byte string literal not displayed */
	Field30 nested.MsgEnum           `protobuf:"varint,30,opt,name=field30,proto3,enum=nested.echo.MsgEnum" json:"field30,omitempty"`        // int32
	Field31 []nested.MsgEnum         `protobuf:"varint,31,rep,packed,name=field31,proto3,enum=nested.echo.MsgEnum" json:"field31,omitempty"` // []list = bytes; []list
	Field32 map[int32]nested.MsgEnum ``                                                                                                      // map[] = bytes; map[]
	/* 183-byte string literal not displayed */
	Field33 Message_Enum           `protobuf:"varint,33,opt,name=field33,proto3,enum=echo.Message_Enum" json:"field33,omitempty"`        // int32
	Field34 []Message_Enum         `protobuf:"varint,34,rep,packed,name=field34,proto3,enum=echo.Message_Enum" json:"field34,omitempty"` // []list = bytes; []list
	Field35 map[int32]Message_Enum ``                                                                                                    // map[] = bytes; map[]
	/* 181-byte string literal not displayed */
	Field36 MsgEnum           `protobuf:"varint,36,opt,name=field36,proto3,enum=echo.MsgEnum" json:"field36,omitempty"`        // int32
	Field37 []MsgEnum         `protobuf:"varint,37,rep,packed,name=field37,proto3,enum=echo.MsgEnum" json:"field37,omitempty"` // []list = bytes; []list
	Field38 map[int32]MsgEnum ``                                                                                               // map[] = bytes; map[]
	/* 176-byte string literal not displayed */
	// Types that are assignable to Field40:
	//
	//	*Message_Field41
	//	*Message_Field42
	//	*Message_Field43
	//	*Message_Field44
	//	*Message_Field45
	Field40 isMessage_Field40  `protobuf_oneof:"field40"`
	Field50 *Message_Condition `protobuf:"bytes,50,opt,name=field50,proto3" json:"field50,omitempty"`
	Field51 *int32             `protobuf:"varint,51,opt,name=field51,proto3,oneof" json:"field51,omitempty"`   // int32 = varint; int32
	Field52 *int64             `protobuf:"varint,52,opt,name=field52,proto3,oneof" json:"field52,omitempty"`   // int64 = varint; int64
	Field53 *uint32            `protobuf:"varint,53,opt,name=field53,proto3,oneof" json:"field53,omitempty"`   // uint32 = varint; uint32
	Field54 *uint64            `protobuf:"varint,54,opt,name=field54,proto3,oneof" json:"field54,omitempty"`   // uint64 = varint; uint64
	Field55 *int32             `protobuf:"zigzag32,55,opt,name=field55,proto3,oneof" json:"field55,omitempty"` // sint32 = zigzag32; int32
	Field56 *int64             `protobuf:"zigzag64,56,opt,name=field56,proto3,oneof" json:"field56,omitempty"` // sint64 = zigzag64; int64
	Field57 *bool              `protobuf:"varint,57,opt,name=field57,proto3,oneof" json:"field57,omitempty"`   // bool = varint; bool
	Field58 *string            `protobuf:"bytes,58,opt,name=field58,proto3,oneof" json:"field58,omitempty"`    // []list = bytes; []list
	Field59 *Message           `protobuf:"bytes,59,opt,name=field59,proto3,oneof" json:"field59,omitempty"`    // []list = bytes; []list
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) FastRead

func (x *Message) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Message) FastWrite

func (x *Message) FastWrite(buf []byte) (offset int)

func (*Message) GetField1

func (x *Message) GetField1() float64

func (*Message) GetField10

func (x *Message) GetField10() uint64

func (*Message) GetField11

func (x *Message) GetField11() int32

func (*Message) GetField12

func (x *Message) GetField12() int64

func (*Message) GetField13

func (x *Message) GetField13() bool

func (*Message) GetField14

func (x *Message) GetField14() string

func (*Message) GetField15

func (x *Message) GetField15() []byte

func (*Message) GetField16

func (x *Message) GetField16() *Message

func (*Message) GetField2

func (x *Message) GetField2() float32

func (*Message) GetField20

func (x *Message) GetField20() []string

func (*Message) GetField21

func (x *Message) GetField21() []*Message

func (*Message) GetField22

func (x *Message) GetField22() map[int32]string

func (*Message) GetField23

func (x *Message) GetField23() map[string]*Message

func (*Message) GetField24

func (x *Message) GetField24() map[string]*Base

func (*Message) GetField27

func (x *Message) GetField27() Enum

func (*Message) GetField28

func (x *Message) GetField28() []Enum

func (*Message) GetField29

func (x *Message) GetField29() map[int32]Enum

func (*Message) GetField3

func (x *Message) GetField3() int32

func (*Message) GetField30

func (x *Message) GetField30() nested.MsgEnum

func (*Message) GetField31

func (x *Message) GetField31() []nested.MsgEnum

func (*Message) GetField32

func (x *Message) GetField32() map[int32]nested.MsgEnum

func (*Message) GetField33

func (x *Message) GetField33() Message_Enum

func (*Message) GetField34

func (x *Message) GetField34() []Message_Enum

func (*Message) GetField35

func (x *Message) GetField35() map[int32]Message_Enum

func (*Message) GetField36

func (x *Message) GetField36() MsgEnum

func (*Message) GetField37

func (x *Message) GetField37() []MsgEnum

func (*Message) GetField38

func (x *Message) GetField38() map[int32]MsgEnum

func (*Message) GetField4

func (x *Message) GetField4() int64

func (*Message) GetField40

func (m *Message) GetField40() isMessage_Field40

func (*Message) GetField41

func (x *Message) GetField41() int64

func (*Message) GetField42

func (x *Message) GetField42() bool

func (*Message) GetField43

func (x *Message) GetField43() *Message

func (*Message) GetField44

func (x *Message) GetField44() Enum

func (*Message) GetField45

func (x *Message) GetField45() *Base

func (*Message) GetField5

func (x *Message) GetField5() uint32

func (*Message) GetField50

func (x *Message) GetField50() *Message_Condition

func (*Message) GetField51

func (x *Message) GetField51() int32

func (*Message) GetField52

func (x *Message) GetField52() int64

func (*Message) GetField53

func (x *Message) GetField53() uint32

func (*Message) GetField54

func (x *Message) GetField54() uint64

func (*Message) GetField55

func (x *Message) GetField55() int32

func (*Message) GetField56

func (x *Message) GetField56() int64

func (*Message) GetField57

func (x *Message) GetField57() bool

func (*Message) GetField58

func (x *Message) GetField58() string

func (*Message) GetField59

func (x *Message) GetField59() *Message

func (*Message) GetField6

func (x *Message) GetField6() uint64

func (*Message) GetField7

func (x *Message) GetField7() int32

func (*Message) GetField8

func (x *Message) GetField8() int64

func (*Message) GetField9

func (x *Message) GetField9() uint32

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) Size

func (x *Message) Size() (n int)

func (*Message) String

func (x *Message) String() string

type Message_Condition

type Message_Condition struct {

	// Types that are assignable to Field1:
	//
	//	*Message_Condition_Field2
	//	*Message_Condition_Field3
	Field1 isMessage_Condition_Field1 `protobuf_oneof:"field1"`
	Field4 bool                       `protobuf:"varint,4,opt,name=field4,proto3" json:"field4,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_Condition) Descriptor deprecated

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

Deprecated: Use Message_Condition.ProtoReflect.Descriptor instead.

func (*Message_Condition) FastRead

func (x *Message_Condition) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Message_Condition) FastWrite

func (x *Message_Condition) FastWrite(buf []byte) (offset int)

func (*Message_Condition) GetField1

func (m *Message_Condition) GetField1() isMessage_Condition_Field1

func (*Message_Condition) GetField2

func (x *Message_Condition) GetField2() int64

func (*Message_Condition) GetField3

func (x *Message_Condition) GetField3() *Message_ConditionTree

func (*Message_Condition) GetField4

func (x *Message_Condition) GetField4() bool

func (*Message_Condition) ProtoMessage

func (*Message_Condition) ProtoMessage()

func (*Message_Condition) ProtoReflect

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

func (*Message_Condition) Reset

func (x *Message_Condition) Reset()

func (*Message_Condition) Size

func (x *Message_Condition) Size() (n int)

func (*Message_Condition) String

func (x *Message_Condition) String() string

type Message_ConditionTree

type Message_ConditionTree struct {
	Field1 map[int32]Enum       `` /* 170-byte string literal not displayed */
	Field2 []*Message_Condition `protobuf:"bytes,2,rep,name=field2,proto3" json:"field2,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_ConditionTree) Descriptor deprecated

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

Deprecated: Use Message_ConditionTree.ProtoReflect.Descriptor instead.

func (*Message_ConditionTree) FastRead

func (x *Message_ConditionTree) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Message_ConditionTree) FastWrite

func (x *Message_ConditionTree) FastWrite(buf []byte) (offset int)

func (*Message_ConditionTree) GetField1

func (x *Message_ConditionTree) GetField1() map[int32]Enum

func (*Message_ConditionTree) GetField2

func (x *Message_ConditionTree) GetField2() []*Message_Condition

func (*Message_ConditionTree) ProtoMessage

func (*Message_ConditionTree) ProtoMessage()

func (*Message_ConditionTree) ProtoReflect

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

func (*Message_ConditionTree) Reset

func (x *Message_ConditionTree) Reset()

func (*Message_ConditionTree) Size

func (x *Message_ConditionTree) Size() (n int)

func (*Message_ConditionTree) String

func (x *Message_ConditionTree) String() string

type Message_Condition_Field2

type Message_Condition_Field2 struct {
	Field2 int64 `protobuf:"varint,2,opt,name=field2,proto3,oneof"`
}

type Message_Condition_Field3

type Message_Condition_Field3 struct {
	Field3 *Message_ConditionTree `protobuf:"bytes,3,opt,name=field3,proto3,oneof"`
}

type Message_Enum

type Message_Enum int32
const (
	Message_ENUM0 Message_Enum = 0
	Message_ENUM1 Message_Enum = 1
	Message_ENUM2 Message_Enum = 2
)

func (Message_Enum) Descriptor

func (Message_Enum) Enum

func (x Message_Enum) Enum() *Message_Enum

func (Message_Enum) EnumDescriptor deprecated

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

Deprecated: Use Message_Enum.Descriptor instead.

func (Message_Enum) Number

func (Message_Enum) String

func (x Message_Enum) String() string

func (Message_Enum) Type

type Message_Field41

type Message_Field41 struct {
	Field41 int64 `protobuf:"varint,41,opt,name=field41,proto3,oneof"`
}

type Message_Field42

type Message_Field42 struct {
	Field42 bool `protobuf:"varint,42,opt,name=field42,proto3,oneof"`
}

type Message_Field43

type Message_Field43 struct {
	Field43 *Message `protobuf:"bytes,43,opt,name=field43,proto3,oneof"`
}

type Message_Field44

type Message_Field44 struct {
	Field44 Enum `protobuf:"varint,44,opt,name=field44,proto3,enum=base.Enum,oneof"` // int32
}

type Message_Field45

type Message_Field45 struct {
	Field45 *Base `protobuf:"bytes,45,opt,name=field45,proto3,oneof"`
}

type MsgEnum

type MsgEnum int32
const (
	MsgEnum_ENUM0 MsgEnum = 0
	MsgEnum_ENUM1 MsgEnum = 1
	MsgEnum_ENUM2 MsgEnum = 2
)

func (MsgEnum) Descriptor

func (MsgEnum) Descriptor() protoreflect.EnumDescriptor

func (MsgEnum) Enum

func (x MsgEnum) Enum() *MsgEnum

func (MsgEnum) EnumDescriptor deprecated

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

Deprecated: Use MsgEnum.Descriptor instead.

func (MsgEnum) Number

func (x MsgEnum) Number() protoreflect.EnumNumber

func (MsgEnum) String

func (x MsgEnum) String() string

func (MsgEnum) Type

func (MsgEnum) Type() protoreflect.EnumType

type Request

type Request struct {
	Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Req     *Request `protobuf:"bytes,2,opt,name=req,proto3" json:"req,omitempty"`
	Base    *Base    `protobuf:"bytes,255,opt,name=Base,proto3" json:"Base,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) FastRead

func (x *Request) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Request) FastWrite

func (x *Request) FastWrite(buf []byte) (offset int)

func (*Request) GetBase

func (x *Request) GetBase() *Base

func (*Request) GetMessage

func (x *Request) GetMessage() *Message

func (*Request) GetReq

func (x *Request) GetReq() *Request

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) Size

func (x *Request) Size() (n int)

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	Action   string    `protobuf:"bytes,1,opt,name=Action,proto3" json:"Action,omitempty"`
	Msg      string    `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
	BaseResp *BaseResp `protobuf:"bytes,255,opt,name=BaseResp,proto3" json:"BaseResp,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) FastRead

func (x *Response) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Response) FastWrite

func (x *Response) FastWrite(buf []byte) (offset int)

func (*Response) GetAction

func (x *Response) GetAction() string

func (*Response) GetBaseResp

func (x *Response) GetBaseResp() *BaseResp

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) Size

func (x *Response) Size() (n int)

func (*Response) String

func (x *Response) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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