1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package admin
23
24 import (
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 )
32
33 const (
34
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40
41 type IndexField_Mode int32
42
43 const (
44
45 IndexField_MODE_UNSPECIFIED IndexField_Mode = 0
46
47
48 IndexField_ASCENDING IndexField_Mode = 2
49
50
51 IndexField_DESCENDING IndexField_Mode = 3
52
53
54 IndexField_ARRAY_CONTAINS IndexField_Mode = 4
55 )
56
57
58 var (
59 IndexField_Mode_name = map[int32]string{
60 0: "MODE_UNSPECIFIED",
61 2: "ASCENDING",
62 3: "DESCENDING",
63 4: "ARRAY_CONTAINS",
64 }
65 IndexField_Mode_value = map[string]int32{
66 "MODE_UNSPECIFIED": 0,
67 "ASCENDING": 2,
68 "DESCENDING": 3,
69 "ARRAY_CONTAINS": 4,
70 }
71 )
72
73 func (x IndexField_Mode) Enum() *IndexField_Mode {
74 p := new(IndexField_Mode)
75 *p = x
76 return p
77 }
78
79 func (x IndexField_Mode) String() string {
80 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
81 }
82
83 func (IndexField_Mode) Descriptor() protoreflect.EnumDescriptor {
84 return file_google_firestore_admin_v1beta1_index_proto_enumTypes[0].Descriptor()
85 }
86
87 func (IndexField_Mode) Type() protoreflect.EnumType {
88 return &file_google_firestore_admin_v1beta1_index_proto_enumTypes[0]
89 }
90
91 func (x IndexField_Mode) Number() protoreflect.EnumNumber {
92 return protoreflect.EnumNumber(x)
93 }
94
95
96 func (IndexField_Mode) EnumDescriptor() ([]byte, []int) {
97 return file_google_firestore_admin_v1beta1_index_proto_rawDescGZIP(), []int{0, 0}
98 }
99
100
101
102
103
104 type Index_State int32
105
106 const (
107
108 Index_STATE_UNSPECIFIED Index_State = 0
109
110
111
112
113 Index_CREATING Index_State = 3
114
115
116
117 Index_READY Index_State = 2
118
119
120
121
122
123 Index_ERROR Index_State = 5
124 )
125
126
127 var (
128 Index_State_name = map[int32]string{
129 0: "STATE_UNSPECIFIED",
130 3: "CREATING",
131 2: "READY",
132 5: "ERROR",
133 }
134 Index_State_value = map[string]int32{
135 "STATE_UNSPECIFIED": 0,
136 "CREATING": 3,
137 "READY": 2,
138 "ERROR": 5,
139 }
140 )
141
142 func (x Index_State) Enum() *Index_State {
143 p := new(Index_State)
144 *p = x
145 return p
146 }
147
148 func (x Index_State) String() string {
149 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
150 }
151
152 func (Index_State) Descriptor() protoreflect.EnumDescriptor {
153 return file_google_firestore_admin_v1beta1_index_proto_enumTypes[1].Descriptor()
154 }
155
156 func (Index_State) Type() protoreflect.EnumType {
157 return &file_google_firestore_admin_v1beta1_index_proto_enumTypes[1]
158 }
159
160 func (x Index_State) Number() protoreflect.EnumNumber {
161 return protoreflect.EnumNumber(x)
162 }
163
164
165 func (Index_State) EnumDescriptor() ([]byte, []int) {
166 return file_google_firestore_admin_v1beta1_index_proto_rawDescGZIP(), []int{1, 0}
167 }
168
169
170 type IndexField struct {
171 state protoimpl.MessageState
172 sizeCache protoimpl.SizeCache
173 unknownFields protoimpl.UnknownFields
174
175
176
177
178
179 FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
180
181 Mode IndexField_Mode `protobuf:"varint,2,opt,name=mode,proto3,enum=google.firestore.admin.v1beta1.IndexField_Mode" json:"mode,omitempty"`
182 }
183
184 func (x *IndexField) Reset() {
185 *x = IndexField{}
186 if protoimpl.UnsafeEnabled {
187 mi := &file_google_firestore_admin_v1beta1_index_proto_msgTypes[0]
188 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
189 ms.StoreMessageInfo(mi)
190 }
191 }
192
193 func (x *IndexField) String() string {
194 return protoimpl.X.MessageStringOf(x)
195 }
196
197 func (*IndexField) ProtoMessage() {}
198
199 func (x *IndexField) ProtoReflect() protoreflect.Message {
200 mi := &file_google_firestore_admin_v1beta1_index_proto_msgTypes[0]
201 if protoimpl.UnsafeEnabled && x != nil {
202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
203 if ms.LoadMessageInfo() == nil {
204 ms.StoreMessageInfo(mi)
205 }
206 return ms
207 }
208 return mi.MessageOf(x)
209 }
210
211
212 func (*IndexField) Descriptor() ([]byte, []int) {
213 return file_google_firestore_admin_v1beta1_index_proto_rawDescGZIP(), []int{0}
214 }
215
216 func (x *IndexField) GetFieldPath() string {
217 if x != nil {
218 return x.FieldPath
219 }
220 return ""
221 }
222
223 func (x *IndexField) GetMode() IndexField_Mode {
224 if x != nil {
225 return x.Mode
226 }
227 return IndexField_MODE_UNSPECIFIED
228 }
229
230
231 type Index struct {
232 state protoimpl.MessageState
233 sizeCache protoimpl.SizeCache
234 unknownFields protoimpl.UnknownFields
235
236
237
238 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
239
240 CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
241
242 Fields []*IndexField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
243
244
245 State Index_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.firestore.admin.v1beta1.Index_State" json:"state,omitempty"`
246 }
247
248 func (x *Index) Reset() {
249 *x = Index{}
250 if protoimpl.UnsafeEnabled {
251 mi := &file_google_firestore_admin_v1beta1_index_proto_msgTypes[1]
252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
253 ms.StoreMessageInfo(mi)
254 }
255 }
256
257 func (x *Index) String() string {
258 return protoimpl.X.MessageStringOf(x)
259 }
260
261 func (*Index) ProtoMessage() {}
262
263 func (x *Index) ProtoReflect() protoreflect.Message {
264 mi := &file_google_firestore_admin_v1beta1_index_proto_msgTypes[1]
265 if protoimpl.UnsafeEnabled && x != nil {
266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
267 if ms.LoadMessageInfo() == nil {
268 ms.StoreMessageInfo(mi)
269 }
270 return ms
271 }
272 return mi.MessageOf(x)
273 }
274
275
276 func (*Index) Descriptor() ([]byte, []int) {
277 return file_google_firestore_admin_v1beta1_index_proto_rawDescGZIP(), []int{1}
278 }
279
280 func (x *Index) GetName() string {
281 if x != nil {
282 return x.Name
283 }
284 return ""
285 }
286
287 func (x *Index) GetCollectionId() string {
288 if x != nil {
289 return x.CollectionId
290 }
291 return ""
292 }
293
294 func (x *Index) GetFields() []*IndexField {
295 if x != nil {
296 return x.Fields
297 }
298 return nil
299 }
300
301 func (x *Index) GetState() Index_State {
302 if x != nil {
303 return x.State
304 }
305 return Index_STATE_UNSPECIFIED
306 }
307
308 var File_google_firestore_admin_v1beta1_index_proto protoreflect.FileDescriptor
309
310 var file_google_firestore_admin_v1beta1_index_proto_rawDesc = []byte{
311 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
312 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
313 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f,
314 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61,
315 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f,
316 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
317 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 0x0a, 0x0a, 0x49,
318 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65,
319 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66,
320 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65,
321 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
322 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e,
323 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65,
324 0x6c, 0x64, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x4f, 0x0a,
325 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e,
326 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41,
327 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45,
328 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52,
329 0x52, 0x41, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x04, 0x22, 0x8b,
330 0x02, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
331 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d,
332 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
333 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
334 0x64, 0x12, 0x42, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
335 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73,
336 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
337 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66,
338 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06,
339 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69,
340 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31,
341 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74,
342 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x42, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74,
343 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
344 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41,
345 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10,
346 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x05, 0x42, 0xa5, 0x01, 0x0a,
347 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
348 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65,
349 0x74, 0x61, 0x31, 0x42, 0x0a, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
350 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
351 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
352 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
353 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
354 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, 0x24,
355 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72,
356 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x31, 0x42,
357 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
358 }
359
360 var (
361 file_google_firestore_admin_v1beta1_index_proto_rawDescOnce sync.Once
362 file_google_firestore_admin_v1beta1_index_proto_rawDescData = file_google_firestore_admin_v1beta1_index_proto_rawDesc
363 )
364
365 func file_google_firestore_admin_v1beta1_index_proto_rawDescGZIP() []byte {
366 file_google_firestore_admin_v1beta1_index_proto_rawDescOnce.Do(func() {
367 file_google_firestore_admin_v1beta1_index_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_admin_v1beta1_index_proto_rawDescData)
368 })
369 return file_google_firestore_admin_v1beta1_index_proto_rawDescData
370 }
371
372 var file_google_firestore_admin_v1beta1_index_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
373 var file_google_firestore_admin_v1beta1_index_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
374 var file_google_firestore_admin_v1beta1_index_proto_goTypes = []interface{}{
375 (IndexField_Mode)(0),
376 (Index_State)(0),
377 (*IndexField)(nil),
378 (*Index)(nil),
379 }
380 var file_google_firestore_admin_v1beta1_index_proto_depIdxs = []int32{
381 0,
382 2,
383 1,
384 3,
385 3,
386 3,
387 3,
388 0,
389 }
390
391 func init() { file_google_firestore_admin_v1beta1_index_proto_init() }
392 func file_google_firestore_admin_v1beta1_index_proto_init() {
393 if File_google_firestore_admin_v1beta1_index_proto != nil {
394 return
395 }
396 if !protoimpl.UnsafeEnabled {
397 file_google_firestore_admin_v1beta1_index_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
398 switch v := v.(*IndexField); i {
399 case 0:
400 return &v.state
401 case 1:
402 return &v.sizeCache
403 case 2:
404 return &v.unknownFields
405 default:
406 return nil
407 }
408 }
409 file_google_firestore_admin_v1beta1_index_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
410 switch v := v.(*Index); i {
411 case 0:
412 return &v.state
413 case 1:
414 return &v.sizeCache
415 case 2:
416 return &v.unknownFields
417 default:
418 return nil
419 }
420 }
421 }
422 type x struct{}
423 out := protoimpl.TypeBuilder{
424 File: protoimpl.DescBuilder{
425 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
426 RawDescriptor: file_google_firestore_admin_v1beta1_index_proto_rawDesc,
427 NumEnums: 2,
428 NumMessages: 2,
429 NumExtensions: 0,
430 NumServices: 0,
431 },
432 GoTypes: file_google_firestore_admin_v1beta1_index_proto_goTypes,
433 DependencyIndexes: file_google_firestore_admin_v1beta1_index_proto_depIdxs,
434 EnumInfos: file_google_firestore_admin_v1beta1_index_proto_enumTypes,
435 MessageInfos: file_google_firestore_admin_v1beta1_index_proto_msgTypes,
436 }.Build()
437 File_google_firestore_admin_v1beta1_index_proto = out.File
438 file_google_firestore_admin_v1beta1_index_proto_rawDesc = nil
439 file_google_firestore_admin_v1beta1_index_proto_goTypes = nil
440 file_google_firestore_admin_v1beta1_index_proto_depIdxs = nil
441 }
442
View as plain text