multi

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 1 Imported by: 8

Documentation

Overview

Package multi is a generated protocol buffer package.

It is generated from these files:

multi/multi1.proto
multi/multi2.proto
multi/multi3.proto

It has these top-level messages:

Multi1
Multi2
Multi3

Index

Constants

This section is empty.

Variables

View Source
var Multi2_Color_name = map[int]string{
	0: "BLUE",
	1: "GREEN",
	2: "RED",
}
View Source
var Multi2_Color_value = map[string]int{
	"BLUE":  0,
	"GREEN": 1,
	"RED":   2,
}
View Source
var Multi3_HatType_name = map[int]string{
	0: "FEDORA",
	1: "FEZ",
}
View Source
var Multi3_HatType_value = map[string]int{
	"FEDORA": 0,
	"FEZ":    1,
}

Functions

This section is empty.

Types

type Multi1

type Multi1 struct {
	Multi2  *Multi2
	Color   Multi2_Color
	HatType Multi3_HatType
}

func (*Multi1) GetColor

func (m *Multi1) GetColor() (x Multi2_Color)

GetColor gets the Color of the Multi1.

func (*Multi1) GetHatType

func (m *Multi1) GetHatType() (x Multi3_HatType)

GetHatType gets the HatType of the Multi1.

func (*Multi1) GetMulti2

func (m *Multi1) GetMulti2() (x *Multi2)

GetMulti2 gets the Multi2 of the Multi1.

func (*Multi1) Marshal

func (m *Multi1) Marshal() []byte

Marshal marshals Multi1 to a slice of bytes.

func (*Multi1) MarshalToWriter

func (m *Multi1) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Multi1 to the provided writer.

func (*Multi1) Unmarshal

func (m *Multi1) Unmarshal(rawBytes []byte) (*Multi1, error)

Unmarshal unmarshals a Multi1 from a slice of bytes.

func (*Multi1) UnmarshalFromReader

func (m *Multi1) UnmarshalFromReader(reader jspb.Reader) *Multi1

UnmarshalFromReader unmarshals a Multi1 from the provided reader.

type Multi2

type Multi2 struct {
	RequiredValue int32
	Color         Multi2_Color
}

func (*Multi2) GetColor

func (m *Multi2) GetColor() (x Multi2_Color)

GetColor gets the Color of the Multi2.

func (*Multi2) GetRequiredValue

func (m *Multi2) GetRequiredValue() (x int32)

GetRequiredValue gets the RequiredValue of the Multi2.

func (*Multi2) Marshal

func (m *Multi2) Marshal() []byte

Marshal marshals Multi2 to a slice of bytes.

func (*Multi2) MarshalToWriter

func (m *Multi2) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Multi2 to the provided writer.

func (*Multi2) Unmarshal

func (m *Multi2) Unmarshal(rawBytes []byte) (*Multi2, error)

Unmarshal unmarshals a Multi2 from a slice of bytes.

func (*Multi2) UnmarshalFromReader

func (m *Multi2) UnmarshalFromReader(reader jspb.Reader) *Multi2

UnmarshalFromReader unmarshals a Multi2 from the provided reader.

type Multi2_Color

type Multi2_Color int
const (
	Multi2_BLUE  Multi2_Color = 0
	Multi2_GREEN Multi2_Color = 1
	Multi2_RED   Multi2_Color = 2
)

func (Multi2_Color) String

func (x Multi2_Color) String() string

type Multi3

type Multi3 struct {
	HatType Multi3_HatType
}

func (*Multi3) GetHatType

func (m *Multi3) GetHatType() (x Multi3_HatType)

GetHatType gets the HatType of the Multi3.

func (*Multi3) Marshal

func (m *Multi3) Marshal() []byte

Marshal marshals Multi3 to a slice of bytes.

func (*Multi3) MarshalToWriter

func (m *Multi3) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Multi3 to the provided writer.

func (*Multi3) Unmarshal

func (m *Multi3) Unmarshal(rawBytes []byte) (*Multi3, error)

Unmarshal unmarshals a Multi3 from a slice of bytes.

func (*Multi3) UnmarshalFromReader

func (m *Multi3) UnmarshalFromReader(reader jspb.Reader) *Multi3

UnmarshalFromReader unmarshals a Multi3 from the provided reader.

type Multi3_HatType

type Multi3_HatType int
const (
	Multi3_FEDORA Multi3_HatType = 0
	Multi3_FEZ    Multi3_HatType = 1
)

func (Multi3_HatType) String

func (x Multi3_HatType) String() string

Jump to

Keyboard shortcuts

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