alert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package alert is a generated protocol buffer package.

It is generated from these files:

gomatcha.io/matcha/pb/view/alert/alert.proto

It has these top-level messages:

View
Button

Index

Constants

This section is empty.

Variables

View Source
var ButtonStyle_name = map[int32]string{
	0: "DEFAULT",
	1: "CANCEL",
	2: "DESTRUCTIVE",
}
View Source
var ButtonStyle_value = map[string]int32{
	"DEFAULT":     0,
	"CANCEL":      1,
	"DESTRUCTIVE": 2,
}

Functions

This section is empty.

Types

type Button

type Button struct {
	Title string      `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Style ButtonStyle `protobuf:"varint,2,opt,name=style,enum=matcha.view.alert.ButtonStyle" json:"style,omitempty"`
}

func (*Button) Descriptor

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

func (*Button) GetStyle

func (m *Button) GetStyle() ButtonStyle

func (*Button) GetTitle

func (m *Button) GetTitle() string

func (*Button) ProtoMessage

func (*Button) ProtoMessage()

func (*Button) Reset

func (m *Button) Reset()

func (*Button) String

func (m *Button) String() string

type ButtonStyle

type ButtonStyle int32
const (
	ButtonStyle_DEFAULT     ButtonStyle = 0
	ButtonStyle_CANCEL      ButtonStyle = 1
	ButtonStyle_DESTRUCTIVE ButtonStyle = 2
)

func (ButtonStyle) EnumDescriptor

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

func (ButtonStyle) String

func (x ButtonStyle) String() string

type View

type View struct {
	Id      int64     `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Title   string    `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"`
	Message string    `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	Buttons []*Button `protobuf:"bytes,4,rep,name=buttons" json:"buttons,omitempty"`
}

func (*View) Descriptor

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

func (*View) GetButtons

func (m *View) GetButtons() []*Button

func (*View) GetId

func (m *View) GetId() int64

func (*View) GetMessage

func (m *View) GetMessage() string

func (*View) GetTitle

func (m *View) GetTitle() string

func (*View) ProtoMessage

func (*View) ProtoMessage()

func (*View) Reset

func (m *View) Reset()

func (*View) String

func (m *View) String() string

Jump to

Keyboard shortcuts

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