example

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package example is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

Test

Index

Constants

View Source
const Default_Test_Type int32 = 77

Variables

View Source
var FOO_name = map[int32]string{
	17: "X",
}
View Source
var FOO_value = map[string]int32{
	"X": 17,
}

Functions

This section is empty.

Types

type FOO

type FOO int32
const (
	FOO_X FOO = 17
)

func (FOO) Enum

func (x FOO) Enum() *FOO

func (FOO) String

func (x FOO) String() string

func (*FOO) UnmarshalJSON

func (x *FOO) UnmarshalJSON(data []byte) error

type Test

type Test struct {
	Label            *string             `protobuf:"bytes,1,req,name=label" json:"label,omitempty"`
	Type             *int32              `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"`
	Reps             []int64             `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"`
	Optionalgroup    *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup" json:"optionalgroup,omitempty"`
	XXX_unrecognized []byte              `json:"-"`
}

func (*Test) GetLabel

func (m *Test) GetLabel() string

func (*Test) GetOptionalgroup

func (m *Test) GetOptionalgroup() *Test_OptionalGroup

func (*Test) GetReps

func (m *Test) GetReps() []int64

func (*Test) GetType

func (m *Test) GetType() int32

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) Reset

func (m *Test) Reset()

func (*Test) String

func (m *Test) String() string

type Test_OptionalGroup

type Test_OptionalGroup struct {
	RequiredField    *string `protobuf:"bytes,5,req" json:"RequiredField,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Test_OptionalGroup) GetRequiredField

func (m *Test_OptionalGroup) GetRequiredField() string

func (*Test_OptionalGroup) ProtoMessage

func (*Test_OptionalGroup) ProtoMessage()

func (*Test_OptionalGroup) Reset

func (m *Test_OptionalGroup) Reset()

func (*Test_OptionalGroup) String

func (m *Test_OptionalGroup) String() string

Jump to

Keyboard shortcuts

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