message

package
v0.0.0-...-a3797f4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package message is a generated protocol buffer package.

It is generated from these files:

message.proto

It has these top-level messages:

MyMessage

Index

Constants

This section is empty.

Variables

View Source
var E_MyFieldOption = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.FieldOptions)(nil),
	ExtensionType: (*string)(nil),
	Field:         50002,
	Name:          "my_field_option",
	Tag:           "bytes,50002,opt,name=my_field_option,json=myFieldOption",
	Filename:      "message.proto",
}
View Source
var E_MyFileOption = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.FileOptions)(nil),
	ExtensionType: (*string)(nil),
	Field:         50000,
	Name:          "my_file_option",
	Tag:           "bytes,50000,opt,name=my_file_option,json=myFileOption",
	Filename:      "message.proto",
}
View Source
var E_MyMessageOption = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.MessageOptions)(nil),
	ExtensionType: (*int32)(nil),
	Field:         50001,
	Name:          "my_message_option",
	Tag:           "varint,50001,opt,name=my_message_option,json=myMessageOption",
	Filename:      "message.proto",
}

Functions

This section is empty.

Types

type MyMessage

type MyMessage struct {
	Foo int32  `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
	Bar string `protobuf:"bytes,2,opt,name=bar" json:"bar,omitempty"`
}

func (*MyMessage) Descriptor

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

func (*MyMessage) GetBar

func (m *MyMessage) GetBar() string

func (*MyMessage) GetFoo

func (m *MyMessage) GetFoo() int32

func (*MyMessage) ProtoMessage

func (*MyMessage) ProtoMessage()

func (*MyMessage) Reset

func (m *MyMessage) Reset()

func (*MyMessage) String

func (m *MyMessage) String() string

Jump to

Keyboard shortcuts

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