pb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type TestCustomMessage

type TestCustomMessage struct {
	BoolVal   bool    `protobuf:"varint,1,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"`
	IntVal    int64   `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3" json:"int_val,omitempty"`
	FloatVal  float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"`
	StringVal string  `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"`
	BytesVal  []byte  `protobuf:"bytes,5,opt,name=bytes_val,json=bytesVal,proto3" json:"bytes_val,omitempty"`
	// contains filtered or unexported fields
}

Used for testing

func (*TestCustomMessage) Descriptor deprecated

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

Deprecated: Use TestCustomMessage.ProtoReflect.Descriptor instead.

func (*TestCustomMessage) GetBoolVal

func (x *TestCustomMessage) GetBoolVal() bool

func (*TestCustomMessage) GetBytesVal

func (x *TestCustomMessage) GetBytesVal() []byte

func (*TestCustomMessage) GetFloatVal

func (x *TestCustomMessage) GetFloatVal() float32

func (*TestCustomMessage) GetIntVal

func (x *TestCustomMessage) GetIntVal() int64

func (*TestCustomMessage) GetStringVal

func (x *TestCustomMessage) GetStringVal() string

func (*TestCustomMessage) ProtoMessage

func (*TestCustomMessage) ProtoMessage()

func (*TestCustomMessage) ProtoReflect

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

func (*TestCustomMessage) Reset

func (x *TestCustomMessage) Reset()

func (*TestCustomMessage) String

func (x *TestCustomMessage) String() string

Jump to

Keyboard shortcuts

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