blob: 0d4d381109b6a53246fa80cf569f7530b47b44ef [file] [log] [blame]
avm9996383f8f292021-08-24 18:26:52 +02001// Code generated by protoc-gen-go. DO NOT EDIT.
2// versions:
Adrià Vilanova Martínez25e12112021-08-25 13:48:06 +02003// protoc-gen-go v1.26.0
Adrià Vilanova Martínezdc5d29f2023-04-15 17:22:13 +02004// protoc v3.21.12
avm9996383f8f292021-08-24 18:26:52 +02005// source: api_proto/common.proto
6
7package api_proto
8
9import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14)
15
16const (
17 // Verify that this generated code is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19 // Verify that runtime/protoimpl is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21)
22
23type Environment_Browser int32
24
25const (
26 Environment_BROWSER_UNKNOWN Environment_Browser = 0
27 Environment_BROWSER_CHROMIUM Environment_Browser = 1
28 Environment_BROWSER_GECKO Environment_Browser = 2
29)
30
31// Enum value maps for Environment_Browser.
32var (
33 Environment_Browser_name = map[int32]string{
34 0: "BROWSER_UNKNOWN",
35 1: "BROWSER_CHROMIUM",
36 2: "BROWSER_GECKO",
37 }
38 Environment_Browser_value = map[string]int32{
39 "BROWSER_UNKNOWN": 0,
40 "BROWSER_CHROMIUM": 1,
41 "BROWSER_GECKO": 2,
42 }
43)
44
45func (x Environment_Browser) Enum() *Environment_Browser {
46 p := new(Environment_Browser)
47 *p = x
48 return p
49}
50
51func (x Environment_Browser) String() string {
52 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
53}
54
55func (Environment_Browser) Descriptor() protoreflect.EnumDescriptor {
56 return file_api_proto_common_proto_enumTypes[0].Descriptor()
57}
58
59func (Environment_Browser) Type() protoreflect.EnumType {
60 return &file_api_proto_common_proto_enumTypes[0]
61}
62
63func (x Environment_Browser) Number() protoreflect.EnumNumber {
64 return protoreflect.EnumNumber(x)
65}
66
67// Deprecated: Use Environment_Browser.Descriptor instead.
68func (Environment_Browser) EnumDescriptor() ([]byte, []int) {
69 return file_api_proto_common_proto_rawDescGZIP(), []int{0, 0}
70}
71
72type Environment_VersionChannel int32
73
74const (
75 Environment_CHANNEL_UNKNOWN Environment_VersionChannel = 0
76 Environment_CHANNEL_STABLE Environment_VersionChannel = 1
77 Environment_CHANNEL_BETA Environment_VersionChannel = 2
78)
79
80// Enum value maps for Environment_VersionChannel.
81var (
82 Environment_VersionChannel_name = map[int32]string{
83 0: "CHANNEL_UNKNOWN",
84 1: "CHANNEL_STABLE",
85 2: "CHANNEL_BETA",
86 }
87 Environment_VersionChannel_value = map[string]int32{
88 "CHANNEL_UNKNOWN": 0,
89 "CHANNEL_STABLE": 1,
90 "CHANNEL_BETA": 2,
91 }
92)
93
94func (x Environment_VersionChannel) Enum() *Environment_VersionChannel {
95 p := new(Environment_VersionChannel)
96 *p = x
97 return p
98}
99
100func (x Environment_VersionChannel) String() string {
101 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
102}
103
104func (Environment_VersionChannel) Descriptor() protoreflect.EnumDescriptor {
105 return file_api_proto_common_proto_enumTypes[1].Descriptor()
106}
107
108func (Environment_VersionChannel) Type() protoreflect.EnumType {
109 return &file_api_proto_common_proto_enumTypes[1]
110}
111
112func (x Environment_VersionChannel) Number() protoreflect.EnumNumber {
113 return protoreflect.EnumNumber(x)
114}
115
116// Deprecated: Use Environment_VersionChannel.Descriptor instead.
117func (Environment_VersionChannel) EnumDescriptor() ([]byte, []int) {
118 return file_api_proto_common_proto_rawDescGZIP(), []int{0, 1}
119}
120
121type Environment struct {
122 state protoimpl.MessageState
123 sizeCache protoimpl.SizeCache
124 unknownFields protoimpl.UnknownFields
125
126 Browser Environment_Browser `protobuf:"varint,1,opt,name=browser,proto3,enum=Environment_Browser" json:"browser,omitempty"`
127 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
128 VersionChannel Environment_VersionChannel `protobuf:"varint,3,opt,name=version_channel,json=versionChannel,proto3,enum=Environment_VersionChannel" json:"version_channel,omitempty"`
129}
130
131func (x *Environment) Reset() {
132 *x = Environment{}
133 if protoimpl.UnsafeEnabled {
134 mi := &file_api_proto_common_proto_msgTypes[0]
135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
136 ms.StoreMessageInfo(mi)
137 }
138}
139
140func (x *Environment) String() string {
141 return protoimpl.X.MessageStringOf(x)
142}
143
144func (*Environment) ProtoMessage() {}
145
146func (x *Environment) ProtoReflect() protoreflect.Message {
147 mi := &file_api_proto_common_proto_msgTypes[0]
148 if protoimpl.UnsafeEnabled && x != nil {
149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
150 if ms.LoadMessageInfo() == nil {
151 ms.StoreMessageInfo(mi)
152 }
153 return ms
154 }
155 return mi.MessageOf(x)
156}
157
158// Deprecated: Use Environment.ProtoReflect.Descriptor instead.
159func (*Environment) Descriptor() ([]byte, []int) {
160 return file_api_proto_common_proto_rawDescGZIP(), []int{0}
161}
162
163func (x *Environment) GetBrowser() Environment_Browser {
164 if x != nil {
165 return x.Browser
166 }
167 return Environment_BROWSER_UNKNOWN
168}
169
170func (x *Environment) GetVersion() string {
171 if x != nil {
172 return x.Version
173 }
174 return ""
175}
176
177func (x *Environment) GetVersionChannel() Environment_VersionChannel {
178 if x != nil {
179 return x.VersionChannel
180 }
181 return Environment_CHANNEL_UNKNOWN
182}
183
184var File_api_proto_common_proto protoreflect.FileDescriptor
185
186var file_api_proto_common_proto_rawDesc = []byte{
187 0x0a, 0x16, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
188 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3, 0x02, 0x0a, 0x0b, 0x45, 0x6e, 0x76,
189 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x62, 0x72, 0x6f, 0x77,
190 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x45, 0x6e, 0x76, 0x69,
191 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x52,
192 0x07, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
193 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
194 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68,
195 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x45, 0x6e,
196 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
197 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
198 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x47, 0x0a, 0x07, 0x42, 0x72, 0x6f, 0x77,
199 0x73, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x0f, 0x42, 0x52, 0x4f, 0x57, 0x53, 0x45, 0x52, 0x5f, 0x55,
200 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x52, 0x4f, 0x57,
201 0x53, 0x45, 0x52, 0x5f, 0x43, 0x48, 0x52, 0x4f, 0x4d, 0x49, 0x55, 0x4d, 0x10, 0x01, 0x12, 0x11,
202 0x0a, 0x0d, 0x42, 0x52, 0x4f, 0x57, 0x53, 0x45, 0x52, 0x5f, 0x47, 0x45, 0x43, 0x4b, 0x4f, 0x10,
203 0x02, 0x22, 0x4b, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e,
204 0x6e, 0x65, 0x6c, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x55,
205 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x48, 0x41, 0x4e,
206 0x4e, 0x45, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c,
207 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x42, 0x45, 0x54, 0x41, 0x10, 0x02, 0x42, 0x2e,
208 0x5a, 0x2c, 0x67, 0x6f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x61, 0x76, 0x6d, 0x39,
209 0x39, 0x39, 0x36, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x77, 0x70, 0x74, 0x2d, 0x73, 0x65,
210 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
211 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
212}
213
214var (
215 file_api_proto_common_proto_rawDescOnce sync.Once
216 file_api_proto_common_proto_rawDescData = file_api_proto_common_proto_rawDesc
217)
218
219func file_api_proto_common_proto_rawDescGZIP() []byte {
220 file_api_proto_common_proto_rawDescOnce.Do(func() {
221 file_api_proto_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_proto_common_proto_rawDescData)
222 })
223 return file_api_proto_common_proto_rawDescData
224}
225
226var file_api_proto_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
227var file_api_proto_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
228var file_api_proto_common_proto_goTypes = []interface{}{
229 (Environment_Browser)(0), // 0: Environment.Browser
230 (Environment_VersionChannel)(0), // 1: Environment.VersionChannel
231 (*Environment)(nil), // 2: Environment
232}
233var file_api_proto_common_proto_depIdxs = []int32{
234 0, // 0: Environment.browser:type_name -> Environment.Browser
235 1, // 1: Environment.version_channel:type_name -> Environment.VersionChannel
236 2, // [2:2] is the sub-list for method output_type
237 2, // [2:2] is the sub-list for method input_type
238 2, // [2:2] is the sub-list for extension type_name
239 2, // [2:2] is the sub-list for extension extendee
240 0, // [0:2] is the sub-list for field type_name
241}
242
243func init() { file_api_proto_common_proto_init() }
244func file_api_proto_common_proto_init() {
245 if File_api_proto_common_proto != nil {
246 return
247 }
248 if !protoimpl.UnsafeEnabled {
249 file_api_proto_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
250 switch v := v.(*Environment); i {
251 case 0:
252 return &v.state
253 case 1:
254 return &v.sizeCache
255 case 2:
256 return &v.unknownFields
257 default:
258 return nil
259 }
260 }
261 }
262 type x struct{}
263 out := protoimpl.TypeBuilder{
264 File: protoimpl.DescBuilder{
265 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
266 RawDescriptor: file_api_proto_common_proto_rawDesc,
267 NumEnums: 2,
268 NumMessages: 1,
269 NumExtensions: 0,
270 NumServices: 0,
271 },
272 GoTypes: file_api_proto_common_proto_goTypes,
273 DependencyIndexes: file_api_proto_common_proto_depIdxs,
274 EnumInfos: file_api_proto_common_proto_enumTypes,
275 MessageInfos: file_api_proto_common_proto_msgTypes,
276 }.Build()
277 File_api_proto_common_proto = out.File
278 file_api_proto_common_proto_rawDesc = nil
279 file_api_proto_common_proto_goTypes = nil
280 file_api_proto_common_proto_depIdxs = nil
281}