-
Notifications
You must be signed in to change notification settings - Fork 0
/
textinput.pb.go
183 lines (156 loc) · 7.19 KB
/
textinput.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: gomatcha.io/matcha/pb/view/textinput/textinput.proto
/*
Package textinput is a generated protocol buffer package.
It is generated from these files:
gomatcha.io/matcha/pb/view/textinput/textinput.proto
It has these top-level messages:
View
Event
FocusEvent
SubmitEvent
*/
package textinput
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import matcha_text "gomatcha.io/matcha/pb/text"
import matcha_keyboard "gomatcha.io/matcha/pb/keyboard"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type View struct {
StyledText *matcha_text.StyledText `protobuf:"bytes,1,opt,name=styledText" json:"styledText,omitempty"`
PlaceholderText *matcha_text.StyledText `protobuf:"bytes,2,opt,name=placeholderText" json:"placeholderText,omitempty"`
Focused bool `protobuf:"varint,4,opt,name=focused" json:"focused,omitempty"`
KeyboardType matcha_keyboard.Type `protobuf:"varint,5,opt,name=keyboardType,enum=matcha.keyboard.Type" json:"keyboardType,omitempty"`
KeyboardAppearance matcha_keyboard.Appearance `protobuf:"varint,6,opt,name=keyboardAppearance,enum=matcha.keyboard.Appearance" json:"keyboardAppearance,omitempty"`
KeyboardReturnType matcha_keyboard.ReturnType `protobuf:"varint,7,opt,name=keyboardReturnType,enum=matcha.keyboard.ReturnType" json:"keyboardReturnType,omitempty"`
Multiline bool `protobuf:"varint,8,opt,name=multiline" json:"multiline,omitempty"`
SecureTextEntry bool `protobuf:"varint,9,opt,name=secureTextEntry" json:"secureTextEntry,omitempty"`
}
func (m *View) Reset() { *m = View{} }
func (m *View) String() string { return proto.CompactTextString(m) }
func (*View) ProtoMessage() {}
func (*View) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *View) GetStyledText() *matcha_text.StyledText {
if m != nil {
return m.StyledText
}
return nil
}
func (m *View) GetPlaceholderText() *matcha_text.StyledText {
if m != nil {
return m.PlaceholderText
}
return nil
}
func (m *View) GetFocused() bool {
if m != nil {
return m.Focused
}
return false
}
func (m *View) GetKeyboardType() matcha_keyboard.Type {
if m != nil {
return m.KeyboardType
}
return matcha_keyboard.Type_DEFAULT_TYPE
}
func (m *View) GetKeyboardAppearance() matcha_keyboard.Appearance {
if m != nil {
return m.KeyboardAppearance
}
return matcha_keyboard.Appearance_DEFAULT_APPEARANCE
}
func (m *View) GetKeyboardReturnType() matcha_keyboard.ReturnType {
if m != nil {
return m.KeyboardReturnType
}
return matcha_keyboard.ReturnType_DEFAULT_RETURN_TYPE
}
func (m *View) GetMultiline() bool {
if m != nil {
return m.Multiline
}
return false
}
func (m *View) GetSecureTextEntry() bool {
if m != nil {
return m.SecureTextEntry
}
return false
}
type Event struct {
StyledText *matcha_text.StyledText `protobuf:"bytes,1,opt,name=styledText" json:"styledText,omitempty"`
}
func (m *Event) Reset() { *m = Event{} }
func (m *Event) String() string { return proto.CompactTextString(m) }
func (*Event) ProtoMessage() {}
func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Event) GetStyledText() *matcha_text.StyledText {
if m != nil {
return m.StyledText
}
return nil
}
type FocusEvent struct {
Focused bool `protobuf:"varint,1,opt,name=focused" json:"focused,omitempty"`
}
func (m *FocusEvent) Reset() { *m = FocusEvent{} }
func (m *FocusEvent) String() string { return proto.CompactTextString(m) }
func (*FocusEvent) ProtoMessage() {}
func (*FocusEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *FocusEvent) GetFocused() bool {
if m != nil {
return m.Focused
}
return false
}
type SubmitEvent struct {
}
func (m *SubmitEvent) Reset() { *m = SubmitEvent{} }
func (m *SubmitEvent) String() string { return proto.CompactTextString(m) }
func (*SubmitEvent) ProtoMessage() {}
func (*SubmitEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func init() {
proto.RegisterType((*View)(nil), "matcha.view.textinput.View")
proto.RegisterType((*Event)(nil), "matcha.view.textinput.Event")
proto.RegisterType((*FocusEvent)(nil), "matcha.view.textinput.FocusEvent")
proto.RegisterType((*SubmitEvent)(nil), "matcha.view.textinput.SubmitEvent")
}
func init() {
proto.RegisterFile("gomatcha.io/matcha/pb/view/textinput/textinput.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 359 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x5d, 0x4b, 0xeb, 0x30,
0x18, 0xc7, 0xe9, 0xce, 0x5e, 0x9f, 0x9d, 0x73, 0x86, 0x81, 0x61, 0x99, 0x82, 0xa3, 0xa0, 0xf4,
0xc6, 0x16, 0xa6, 0x20, 0xde, 0xb9, 0xc1, 0x04, 0x11, 0x41, 0xba, 0xe1, 0x85, 0x77, 0x7d, 0x79,
0x74, 0xc5, 0xae, 0x0d, 0x59, 0xba, 0xad, 0x5f, 0xc7, 0x6f, 0xe1, 0xb7, 0x93, 0xa4, 0x6b, 0xbb,
0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