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) GetStyle ¶
func (m *Button) GetStyle() ButtonStyle
func (*Button) ProtoMessage ¶
func (*Button) ProtoMessage()
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) GetButtons ¶
func (*View) GetMessage ¶
func (*View) ProtoMessage ¶
func (*View) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.