hello

package
v0.0.0-...-f5108b3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	STATUS_name = map[int32]string{
		0: "DRAFT",
		1: "AUDIT",
		2: "PUBLISHED",
	}
	STATUS_value = map[string]int32{
		"DRAFT":     0,
		"AUDIT":     1,
		"PUBLISHED": 2,
	}
)

Enum value maps for STATUS.

View Source
var File_protobuf_hello_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"`
	Count       int64             `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	IsPublished bool              `protobuf:"varint,3,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"`
	Tag         map[string]string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Blog) Descriptor deprecated

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

Deprecated: Use Blog.ProtoReflect.Descriptor instead.

func (*Blog) GetCount

func (x *Blog) GetCount() int64

func (*Blog) GetIsPublished

func (x *Blog) GetIsPublished() bool

func (*Blog) GetTag

func (x *Blog) GetTag() map[string]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

type BlogSet

type BlogSet struct {
	Total int64   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Items []*Blog `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

[]*Blog repeated Blog

func (*BlogSet) Descriptor deprecated

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

Deprecated: Use BlogSet.ProtoReflect.Descriptor instead.

func (*BlogSet) GetItems

func (x *BlogSet) GetItems() []*Blog

func (*BlogSet) GetTotal

func (x *BlogSet) GetTotal() int64

func (*BlogSet) ProtoMessage

func (*BlogSet) ProtoMessage()

func (*BlogSet) ProtoReflect

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

func (*BlogSet) Reset

func (x *BlogSet) Reset()

func (*BlogSet) String

func (x *BlogSet) String() string

type STATUS

type STATUS int32
const (
	STATUS_DRAFT     STATUS = 0
	STATUS_AUDIT     STATUS = 1
	STATUS_PUBLISHED STATUS = 2
)

func (STATUS) Descriptor

func (STATUS) Descriptor() protoreflect.EnumDescriptor

func (STATUS) Enum

func (x STATUS) Enum() *STATUS

func (STATUS) EnumDescriptor deprecated

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

Deprecated: Use STATUS.Descriptor instead.

func (STATUS) Number

func (x STATUS) Number() protoreflect.EnumNumber

func (STATUS) String

func (x STATUS) String() string

func (STATUS) Type

func (STATUS) Type() protoreflect.EnumType

type String

type String struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

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

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

Jump to

Keyboard shortcuts

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