pb

package
v0.0.0-...-09c156e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protocol_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Field

type Field struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	// 类型
	Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"`
	// 字段
	Tags map[string]string `` /* 149-byte string literal not displayed */
	// 结构体
	Struct *Struct `protobuf:"bytes,4,opt,name=struct,proto3" json:"struct,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetKind

func (x *Field) GetKind() string

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetStruct

func (x *Field) GetStruct() *Struct

func (*Field) GetTags

func (x *Field) GetTags() map[string]string

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type Pkg

type Pkg struct {

	// 包名
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	// 目前包使用的 imports
	Imports []string `protobuf:"bytes,2,rep,name=imports,proto3" json:"imports,omitempty"`
	// 包内的结构体
	Structs []*Struct `protobuf:"bytes,3,rep,name=Structs,proto3" json:"Structs,omitempty"`
	// contains filtered or unexported fields
}

func (*Pkg) Descriptor deprecated

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

Deprecated: Use Pkg.ProtoReflect.Descriptor instead.

func (*Pkg) GetImports

func (x *Pkg) GetImports() []string

func (*Pkg) GetName

func (x *Pkg) GetName() string

func (*Pkg) GetStructs

func (x *Pkg) GetStructs() []*Struct

func (*Pkg) ProtoMessage

func (*Pkg) ProtoMessage()

func (*Pkg) ProtoReflect

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

func (*Pkg) Reset

func (x *Pkg) Reset()

func (*Pkg) String

func (x *Pkg) String() string

type Struct

type Struct struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	// 类型
	Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"`
	// 字段
	Fields []*Field `protobuf:"bytes,3,rep,name=Fields,proto3" json:"Fields,omitempty"`
	// contains filtered or unexported fields
}

func (*Struct) Descriptor deprecated

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

Deprecated: Use Struct.ProtoReflect.Descriptor instead.

func (*Struct) GetFields

func (x *Struct) GetFields() []*Field

func (*Struct) GetKind

func (x *Struct) GetKind() string

func (*Struct) GetName

func (x *Struct) GetName() string

func (*Struct) ProtoMessage

func (*Struct) ProtoMessage()

func (*Struct) ProtoReflect

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

func (*Struct) Reset

func (x *Struct) Reset()

func (*Struct) String

func (x *Struct) String() string

Jump to

Keyboard shortcuts

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