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
42
43
44 type Field struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
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 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
76
77
78
79
80 IndexConfig *Field_IndexConfig `protobuf:"bytes,2,opt,name=index_config,json=indexConfig,proto3" json:"index_config,omitempty"`
81 }
82
83 func (x *Field) Reset() {
84 *x = Field{}
85 if protoimpl.UnsafeEnabled {
86 mi := &file_google_firestore_admin_v1beta2_field_proto_msgTypes[0]
87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
88 ms.StoreMessageInfo(mi)
89 }
90 }
91
92 func (x *Field) String() string {
93 return protoimpl.X.MessageStringOf(x)
94 }
95
96 func (*Field) ProtoMessage() {}
97
98 func (x *Field) ProtoReflect() protoreflect.Message {
99 mi := &file_google_firestore_admin_v1beta2_field_proto_msgTypes[0]
100 if protoimpl.UnsafeEnabled && x != nil {
101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
102 if ms.LoadMessageInfo() == nil {
103 ms.StoreMessageInfo(mi)
104 }
105 return ms
106 }
107 return mi.MessageOf(x)
108 }
109
110
111 func (*Field) Descriptor() ([]byte, []int) {
112 return file_google_firestore_admin_v1beta2_field_proto_rawDescGZIP(), []int{0}
113 }
114
115 func (x *Field) GetName() string {
116 if x != nil {
117 return x.Name
118 }
119 return ""
120 }
121
122 func (x *Field) GetIndexConfig() *Field_IndexConfig {
123 if x != nil {
124 return x.IndexConfig
125 }
126 return nil
127 }
128
129
130 type Field_IndexConfig struct {
131 state protoimpl.MessageState
132 sizeCache protoimpl.SizeCache
133 unknownFields protoimpl.UnknownFields
134
135
136 Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"`
137
138
139
140 UsesAncestorConfig bool `protobuf:"varint,2,opt,name=uses_ancestor_config,json=usesAncestorConfig,proto3" json:"uses_ancestor_config,omitempty"`
141
142
143
144
145 AncestorField string `protobuf:"bytes,3,opt,name=ancestor_field,json=ancestorField,proto3" json:"ancestor_field,omitempty"`
146
147
148
149
150
151 Reverting bool `protobuf:"varint,4,opt,name=reverting,proto3" json:"reverting,omitempty"`
152 }
153
154 func (x *Field_IndexConfig) Reset() {
155 *x = Field_IndexConfig{}
156 if protoimpl.UnsafeEnabled {
157 mi := &file_google_firestore_admin_v1beta2_field_proto_msgTypes[1]
158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
159 ms.StoreMessageInfo(mi)
160 }
161 }
162
163 func (x *Field_IndexConfig) String() string {
164 return protoimpl.X.MessageStringOf(x)
165 }
166
167 func (*Field_IndexConfig) ProtoMessage() {}
168
169 func (x *Field_IndexConfig) ProtoReflect() protoreflect.Message {
170 mi := &file_google_firestore_admin_v1beta2_field_proto_msgTypes[1]
171 if protoimpl.UnsafeEnabled && x != nil {
172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
173 if ms.LoadMessageInfo() == nil {
174 ms.StoreMessageInfo(mi)
175 }
176 return ms
177 }
178 return mi.MessageOf(x)
179 }
180
181
182 func (*Field_IndexConfig) Descriptor() ([]byte, []int) {
183 return file_google_firestore_admin_v1beta2_field_proto_rawDescGZIP(), []int{0, 0}
184 }
185
186 func (x *Field_IndexConfig) GetIndexes() []*Index {
187 if x != nil {
188 return x.Indexes
189 }
190 return nil
191 }
192
193 func (x *Field_IndexConfig) GetUsesAncestorConfig() bool {
194 if x != nil {
195 return x.UsesAncestorConfig
196 }
197 return false
198 }
199
200 func (x *Field_IndexConfig) GetAncestorField() string {
201 if x != nil {
202 return x.AncestorField
203 }
204 return ""
205 }
206
207 func (x *Field_IndexConfig) GetReverting() bool {
208 if x != nil {
209 return x.Reverting
210 }
211 return false
212 }
213
214 var File_google_firestore_admin_v1beta2_field_proto protoreflect.FileDescriptor
215
216 var file_google_firestore_admin_v1beta2_field_proto_rawDesc = []byte{
217 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
218 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32,
219 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f,
220 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61,
221 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x1a, 0x2a, 0x67, 0x6f,
222 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61,
223 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x69, 0x6e, 0x64,
224 0x65, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
225 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
226 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x02, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64,
227 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
228 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0c, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x63, 0x6f,
229 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f,
230 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64,
231 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x46, 0x69, 0x65, 0x6c,
232 0x64, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x69,
233 0x6e, 0x64, 0x65, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xc5, 0x01, 0x0a, 0x0b, 0x49,
234 0x6e, 0x64, 0x65, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x07, 0x69, 0x6e,
235 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f,
236 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61,
237 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x49, 0x6e, 0x64,
238 0x65, 0x78, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x75,
239 0x73, 0x65, 0x73, 0x5f, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e,
240 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x75, 0x73, 0x65, 0x73, 0x41,
241 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a,
242 0x0e, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18,
243 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x46,
244 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x76, 0x65, 0x72, 0x74, 0x69, 0x6e,
245 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x76, 0x65, 0x72, 0x74, 0x69,
246 0x6e, 0x67, 0x42, 0xa5, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
247 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69,
248 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 0x0a, 0x46, 0x69, 0x65, 0x6c, 0x64,
249 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
250 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
251 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x66,
252 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76,
253 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x04, 0x47,
254 0x43, 0x46, 0x53, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
255 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x6d,
256 0x69, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
257 0x6f, 0x33,
258 }
259
260 var (
261 file_google_firestore_admin_v1beta2_field_proto_rawDescOnce sync.Once
262 file_google_firestore_admin_v1beta2_field_proto_rawDescData = file_google_firestore_admin_v1beta2_field_proto_rawDesc
263 )
264
265 func file_google_firestore_admin_v1beta2_field_proto_rawDescGZIP() []byte {
266 file_google_firestore_admin_v1beta2_field_proto_rawDescOnce.Do(func() {
267 file_google_firestore_admin_v1beta2_field_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_admin_v1beta2_field_proto_rawDescData)
268 })
269 return file_google_firestore_admin_v1beta2_field_proto_rawDescData
270 }
271
272 var file_google_firestore_admin_v1beta2_field_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
273 var file_google_firestore_admin_v1beta2_field_proto_goTypes = []interface{}{
274 (*Field)(nil),
275 (*Field_IndexConfig)(nil),
276 (*Index)(nil),
277 }
278 var file_google_firestore_admin_v1beta2_field_proto_depIdxs = []int32{
279 1,
280 2,
281 2,
282 2,
283 2,
284 2,
285 0,
286 }
287
288 func init() { file_google_firestore_admin_v1beta2_field_proto_init() }
289 func file_google_firestore_admin_v1beta2_field_proto_init() {
290 if File_google_firestore_admin_v1beta2_field_proto != nil {
291 return
292 }
293 file_google_firestore_admin_v1beta2_index_proto_init()
294 if !protoimpl.UnsafeEnabled {
295 file_google_firestore_admin_v1beta2_field_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
296 switch v := v.(*Field); i {
297 case 0:
298 return &v.state
299 case 1:
300 return &v.sizeCache
301 case 2:
302 return &v.unknownFields
303 default:
304 return nil
305 }
306 }
307 file_google_firestore_admin_v1beta2_field_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
308 switch v := v.(*Field_IndexConfig); i {
309 case 0:
310 return &v.state
311 case 1:
312 return &v.sizeCache
313 case 2:
314 return &v.unknownFields
315 default:
316 return nil
317 }
318 }
319 }
320 type x struct{}
321 out := protoimpl.TypeBuilder{
322 File: protoimpl.DescBuilder{
323 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
324 RawDescriptor: file_google_firestore_admin_v1beta2_field_proto_rawDesc,
325 NumEnums: 0,
326 NumMessages: 2,
327 NumExtensions: 0,
328 NumServices: 0,
329 },
330 GoTypes: file_google_firestore_admin_v1beta2_field_proto_goTypes,
331 DependencyIndexes: file_google_firestore_admin_v1beta2_field_proto_depIdxs,
332 MessageInfos: file_google_firestore_admin_v1beta2_field_proto_msgTypes,
333 }.Build()
334 File_google_firestore_admin_v1beta2_field_proto = out.File
335 file_google_firestore_admin_v1beta2_field_proto_rawDesc = nil
336 file_google_firestore_admin_v1beta2_field_proto_goTypes = nil
337 file_google_firestore_admin_v1beta2_field_proto_depIdxs = nil
338 }
339
View as plain text