custom

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_custom_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MyModel

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

func (*MyModel) Descriptor deprecated

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

Deprecated: Use MyModel.ProtoReflect.Descriptor instead.

func (*MyModel) GetName

func (x *MyModel) GetName() string

func (*MyModel) GetValue

func (x *MyModel) GetValue() int32

func (*MyModel) ProtoMessage

func (*MyModel) ProtoMessage()

func (*MyModel) ProtoReflect added in v3.3.0

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

func (*MyModel) Reset

func (x *MyModel) Reset()

func (*MyModel) String

func (x *MyModel) String() string

Jump to

Keyboard shortcuts

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