| 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/field.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 |
// The state of applying the TTL configuration to all documents. |
| 39 |
type Field_TtlConfig_State int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// The state is unspecified or unknown. |
| 43 |
Field_TtlConfig_STATE_UNSPECIFIED Field_TtlConfig_State = 0 |
| 44 |
// The TTL is being applied. There is an active long-running operation to |
| 45 |
// track the change. Newly written documents will have TTLs applied as |
| 46 |
// requested. Requested TTLs on existing documents are still being |
| 47 |
// processed. When TTLs on all existing documents have been processed, the |
| 48 |
// state will move to 'ACTIVE'. |
| 49 |
Field_TtlConfig_CREATING Field_TtlConfig_State = 1 |
| 50 |
// The TTL is active for all documents. |
| 51 |
Field_TtlConfig_ACTIVE Field_TtlConfig_State = 2 |
| 52 |
// The TTL configuration could not be enabled for all existing documents. |
| 53 |
// Newly written documents will continue to have their TTL applied. |
| 54 |
// The LRO returned when last attempting to enable TTL for this `Field` |
| 55 |
// has failed, and may have more details. |
| 56 |
Field_TtlConfig_NEEDS_REPAIR Field_TtlConfig_State = 3 |
| 57 |
) |
| 58 |
|
| 59 |
// Enum value maps for Field_TtlConfig_State. |
| 60 |
var ( |
| 61 |
Field_TtlConfig_State_name = map[int32]string{ |
| 62 |
0: "STATE_UNSPECIFIED", |
| 63 |
1: "CREATING", |
| 64 |
2: "ACTIVE", |
| 65 |
3: "NEEDS_REPAIR", |
| 66 |
} |
| 67 |
Field_TtlConfig_State_value = map[string]int32{ |
| 68 |
"STATE_UNSPECIFIED": 0, |
| 69 |
"CREATING": 1, |
| 70 |
"ACTIVE": 2, |
| 71 |
"NEEDS_REPAIR": 3, |
| 72 |
} |
| 73 |
) |
| 74 |
|
| 75 |
func (x Field_TtlConfig_State) Enum() *Field_TtlConfig_State { |
| 76 |
p := new(Field_TtlConfig_State) |
| 77 |
*p = x |
| 78 |
return p |
| 79 |
} |
| 80 |
|
| 81 |
func (x Field_TtlConfig_State) String() string { |
| 82 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 83 |
} |
| 84 |
|
| 85 |
func (Field_TtlConfig_State) Descriptor() protoreflect.EnumDescriptor { |
| 86 |
return file_google_firestore_admin_v1_field_proto_enumTypes[0].Descriptor() |
| 87 |
} |
| 88 |
|
| 89 |
func (Field_TtlConfig_State) Type() protoreflect.EnumType { |
| 90 |
return &file_google_firestore_admin_v1_field_proto_enumTypes[0] |
| 91 |
} |
| 92 |
|
| 93 |
func (x Field_TtlConfig_State) Number() protoreflect.EnumNumber { |
| 94 |
return protoreflect.EnumNumber(x) |
| 95 |
} |
| 96 |
|
| 97 |
// Deprecated: Use Field_TtlConfig_State.Descriptor instead. |
| 98 |
func (Field_TtlConfig_State) EnumDescriptor() ([]byte, []int) { |
| 99 |
return file_google_firestore_admin_v1_field_proto_rawDescGZIP(), []int{0, 1, 0} |
| 100 |
} |
| 101 |
|
| 102 |
// Represents a single field in the database. |
| 103 |
// |
| 104 |
// Fields are grouped by their "Collection Group", which represent all |
| 105 |
// collections in the database with the same ID. |
| 106 |
type Field struct { |
| 107 |
state protoimpl.MessageState |
| 108 |
sizeCache protoimpl.SizeCache |
| 109 |
unknownFields protoimpl.UnknownFields |
| 110 |
|
| 111 |
// Required. A field name of the form: |
| 112 |
// `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` |
| 113 |
// |
| 114 |
// A field path can be a simple field name, e.g. `address` or a path to fields |
| 115 |
// within `map_value` , e.g. `address.city`, |
| 116 |
// or a special field path. The only valid special field is `*`, which |
| 117 |
// represents any field. |
| 118 |
// |
| 119 |
// Field paths can be quoted using “ ` “ (backtick). The only character that |
| 120 |
// must be escaped within a quoted field path is the backtick character |
| 121 |
// itself, escaped using a backslash. Special characters in field paths that |
| 122 |
// must be quoted include: `*`, `.`, |
| 123 |
// “ ` “ (backtick), `[`, `]`, as well as any ascii symbolic characters. |
| 124 |
// |
| 125 |
// Examples: |
| 126 |
// “ `address.city` “ represents a field named `address.city`, not the map |
| 127 |
// key `city` in the field `address`. “ `*` “ represents a field named `*`, |
| 128 |
// not any field. |
| 129 |
// |
| 130 |
// A special `Field` contains the default indexing settings for all fields. |
| 131 |
// This field's resource name is: |
| 132 |
// `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` |
| 133 |
// Indexes defined on this `Field` will be applied to all fields which do not |
| 134 |
// have their own `Field` index configuration. |
| 135 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 136 |
// The index configuration for this field. If unset, field indexing will |
| 137 |
// revert to the configuration defined by the `ancestor_field`. To |
| 138 |
// explicitly remove all indexes for this field, specify an index config |
| 139 |
// with an empty list of indexes. |
| 140 |
IndexConfig *Field_IndexConfig `protobuf:"bytes,2,opt,name=index_config,json=indexConfig,proto3" json:"index_config,omitempty"` |
| 141 |
// The TTL configuration for this `Field`. |
| 142 |
// Setting or unsetting this will enable or disable the TTL for |
| 143 |
// documents that have this `Field`. |
| 144 |
TtlConfig *Field_TtlConfig `protobuf:"bytes,3,opt,name=ttl_config,json=ttlConfig,proto3" json:"ttl_config,omitempty"` |
| 145 |
} |
| 146 |
|
| 147 |
func (x *Field) Reset() { |
| 148 |
*x = Field{} |
| 149 |
mi := &file_google_firestore_admin_v1_field_proto_msgTypes[0] |
| 150 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 151 |
ms.StoreMessageInfo(mi) |
| 152 |
} |
| 153 |
|
| 154 |
func (x *Field) String() string { |
| 155 |
return protoimpl.X.MessageStringOf(x) |
| 156 |
} |
| 157 |
|
| 158 |
func (*Field) ProtoMessage() {} |
| 159 |
|
| 160 |
func (x *Field) ProtoReflect() protoreflect.Message { |
| 161 |
mi := &file_google_firestore_admin_v1_field_proto_msgTypes[0] |
| 162 |
if x != nil { |
| 163 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 164 |
if ms.LoadMessageInfo() == nil { |
| 165 |
ms.StoreMessageInfo(mi) |
| 166 |
} |
| 167 |
return ms |
| 168 |
} |
| 169 |
return mi.MessageOf(x) |
| 170 |
} |
| 171 |
|
| 172 |
// Deprecated: Use Field.ProtoReflect.Descriptor instead. |
| 173 |
func (*Field) Descriptor() ([]byte, []int) { |
| 174 |
return file_google_firestore_admin_v1_field_proto_rawDescGZIP(), []int{0} |
| 175 |
} |
| 176 |
|
| 177 |
func (x *Field) GetName() string { |
| 178 |
if x != nil { |
| 179 |
return x.Name |
| 180 |
} |
| 181 |
return "" |
| 182 |
} |
| 183 |
|
| 184 |
func (x *Field) GetIndexConfig() *Field_IndexConfig { |
| 185 |
if x != nil { |
| 186 |
return x.IndexConfig |
| 187 |
} |
| 188 |
return nil |
| 189 |
} |
| 190 |
|
| 191 |
func (x *Field) GetTtlConfig() *Field_TtlConfig { |
| 192 |
if x != nil { |
| 193 |
return x.TtlConfig |
| 194 |
} |
| 195 |
return nil |
| 196 |
} |
| 197 |
|
| 198 |
// The index configuration for this field. |
| 199 |
type Field_IndexConfig struct { |
| 200 |
state protoimpl.MessageState |
| 201 |
sizeCache protoimpl.SizeCache |
| 202 |
unknownFields protoimpl.UnknownFields |
| 203 |
|
| 204 |
// The indexes supported for this field. |
| 205 |
Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"` |
| 206 |
// Output only. When true, the `Field`'s index configuration is set from the |
| 207 |
// configuration specified by the `ancestor_field`. |
| 208 |
// When false, the `Field`'s index configuration is defined explicitly. |
| 209 |
UsesAncestorConfig bool `protobuf:"varint,2,opt,name=uses_ancestor_config,json=usesAncestorConfig,proto3" json:"uses_ancestor_config,omitempty"` |
| 210 |
// Output only. Specifies the resource name of the `Field` from which this |
| 211 |
// field's index configuration is set (when `uses_ancestor_config` is true), |
| 212 |
// or from which it *would* be set if this field had no index configuration |
| 213 |
// (when `uses_ancestor_config` is false). |
| 214 |
AncestorField string `protobuf:"bytes,3,opt,name=ancestor_field,json=ancestorField,proto3" json:"ancestor_field,omitempty"` |
| 215 |
// Output only |
| 216 |
// When true, the `Field`'s index configuration is in the process of being |
| 217 |
// reverted. Once complete, the index config will transition to the same |
| 218 |
// state as the field specified by `ancestor_field`, at which point |
| 219 |
// `uses_ancestor_config` will be `true` and `reverting` will be `false`. |
| 220 |
Reverting bool `protobuf:"varint,4,opt,name=reverting,proto3" json:"reverting,omitempty"` |
| 221 |
} |
| 222 |
|
| 223 |
func (x *Field_IndexConfig) Reset() { |
| 224 |
*x = Field_IndexConfig{} |
| 225 |
mi := &file_google_firestore_admin_v1_field_proto_msgTypes[1] |
| 226 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 227 |
ms.StoreMessageInfo(mi) |
| 228 |
} |
| 229 |
|
| 230 |
func (x *Field_IndexConfig) String() string { |
| 231 |
return protoimpl.X.MessageStringOf(x) |
| 232 |
} |
| 233 |
|
| 234 |
func (*Field_IndexConfig) ProtoMessage() {} |
| 235 |
|
| 236 |
func (x *Field_IndexConfig) ProtoReflect() protoreflect.Message { |
| 237 |
mi := &file_google_firestore_admin_v1_field_proto_msgTypes[1] |
| 238 |
if x != nil { |
| 239 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 240 |
if ms.LoadMessageInfo() == nil { |
| 241 |
ms.StoreMessageInfo(mi) |
| 242 |
} |
| 243 |
return ms |
| 244 |
} |
| 245 |
return mi.MessageOf(x) |
| 246 |
} |
| 247 |
|
| 248 |
// Deprecated: Use Field_IndexConfig.ProtoReflect.Descriptor instead. |
| 249 |
func (*Field_IndexConfig) Descriptor() ([]byte, []int) { |
| 250 |
return file_google_firestore_admin_v1_field_proto_rawDescGZIP(), []int{0, 0} |
| 251 |
} |
| 252 |
|
| 253 |
func (x *Field_IndexConfig) GetIndexes() []*Index { |
| 254 |
if x != nil { |
| 255 |
return x.Indexes |
| 256 |
} |
| 257 |
return nil |
| 258 |
} |
| 259 |
|
| 260 |
func (x *Field_IndexConfig) GetUsesAncestorConfig() bool { |
| 261 |
if x != nil { |
| 262 |
return x.UsesAncestorConfig |
| 263 |
} |
| 264 |
return false |
| 265 |
} |
| 266 |
|
| 267 |
func (x *Field_IndexConfig) GetAncestorField() string { |
| 268 |
if x != nil { |
| 269 |
return x.AncestorField |
| 270 |
} |
| 271 |
return "" |
| 272 |
} |
| 273 |
|
| 274 |
func (x *Field_IndexConfig) GetReverting() bool { |
| 275 |
if x != nil { |
| 276 |
return x.Reverting |
| 277 |
} |
| 278 |
return false |
| 279 |
} |
| 280 |
|
| 281 |
// The TTL (time-to-live) configuration for documents that have this `Field` |
| 282 |
// set. |
| 283 |
// |
| 284 |
// Storing a timestamp value into a TTL-enabled field will be treated as |
| 285 |
// the document's absolute expiration time. Timestamp values in the past |
| 286 |
// indicate that the document is eligible for immediate expiration. Using any |
| 287 |
// other data type or leaving the field absent will disable expiration for the |
| 288 |
// individual document. |
| 289 |
type Field_TtlConfig struct { |
| 290 |
state protoimpl.MessageState |
| 291 |
sizeCache protoimpl.SizeCache |
| 292 |
unknownFields protoimpl.UnknownFields |
| 293 |
|
| 294 |
// Output only. The state of the TTL configuration. |
| 295 |
State Field_TtlConfig_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.firestore.admin.v1.Field_TtlConfig_State" json:"state,omitempty"` |
| 296 |
} |
| 297 |
|
| 298 |
func (x *Field_TtlConfig) Reset() { |
| 299 |
*x = Field_TtlConfig{} |
| 300 |
mi := &file_google_firestore_admin_v1_field_proto_msgTypes[2] |
| 301 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 302 |
ms.StoreMessageInfo(mi) |
| 303 |
} |
| 304 |
|
| 305 |
func (x *Field_TtlConfig) String() string { |
| 306 |
return protoimpl.X.MessageStringOf(x) |
| 307 |
} |
| 308 |
|
| 309 |
func (*Field_TtlConfig) ProtoMessage() {} |
| 310 |
|
| 311 |
func (x *Field_TtlConfig) ProtoReflect() protoreflect.Message { |
| 312 |
mi := &file_google_firestore_admin_v1_field_proto_msgTypes[2] |
| 313 |
if x != nil { |
| 314 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 315 |
if ms.LoadMessageInfo() == nil { |
| 316 |
ms.StoreMessageInfo(mi) |
| 317 |
} |
| 318 |
return ms |
| 319 |
} |
| 320 |
return mi.MessageOf(x) |
| 321 |
} |
| 322 |
|
| 323 |
// Deprecated: Use Field_TtlConfig.ProtoReflect.Descriptor instead. |
| 324 |
func (*Field_TtlConfig) Descriptor() ([]byte, []int) { |
| 325 |
return file_google_firestore_admin_v1_field_proto_rawDescGZIP(), []int{0, 1} |
| 326 |
} |
| 327 |
|
| 328 |
func (x *Field_TtlConfig) GetState() Field_TtlConfig_State { |
| 329 |
if x != nil { |
| 330 |
return x.State |
| 331 |
} |
| 332 |
return Field_TtlConfig_STATE_UNSPECIFIED |
| 333 |
} |
| 334 |
|
| 335 |
var File_google_firestore_admin_v1_field_proto protoreflect.FileDescriptor |
| 336 |
|
| 337 |
var file_google_firestore_admin_v1_field_proto_rawDesc = []byte{ |
| 338 |
0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 339 |
0x72, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x65, 0x6c, |
| 340 |
0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 341 |
0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, |
| 342 |
0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, |
| 343 |
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, |
| 344 |
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 345 |
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, |
| 346 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 347 |
0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, |
| 348 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x05, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, |
| 349 |
0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, |
| 350 |
0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x69, 0x6e, 0x64, 0x65, |
| 351 |
0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, |
| 352 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, |
| 353 |
0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, |
| 354 |
0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x69, 0x6e, |
| 355 |
0x64, 0x65, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0a, 0x74, 0x74, 0x6c, |
| 356 |
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, |
| 357 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 358 |
0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, |
| 359 |
0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x74, 0x74, 0x6c, 0x43, 0x6f, |
| 360 |
0x6e, 0x66, 0x69, 0x67, 0x1a, 0xc0, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x43, 0x6f, |
| 361 |
0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, |
| 362 |
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, |
| 363 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, |
| 364 |
0x31, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, |
| 365 |
0x12, 0x30, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x73, 0x5f, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, |
| 366 |
0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, |
| 367 |
0x75, 0x73, 0x65, 0x73, 0x41, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, |
| 368 |
0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x5f, 0x66, |
| 369 |
0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6e, 0x63, 0x65, |
| 370 |
0x73, 0x74, 0x6f, 0x72, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x76, |
| 371 |
0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, |
| 372 |
0x76, 0x65, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x1a, 0xa4, 0x01, 0x0a, 0x09, 0x54, 0x74, 0x6c, 0x43, |
| 373 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, |
| 374 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, |
| 375 |
0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, |
| 376 |
0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x54, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 377 |
0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, |
| 378 |
0x74, 0x65, 0x22, 0x4a, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, |
| 379 |
0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 380 |
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, |
| 381 |
0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, |
| 382 |
0x4e, 0x45, 0x45, 0x44, 0x53, 0x5f, 0x52, 0x45, 0x50, 0x41, 0x49, 0x52, 0x10, 0x03, 0x3a, 0x79, |
| 383 |
0xea, 0x41, 0x76, 0x0a, 0x1e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x67, |
| 384 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, |
| 385 |
0x65, 0x6c, 0x64, 0x12, 0x54, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, |
| 386 |
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, |
| 387 |
0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x63, 0x6f, 0x6c, |
| 388 |
0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x63, |
| 389 |
0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 390 |
0x73, 0x2f, 0x7b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x7d, 0x42, 0xd9, 0x01, 0x0a, 0x1d, 0x63, 0x6f, |
| 391 |
0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 392 |
0x72, 0x65, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x46, 0x69, 0x65, |
| 393 |
0x6c, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 394 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x66, |
| 395 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, |
| 396 |
0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x70, 0x62, 0x3b, 0x61, 0x64, 0x6d, |
| 397 |
0x69, 0x6e, 0x70, 0x62, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, 0x02, 0x1f, 0x47, 0x6f, |
| 398 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x73, |
| 399 |
0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, |
| 400 |
0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x46, 0x69, 0x72, |
| 401 |
0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x56, 0x31, 0xea, |
| 402 |
0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, |
| 403 |
0x3a, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, |
| 404 |
0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 405 |
} |
| 406 |
|
| 407 |
var ( |
| 408 |
file_google_firestore_admin_v1_field_proto_rawDescOnce sync.Once |
| 409 |
file_google_firestore_admin_v1_field_proto_rawDescData = file_google_firestore_admin_v1_field_proto_rawDesc |
| 410 |
) |
| 411 |
|
| 412 |
func file_google_firestore_admin_v1_field_proto_rawDescGZIP() []byte { |
| 413 |
file_google_firestore_admin_v1_field_proto_rawDescOnce.Do(func() { |
| 414 |
file_google_firestore_admin_v1_field_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_admin_v1_field_proto_rawDescData) |
| 415 |
}) |
| 416 |
return file_google_firestore_admin_v1_field_proto_rawDescData |
| 417 |
} |
| 418 |
|
| 419 |
var file_google_firestore_admin_v1_field_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 420 |
var file_google_firestore_admin_v1_field_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 421 |
var file_google_firestore_admin_v1_field_proto_goTypes = []any{ |
| 422 |
(Field_TtlConfig_State)(0), // 0: google.firestore.admin.v1.Field.TtlConfig.State |
| 423 |
(*Field)(nil), // 1: google.firestore.admin.v1.Field |
| 424 |
(*Field_IndexConfig)(nil), // 2: google.firestore.admin.v1.Field.IndexConfig |
| 425 |
(*Field_TtlConfig)(nil), // 3: google.firestore.admin.v1.Field.TtlConfig |
| 426 |
(*Index)(nil), // 4: google.firestore.admin.v1.Index |
| 427 |
} |
| 428 |
var file_google_firestore_admin_v1_field_proto_depIdxs = []int32{ |
| 429 |
2, // 0: google.firestore.admin.v1.Field.index_config:type_name -> google.firestore.admin.v1.Field.IndexConfig |
| 430 |
3, // 1: google.firestore.admin.v1.Field.ttl_config:type_name -> google.firestore.admin.v1.Field.TtlConfig |
| 431 |
4, // 2: google.firestore.admin.v1.Field.IndexConfig.indexes:type_name -> google.firestore.admin.v1.Index |
| 432 |
0, // 3: google.firestore.admin.v1.Field.TtlConfig.state:type_name -> google.firestore.admin.v1.Field.TtlConfig.State |
| 433 |
4, // [4:4] is the sub-list for method output_type |
| 434 |
4, // [4:4] is the sub-list for method input_type |
| 435 |
4, // [4:4] is the sub-list for extension type_name |
| 436 |
4, // [4:4] is the sub-list for extension extendee |
| 437 |
0, // [0:4] is the sub-list for field type_name |
| 438 |
} |
| 439 |
|
| 440 |
func init() { file_google_firestore_admin_v1_field_proto_init() } |
| 441 |
func file_google_firestore_admin_v1_field_proto_init() { |
| 442 |
if File_google_firestore_admin_v1_field_proto != nil { |
| 443 |
return |
| 444 |
} |
| 445 |
file_google_firestore_admin_v1_index_proto_init() |
| 446 |
type x struct{} |
| 447 |
out := protoimpl.TypeBuilder{ |
| 448 |
File: protoimpl.DescBuilder{ |
| 449 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 450 |
RawDescriptor: file_google_firestore_admin_v1_field_proto_rawDesc, |
| 451 |
NumEnums: 1, |
| 452 |
NumMessages: 3, |
| 453 |
NumExtensions: 0, |
| 454 |
NumServices: 0, |
| 455 |
}, |
| 456 |
GoTypes: file_google_firestore_admin_v1_field_proto_goTypes, |
| 457 |
DependencyIndexes: file_google_firestore_admin_v1_field_proto_depIdxs, |
| 458 |
EnumInfos: file_google_firestore_admin_v1_field_proto_enumTypes, |
| 459 |
MessageInfos: file_google_firestore_admin_v1_field_proto_msgTypes, |
| 460 |
}.Build() |
| 461 |
File_google_firestore_admin_v1_field_proto = out.File |
| 462 |
file_google_firestore_admin_v1_field_proto_rawDesc = nil |
| 463 |
file_google_firestore_admin_v1_field_proto_goTypes = nil |
| 464 |
file_google_firestore_admin_v1_field_proto_depIdxs = nil |
| 465 |
} |