pb

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 4 Imported by: 0

README

编译hello.proto 文件

必须hello这个目录下执行

protoc -I=. --go_out=./pb --go_opt=module="gitee.com/go-course/go8/micro/rpc/protobuf/hello/pb" pb/hello.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_hello_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Blog

type Blog struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Summary     string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	Content     string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Author      string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	IsPublished bool   `protobuf:"varint,5,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"`
	// contains filtered or unexported fields
}

func (*Blog) Descriptor deprecated

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

Deprecated: Use Blog.ProtoReflect.Descriptor instead.

func (*Blog) GetAuthor

func (x *Blog) GetAuthor() string

func (*Blog) GetContent

func (x *Blog) GetContent() string

func (*Blog) GetIsPublished

func (x *Blog) GetIsPublished() bool

func (*Blog) GetSummary

func (x *Blog) GetSummary() string

func (*Blog) GetTitle

func (x *Blog) GetTitle() string

func (*Blog) ProtoMessage

func (*Blog) ProtoMessage()

func (*Blog) ProtoReflect

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

func (*Blog) Reset

func (x *Blog) Reset()

func (*Blog) String

func (x *Blog) String() string

Jump to

Keyboard shortcuts

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