| 1 |
// Copyright 2019 Google LLC. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
// |
| 15 |
|
| 16 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 17 |
// versions: |
| 18 |
// protoc-gen-go v1.26.0 |
| 19 |
// protoc v3.12.2 |
| 20 |
// source: google/firestore/admin/v1beta2/index.proto |
| 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 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// Query Scope defines the scope at which a query is run. This is specified on |
| 41 |
// a StructuredQuery's `from` field. |
| 42 |
type Index_QueryScope int32 |
| 43 |
|
| 44 |
const ( |
| 45 |
// The query scope is unspecified. Not a valid option. |
| 46 |
Index_QUERY_SCOPE_UNSPECIFIED Index_QueryScope = 0 |
| 47 |
// Indexes with a collection query scope specified allow queries |
| 48 |
// against a collection that is the child of a specific document, specified |
| 49 |
// at query time, and that has the collection id specified by the index. |
| 50 |
Index_COLLECTION Index_QueryScope = 1 |
| 51 |
// Indexes with a collection group query scope specified allow queries |
| 52 |
// against all collections that has the collection id specified by the |
| 53 |
// index. |
| 54 |
Index_COLLECTION_GROUP Index_QueryScope = 2 |
| 55 |
) |
| 56 |
|
| 57 |
// Enum value maps for Index_QueryScope. |
| 58 |
var ( |
| 59 |
Index_QueryScope_name = map[int32]string{ |
| 60 |
0: "QUERY_SCOPE_UNSPECIFIED", |
| 61 |
1: "COLLECTION", |
| 62 |
2: "COLLECTION_GROUP", |
| 63 |
} |
| 64 |
Index_QueryScope_value = map[string]int32{ |
| 65 |
"QUERY_SCOPE_UNSPECIFIED": 0, |
| 66 |
"COLLECTION": 1, |
| 67 |
"COLLECTION_GROUP": 2, |
| 68 |
} |
| 69 |
) |
| 70 |
|
| 71 |
func (x Index_QueryScope) Enum() *Index_QueryScope { |
| 72 |
p := new(Index_QueryScope) |
| 73 |
*p = x |
| 74 |
return p |
| 75 |
} |
| 76 |
|
| 77 |
func (x Index_QueryScope) String() string { |
| 78 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 79 |
} |
| 80 |
|
| 81 |
func (Index_QueryScope) Descriptor() protoreflect.EnumDescriptor { |
| 82 |
return file_google_firestore_admin_v1beta2_index_proto_enumTypes[0].Descriptor() |
| 83 |
} |
| 84 |
|
| 85 |
func (Index_QueryScope) Type() protoreflect.EnumType { |
| 86 |
return &file_google_firestore_admin_v1beta2_index_proto_enumTypes[0] |
| 87 |
} |
| 88 |
|
| 89 |
func (x Index_QueryScope) Number() protoreflect.EnumNumber { |
| 90 |
return protoreflect.EnumNumber(x) |
| 91 |
} |
| 92 |
|
| 93 |
// Deprecated: Use Index_QueryScope.Descriptor instead. |
| 94 |
func (Index_QueryScope) EnumDescriptor() ([]byte, []int) { |
| 95 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP(), []int{0, 0} |
| 96 |
} |
| 97 |
|
| 98 |
// The state of an index. During index creation, an index will be in the |
| 99 |
// `CREATING` state. If the index is created successfully, it will transition |
| 100 |
// to the `READY` state. If the index creation encounters a problem, the index |
| 101 |
// will transition to the `NEEDS_REPAIR` state. |
| 102 |
type Index_State int32 |
| 103 |
|
| 104 |
const ( |
| 105 |
// The state is unspecified. |
| 106 |
Index_STATE_UNSPECIFIED Index_State = 0 |
| 107 |
// The index is being created. |
| 108 |
// There is an active long-running operation for the index. |
| 109 |
// The index is updated when writing a document. |
| 110 |
// Some index data may exist. |
| 111 |
Index_CREATING Index_State = 1 |
| 112 |
// The index is ready to be used. |
| 113 |
// The index is updated when writing a document. |
| 114 |
// The index is fully populated from all stored documents it applies to. |
| 115 |
Index_READY Index_State = 2 |
| 116 |
// The index was being created, but something went wrong. |
| 117 |
// There is no active long-running operation for the index, |
| 118 |
// and the most recently finished long-running operation failed. |
| 119 |
// The index is not updated when writing a document. |
| 120 |
// Some index data may exist. |
| 121 |
// Use the google.longrunning.Operations API to determine why the operation |
| 122 |
// that last attempted to create this index failed, then re-create the |
| 123 |
// index. |
| 124 |
Index_NEEDS_REPAIR Index_State = 3 |
| 125 |
) |
| 126 |
|
| 127 |
// Enum value maps for Index_State. |
| 128 |
var ( |
| 129 |
Index_State_name = map[int32]string{ |
| 130 |
0: "STATE_UNSPECIFIED", |
| 131 |
1: "CREATING", |
| 132 |
2: "READY", |
| 133 |
3: "NEEDS_REPAIR", |
| 134 |
} |
| 135 |
Index_State_value = map[string]int32{ |
| 136 |
"STATE_UNSPECIFIED": 0, |
| 137 |
"CREATING": 1, |
| 138 |
"READY": 2, |
| 139 |
"NEEDS_REPAIR": 3, |
| 140 |
} |
| 141 |
) |
| 142 |
|
| 143 |
func (x Index_State) Enum() *Index_State { |
| 144 |
p := new(Index_State) |
| 145 |
*p = x |
| 146 |
return p |
| 147 |
} |
| 148 |
|
| 149 |
func (x Index_State) String() string { |
| 150 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 151 |
} |
| 152 |
|
| 153 |
func (Index_State) Descriptor() protoreflect.EnumDescriptor { |
| 154 |
return file_google_firestore_admin_v1beta2_index_proto_enumTypes[1].Descriptor() |
| 155 |
} |
| 156 |
|
| 157 |
func (Index_State) Type() protoreflect.EnumType { |
| 158 |
return &file_google_firestore_admin_v1beta2_index_proto_enumTypes[1] |
| 159 |
} |
| 160 |
|
| 161 |
func (x Index_State) Number() protoreflect.EnumNumber { |
| 162 |
return protoreflect.EnumNumber(x) |
| 163 |
} |
| 164 |
|
| 165 |
// Deprecated: Use Index_State.Descriptor instead. |
| 166 |
func (Index_State) EnumDescriptor() ([]byte, []int) { |
| 167 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP(), []int{0, 1} |
| 168 |
} |
| 169 |
|
| 170 |
// The supported orderings. |
| 171 |
type Index_IndexField_Order int32 |
| 172 |
|
| 173 |
const ( |
| 174 |
// The ordering is unspecified. Not a valid option. |
| 175 |
Index_IndexField_ORDER_UNSPECIFIED Index_IndexField_Order = 0 |
| 176 |
// The field is ordered by ascending field value. |
| 177 |
Index_IndexField_ASCENDING Index_IndexField_Order = 1 |
| 178 |
// The field is ordered by descending field value. |
| 179 |
Index_IndexField_DESCENDING Index_IndexField_Order = 2 |
| 180 |
) |
| 181 |
|
| 182 |
// Enum value maps for Index_IndexField_Order. |
| 183 |
var ( |
| 184 |
Index_IndexField_Order_name = map[int32]string{ |
| 185 |
0: "ORDER_UNSPECIFIED", |
| 186 |
1: "ASCENDING", |
| 187 |
2: "DESCENDING", |
| 188 |
} |
| 189 |
Index_IndexField_Order_value = map[string]int32{ |
| 190 |
"ORDER_UNSPECIFIED": 0, |
| 191 |
"ASCENDING": 1, |
| 192 |
"DESCENDING": 2, |
| 193 |
} |
| 194 |
) |
| 195 |
|
| 196 |
func (x Index_IndexField_Order) Enum() *Index_IndexField_Order { |
| 197 |
p := new(Index_IndexField_Order) |
| 198 |
*p = x |
| 199 |
return p |
| 200 |
} |
| 201 |
|
| 202 |
func (x Index_IndexField_Order) String() string { |
| 203 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 204 |
} |
| 205 |
|
| 206 |
func (Index_IndexField_Order) Descriptor() protoreflect.EnumDescriptor { |
| 207 |
return file_google_firestore_admin_v1beta2_index_proto_enumTypes[2].Descriptor() |
| 208 |
} |
| 209 |
|
| 210 |
func (Index_IndexField_Order) Type() protoreflect.EnumType { |
| 211 |
return &file_google_firestore_admin_v1beta2_index_proto_enumTypes[2] |
| 212 |
} |
| 213 |
|
| 214 |
func (x Index_IndexField_Order) Number() protoreflect.EnumNumber { |
| 215 |
return protoreflect.EnumNumber(x) |
| 216 |
} |
| 217 |
|
| 218 |
// Deprecated: Use Index_IndexField_Order.Descriptor instead. |
| 219 |
func (Index_IndexField_Order) EnumDescriptor() ([]byte, []int) { |
| 220 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP(), []int{0, 0, 0} |
| 221 |
} |
| 222 |
|
| 223 |
// The supported array value configurations. |
| 224 |
type Index_IndexField_ArrayConfig int32 |
| 225 |
|
| 226 |
const ( |
| 227 |
// The index does not support additional array queries. |
| 228 |
Index_IndexField_ARRAY_CONFIG_UNSPECIFIED Index_IndexField_ArrayConfig = 0 |
| 229 |
// The index supports array containment queries. |
| 230 |
Index_IndexField_CONTAINS Index_IndexField_ArrayConfig = 1 |
| 231 |
) |
| 232 |
|
| 233 |
// Enum value maps for Index_IndexField_ArrayConfig. |
| 234 |
var ( |
| 235 |
Index_IndexField_ArrayConfig_name = map[int32]string{ |
| 236 |
0: "ARRAY_CONFIG_UNSPECIFIED", |
| 237 |
1: "CONTAINS", |
| 238 |
} |
| 239 |
Index_IndexField_ArrayConfig_value = map[string]int32{ |
| 240 |
"ARRAY_CONFIG_UNSPECIFIED": 0, |
| 241 |
"CONTAINS": 1, |
| 242 |
} |
| 243 |
) |
| 244 |
|
| 245 |
func (x Index_IndexField_ArrayConfig) Enum() *Index_IndexField_ArrayConfig { |
| 246 |
p := new(Index_IndexField_ArrayConfig) |
| 247 |
*p = x |
| 248 |
return p |
| 249 |
} |
| 250 |
|
| 251 |
func (x Index_IndexField_ArrayConfig) String() string { |
| 252 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 253 |
} |
| 254 |
|
| 255 |
func (Index_IndexField_ArrayConfig) Descriptor() protoreflect.EnumDescriptor { |
| 256 |
return file_google_firestore_admin_v1beta2_index_proto_enumTypes[3].Descriptor() |
| 257 |
} |
| 258 |
|
| 259 |
func (Index_IndexField_ArrayConfig) Type() protoreflect.EnumType { |
| 260 |
return &file_google_firestore_admin_v1beta2_index_proto_enumTypes[3] |
| 261 |
} |
| 262 |
|
| 263 |
func (x Index_IndexField_ArrayConfig) Number() protoreflect.EnumNumber { |
| 264 |
return protoreflect.EnumNumber(x) |
| 265 |
} |
| 266 |
|
| 267 |
// Deprecated: Use Index_IndexField_ArrayConfig.Descriptor instead. |
| 268 |
func (Index_IndexField_ArrayConfig) EnumDescriptor() ([]byte, []int) { |
| 269 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP(), []int{0, 0, 1} |
| 270 |
} |
| 271 |
|
| 272 |
// Cloud Firestore indexes enable simple and complex queries against |
| 273 |
// documents in a database. |
| 274 |
type Index struct { |
| 275 |
state protoimpl.MessageState |
| 276 |
sizeCache protoimpl.SizeCache |
| 277 |
unknownFields protoimpl.UnknownFields |
| 278 |
|
| 279 |
// Output only. A server defined name for this index. |
| 280 |
// The form of this name for composite indexes will be: |
| 281 |
// `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` |
| 282 |
// For single field indexes, this field will be empty. |
| 283 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 284 |
// Indexes with a collection query scope specified allow queries |
| 285 |
// against a collection that is the child of a specific document, specified at |
| 286 |
// query time, and that has the same collection id. |
| 287 |
// |
| 288 |
// Indexes with a collection group query scope specified allow queries against |
| 289 |
// all collections descended from a specific document, specified at query |
| 290 |
// time, and that have the same collection id as this index. |
| 291 |
QueryScope Index_QueryScope `protobuf:"varint,2,opt,name=query_scope,json=queryScope,proto3,enum=google.firestore.admin.v1beta2.Index_QueryScope" json:"query_scope,omitempty"` |
| 292 |
// The fields supported by this index. |
| 293 |
// |
| 294 |
// For composite indexes, this is always 2 or more fields. |
| 295 |
// The last field entry is always for the field path `__name__`. If, on |
| 296 |
// creation, `__name__` was not specified as the last field, it will be added |
| 297 |
// automatically with the same direction as that of the last field defined. If |
| 298 |
// the final field in a composite index is not directional, the `__name__` |
| 299 |
// will be ordered ASCENDING (unless explicitly specified). |
| 300 |
// |
| 301 |
// For single field indexes, this will always be exactly one entry with a |
| 302 |
// field path equal to the field path of the associated field. |
| 303 |
Fields []*Index_IndexField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` |
| 304 |
// Output only. The serving state of the index. |
| 305 |
State Index_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.firestore.admin.v1beta2.Index_State" json:"state,omitempty"` |
| 306 |
} |
| 307 |
|
| 308 |
func (x *Index) Reset() { |
| 309 |
*x = Index{} |
| 310 |
if protoimpl.UnsafeEnabled { |
| 311 |
mi := &file_google_firestore_admin_v1beta2_index_proto_msgTypes[0] |
| 312 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 313 |
ms.StoreMessageInfo(mi) |
| 314 |
} |
| 315 |
} |
| 316 |
|
| 317 |
func (x *Index) String() string { |
| 318 |
return protoimpl.X.MessageStringOf(x) |
| 319 |
} |
| 320 |
|
| 321 |
func (*Index) ProtoMessage() {} |
| 322 |
|
| 323 |
func (x *Index) ProtoReflect() protoreflect.Message { |
| 324 |
mi := &file_google_firestore_admin_v1beta2_index_proto_msgTypes[0] |
| 325 |
if protoimpl.UnsafeEnabled && x != nil { |
| 326 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 327 |
if ms.LoadMessageInfo() == nil { |
| 328 |
ms.StoreMessageInfo(mi) |
| 329 |
} |
| 330 |
return ms |
| 331 |
} |
| 332 |
return mi.MessageOf(x) |
| 333 |
} |
| 334 |
|
| 335 |
// Deprecated: Use Index.ProtoReflect.Descriptor instead. |
| 336 |
func (*Index) Descriptor() ([]byte, []int) { |
| 337 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP(), []int{0} |
| 338 |
} |
| 339 |
|
| 340 |
func (x *Index) GetName() string { |
| 341 |
if x != nil { |
| 342 |
return x.Name |
| 343 |
} |
| 344 |
return "" |
| 345 |
} |
| 346 |
|
| 347 |
func (x *Index) GetQueryScope() Index_QueryScope { |
| 348 |
if x != nil { |
| 349 |
return x.QueryScope |
| 350 |
} |
| 351 |
return Index_QUERY_SCOPE_UNSPECIFIED |
| 352 |
} |
| 353 |
|
| 354 |
func (x *Index) GetFields() []*Index_IndexField { |
| 355 |
if x != nil { |
| 356 |
return x.Fields |
| 357 |
} |
| 358 |
return nil |
| 359 |
} |
| 360 |
|
| 361 |
func (x *Index) GetState() Index_State { |
| 362 |
if x != nil { |
| 363 |
return x.State |
| 364 |
} |
| 365 |
return Index_STATE_UNSPECIFIED |
| 366 |
} |
| 367 |
|
| 368 |
// A field in an index. |
| 369 |
// The field_path describes which field is indexed, the value_mode describes |
| 370 |
// how the field value is indexed. |
| 371 |
type Index_IndexField struct { |
| 372 |
state protoimpl.MessageState |
| 373 |
sizeCache protoimpl.SizeCache |
| 374 |
unknownFields protoimpl.UnknownFields |
| 375 |
|
| 376 |
// Can be __name__. |
| 377 |
// For single field indexes, this must match the name of the field or may |
| 378 |
// be omitted. |
| 379 |
FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` |
| 380 |
// How the field value is indexed. |
| 381 |
// |
| 382 |
// Types that are assignable to ValueMode: |
| 383 |
// *Index_IndexField_Order_ |
| 384 |
// *Index_IndexField_ArrayConfig_ |
| 385 |
ValueMode isIndex_IndexField_ValueMode `protobuf_oneof:"value_mode"` |
| 386 |
} |
| 387 |
|
| 388 |
func (x *Index_IndexField) Reset() { |
| 389 |
*x = Index_IndexField{} |
| 390 |
if protoimpl.UnsafeEnabled { |
| 391 |
mi := &file_google_firestore_admin_v1beta2_index_proto_msgTypes[1] |
| 392 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 393 |
ms.StoreMessageInfo(mi) |
| 394 |
} |
| 395 |
} |
| 396 |
|
| 397 |
func (x *Index_IndexField) String() string { |
| 398 |
return protoimpl.X.MessageStringOf(x) |
| 399 |
} |
| 400 |
|
| 401 |
func (*Index_IndexField) ProtoMessage() {} |
| 402 |
|
| 403 |
func (x *Index_IndexField) ProtoReflect() protoreflect.Message { |
| 404 |
mi := &file_google_firestore_admin_v1beta2_index_proto_msgTypes[1] |
| 405 |
if protoimpl.UnsafeEnabled && x != nil { |
| 406 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 407 |
if ms.LoadMessageInfo() == nil { |
| 408 |
ms.StoreMessageInfo(mi) |
| 409 |
} |
| 410 |
return ms |
| 411 |
} |
| 412 |
return mi.MessageOf(x) |
| 413 |
} |
| 414 |
|
| 415 |
// Deprecated: Use Index_IndexField.ProtoReflect.Descriptor instead. |
| 416 |
func (*Index_IndexField) Descriptor() ([]byte, []int) { |
| 417 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP(), []int{0, 0} |
| 418 |
} |
| 419 |
|
| 420 |
func (x *Index_IndexField) GetFieldPath() string { |
| 421 |
if x != nil { |
| 422 |
return x.FieldPath |
| 423 |
} |
| 424 |
return "" |
| 425 |
} |
| 426 |
|
| 427 |
func (m *Index_IndexField) GetValueMode() isIndex_IndexField_ValueMode { |
| 428 |
if m != nil { |
| 429 |
return m.ValueMode |
| 430 |
} |
| 431 |
return nil |
| 432 |
} |
| 433 |
|
| 434 |
func (x *Index_IndexField) GetOrder() Index_IndexField_Order { |
| 435 |
if x, ok := x.GetValueMode().(*Index_IndexField_Order_); ok { |
| 436 |
return x.Order |
| 437 |
} |
| 438 |
return Index_IndexField_ORDER_UNSPECIFIED |
| 439 |
} |
| 440 |
|
| 441 |
func (x *Index_IndexField) GetArrayConfig() Index_IndexField_ArrayConfig { |
| 442 |
if x, ok := x.GetValueMode().(*Index_IndexField_ArrayConfig_); ok { |
| 443 |
return x.ArrayConfig |
| 444 |
} |
| 445 |
return Index_IndexField_ARRAY_CONFIG_UNSPECIFIED |
| 446 |
} |
| 447 |
|
| 448 |
type isIndex_IndexField_ValueMode interface { |
| 449 |
isIndex_IndexField_ValueMode() |
| 450 |
} |
| 451 |
|
| 452 |
type Index_IndexField_Order_ struct { |
| 453 |
// Indicates that this field supports ordering by the specified order or |
| 454 |
// comparing using =, <, <=, >, >=. |
| 455 |
Order Index_IndexField_Order `protobuf:"varint,2,opt,name=order,proto3,enum=google.firestore.admin.v1beta2.Index_IndexField_Order,oneof"` |
| 456 |
} |
| 457 |
|
| 458 |
type Index_IndexField_ArrayConfig_ struct { |
| 459 |
// Indicates that this field supports operations on `array_value`s. |
| 460 |
ArrayConfig Index_IndexField_ArrayConfig `protobuf:"varint,3,opt,name=array_config,json=arrayConfig,proto3,enum=google.firestore.admin.v1beta2.Index_IndexField_ArrayConfig,oneof"` |
| 461 |
} |
| 462 |
|
| 463 |
func (*Index_IndexField_Order_) isIndex_IndexField_ValueMode() {} |
| 464 |
|
| 465 |
func (*Index_IndexField_ArrayConfig_) isIndex_IndexField_ValueMode() {} |
| 466 |
|
| 467 |
var File_google_firestore_admin_v1beta2_index_proto protoreflect.FileDescriptor |
| 468 |
|
| 469 |
var file_google_firestore_admin_v1beta2_index_proto_rawDesc = []byte{ |
| 470 |
0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 471 |
0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, |
| 472 |
0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, |
| 473 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, |
| 474 |
0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x1a, 0x1c, 0x67, 0x6f, |
| 475 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
| 476 |
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x06, 0x0a, 0x05, 0x49, |
| 477 |
0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 478 |
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, |
| 479 |
0x79, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, |
| 480 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 481 |
0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x49, |
| 482 |
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, |
| 483 |
0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x66, |
| 484 |
0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, |
| 485 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, |
| 486 |
0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x49, 0x6e, 0x64, |
| 487 |
0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, |
| 488 |
0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, |
| 489 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, |
| 490 |
0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, |
| 491 |
0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74, |
| 492 |
0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0xe6, 0x02, 0x0a, 0x0a, 0x49, 0x6e, 0x64, |
| 493 |
0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 494 |
0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, |
| 495 |
0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, |
| 496 |
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, |
| 497 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, |
| 498 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, |
| 499 |
0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, |
| 500 |
0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0c, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, |
| 501 |
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, |
| 502 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, |
| 503 |
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x49, 0x6e, |
| 504 |
0x64, 0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x41, |
| 505 |
0x72, 0x72, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x72, |
| 506 |
0x72, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3d, 0x0a, 0x05, 0x4f, 0x72, 0x64, |
| 507 |
0x65, 0x72, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, |
| 508 |
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, |
| 509 |
0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, 0x43, |
| 510 |
0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, 0x39, 0x0a, 0x0b, 0x41, 0x72, 0x72, 0x61, |
| 511 |
0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x52, 0x41, 0x59, |
| 512 |
0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, |
| 513 |
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, |
| 514 |
0x53, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6d, 0x6f, 0x64, |
| 515 |
0x65, 0x22, 0x4f, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, |
| 516 |
0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x55, |
| 517 |
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, |
| 518 |
0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, |
| 519 |
0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, |
| 520 |
0x10, 0x02, 0x22, 0x49, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, |
| 521 |
0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 522 |
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, |
| 523 |
0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4e, |
| 524 |
0x45, 0x45, 0x44, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x41, 0x49, 0x52, 0x10, 0x03, 0x42, 0xa5, 0x01, |
| 525 |
0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, |
| 526 |
0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x62, |
| 527 |
0x65, 0x74, 0x61, 0x32, 0x42, 0x0a, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, |
| 528 |
0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, |
| 529 |
0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, |
| 530 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, |
| 531 |
0x6f, 0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 532 |
0x32, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, |
| 533 |
0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, |
| 534 |
0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x31, |
| 535 |
0x42, 0x65, 0x74, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 536 |
} |
| 537 |
|
| 538 |
var ( |
| 539 |
file_google_firestore_admin_v1beta2_index_proto_rawDescOnce sync.Once |
| 540 |
file_google_firestore_admin_v1beta2_index_proto_rawDescData = file_google_firestore_admin_v1beta2_index_proto_rawDesc |
| 541 |
) |
| 542 |
|
| 543 |
func file_google_firestore_admin_v1beta2_index_proto_rawDescGZIP() []byte { |
| 544 |
file_google_firestore_admin_v1beta2_index_proto_rawDescOnce.Do(func() { |
| 545 |
file_google_firestore_admin_v1beta2_index_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_admin_v1beta2_index_proto_rawDescData) |
| 546 |
}) |
| 547 |
return file_google_firestore_admin_v1beta2_index_proto_rawDescData |
| 548 |
} |
| 549 |
|
| 550 |
var file_google_firestore_admin_v1beta2_index_proto_enumTypes = make([]protoimpl.EnumInfo, 4) |
| 551 |
var file_google_firestore_admin_v1beta2_index_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 552 |
var file_google_firestore_admin_v1beta2_index_proto_goTypes = []interface{}{ |
| 553 |
(Index_QueryScope)(0), // 0: google.firestore.admin.v1beta2.Index.QueryScope |
| 554 |
(Index_State)(0), // 1: google.firestore.admin.v1beta2.Index.State |
| 555 |
(Index_IndexField_Order)(0), // 2: google.firestore.admin.v1beta2.Index.IndexField.Order |
| 556 |
(Index_IndexField_ArrayConfig)(0), // 3: google.firestore.admin.v1beta2.Index.IndexField.ArrayConfig |
| 557 |
(*Index)(nil), // 4: google.firestore.admin.v1beta2.Index |
| 558 |
(*Index_IndexField)(nil), // 5: google.firestore.admin.v1beta2.Index.IndexField |
| 559 |
} |
| 560 |
var file_google_firestore_admin_v1beta2_index_proto_depIdxs = []int32{ |
| 561 |
0, // 0: google.firestore.admin.v1beta2.Index.query_scope:type_name -> google.firestore.admin.v1beta2.Index.QueryScope |
| 562 |
5, // 1: google.firestore.admin.v1beta2.Index.fields:type_name -> google.firestore.admin.v1beta2.Index.IndexField |
| 563 |
1, // 2: google.firestore.admin.v1beta2.Index.state:type_name -> google.firestore.admin.v1beta2.Index.State |
| 564 |
2, // 3: google.firestore.admin.v1beta2.Index.IndexField.order:type_name -> google.firestore.admin.v1beta2.Index.IndexField.Order |
| 565 |
3, // 4: google.firestore.admin.v1beta2.Index.IndexField.array_config:type_name -> google.firestore.admin.v1beta2.Index.IndexField.ArrayConfig |
| 566 |
5, // [5:5] is the sub-list for method output_type |
| 567 |
5, // [5:5] is the sub-list for method input_type |
| 568 |
5, // [5:5] is the sub-list for extension type_name |
| 569 |
5, // [5:5] is the sub-list for extension extendee |
| 570 |
0, // [0:5] is the sub-list for field type_name |
| 571 |
} |
| 572 |
|
| 573 |
func init() { file_google_firestore_admin_v1beta2_index_proto_init() } |
| 574 |
func file_google_firestore_admin_v1beta2_index_proto_init() { |
| 575 |
if File_google_firestore_admin_v1beta2_index_proto != nil { |
| 576 |
return |
| 577 |
} |
| 578 |
if !protoimpl.UnsafeEnabled { |
| 579 |
file_google_firestore_admin_v1beta2_index_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 580 |
switch v := v.(*Index); i { |
| 581 |
case 0: |
| 582 |
return &v.state |
| 583 |
case 1: |
| 584 |
return &v.sizeCache |
| 585 |
case 2: |
| 586 |
return &v.unknownFields |
| 587 |
default: |
| 588 |
return nil |
| 589 |
} |
| 590 |
} |
| 591 |
file_google_firestore_admin_v1beta2_index_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 592 |
switch v := v.(*Index_IndexField); i { |
| 593 |
case 0: |
| 594 |
return &v.state |
| 595 |
case 1: |
| 596 |
return &v.sizeCache |
| 597 |
case 2: |
| 598 |
return &v.unknownFields |
| 599 |
default: |
| 600 |
return nil |
| 601 |
} |
| 602 |
} |
| 603 |
} |
| 604 |
file_google_firestore_admin_v1beta2_index_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 605 |
(*Index_IndexField_Order_)(nil), |
| 606 |
(*Index_IndexField_ArrayConfig_)(nil), |
| 607 |
} |
| 608 |
type x struct{} |
| 609 |
out := protoimpl.TypeBuilder{ |
| 610 |
File: protoimpl.DescBuilder{ |
| 611 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 612 |
RawDescriptor: file_google_firestore_admin_v1beta2_index_proto_rawDesc, |
| 613 |
NumEnums: 4, |
| 614 |
NumMessages: 2, |
| 615 |
NumExtensions: 0, |
| 616 |
NumServices: 0, |
| 617 |
}, |
| 618 |
GoTypes: file_google_firestore_admin_v1beta2_index_proto_goTypes, |
| 619 |
DependencyIndexes: file_google_firestore_admin_v1beta2_index_proto_depIdxs, |
| 620 |
EnumInfos: file_google_firestore_admin_v1beta2_index_proto_enumTypes, |
| 621 |
MessageInfos: file_google_firestore_admin_v1beta2_index_proto_msgTypes, |
| 622 |
}.Build() |
| 623 |
File_google_firestore_admin_v1beta2_index_proto = out.File |
| 624 |
file_google_firestore_admin_v1beta2_index_proto_rawDesc = nil |
| 625 |
file_google_firestore_admin_v1beta2_index_proto_goTypes = nil |
| 626 |
file_google_firestore_admin_v1beta2_index_proto_depIdxs = nil |
| 627 |
} |