flavortown_dessert

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDessert = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDessert   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Dessert

type Dessert struct {
	// The name of the dish
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// How sweet is the dish, an integer between 0 and 10
	Sweetness            int32    `protobuf:"varint,2,opt,name=sweetness,proto3" json:"sweetness,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A delicious dessert dish on the menu

func NewPopulatedDessert

func NewPopulatedDessert(r randyDessert, easy bool) *Dessert

func (*Dessert) Descriptor

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

func (*Dessert) Equal

func (this *Dessert) Equal(that interface{}) bool

func (*Dessert) GetName

func (m *Dessert) GetName() string

func (*Dessert) GetSweetness

func (m *Dessert) GetSweetness() int32

func (*Dessert) Marshal

func (m *Dessert) Marshal() (dAtA []byte, err error)

func (*Dessert) MarshalTo

func (m *Dessert) MarshalTo(dAtA []byte) (int, error)

func (*Dessert) ProtoMessage

func (*Dessert) ProtoMessage()

func (*Dessert) Reset

func (m *Dessert) Reset()

func (*Dessert) Size

func (m *Dessert) Size() (n int)

func (*Dessert) String

func (m *Dessert) String() string

func (*Dessert) Unmarshal

func (m *Dessert) Unmarshal(dAtA []byte) error

func (*Dessert) XXX_DiscardUnknown

func (m *Dessert) XXX_DiscardUnknown()

func (*Dessert) XXX_Marshal

func (m *Dessert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Dessert) XXX_Merge

func (m *Dessert) XXX_Merge(src proto.Message)

func (*Dessert) XXX_Size

func (m *Dessert) XXX_Size() int

func (*Dessert) XXX_Unmarshal

func (m *Dessert) XXX_Unmarshal(b []byte) error

type DessertGetter

type DessertGetter interface {
	GetDessert() *Dessert
}

Jump to

Keyboard shortcuts

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