| 1 |
// Copyright 2025 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 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/firestore/admin/v1/index.proto |
| 20 |
|
| 21 |
package adminpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
reflect "reflect" |
| 28 |
sync "sync" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// Query Scope defines the scope at which a query is run. This is specified on |
| 39 |
// a StructuredQuery's `from` field. |
| 40 |
type Index_QueryScope int32 |
| 41 |
|
| 42 |
const ( |
| 43 |
// The query scope is unspecified. Not a valid option. |
| 44 |
Index_QUERY_SCOPE_UNSPECIFIED Index_QueryScope = 0 |
| 45 |
// Indexes with a collection query scope specified allow queries |
| 46 |
// against a collection that is the child of a specific document, specified |
| 47 |
// at query time, and that has the collection ID specified by the index. |
| 48 |
Index_COLLECTION Index_QueryScope = 1 |
| 49 |
// Indexes with a collection group query scope specified allow queries |
| 50 |
// against all collections that has the collection ID specified by the |
| 51 |
// index. |
| 52 |
Index_COLLECTION_GROUP Index_QueryScope = 2 |
| 53 |
// Include all the collections's ancestor in the index. Only available for |
| 54 |
// Datastore Mode databases. |
| 55 |
Index_COLLECTION_RECURSIVE Index_QueryScope = 3 |
| 56 |
) |
| 57 |
|
| 58 |
// Enum value maps for Index_QueryScope. |
| 59 |
var ( |
| 60 |
Index_QueryScope_name = map[int32]string{ |
| 61 |
0: "QUERY_SCOPE_UNSPECIFIED", |
| 62 |
1: "COLLECTION", |
| 63 |
2: "COLLECTION_GROUP", |
| 64 |
3: "COLLECTION_RECURSIVE", |
| 65 |
} |
| 66 |
Index_QueryScope_value = map[string]int32{ |
| 67 |
"QUERY_SCOPE_UNSPECIFIED": 0, |
| 68 |
"COLLECTION": 1, |
| 69 |
"COLLECTION_GROUP": 2, |
| 70 |
"COLLECTION_RECURSIVE": 3, |
| 71 |
} |
| 72 |
) |
| 73 |
|
| 74 |
func (x Index_QueryScope) Enum() *Index_QueryScope { |
| 75 |
p := new(Index_QueryScope) |
| 76 |
*p = x |
| 77 |
return p |
| 78 |
} |
| 79 |
|
| 80 |
func (x Index_QueryScope) String() string { |
| 81 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 82 |
} |
| 83 |
|
| 84 |
func (Index_QueryScope) Descriptor() protoreflect.EnumDescriptor { |
| 85 |
return file_google_firestore_admin_v1_index_proto_enumTypes[0].Descriptor() |
| 86 |
} |
| 87 |
|
| 88 |
func (Index_QueryScope) Type() protoreflect.EnumType { |
| 89 |
return &file_google_firestore_admin_v1_index_proto_enumTypes[0] |
| 90 |
} |
| 91 |
|
| 92 |
func (x Index_QueryScope) Number() protoreflect.EnumNumber { |
| 93 |
return protoreflect.EnumNumber(x) |
| 94 |
} |
| 95 |
|
| 96 |
// Deprecated: Use Index_QueryScope.Descriptor instead. |
| 97 |
func (Index_QueryScope) EnumDescriptor() ([]byte, []int) { |
| 98 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 0} |
| 99 |
} |
| 100 |
|
| 101 |
// API Scope defines the APIs (Firestore Native, or Firestore in |
| 102 |
// Datastore Mode) that are supported for queries. |
| 103 |
type Index_ApiScope int32 |
| 104 |
|
| 105 |
const ( |
| 106 |
// The index can only be used by the Firestore Native query API. |
| 107 |
// This is the default. |
| 108 |
Index_ANY_API Index_ApiScope = 0 |
| 109 |
// The index can only be used by the Firestore in Datastore Mode query API. |
| 110 |
Index_DATASTORE_MODE_API Index_ApiScope = 1 |
| 111 |
// The index can only be used by the MONGODB_COMPATIBLE_API. |
| 112 |
Index_MONGODB_COMPATIBLE_API Index_ApiScope = 2 |
| 113 |
) |
| 114 |
|
| 115 |
// Enum value maps for Index_ApiScope. |
| 116 |
var ( |
| 117 |
Index_ApiScope_name = map[int32]string{ |
| 118 |
0: "ANY_API", |
| 119 |
1: "DATASTORE_MODE_API", |
| 120 |
2: "MONGODB_COMPATIBLE_API", |
| 121 |
} |
| 122 |
Index_ApiScope_value = map[string]int32{ |
| 123 |
"ANY_API": 0, |
| 124 |
"DATASTORE_MODE_API": 1, |
| 125 |
"MONGODB_COMPATIBLE_API": 2, |
| 126 |
} |
| 127 |
) |
| 128 |
|
| 129 |
func (x Index_ApiScope) Enum() *Index_ApiScope { |
| 130 |
p := new(Index_ApiScope) |
| 131 |
*p = x |
| 132 |
return p |
| 133 |
} |
| 134 |
|
| 135 |
func (x Index_ApiScope) String() string { |
| 136 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 137 |
} |
| 138 |
|
| 139 |
func (Index_ApiScope) Descriptor() protoreflect.EnumDescriptor { |
| 140 |
return file_google_firestore_admin_v1_index_proto_enumTypes[1].Descriptor() |
| 141 |
} |
| 142 |
|
| 143 |
func (Index_ApiScope) Type() protoreflect.EnumType { |
| 144 |
return &file_google_firestore_admin_v1_index_proto_enumTypes[1] |
| 145 |
} |
| 146 |
|
| 147 |
func (x Index_ApiScope) Number() protoreflect.EnumNumber { |
| 148 |
return protoreflect.EnumNumber(x) |
| 149 |
} |
| 150 |
|
| 151 |
// Deprecated: Use Index_ApiScope.Descriptor instead. |
| 152 |
func (Index_ApiScope) EnumDescriptor() ([]byte, []int) { |
| 153 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 1} |
| 154 |
} |
| 155 |
|
| 156 |
// The state of an index. During index creation, an index will be in the |
| 157 |
// `CREATING` state. If the index is created successfully, it will transition |
| 158 |
// to the `READY` state. If the index creation encounters a problem, the index |
| 159 |
// will transition to the `NEEDS_REPAIR` state. |
| 160 |
type Index_State int32 |
| 161 |
|
| 162 |
const ( |
| 163 |
// The state is unspecified. |
| 164 |
Index_STATE_UNSPECIFIED Index_State = 0 |
| 165 |
// The index is being created. |
| 166 |
// There is an active long-running operation for the index. |
| 167 |
// The index is updated when writing a document. |
| 168 |
// Some index data may exist. |
| 169 |
Index_CREATING Index_State = 1 |
| 170 |
// The index is ready to be used. |
| 171 |
// The index is updated when writing a document. |
| 172 |
// The index is fully populated from all stored documents it applies to. |
| 173 |
Index_READY Index_State = 2 |
| 174 |
// The index was being created, but something went wrong. |
| 175 |
// There is no active long-running operation for the index, |
| 176 |
// and the most recently finished long-running operation failed. |
| 177 |
// The index is not updated when writing a document. |
| 178 |
// Some index data may exist. |
| 179 |
// Use the google.longrunning.Operations API to determine why the operation |
| 180 |
// that last attempted to create this index failed, then re-create the |
| 181 |
// index. |
| 182 |
Index_NEEDS_REPAIR Index_State = 3 |
| 183 |
) |
| 184 |
|
| 185 |
// Enum value maps for Index_State. |
| 186 |
var ( |
| 187 |
Index_State_name = map[int32]string{ |
| 188 |
0: "STATE_UNSPECIFIED", |
| 189 |
1: "CREATING", |
| 190 |
2: "READY", |
| 191 |
3: "NEEDS_REPAIR", |
| 192 |
} |
| 193 |
Index_State_value = map[string]int32{ |
| 194 |
"STATE_UNSPECIFIED": 0, |
| 195 |
"CREATING": 1, |
| 196 |
"READY": 2, |
| 197 |
"NEEDS_REPAIR": 3, |
| 198 |
} |
| 199 |
) |
| 200 |
|
| 201 |
func (x Index_State) Enum() *Index_State { |
| 202 |
p := new(Index_State) |
| 203 |
*p = x |
| 204 |
return p |
| 205 |
} |
| 206 |
|
| 207 |
func (x Index_State) String() string { |
| 208 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 209 |
} |
| 210 |
|
| 211 |
func (Index_State) Descriptor() protoreflect.EnumDescriptor { |
| 212 |
return file_google_firestore_admin_v1_index_proto_enumTypes[2].Descriptor() |
| 213 |
} |
| 214 |
|
| 215 |
func (Index_State) Type() protoreflect.EnumType { |
| 216 |
return &file_google_firestore_admin_v1_index_proto_enumTypes[2] |
| 217 |
} |
| 218 |
|
| 219 |
func (x Index_State) Number() protoreflect.EnumNumber { |
| 220 |
return protoreflect.EnumNumber(x) |
| 221 |
} |
| 222 |
|
| 223 |
// Deprecated: Use Index_State.Descriptor instead. |
| 224 |
func (Index_State) EnumDescriptor() ([]byte, []int) { |
| 225 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 2} |
| 226 |
} |
| 227 |
|
| 228 |
// The density configuration for the index. |
| 229 |
type Index_Density int32 |
| 230 |
|
| 231 |
const ( |
| 232 |
// Unspecified. It will use database default setting. This value is input |
| 233 |
// only. |
| 234 |
Index_DENSITY_UNSPECIFIED Index_Density = 0 |
| 235 |
// In order for an index entry to be added, the document must |
| 236 |
// contain all fields specified in the index. |
| 237 |
// |
| 238 |
// This is the only allowed value for indexes having ApiScope `ANY_API` and |
| 239 |
// `DATASTORE_MODE_API`. |
| 240 |
Index_SPARSE_ALL Index_Density = 1 |
| 241 |
// In order for an index entry to be added, the document must |
| 242 |
// contain at least one of the fields specified in the index. |
| 243 |
// Non-existent fields are treated as having a NULL value when generating |
| 244 |
// index entries. |
| 245 |
Index_SPARSE_ANY Index_Density = 2 |
| 246 |
// An index entry will be added regardless of whether the |
| 247 |
// document contains any of the fields specified in the index. |
| 248 |
// Non-existent fields are treated as having a NULL value when generating |
| 249 |
// index entries. |
| 250 |
Index_DENSE Index_Density = 3 |
| 251 |
) |
| 252 |
|
| 253 |
// Enum value maps for Index_Density. |
| 254 |
var ( |
| 255 |
Index_Density_name = map[int32]string{ |
| 256 |
0: "DENSITY_UNSPECIFIED", |
| 257 |
1: "SPARSE_ALL", |
| 258 |
2: "SPARSE_ANY", |
| 259 |
3: "DENSE", |
| 260 |
} |
| 261 |
Index_Density_value = map[string]int32{ |
| 262 |
"DENSITY_UNSPECIFIED": 0, |
| 263 |
"SPARSE_ALL": 1, |
| 264 |
"SPARSE_ANY": 2, |
| 265 |
"DENSE": 3, |
| 266 |
} |
| 267 |
) |
| 268 |
|
| 269 |
func (x Index_Density) Enum() *Index_Density { |
| 270 |
p := new(Index_Density) |
| 271 |
*p = x |
| 272 |
return p |
| 273 |
} |
| 274 |
|
| 275 |
func (x Index_Density) String() string { |
| 276 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 277 |
} |
| 278 |
|
| 279 |
func (Index_Density) Descriptor() protoreflect.EnumDescriptor { |
| 280 |
return file_google_firestore_admin_v1_index_proto_enumTypes[3].Descriptor() |
| 281 |
} |
| 282 |
|
| 283 |
func (Index_Density) Type() protoreflect.EnumType { |
| 284 |
return &file_google_firestore_admin_v1_index_proto_enumTypes[3] |
| 285 |
} |
| 286 |
|
| 287 |
func (x Index_Density) Number() protoreflect.EnumNumber { |
| 288 |
return protoreflect.EnumNumber(x) |
| 289 |
} |
| 290 |
|
| 291 |
// Deprecated: Use Index_Density.Descriptor instead. |
| 292 |
func (Index_Density) EnumDescriptor() ([]byte, []int) { |
| 293 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 3} |
| 294 |
} |
| 295 |
|
| 296 |
// The supported orderings. |
| 297 |
type Index_IndexField_Order int32 |
| 298 |
|
| 299 |
const ( |
| 300 |
// The ordering is unspecified. Not a valid option. |
| 301 |
Index_IndexField_ORDER_UNSPECIFIED Index_IndexField_Order = 0 |
| 302 |
// The field is ordered by ascending field value. |
| 303 |
Index_IndexField_ASCENDING Index_IndexField_Order = 1 |
| 304 |
// The field is ordered by descending field value. |
| 305 |
Index_IndexField_DESCENDING Index_IndexField_Order = 2 |
| 306 |
) |
| 307 |
|
| 308 |
// Enum value maps for Index_IndexField_Order. |
| 309 |
var ( |
| 310 |
Index_IndexField_Order_name = map[int32]string{ |
| 311 |
0: "ORDER_UNSPECIFIED", |
| 312 |
1: "ASCENDING", |
| 313 |
2: "DESCENDING", |
| 314 |
} |
| 315 |
Index_IndexField_Order_value = map[string]int32{ |
| 316 |
"ORDER_UNSPECIFIED": 0, |
| 317 |
"ASCENDING": 1, |
| 318 |
"DESCENDING": 2, |
| 319 |
} |
| 320 |
) |
| 321 |
|
| 322 |
func (x Index_IndexField_Order) Enum() *Index_IndexField_Order { |
| 323 |
p := new(Index_IndexField_Order) |
| 324 |
*p = x |
| 325 |
return p |
| 326 |
} |
| 327 |
|
| 328 |
func (x Index_IndexField_Order) String() string { |
| 329 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 330 |
} |
| 331 |
|
| 332 |
func (Index_IndexField_Order) Descriptor() protoreflect.EnumDescriptor { |
| 333 |
return file_google_firestore_admin_v1_index_proto_enumTypes[4].Descriptor() |
| 334 |
} |
| 335 |
|
| 336 |
func (Index_IndexField_Order) Type() protoreflect.EnumType { |
| 337 |
return &file_google_firestore_admin_v1_index_proto_enumTypes[4] |
| 338 |
} |
| 339 |
|
| 340 |
func (x Index_IndexField_Order) Number() protoreflect.EnumNumber { |
| 341 |
return protoreflect.EnumNumber(x) |
| 342 |
} |
| 343 |
|
| 344 |
// Deprecated: Use Index_IndexField_Order.Descriptor instead. |
| 345 |
func (Index_IndexField_Order) EnumDescriptor() ([]byte, []int) { |
| 346 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 0, 0} |
| 347 |
} |
| 348 |
|
| 349 |
// The supported array value configurations. |
| 350 |
type Index_IndexField_ArrayConfig int32 |
| 351 |
|
| 352 |
const ( |
| 353 |
// The index does not support additional array queries. |
| 354 |
Index_IndexField_ARRAY_CONFIG_UNSPECIFIED Index_IndexField_ArrayConfig = 0 |
| 355 |
// The index supports array containment queries. |
| 356 |
Index_IndexField_CONTAINS Index_IndexField_ArrayConfig = 1 |
| 357 |
) |
| 358 |
|
| 359 |
// Enum value maps for Index_IndexField_ArrayConfig. |
| 360 |
var ( |
| 361 |
Index_IndexField_ArrayConfig_name = map[int32]string{ |
| 362 |
0: "ARRAY_CONFIG_UNSPECIFIED", |
| 363 |
1: "CONTAINS", |
| 364 |
} |
| 365 |
Index_IndexField_ArrayConfig_value = map[string]int32{ |
| 366 |
"ARRAY_CONFIG_UNSPECIFIED": 0, |
| 367 |
"CONTAINS": 1, |
| 368 |
} |
| 369 |
) |
| 370 |
|
| 371 |
func (x Index_IndexField_ArrayConfig) Enum() *Index_IndexField_ArrayConfig { |
| 372 |
p := new(Index_IndexField_ArrayConfig) |
| 373 |
*p = x |
| 374 |
return p |
| 375 |
} |
| 376 |
|
| 377 |
func (x Index_IndexField_ArrayConfig) String() string { |
| 378 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 379 |
} |
| 380 |
|
| 381 |
func (Index_IndexField_ArrayConfig) Descriptor() protoreflect.EnumDescriptor { |
| 382 |
return file_google_firestore_admin_v1_index_proto_enumTypes[5].Descriptor() |
| 383 |
} |
| 384 |
|
| 385 |
func (Index_IndexField_ArrayConfig) Type() protoreflect.EnumType { |
| 386 |
return &file_google_firestore_admin_v1_index_proto_enumTypes[5] |
| 387 |
} |
| 388 |
|
| 389 |
func (x Index_IndexField_ArrayConfig) Number() protoreflect.EnumNumber { |
| 390 |
return protoreflect.EnumNumber(x) |
| 391 |
} |
| 392 |
|
| 393 |
// Deprecated: Use Index_IndexField_ArrayConfig.Descriptor instead. |
| 394 |
func (Index_IndexField_ArrayConfig) EnumDescriptor() ([]byte, []int) { |
| 395 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 0, 1} |
| 396 |
} |
| 397 |
|
| 398 |
// Cloud Firestore indexes enable simple and complex queries against |
| 399 |
// documents in a database. |
| 400 |
type Index struct { |
| 401 |
state protoimpl.MessageState |
| 402 |
sizeCache protoimpl.SizeCache |
| 403 |
unknownFields protoimpl.UnknownFields |
| 404 |
|
| 405 |
// Output only. A server defined name for this index. |
| 406 |
// The form of this name for composite indexes will be: |
| 407 |
// `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}` |
| 408 |
// For single field indexes, this field will be empty. |
| 409 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 410 |
// Indexes with a collection query scope specified allow queries |
| 411 |
// against a collection that is the child of a specific document, specified at |
| 412 |
// query time, and that has the same collection ID. |
| 413 |
// |
| 414 |
// Indexes with a collection group query scope specified allow queries against |
| 415 |
// all collections descended from a specific document, specified at query |
| 416 |
// time, and that have the same collection ID as this index. |
| 417 |
QueryScope Index_QueryScope `protobuf:"varint,2,opt,name=query_scope,json=queryScope,proto3,enum=google.firestore.admin.v1.Index_QueryScope" json:"query_scope,omitempty"` |
| 418 |
// The API scope supported by this index. |
| 419 |
ApiScope Index_ApiScope `protobuf:"varint,5,opt,name=api_scope,json=apiScope,proto3,enum=google.firestore.admin.v1.Index_ApiScope" json:"api_scope,omitempty"` |
| 420 |
// The fields supported by this index. |
| 421 |
// |
| 422 |
// For composite indexes, this requires a minimum of 2 and a maximum of 100 |
| 423 |
// fields. The last field entry is always for the field path `__name__`. If, |
| 424 |
// on creation, `__name__` was not specified as the last field, it will be |
| 425 |
// added automatically with the same direction as that of the last field |
| 426 |
// defined. If the final field in a composite index is not directional, the |
| 427 |
// `__name__` will be ordered ASCENDING (unless explicitly specified). |
| 428 |
// |
| 429 |
// For single field indexes, this will always be exactly one entry with a |
| 430 |
// field path equal to the field path of the associated field. |
| 431 |
Fields []*Index_IndexField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` |
| 432 |
// Output only. The serving state of the index. |
| 433 |
State Index_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.firestore.admin.v1.Index_State" json:"state,omitempty"` |
| 434 |
// Immutable. The density configuration of the index. |
| 435 |
Density Index_Density `protobuf:"varint,6,opt,name=density,proto3,enum=google.firestore.admin.v1.Index_Density" json:"density,omitempty"` |
| 436 |
// Optional. Whether the index is multikey. By default, the index is not |
| 437 |
// multikey. For non-multikey indexes, none of the paths in the index |
| 438 |
// definition reach or traverse an array, except via an explicit array index. |
| 439 |
// For multikey indexes, at most one of the paths in the index definition |
| 440 |
// reach or traverse an array, except via an explicit array index. Violations |
| 441 |
// will result in errors. |
| 442 |
// |
| 443 |
// Note this field only applies to index with MONGODB_COMPATIBLE_API ApiScope. |
| 444 |
Multikey bool `protobuf:"varint,7,opt,name=multikey,proto3" json:"multikey,omitempty"` |
| 445 |
// Optional. The number of shards for the index. |
| 446 |
ShardCount int32 `protobuf:"varint,8,opt,name=shard_count,json=shardCount,proto3" json:"shard_count,omitempty"` |
| 447 |
} |
| 448 |
|
| 449 |
func (x *Index) Reset() { |
| 450 |
*x = Index{} |
| 451 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[0] |
| 452 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 453 |
ms.StoreMessageInfo(mi) |
| 454 |
} |
| 455 |
|
| 456 |
func (x *Index) String() string { |
| 457 |
return protoimpl.X.MessageStringOf(x) |
| 458 |
} |
| 459 |
|
| 460 |
func (*Index) ProtoMessage() {} |
| 461 |
|
| 462 |
func (x *Index) ProtoReflect() protoreflect.Message { |
| 463 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[0] |
| 464 |
if x != nil { |
| 465 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 466 |
if ms.LoadMessageInfo() == nil { |
| 467 |
ms.StoreMessageInfo(mi) |
| 468 |
} |
| 469 |
return ms |
| 470 |
} |
| 471 |
return mi.MessageOf(x) |
| 472 |
} |
| 473 |
|
| 474 |
// Deprecated: Use Index.ProtoReflect.Descriptor instead. |
| 475 |
func (*Index) Descriptor() ([]byte, []int) { |
| 476 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0} |
| 477 |
} |
| 478 |
|
| 479 |
func (x *Index) GetName() string { |
| 480 |
if x != nil { |
| 481 |
return x.Name |
| 482 |
} |
| 483 |
return "" |
| 484 |
} |
| 485 |
|
| 486 |
func (x *Index) GetQueryScope() Index_QueryScope { |
| 487 |
if x != nil { |
| 488 |
return x.QueryScope |
| 489 |
} |
| 490 |
return Index_QUERY_SCOPE_UNSPECIFIED |
| 491 |
} |
| 492 |
|
| 493 |
func (x *Index) GetApiScope() Index_ApiScope { |
| 494 |
if x != nil { |
| 495 |
return x.ApiScope |
| 496 |
} |
| 497 |
return Index_ANY_API |
| 498 |
} |
| 499 |
|
| 500 |
func (x *Index) GetFields() []*Index_IndexField { |
| 501 |
if x != nil { |
| 502 |
return x.Fields |
| 503 |
} |
| 504 |
return nil |
| 505 |
} |
| 506 |
|
| 507 |
func (x *Index) GetState() Index_State { |
| 508 |
if x != nil { |
| 509 |
return x.State |
| 510 |
} |
| 511 |
return Index_STATE_UNSPECIFIED |
| 512 |
} |
| 513 |
|
| 514 |
func (x *Index) GetDensity() Index_Density { |
| 515 |
if x != nil { |
| 516 |
return x.Density |
| 517 |
} |
| 518 |
return Index_DENSITY_UNSPECIFIED |
| 519 |
} |
| 520 |
|
| 521 |
func (x *Index) GetMultikey() bool { |
| 522 |
if x != nil { |
| 523 |
return x.Multikey |
| 524 |
} |
| 525 |
return false |
| 526 |
} |
| 527 |
|
| 528 |
func (x *Index) GetShardCount() int32 { |
| 529 |
if x != nil { |
| 530 |
return x.ShardCount |
| 531 |
} |
| 532 |
return 0 |
| 533 |
} |
| 534 |
|
| 535 |
// A field in an index. |
| 536 |
// The field_path describes which field is indexed, the value_mode describes |
| 537 |
// how the field value is indexed. |
| 538 |
type Index_IndexField struct { |
| 539 |
state protoimpl.MessageState |
| 540 |
sizeCache protoimpl.SizeCache |
| 541 |
unknownFields protoimpl.UnknownFields |
| 542 |
|
| 543 |
// Can be __name__. |
| 544 |
// For single field indexes, this must match the name of the field or may |
| 545 |
// be omitted. |
| 546 |
FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` |
| 547 |
// How the field value is indexed. |
| 548 |
// |
| 549 |
// Types that are assignable to ValueMode: |
| 550 |
// |
| 551 |
// *Index_IndexField_Order_ |
| 552 |
// *Index_IndexField_ArrayConfig_ |
| 553 |
// *Index_IndexField_VectorConfig_ |
| 554 |
ValueMode isIndex_IndexField_ValueMode `protobuf_oneof:"value_mode"` |
| 555 |
} |
| 556 |
|
| 557 |
func (x *Index_IndexField) Reset() { |
| 558 |
*x = Index_IndexField{} |
| 559 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[1] |
| 560 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 561 |
ms.StoreMessageInfo(mi) |
| 562 |
} |
| 563 |
|
| 564 |
func (x *Index_IndexField) String() string { |
| 565 |
return protoimpl.X.MessageStringOf(x) |
| 566 |
} |
| 567 |
|
| 568 |
func (*Index_IndexField) ProtoMessage() {} |
| 569 |
|
| 570 |
func (x *Index_IndexField) ProtoReflect() protoreflect.Message { |
| 571 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[1] |
| 572 |
if x != nil { |
| 573 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 574 |
if ms.LoadMessageInfo() == nil { |
| 575 |
ms.StoreMessageInfo(mi) |
| 576 |
} |
| 577 |
return ms |
| 578 |
} |
| 579 |
return mi.MessageOf(x) |
| 580 |
} |
| 581 |
|
| 582 |
// Deprecated: Use Index_IndexField.ProtoReflect.Descriptor instead. |
| 583 |
func (*Index_IndexField) Descriptor() ([]byte, []int) { |
| 584 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 0} |
| 585 |
} |
| 586 |
|
| 587 |
func (x *Index_IndexField) GetFieldPath() string { |
| 588 |
if x != nil { |
| 589 |
return x.FieldPath |
| 590 |
} |
| 591 |
return "" |
| 592 |
} |
| 593 |
|
| 594 |
func (m *Index_IndexField) GetValueMode() isIndex_IndexField_ValueMode { |
| 595 |
if m != nil { |
| 596 |
return m.ValueMode |
| 597 |
} |
| 598 |
return nil |
| 599 |
} |
| 600 |
|
| 601 |
func (x *Index_IndexField) GetOrder() Index_IndexField_Order { |
| 602 |
if x, ok := x.GetValueMode().(*Index_IndexField_Order_); ok { |
| 603 |
return x.Order |
| 604 |
} |
| 605 |
return Index_IndexField_ORDER_UNSPECIFIED |
| 606 |
} |
| 607 |
|
| 608 |
func (x *Index_IndexField) GetArrayConfig() Index_IndexField_ArrayConfig { |
| 609 |
if x, ok := x.GetValueMode().(*Index_IndexField_ArrayConfig_); ok { |
| 610 |
return x.ArrayConfig |
| 611 |
} |
| 612 |
return Index_IndexField_ARRAY_CONFIG_UNSPECIFIED |
| 613 |
} |
| 614 |
|
| 615 |
func (x *Index_IndexField) GetVectorConfig() *Index_IndexField_VectorConfig { |
| 616 |
if x, ok := x.GetValueMode().(*Index_IndexField_VectorConfig_); ok { |
| 617 |
return x.VectorConfig |
| 618 |
} |
| 619 |
return nil |
| 620 |
} |
| 621 |
|
| 622 |
type isIndex_IndexField_ValueMode interface { |
| 623 |
isIndex_IndexField_ValueMode() |
| 624 |
} |
| 625 |
|
| 626 |
type Index_IndexField_Order_ struct { |
| 627 |
// Indicates that this field supports ordering by the specified order or |
| 628 |
// comparing using =, !=, <, <=, >, >=. |
| 629 |
Order Index_IndexField_Order `protobuf:"varint,2,opt,name=order,proto3,enum=google.firestore.admin.v1.Index_IndexField_Order,oneof"` |
| 630 |
} |
| 631 |
|
| 632 |
type Index_IndexField_ArrayConfig_ struct { |
| 633 |
// Indicates that this field supports operations on `array_value`s. |
| 634 |
ArrayConfig Index_IndexField_ArrayConfig `protobuf:"varint,3,opt,name=array_config,json=arrayConfig,proto3,enum=google.firestore.admin.v1.Index_IndexField_ArrayConfig,oneof"` |
| 635 |
} |
| 636 |
|
| 637 |
type Index_IndexField_VectorConfig_ struct { |
| 638 |
// Indicates that this field supports nearest neighbor and distance |
| 639 |
// operations on vector. |
| 640 |
VectorConfig *Index_IndexField_VectorConfig `protobuf:"bytes,4,opt,name=vector_config,json=vectorConfig,proto3,oneof"` |
| 641 |
} |
| 642 |
|
| 643 |
func (*Index_IndexField_Order_) isIndex_IndexField_ValueMode() {} |
| 644 |
|
| 645 |
func (*Index_IndexField_ArrayConfig_) isIndex_IndexField_ValueMode() {} |
| 646 |
|
| 647 |
func (*Index_IndexField_VectorConfig_) isIndex_IndexField_ValueMode() {} |
| 648 |
|
| 649 |
// The index configuration to support vector search operations |
| 650 |
type Index_IndexField_VectorConfig struct { |
| 651 |
state protoimpl.MessageState |
| 652 |
sizeCache protoimpl.SizeCache |
| 653 |
unknownFields protoimpl.UnknownFields |
| 654 |
|
| 655 |
// Required. The vector dimension this configuration applies to. |
| 656 |
// |
| 657 |
// The resulting index will only include vectors of this dimension, and |
| 658 |
// can be used for vector search with the same dimension. |
| 659 |
Dimension int32 `protobuf:"varint,1,opt,name=dimension,proto3" json:"dimension,omitempty"` |
| 660 |
// The type of index used. |
| 661 |
// |
| 662 |
// Types that are assignable to Type: |
| 663 |
// |
| 664 |
// *Index_IndexField_VectorConfig_Flat |
| 665 |
Type isIndex_IndexField_VectorConfig_Type `protobuf_oneof:"type"` |
| 666 |
} |
| 667 |
|
| 668 |
func (x *Index_IndexField_VectorConfig) Reset() { |
| 669 |
*x = Index_IndexField_VectorConfig{} |
| 670 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[2] |
| 671 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 672 |
ms.StoreMessageInfo(mi) |
| 673 |
} |
| 674 |
|
| 675 |
func (x *Index_IndexField_VectorConfig) String() string { |
| 676 |
return protoimpl.X.MessageStringOf(x) |
| 677 |
} |
| 678 |
|
| 679 |
func (*Index_IndexField_VectorConfig) ProtoMessage() {} |
| 680 |
|
| 681 |
func (x *Index_IndexField_VectorConfig) ProtoReflect() protoreflect.Message { |
| 682 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[2] |
| 683 |
if x != nil { |
| 684 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 685 |
if ms.LoadMessageInfo() == nil { |
| 686 |
ms.StoreMessageInfo(mi) |
| 687 |
} |
| 688 |
return ms |
| 689 |
} |
| 690 |
return mi.MessageOf(x) |
| 691 |
} |
| 692 |
|
| 693 |
// Deprecated: Use Index_IndexField_VectorConfig.ProtoReflect.Descriptor instead. |
| 694 |
func (*Index_IndexField_VectorConfig) Descriptor() ([]byte, []int) { |
| 695 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 0, 0} |
| 696 |
} |
| 697 |
|
| 698 |
func (x *Index_IndexField_VectorConfig) GetDimension() int32 { |
| 699 |
if x != nil { |
| 700 |
return x.Dimension |
| 701 |
} |
| 702 |
return 0 |
| 703 |
} |
| 704 |
|
| 705 |
func (m *Index_IndexField_VectorConfig) GetType() isIndex_IndexField_VectorConfig_Type { |
| 706 |
if m != nil { |
| 707 |
return m.Type |
| 708 |
} |
| 709 |
return nil |
| 710 |
} |
| 711 |
|
| 712 |
func (x *Index_IndexField_VectorConfig) GetFlat() *Index_IndexField_VectorConfig_FlatIndex { |
| 713 |
if x, ok := x.GetType().(*Index_IndexField_VectorConfig_Flat); ok { |
| 714 |
return x.Flat |
| 715 |
} |
| 716 |
return nil |
| 717 |
} |
| 718 |
|
| 719 |
type isIndex_IndexField_VectorConfig_Type interface { |
| 720 |
isIndex_IndexField_VectorConfig_Type() |
| 721 |
} |
| 722 |
|
| 723 |
type Index_IndexField_VectorConfig_Flat struct { |
| 724 |
// Indicates the vector index is a flat index. |
| 725 |
Flat *Index_IndexField_VectorConfig_FlatIndex `protobuf:"bytes,2,opt,name=flat,proto3,oneof"` |
| 726 |
} |
| 727 |
|
| 728 |
func (*Index_IndexField_VectorConfig_Flat) isIndex_IndexField_VectorConfig_Type() {} |
| 729 |
|
| 730 |
// An index that stores vectors in a flat data structure, and supports |
| 731 |
// exhaustive search. |
| 732 |
type Index_IndexField_VectorConfig_FlatIndex struct { |
| 733 |
state protoimpl.MessageState |
| 734 |
sizeCache protoimpl.SizeCache |
| 735 |
unknownFields protoimpl.UnknownFields |
| 736 |
} |
| 737 |
|
| 738 |
func (x *Index_IndexField_VectorConfig_FlatIndex) Reset() { |
| 739 |
*x = Index_IndexField_VectorConfig_FlatIndex{} |
| 740 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[3] |
| 741 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 742 |
ms.StoreMessageInfo(mi) |
| 743 |
} |
| 744 |
|
| 745 |
func (x *Index_IndexField_VectorConfig_FlatIndex) String() string { |
| 746 |
return protoimpl.X.MessageStringOf(x) |
| 747 |
} |
| 748 |
|
| 749 |
func (*Index_IndexField_VectorConfig_FlatIndex) ProtoMessage() {} |
| 750 |
|
| 751 |
func (x *Index_IndexField_VectorConfig_FlatIndex) ProtoReflect() protoreflect.Message { |
| 752 |
mi := &file_google_firestore_admin_v1_index_proto_msgTypes[3] |
| 753 |
if x != nil { |
| 754 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 755 |
if ms.LoadMessageInfo() == nil { |
| 756 |
ms.StoreMessageInfo(mi) |
| 757 |
} |
| 758 |
return ms |
| 759 |
} |
| 760 |
return mi.MessageOf(x) |
| 761 |
} |
| 762 |
|
| 763 |
// Deprecated: Use Index_IndexField_VectorConfig_FlatIndex.ProtoReflect.Descriptor instead. |
| 764 |
func (*Index_IndexField_VectorConfig_FlatIndex) Descriptor() ([]byte, []int) { |
| 765 |
return file_google_firestore_admin_v1_index_proto_rawDescGZIP(), []int{0, 0, 0, 0} |
| 766 |
} |
| 767 |
|
| 768 |
var File_google_firestore_admin_v1_index_proto protoreflect.FileDescriptor |
| 769 |
|
| 770 |
var file_google_firestore_admin_v1_index_proto_rawDesc = []byte{ |
| 771 |
0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 772 |
0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x64, 0x65, |
| 773 |
0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 774 |
0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, |
| 775 |
0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, |
| 776 |
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, |
| 777 |
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 778 |
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, |
| 779 |
0x0b, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, |
| 780 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x0b, |
| 781 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 782 |
0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, |
| 783 |
0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, |
| 784 |
0x64, 0x65, 0x78, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x0a, |
| 785 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x46, 0x0a, 0x09, 0x61, 0x70, |
| 786 |
0x69, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, |
| 787 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 788 |
0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, |
| 789 |
0x41, 0x70, 0x69, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x08, 0x61, 0x70, 0x69, 0x53, 0x63, 0x6f, |
| 790 |
0x70, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, |
| 791 |
0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, |
| 792 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, |
| 793 |
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, |
| 794 |
0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x3c, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, |
| 795 |
0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 796 |
0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, |
| 797 |
0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, |
| 798 |
0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x47, 0x0a, 0x07, 0x64, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, |
| 799 |
0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 800 |
0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, |
| 801 |
0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x44, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, |
| 802 |
0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x07, 0x64, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x1f, |
| 803 |
0x0a, 0x08, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, |
| 804 |
0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6b, 0x65, 0x79, 0x12, |
| 805 |
0x24, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, |
| 806 |
0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x72, 0x64, |
| 807 |
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0xe0, 0x04, 0x0a, 0x0a, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, |
| 808 |
0x69, 0x65, 0x6c, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, |
| 809 |
0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, |
| 810 |
0x61, 0x74, 0x68, 0x12, 0x49, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, |
| 811 |
0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, |
| 812 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, |
| 813 |
0x6e, 0x64, 0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, |
| 814 |
0x4f, 0x72, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x5c, |
| 815 |
0x0a, 0x0c, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, |
| 816 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, |
| 817 |
0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, |
| 818 |
0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, |
| 819 |
0x64, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, |
| 820 |
0x0b, 0x61, 0x72, 0x72, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5f, 0x0a, 0x0d, |
| 821 |
0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, |
| 822 |
0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, |
| 823 |
0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, |
| 824 |
0x49, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, |
| 825 |
0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, |
| 826 |
0x0c, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa0, 0x01, |
| 827 |
0x0a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, |
| 828 |
0x0a, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 829 |
0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, |
| 830 |
0x6e, 0x12, 0x58, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 831 |
0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 832 |
0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, |
| 833 |
0x78, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x56, 0x65, 0x63, |
| 834 |
0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x49, 0x6e, |
| 835 |
0x64, 0x65, 0x78, 0x48, 0x00, 0x52, 0x04, 0x66, 0x6c, 0x61, 0x74, 0x1a, 0x0b, 0x0a, 0x09, 0x46, |
| 836 |
0x6c, 0x61, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, |
| 837 |
0x22, 0x3d, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x44, |
| 838 |
0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, |
| 839 |
0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, |
| 840 |
0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, |
| 841 |
0x39, 0x0a, 0x0b, 0x41, 0x72, 0x72, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, |
| 842 |
0x0a, 0x18, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x55, |
| 843 |
0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, |
| 844 |
0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, |
| 845 |
0x6c, 0x75, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x69, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, |
| 846 |
0x79, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, |
| 847 |
0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, |
| 848 |
0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, |
| 849 |
0x4e, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, |
| 850 |
0x4e, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4c, |
| 851 |
0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x43, 0x55, 0x52, 0x53, 0x49, 0x56, |
| 852 |
0x45, 0x10, 0x03, 0x22, 0x4b, 0x0a, 0x08, 0x41, 0x70, 0x69, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, |
| 853 |
0x0b, 0x0a, 0x07, 0x41, 0x4e, 0x59, 0x5f, 0x41, 0x50, 0x49, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, |
| 854 |
0x44, 0x41, 0x54, 0x41, 0x53, 0x54, 0x4f, 0x52, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x41, |
| 855 |
0x50, 0x49, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x4e, 0x47, 0x4f, 0x44, 0x42, 0x5f, |
| 856 |
0x43, 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, 0x42, 0x4c, 0x45, 0x5f, 0x41, 0x50, 0x49, 0x10, 0x02, |
| 857 |
0x22, 0x49, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, |
| 858 |
0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, |
| 859 |
0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, |
| 860 |
0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x45, 0x45, |
| 861 |
0x44, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x41, 0x49, 0x52, 0x10, 0x03, 0x22, 0x4d, 0x0a, 0x07, 0x44, |
| 862 |
0x65, 0x6e, 0x73, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x45, 0x4e, 0x53, 0x49, 0x54, |
| 863 |
0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, |
| 864 |
0x0e, 0x0a, 0x0a, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, |
| 865 |
0x0e, 0x0a, 0x0a, 0x53, 0x50, 0x41, 0x52, 0x53, 0x45, 0x5f, 0x41, 0x4e, 0x59, 0x10, 0x02, 0x12, |
| 866 |
0x09, 0x0a, 0x05, 0x44, 0x45, 0x4e, 0x53, 0x45, 0x10, 0x03, 0x3a, 0x7a, 0xea, 0x41, 0x77, 0x0a, |
| 867 |
0x1e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 868 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, |
| 869 |
0x55, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 870 |
0x63, 0x74, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x64, |
| 871 |
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, |
| 872 |
0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6c, 0x6c, 0x65, |
| 873 |
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x2f, 0x7b, |
| 874 |
0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x42, 0xd9, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, |
| 875 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, |
| 876 |
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x50, |
| 877 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, |
| 878 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x69, 0x72, 0x65, |
| 879 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x64, 0x6d, 0x69, |
| 880 |
0x6e, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x70, 0x62, 0x3b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x70, |
| 881 |
0x62, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 882 |
0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, |
| 883 |
0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, |
| 884 |
0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, |
| 885 |
0x6f, 0x72, 0x65, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, |
| 886 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x46, 0x69, |
| 887 |
0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x3a, 0x3a, |
| 888 |
0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 889 |
} |
| 890 |
|
| 891 |
var ( |
| 892 |
file_google_firestore_admin_v1_index_proto_rawDescOnce sync.Once |
| 893 |
file_google_firestore_admin_v1_index_proto_rawDescData = file_google_firestore_admin_v1_index_proto_rawDesc |
| 894 |
) |
| 895 |
|
| 896 |
func file_google_firestore_admin_v1_index_proto_rawDescGZIP() []byte { |
| 897 |
file_google_firestore_admin_v1_index_proto_rawDescOnce.Do(func() { |
| 898 |
file_google_firestore_admin_v1_index_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_admin_v1_index_proto_rawDescData) |
| 899 |
}) |
| 900 |
return file_google_firestore_admin_v1_index_proto_rawDescData |
| 901 |
} |
| 902 |
|
| 903 |
var file_google_firestore_admin_v1_index_proto_enumTypes = make([]protoimpl.EnumInfo, 6) |
| 904 |
var file_google_firestore_admin_v1_index_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 905 |
var file_google_firestore_admin_v1_index_proto_goTypes = []any{ |
| 906 |
(Index_QueryScope)(0), // 0: google.firestore.admin.v1.Index.QueryScope |
| 907 |
(Index_ApiScope)(0), // 1: google.firestore.admin.v1.Index.ApiScope |
| 908 |
(Index_State)(0), // 2: google.firestore.admin.v1.Index.State |
| 909 |
(Index_Density)(0), // 3: google.firestore.admin.v1.Index.Density |
| 910 |
(Index_IndexField_Order)(0), // 4: google.firestore.admin.v1.Index.IndexField.Order |
| 911 |
(Index_IndexField_ArrayConfig)(0), // 5: google.firestore.admin.v1.Index.IndexField.ArrayConfig |
| 912 |
(*Index)(nil), // 6: google.firestore.admin.v1.Index |
| 913 |
(*Index_IndexField)(nil), // 7: google.firestore.admin.v1.Index.IndexField |
| 914 |
(*Index_IndexField_VectorConfig)(nil), // 8: google.firestore.admin.v1.Index.IndexField.VectorConfig |
| 915 |
(*Index_IndexField_VectorConfig_FlatIndex)(nil), // 9: google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex |
| 916 |
} |
| 917 |
var file_google_firestore_admin_v1_index_proto_depIdxs = []int32{ |
| 918 |
0, // 0: google.firestore.admin.v1.Index.query_scope:type_name -> google.firestore.admin.v1.Index.QueryScope |
| 919 |
1, // 1: google.firestore.admin.v1.Index.api_scope:type_name -> google.firestore.admin.v1.Index.ApiScope |
| 920 |
7, // 2: google.firestore.admin.v1.Index.fields:type_name -> google.firestore.admin.v1.Index.IndexField |
| 921 |
2, // 3: google.firestore.admin.v1.Index.state:type_name -> google.firestore.admin.v1.Index.State |
| 922 |
3, // 4: google.firestore.admin.v1.Index.density:type_name -> google.firestore.admin.v1.Index.Density |
| 923 |
4, // 5: google.firestore.admin.v1.Index.IndexField.order:type_name -> google.firestore.admin.v1.Index.IndexField.Order |
| 924 |
5, // 6: google.firestore.admin.v1.Index.IndexField.array_config:type_name -> google.firestore.admin.v1.Index.IndexField.ArrayConfig |
| 925 |
8, // 7: google.firestore.admin.v1.Index.IndexField.vector_config:type_name -> google.firestore.admin.v1.Index.IndexField.VectorConfig |
| 926 |
9, // 8: google.firestore.admin.v1.Index.IndexField.VectorConfig.flat:type_name -> google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex |
| 927 |
9, // [9:9] is the sub-list for method output_type |
| 928 |
9, // [9:9] is the sub-list for method input_type |
| 929 |
9, // [9:9] is the sub-list for extension type_name |
| 930 |
9, // [9:9] is the sub-list for extension extendee |
| 931 |
0, // [0:9] is the sub-list for field type_name |
| 932 |
} |
| 933 |
|
| 934 |
func init() { file_google_firestore_admin_v1_index_proto_init() } |
| 935 |
func file_google_firestore_admin_v1_index_proto_init() { |
| 936 |
if File_google_firestore_admin_v1_index_proto != nil { |
| 937 |
return |
| 938 |
} |
| 939 |
file_google_firestore_admin_v1_index_proto_msgTypes[1].OneofWrappers = []any{ |
| 940 |
(*Index_IndexField_Order_)(nil), |
| 941 |
(*Index_IndexField_ArrayConfig_)(nil), |
| 942 |
(*Index_IndexField_VectorConfig_)(nil), |
| 943 |
} |
| 944 |
file_google_firestore_admin_v1_index_proto_msgTypes[2].OneofWrappers = []any{ |
| 945 |
(*Index_IndexField_VectorConfig_Flat)(nil), |
| 946 |
} |
| 947 |
type x struct{} |
| 948 |
out := protoimpl.TypeBuilder{ |
| 949 |
File: protoimpl.DescBuilder{ |
| 950 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 951 |
RawDescriptor: file_google_firestore_admin_v1_index_proto_rawDesc, |
| 952 |
NumEnums: 6, |
| 953 |
NumMessages: 4, |
| 954 |
NumExtensions: 0, |
| 955 |
NumServices: 0, |
| 956 |
}, |
| 957 |
GoTypes: file_google_firestore_admin_v1_index_proto_goTypes, |
| 958 |
DependencyIndexes: file_google_firestore_admin_v1_index_proto_depIdxs, |
| 959 |
EnumInfos: file_google_firestore_admin_v1_index_proto_enumTypes, |
| 960 |
MessageInfos: file_google_firestore_admin_v1_index_proto_msgTypes, |
| 961 |
}.Build() |
| 962 |
File_google_firestore_admin_v1_index_proto = out.File |
| 963 |
file_google_firestore_admin_v1_index_proto_rawDesc = nil |
| 964 |
file_google_firestore_admin_v1_index_proto_goTypes = nil |
| 965 |
file_google_firestore_admin_v1_index_proto_depIdxs = nil |
| 966 |
} |