protodump

package
v0.0.0-...-e8166e0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package protodump is a generated protocol buffer package.

It is generated from these files:

internal/protodump.proto

It has these top-level messages:

Example
Child

Index

Constants

This section is empty.

Variables

View Source
var Example_Num_name = map[int32]string{
	0: "ZERO",
	1: "ONE",
}
View Source
var Example_Num_value = map[string]int32{
	"ZERO": 0,
	"ONE":  1,
}

Functions

This section is empty.

Types

type Child

type Child struct {
	V uint64 `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
}

func (*Child) Descriptor

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

func (*Child) GetV

func (m *Child) GetV() uint64

func (*Child) ProtoMessage

func (*Child) ProtoMessage()

func (*Child) Reset

func (m *Child) Reset()

func (*Child) String

func (m *Child) String() string

type Example

type Example struct {
	Uint64Val   uint64        `protobuf:"varint,1,opt,name=uint64_val,json=uint64Val" json:"uint64_val,omitempty"`
	StringVal   string        `protobuf:"bytes,2,opt,name=string_val,json=stringVal" json:"string_val,omitempty"`
	Fixed64Val  uint64        `protobuf:"fixed64,3,opt,name=fixed64_val,json=fixed64Val" json:"fixed64_val,omitempty"`
	Fixed32Val  uint32        `protobuf:"fixed32,4,opt,name=fixed32_val,json=fixed32Val" json:"fixed32_val,omitempty"`
	EnumVal     Example_Num   `protobuf:"varint,5,opt,name=enum_val,json=enumVal,enum=Example_Num" json:"enum_val,omitempty"`
	ChildVal    *Child        `protobuf:"bytes,6,opt,name=child_val,json=childVal" json:"child_val,omitempty"`
	RUint64Val  []uint64      `protobuf:"varint,101,rep,packed,name=r_uint64_val,json=rUint64Val" json:"r_uint64_val,omitempty"`
	RStringVal  []string      `protobuf:"bytes,102,rep,name=r_string_val,json=rStringVal" json:"r_string_val,omitempty"`
	RFixed64Val []uint64      `protobuf:"fixed64,103,rep,packed,name=r_fixed64_val,json=rFixed64Val" json:"r_fixed64_val,omitempty"`
	RFixed32Val []uint32      `protobuf:"fixed32,104,rep,packed,name=r_fixed32_val,json=rFixed32Val" json:"r_fixed32_val,omitempty"`
	REnumVal    []Example_Num `protobuf:"varint,105,rep,packed,name=r_enum_val,json=rEnumVal,enum=Example_Num" json:"r_enum_val,omitempty"`
	RChildVal   []*Child      `protobuf:"bytes,106,rep,name=r_child_val,json=rChildVal" json:"r_child_val,omitempty"`
}

func (*Example) Descriptor

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

func (*Example) GetChildVal

func (m *Example) GetChildVal() *Child

func (*Example) GetEnumVal

func (m *Example) GetEnumVal() Example_Num

func (*Example) GetFixed32Val

func (m *Example) GetFixed32Val() uint32

func (*Example) GetFixed64Val

func (m *Example) GetFixed64Val() uint64

func (*Example) GetRChildVal

func (m *Example) GetRChildVal() []*Child

func (*Example) GetREnumVal

func (m *Example) GetREnumVal() []Example_Num

func (*Example) GetRFixed32Val

func (m *Example) GetRFixed32Val() []uint32

func (*Example) GetRFixed64Val

func (m *Example) GetRFixed64Val() []uint64

func (*Example) GetRStringVal

func (m *Example) GetRStringVal() []string

func (*Example) GetRUint64Val

func (m *Example) GetRUint64Val() []uint64

func (*Example) GetStringVal

func (m *Example) GetStringVal() string

func (*Example) GetUint64Val

func (m *Example) GetUint64Val() uint64

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) Reset

func (m *Example) Reset()

func (*Example) String

func (m *Example) String() string

type Example_Num

type Example_Num int32
const (
	Example_ZERO Example_Num = 0
	Example_ONE  Example_Num = 1
)

func (Example_Num) EnumDescriptor

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

func (Example_Num) String

func (x Example_Num) String() string

Jump to

Keyboard shortcuts

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