dist

package
v0.0.0-...-b92f783 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dist is a generated protocol buffer package.

It is generated from these files:

person.proto

It has these top-level messages:

Person
Address
Obj

Index

Constants

This section is empty.

Variables

View Source
var Gender_name = map[int32]string{
	0: "M",
	1: "F",
}
View Source
var Gender_value = map[string]int32{
	"M": 0,
	"F": 1,
}

Functions

This section is empty.

Types

type Address

type Address struct {
	City   string   `protobuf:"bytes,1,opt,name=city" json:"city,omitempty"`
	Places []string `protobuf:"bytes,2,rep,name=places" json:"places,omitempty"`
	Child  *Obj     `protobuf:"bytes,3,opt,name=child" json:"child,omitempty"`
}

func (*Address) Descriptor

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

func (*Address) GetChild

func (m *Address) GetChild() *Obj

func (*Address) GetCity

func (m *Address) GetCity() string

func (*Address) GetPlaces

func (m *Address) GetPlaces() []string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

type Gender

type Gender int32
const (
	Gender_M Gender = 0
	Gender_F Gender = 1
)

func (Gender) EnumDescriptor

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

func (Gender) String

func (x Gender) String() string

type Obj

type Obj struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*Obj) Descriptor

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

func (*Obj) GetName

func (m *Obj) GetName() string

func (*Obj) ProtoMessage

func (*Obj) ProtoMessage()

func (*Obj) Reset

func (m *Obj) Reset()

func (*Obj) String

func (m *Obj) String() string

type Person

type Person struct {
	Name    string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Age     int32    `protobuf:"varint,2,opt,name=age" json:"age,omitempty"`
	Gender  Gender   `protobuf:"varint,3,opt,name=gender,enum=Gender" json:"gender,omitempty"`
	Address *Address `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"`
}

func (*Person) Descriptor

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

func (*Person) GetAddress

func (m *Person) GetAddress() *Address

func (*Person) GetAge

func (m *Person) GetAge() int32

func (*Person) GetGender

func (m *Person) GetGender() Gender

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) String

func (m *Person) String() string

Jump to

Keyboard shortcuts

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