message

package
v0.0.0-...-3029327 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package message is a generated protocol buffer package.

It is generated from these files:

proto/message/message.proto

It has these top-level messages:

Person
Hobby

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hobby

type Hobby struct {
	Name        string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
}

func (*Hobby) Descriptor

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

func (*Hobby) GetDescription

func (m *Hobby) GetDescription() string

func (*Hobby) GetName

func (m *Hobby) GetName() string

func (*Hobby) ProtoMessage

func (*Hobby) ProtoMessage()

func (*Hobby) Reset

func (m *Hobby) Reset()

func (*Hobby) String

func (m *Hobby) String() string

type Person

type Person struct {
	FirstName    string   `protobuf:"bytes,1,opt,name=first_name,json=firstName" json:"first_name,omitempty"`
	LastName     string   `protobuf:"bytes,2,opt,name=last_name,json=lastName" json:"last_name,omitempty"`
	DateOfBirth  string   `protobuf:"bytes,3,opt,name=date_of_birth,json=dateOfBirth" json:"date_of_birth,omitempty"`
	Cool         bool     `protobuf:"varint,4,opt,name=cool" json:"cool,omitempty"`
	ArgumentsWon int32    `protobuf:"varint,5,opt,name=arguments_won,json=argumentsWon" json:"arguments_won,omitempty"`
	Hobbies      []*Hobby `protobuf:"bytes,6,rep,name=hobbies" json:"hobbies,omitempty"`
}

func (*Person) Descriptor

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

func (Person) FullName

func (p Person) FullName() string

func (*Person) GetArgumentsWon

func (m *Person) GetArgumentsWon() int32

func (*Person) GetCool

func (m *Person) GetCool() bool

func (*Person) GetDateOfBirth

func (m *Person) GetDateOfBirth() string

func (*Person) GetFirstName

func (m *Person) GetFirstName() string

func (*Person) GetHobbies

func (m *Person) GetHobbies() []*Hobby

func (*Person) GetLastName

func (m *Person) GetLastName() 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