| 1 |
// Copyright 2020 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 |
// This file defines the format of Firestore bundle file/stream. It is not a part of the |
| 17 |
// Firestore API, only a specification used by Server and Client SDK to write and read |
| 18 |
// bundles. |
| 19 |
|
| 20 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 21 |
// versions: |
| 22 |
// protoc-gen-go v1.25.0 |
| 23 |
// protoc v3.13.0 |
| 24 |
// source: google/firestore/bundle/bundle.proto |
| 25 |
|
| 26 |
package firestore |
| 27 |
|
| 28 |
import ( |
| 29 |
reflect "reflect" |
| 30 |
sync "sync" |
| 31 |
|
| 32 |
proto "github.com/golang/protobuf/proto" |
| 33 |
v1 "google.golang.org/genproto/googleapis/firestore/v1" |
| 34 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 35 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 36 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 37 |
) |
| 38 |
|
| 39 |
const ( |
| 40 |
// Verify that this generated code is sufficiently up-to-date. |
| 41 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 42 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 43 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 44 |
) |
| 45 |
|
| 46 |
// This is a compile-time assertion that a sufficiently up-to-date version |
| 47 |
// of the legacy proto package is being used. |
| 48 |
const _ = proto.ProtoPackageIsVersion4 |
| 49 |
|
| 50 |
// If the query is a limit query, should the limit be applied to the beginning or |
| 51 |
// the end of results. |
| 52 |
type BundledQuery_LimitType int32 |
| 53 |
|
| 54 |
const ( |
| 55 |
BundledQuery_FIRST BundledQuery_LimitType = 0 |
| 56 |
BundledQuery_LAST BundledQuery_LimitType = 1 |
| 57 |
) |
| 58 |
|
| 59 |
// Enum value maps for BundledQuery_LimitType. |
| 60 |
var ( |
| 61 |
BundledQuery_LimitType_name = map[int32]string{ |
| 62 |
0: "FIRST", |
| 63 |
1: "LAST", |
| 64 |
} |
| 65 |
BundledQuery_LimitType_value = map[string]int32{ |
| 66 |
"FIRST": 0, |
| 67 |
"LAST": 1, |
| 68 |
} |
| 69 |
) |
| 70 |
|
| 71 |
func (x BundledQuery_LimitType) Enum() *BundledQuery_LimitType { |
| 72 |
p := new(BundledQuery_LimitType) |
| 73 |
*p = x |
| 74 |
return p |
| 75 |
} |
| 76 |
|
| 77 |
func (x BundledQuery_LimitType) String() string { |
| 78 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 79 |
} |
| 80 |
|
| 81 |
func (BundledQuery_LimitType) Descriptor() protoreflect.EnumDescriptor { |
| 82 |
return file_google_firestore_bundle_bundle_proto_enumTypes[0].Descriptor() |
| 83 |
} |
| 84 |
|
| 85 |
func (BundledQuery_LimitType) Type() protoreflect.EnumType { |
| 86 |
return &file_google_firestore_bundle_bundle_proto_enumTypes[0] |
| 87 |
} |
| 88 |
|
| 89 |
func (x BundledQuery_LimitType) Number() protoreflect.EnumNumber { |
| 90 |
return protoreflect.EnumNumber(x) |
| 91 |
} |
| 92 |
|
| 93 |
// Deprecated: Use BundledQuery_LimitType.Descriptor instead. |
| 94 |
func (BundledQuery_LimitType) EnumDescriptor() ([]byte, []int) { |
| 95 |
return file_google_firestore_bundle_bundle_proto_rawDescGZIP(), []int{0, 0} |
| 96 |
} |
| 97 |
|
| 98 |
// Encodes a query saved in the bundle. |
| 99 |
type BundledQuery struct { |
| 100 |
state protoimpl.MessageState |
| 101 |
sizeCache protoimpl.SizeCache |
| 102 |
unknownFields protoimpl.UnknownFields |
| 103 |
|
| 104 |
// The parent resource name. |
| 105 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 106 |
// The query to run. |
| 107 |
// |
| 108 |
// Types that are assignable to QueryType: |
| 109 |
// *BundledQuery_StructuredQuery |
| 110 |
QueryType isBundledQuery_QueryType `protobuf_oneof:"query_type"` |
| 111 |
LimitType BundledQuery_LimitType `protobuf:"varint,3,opt,name=limit_type,json=limitType,proto3,enum=google.firestore.bundle.BundledQuery_LimitType" json:"limit_type,omitempty"` |
| 112 |
} |
| 113 |
|
| 114 |
func (x *BundledQuery) Reset() { |
| 115 |
*x = BundledQuery{} |
| 116 |
if protoimpl.UnsafeEnabled { |
| 117 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[0] |
| 118 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 119 |
ms.StoreMessageInfo(mi) |
| 120 |
} |
| 121 |
} |
| 122 |
|
| 123 |
func (x *BundledQuery) String() string { |
| 124 |
return protoimpl.X.MessageStringOf(x) |
| 125 |
} |
| 126 |
|
| 127 |
func (*BundledQuery) ProtoMessage() {} |
| 128 |
|
| 129 |
func (x *BundledQuery) ProtoReflect() protoreflect.Message { |
| 130 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[0] |
| 131 |
if protoimpl.UnsafeEnabled && x != nil { |
| 132 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 133 |
if ms.LoadMessageInfo() == nil { |
| 134 |
ms.StoreMessageInfo(mi) |
| 135 |
} |
| 136 |
return ms |
| 137 |
} |
| 138 |
return mi.MessageOf(x) |
| 139 |
} |
| 140 |
|
| 141 |
// Deprecated: Use BundledQuery.ProtoReflect.Descriptor instead. |
| 142 |
func (*BundledQuery) Descriptor() ([]byte, []int) { |
| 143 |
return file_google_firestore_bundle_bundle_proto_rawDescGZIP(), []int{0} |
| 144 |
} |
| 145 |
|
| 146 |
func (x *BundledQuery) GetParent() string { |
| 147 |
if x != nil { |
| 148 |
return x.Parent |
| 149 |
} |
| 150 |
return "" |
| 151 |
} |
| 152 |
|
| 153 |
func (m *BundledQuery) GetQueryType() isBundledQuery_QueryType { |
| 154 |
if m != nil { |
| 155 |
return m.QueryType |
| 156 |
} |
| 157 |
return nil |
| 158 |
} |
| 159 |
|
| 160 |
func (x *BundledQuery) GetStructuredQuery() *v1.StructuredQuery { |
| 161 |
if x, ok := x.GetQueryType().(*BundledQuery_StructuredQuery); ok { |
| 162 |
return x.StructuredQuery |
| 163 |
} |
| 164 |
return nil |
| 165 |
} |
| 166 |
|
| 167 |
func (x *BundledQuery) GetLimitType() BundledQuery_LimitType { |
| 168 |
if x != nil { |
| 169 |
return x.LimitType |
| 170 |
} |
| 171 |
return BundledQuery_FIRST |
| 172 |
} |
| 173 |
|
| 174 |
type isBundledQuery_QueryType interface { |
| 175 |
isBundledQuery_QueryType() |
| 176 |
} |
| 177 |
|
| 178 |
type BundledQuery_StructuredQuery struct { |
| 179 |
// A structured query. |
| 180 |
StructuredQuery *v1.StructuredQuery `protobuf:"bytes,2,opt,name=structured_query,json=structuredQuery,proto3,oneof"` |
| 181 |
} |
| 182 |
|
| 183 |
func (*BundledQuery_StructuredQuery) isBundledQuery_QueryType() {} |
| 184 |
|
| 185 |
// A Query associated with a name, created as part of the bundle file, and can be read |
| 186 |
// by client SDKs once the bundle containing them is loaded. |
| 187 |
type NamedQuery struct { |
| 188 |
state protoimpl.MessageState |
| 189 |
sizeCache protoimpl.SizeCache |
| 190 |
unknownFields protoimpl.UnknownFields |
| 191 |
|
| 192 |
// Name of the query, such that client can use the name to load this query |
| 193 |
// from bundle, and resume from when the query results are materialized |
| 194 |
// into this bundle. |
| 195 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 196 |
// The query saved in the bundle. |
| 197 |
BundledQuery *BundledQuery `protobuf:"bytes,2,opt,name=bundled_query,json=bundledQuery,proto3" json:"bundled_query,omitempty"` |
| 198 |
// The read time of the query, when it is used to build the bundle. This is useful to |
| 199 |
// resume the query from the bundle, once it is loaded by client SDKs. |
| 200 |
ReadTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` |
| 201 |
} |
| 202 |
|
| 203 |
func (x *NamedQuery) Reset() { |
| 204 |
*x = NamedQuery{} |
| 205 |
if protoimpl.UnsafeEnabled { |
| 206 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[1] |
| 207 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 208 |
ms.StoreMessageInfo(mi) |
| 209 |
} |
| 210 |
} |
| 211 |
|
| 212 |
func (x *NamedQuery) String() string { |
| 213 |
return protoimpl.X.MessageStringOf(x) |
| 214 |
} |
| 215 |
|
| 216 |
func (*NamedQuery) ProtoMessage() {} |
| 217 |
|
| 218 |
func (x *NamedQuery) ProtoReflect() protoreflect.Message { |
| 219 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[1] |
| 220 |
if protoimpl.UnsafeEnabled && x != nil { |
| 221 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 222 |
if ms.LoadMessageInfo() == nil { |
| 223 |
ms.StoreMessageInfo(mi) |
| 224 |
} |
| 225 |
return ms |
| 226 |
} |
| 227 |
return mi.MessageOf(x) |
| 228 |
} |
| 229 |
|
| 230 |
// Deprecated: Use NamedQuery.ProtoReflect.Descriptor instead. |
| 231 |
func (*NamedQuery) Descriptor() ([]byte, []int) { |
| 232 |
return file_google_firestore_bundle_bundle_proto_rawDescGZIP(), []int{1} |
| 233 |
} |
| 234 |
|
| 235 |
func (x *NamedQuery) GetName() string { |
| 236 |
if x != nil { |
| 237 |
return x.Name |
| 238 |
} |
| 239 |
return "" |
| 240 |
} |
| 241 |
|
| 242 |
func (x *NamedQuery) GetBundledQuery() *BundledQuery { |
| 243 |
if x != nil { |
| 244 |
return x.BundledQuery |
| 245 |
} |
| 246 |
return nil |
| 247 |
} |
| 248 |
|
| 249 |
func (x *NamedQuery) GetReadTime() *timestamppb.Timestamp { |
| 250 |
if x != nil { |
| 251 |
return x.ReadTime |
| 252 |
} |
| 253 |
return nil |
| 254 |
} |
| 255 |
|
| 256 |
// Metadata describing a Firestore document saved in the bundle. |
| 257 |
type BundledDocumentMetadata struct { |
| 258 |
state protoimpl.MessageState |
| 259 |
sizeCache protoimpl.SizeCache |
| 260 |
unknownFields protoimpl.UnknownFields |
| 261 |
|
| 262 |
// The document key of a bundled document. |
| 263 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 264 |
// The snapshot version of the document data bundled. |
| 265 |
ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` |
| 266 |
// Whether the document exists. |
| 267 |
Exists bool `protobuf:"varint,3,opt,name=exists,proto3" json:"exists,omitempty"` |
| 268 |
// The names of the queries in this bundle that this document matches to. |
| 269 |
Queries []string `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` |
| 270 |
} |
| 271 |
|
| 272 |
func (x *BundledDocumentMetadata) Reset() { |
| 273 |
*x = BundledDocumentMetadata{} |
| 274 |
if protoimpl.UnsafeEnabled { |
| 275 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[2] |
| 276 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 277 |
ms.StoreMessageInfo(mi) |
| 278 |
} |
| 279 |
} |
| 280 |
|
| 281 |
func (x *BundledDocumentMetadata) String() string { |
| 282 |
return protoimpl.X.MessageStringOf(x) |
| 283 |
} |
| 284 |
|
| 285 |
func (*BundledDocumentMetadata) ProtoMessage() {} |
| 286 |
|
| 287 |
func (x *BundledDocumentMetadata) ProtoReflect() protoreflect.Message { |
| 288 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[2] |
| 289 |
if protoimpl.UnsafeEnabled && x != nil { |
| 290 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 291 |
if ms.LoadMessageInfo() == nil { |
| 292 |
ms.StoreMessageInfo(mi) |
| 293 |
} |
| 294 |
return ms |
| 295 |
} |
| 296 |
return mi.MessageOf(x) |
| 297 |
} |
| 298 |
|
| 299 |
// Deprecated: Use BundledDocumentMetadata.ProtoReflect.Descriptor instead. |
| 300 |
func (*BundledDocumentMetadata) Descriptor() ([]byte, []int) { |
| 301 |
return file_google_firestore_bundle_bundle_proto_rawDescGZIP(), []int{2} |
| 302 |
} |
| 303 |
|
| 304 |
func (x *BundledDocumentMetadata) GetName() string { |
| 305 |
if x != nil { |
| 306 |
return x.Name |
| 307 |
} |
| 308 |
return "" |
| 309 |
} |
| 310 |
|
| 311 |
func (x *BundledDocumentMetadata) GetReadTime() *timestamppb.Timestamp { |
| 312 |
if x != nil { |
| 313 |
return x.ReadTime |
| 314 |
} |
| 315 |
return nil |
| 316 |
} |
| 317 |
|
| 318 |
func (x *BundledDocumentMetadata) GetExists() bool { |
| 319 |
if x != nil { |
| 320 |
return x.Exists |
| 321 |
} |
| 322 |
return false |
| 323 |
} |
| 324 |
|
| 325 |
func (x *BundledDocumentMetadata) GetQueries() []string { |
| 326 |
if x != nil { |
| 327 |
return x.Queries |
| 328 |
} |
| 329 |
return nil |
| 330 |
} |
| 331 |
|
| 332 |
// Metadata describing the bundle file/stream. |
| 333 |
type BundleMetadata struct { |
| 334 |
state protoimpl.MessageState |
| 335 |
sizeCache protoimpl.SizeCache |
| 336 |
unknownFields protoimpl.UnknownFields |
| 337 |
|
| 338 |
// The ID of the bundle. |
| 339 |
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 340 |
// Time at which the documents snapshot is taken for this bundle. |
| 341 |
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| 342 |
// The schema version of the bundle. |
| 343 |
Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` |
| 344 |
// The number of documents in the bundle. |
| 345 |
TotalDocuments uint32 `protobuf:"varint,4,opt,name=total_documents,json=totalDocuments,proto3" json:"total_documents,omitempty"` |
| 346 |
// The size of the bundle in bytes, excluding this `BundleMetadata`. |
| 347 |
TotalBytes uint64 `protobuf:"varint,5,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` |
| 348 |
} |
| 349 |
|
| 350 |
func (x *BundleMetadata) Reset() { |
| 351 |
*x = BundleMetadata{} |
| 352 |
if protoimpl.UnsafeEnabled { |
| 353 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[3] |
| 354 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 355 |
ms.StoreMessageInfo(mi) |
| 356 |
} |
| 357 |
} |
| 358 |
|
| 359 |
func (x *BundleMetadata) String() string { |
| 360 |
return protoimpl.X.MessageStringOf(x) |
| 361 |
} |
| 362 |
|
| 363 |
func (*BundleMetadata) ProtoMessage() {} |
| 364 |
|
| 365 |
func (x *BundleMetadata) ProtoReflect() protoreflect.Message { |
| 366 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[3] |
| 367 |
if protoimpl.UnsafeEnabled && x != nil { |
| 368 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 369 |
if ms.LoadMessageInfo() == nil { |
| 370 |
ms.StoreMessageInfo(mi) |
| 371 |
} |
| 372 |
return ms |
| 373 |
} |
| 374 |
return mi.MessageOf(x) |
| 375 |
} |
| 376 |
|
| 377 |
// Deprecated: Use BundleMetadata.ProtoReflect.Descriptor instead. |
| 378 |
func (*BundleMetadata) Descriptor() ([]byte, []int) { |
| 379 |
return file_google_firestore_bundle_bundle_proto_rawDescGZIP(), []int{3} |
| 380 |
} |
| 381 |
|
| 382 |
func (x *BundleMetadata) GetId() string { |
| 383 |
if x != nil { |
| 384 |
return x.Id |
| 385 |
} |
| 386 |
return "" |
| 387 |
} |
| 388 |
|
| 389 |
func (x *BundleMetadata) GetCreateTime() *timestamppb.Timestamp { |
| 390 |
if x != nil { |
| 391 |
return x.CreateTime |
| 392 |
} |
| 393 |
return nil |
| 394 |
} |
| 395 |
|
| 396 |
func (x *BundleMetadata) GetVersion() uint32 { |
| 397 |
if x != nil { |
| 398 |
return x.Version |
| 399 |
} |
| 400 |
return 0 |
| 401 |
} |
| 402 |
|
| 403 |
func (x *BundleMetadata) GetTotalDocuments() uint32 { |
| 404 |
if x != nil { |
| 405 |
return x.TotalDocuments |
| 406 |
} |
| 407 |
return 0 |
| 408 |
} |
| 409 |
|
| 410 |
func (x *BundleMetadata) GetTotalBytes() uint64 { |
| 411 |
if x != nil { |
| 412 |
return x.TotalBytes |
| 413 |
} |
| 414 |
return 0 |
| 415 |
} |
| 416 |
|
| 417 |
// A Firestore bundle is a length-prefixed stream of JSON representations of |
| 418 |
// `BundleElement`. |
| 419 |
// Only one `BundleMetadata` is expected, and it should be the first element. |
| 420 |
// The named queries follow after `metadata`. Every `document_metadata` is |
| 421 |
// immediately followed by a `document`. |
| 422 |
type BundleElement struct { |
| 423 |
state protoimpl.MessageState |
| 424 |
sizeCache protoimpl.SizeCache |
| 425 |
unknownFields protoimpl.UnknownFields |
| 426 |
|
| 427 |
// Types that are assignable to ElementType: |
| 428 |
// *BundleElement_Metadata |
| 429 |
// *BundleElement_NamedQuery |
| 430 |
// *BundleElement_DocumentMetadata |
| 431 |
// *BundleElement_Document |
| 432 |
ElementType isBundleElement_ElementType `protobuf_oneof:"element_type"` |
| 433 |
} |
| 434 |
|
| 435 |
func (x *BundleElement) Reset() { |
| 436 |
*x = BundleElement{} |
| 437 |
if protoimpl.UnsafeEnabled { |
| 438 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[4] |
| 439 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 440 |
ms.StoreMessageInfo(mi) |
| 441 |
} |
| 442 |
} |
| 443 |
|
| 444 |
func (x *BundleElement) String() string { |
| 445 |
return protoimpl.X.MessageStringOf(x) |
| 446 |
} |
| 447 |
|
| 448 |
func (*BundleElement) ProtoMessage() {} |
| 449 |
|
| 450 |
func (x *BundleElement) ProtoReflect() protoreflect.Message { |
| 451 |
mi := &file_google_firestore_bundle_bundle_proto_msgTypes[4] |
| 452 |
if protoimpl.UnsafeEnabled && x != nil { |
| 453 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 454 |
if ms.LoadMessageInfo() == nil { |
| 455 |
ms.StoreMessageInfo(mi) |
| 456 |
} |
| 457 |
return ms |
| 458 |
} |
| 459 |
return mi.MessageOf(x) |
| 460 |
} |
| 461 |
|
| 462 |
// Deprecated: Use BundleElement.ProtoReflect.Descriptor instead. |
| 463 |
func (*BundleElement) Descriptor() ([]byte, []int) { |
| 464 |
return file_google_firestore_bundle_bundle_proto_rawDescGZIP(), []int{4} |
| 465 |
} |
| 466 |
|
| 467 |
func (m *BundleElement) GetElementType() isBundleElement_ElementType { |
| 468 |
if m != nil { |
| 469 |
return m.ElementType |
| 470 |
} |
| 471 |
return nil |
| 472 |
} |
| 473 |
|
| 474 |
func (x *BundleElement) GetMetadata() *BundleMetadata { |
| 475 |
if x, ok := x.GetElementType().(*BundleElement_Metadata); ok { |
| 476 |
return x.Metadata |
| 477 |
} |
| 478 |
return nil |
| 479 |
} |
| 480 |
|
| 481 |
func (x *BundleElement) GetNamedQuery() *NamedQuery { |
| 482 |
if x, ok := x.GetElementType().(*BundleElement_NamedQuery); ok { |
| 483 |
return x.NamedQuery |
| 484 |
} |
| 485 |
return nil |
| 486 |
} |
| 487 |
|
| 488 |
func (x *BundleElement) GetDocumentMetadata() *BundledDocumentMetadata { |
| 489 |
if x, ok := x.GetElementType().(*BundleElement_DocumentMetadata); ok { |
| 490 |
return x.DocumentMetadata |
| 491 |
} |
| 492 |
return nil |
| 493 |
} |
| 494 |
|
| 495 |
func (x *BundleElement) GetDocument() *v1.Document { |
| 496 |
if x, ok := x.GetElementType().(*BundleElement_Document); ok { |
| 497 |
return x.Document |
| 498 |
} |
| 499 |
return nil |
| 500 |
} |
| 501 |
|
| 502 |
type isBundleElement_ElementType interface { |
| 503 |
isBundleElement_ElementType() |
| 504 |
} |
| 505 |
|
| 506 |
type BundleElement_Metadata struct { |
| 507 |
Metadata *BundleMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` |
| 508 |
} |
| 509 |
|
| 510 |
type BundleElement_NamedQuery struct { |
| 511 |
NamedQuery *NamedQuery `protobuf:"bytes,2,opt,name=named_query,json=namedQuery,proto3,oneof"` |
| 512 |
} |
| 513 |
|
| 514 |
type BundleElement_DocumentMetadata struct { |
| 515 |
DocumentMetadata *BundledDocumentMetadata `protobuf:"bytes,3,opt,name=document_metadata,json=documentMetadata,proto3,oneof"` |
| 516 |
} |
| 517 |
|
| 518 |
type BundleElement_Document struct { |
| 519 |
Document *v1.Document `protobuf:"bytes,4,opt,name=document,proto3,oneof"` |
| 520 |
} |
| 521 |
|
| 522 |
func (*BundleElement_Metadata) isBundleElement_ElementType() {} |
| 523 |
|
| 524 |
func (*BundleElement_NamedQuery) isBundleElement_ElementType() {} |
| 525 |
|
| 526 |
func (*BundleElement_DocumentMetadata) isBundleElement_ElementType() {} |
| 527 |
|
| 528 |
func (*BundleElement_Document) isBundleElement_ElementType() {} |
| 529 |
|
| 530 |
var File_google_firestore_bundle_bundle_proto protoreflect.FileDescriptor |
| 531 |
|
| 532 |
var file_google_firestore_bundle_bundle_proto_rawDesc = []byte{ |
| 533 |
0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 534 |
0x72, 0x65, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, |
| 535 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, |
| 536 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x1a, |
| 537 |
0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, |
| 538 |
0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, |
| 539 |
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, |
| 540 |
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, |
| 541 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, |
| 542 |
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, |
| 543 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x01, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, |
| 544 |
0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, |
| 545 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x51, |
| 546 |
0x0a, 0x10, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, |
| 547 |
0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 548 |
0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, |
| 549 |
0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, |
| 550 |
0x52, 0x0f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, |
| 551 |
0x79, 0x12, 0x4e, 0x0a, 0x0a, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, |
| 552 |
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, |
| 553 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, |
| 554 |
0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x4c, 0x69, 0x6d, |
| 555 |
0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x54, 0x79, 0x70, |
| 556 |
0x65, 0x22, 0x20, 0x0a, 0x09, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, |
| 557 |
0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x41, 0x53, |
| 558 |
0x54, 0x10, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x79, 0x70, |
| 559 |
0x65, 0x22, 0xa5, 0x01, 0x0a, 0x0a, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, |
| 560 |
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, |
| 561 |
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x5f, |
| 562 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, |
| 563 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, |
| 564 |
0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x51, 0x75, 0x65, |
| 565 |
0x72, 0x79, 0x52, 0x0c, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, |
| 566 |
0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, |
| 567 |
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, |
| 568 |
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, |
| 569 |
0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x17, 0x42, 0x75, |
| 570 |
0x6e, 0x64, 0x6c, 0x65, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, |
| 571 |
0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, |
| 572 |
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, |
| 573 |
0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, |
| 574 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, |
| 575 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, |
| 576 |
0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, |
| 577 |
0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, |
| 578 |
0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, |
| 579 |
0x72, 0x69, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x0e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4d, |
| 580 |
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, |
| 581 |
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, |
| 582 |
0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, |
| 583 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, |
| 584 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 585 |
0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, |
| 586 |
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, |
| 587 |
0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 588 |
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x6f, |
| 589 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, |
| 590 |
0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, |
| 591 |
0x74, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xcc, 0x02, 0x0a, 0x0d, 0x42, 0x75, 0x6e, |
| 592 |
0x64, 0x6c, 0x65, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x08, 0x6d, 0x65, |
| 593 |
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, |
| 594 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, |
| 595 |
0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4d, 0x65, 0x74, |
| 596 |
0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, |
| 597 |
0x61, 0x12, 0x46, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, |
| 598 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 599 |
0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, |
| 600 |
0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x6e, |
| 601 |
0x61, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x5f, 0x0a, 0x11, 0x64, 0x6f, 0x63, |
| 602 |
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, |
| 603 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, |
| 604 |
0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, |
| 605 |
0x75, 0x6e, 0x64, 0x6c, 0x65, 0x64, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, |
| 606 |
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x10, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 607 |
0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, 0x08, 0x64, 0x6f, |
| 608 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, |
| 609 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, |
| 610 |
0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x08, 0x64, |
| 611 |
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x65, 0x6c, 0x65, 0x6d, 0x65, |
| 612 |
0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x91, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, |
| 613 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 614 |
0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x0b, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, |
| 615 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, |
| 616 |
0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, |
| 617 |
0x74, 0x6f, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x75, 0x6e, |
| 618 |
0x64, 0x6c, 0x65, 0x3b, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x05, |
| 619 |
0x46, 0x53, 0x54, 0x50, 0x42, 0xaa, 0x02, 0x10, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, |
| 620 |
0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0xca, 0x02, 0x10, 0x46, 0x69, 0x72, 0x65, 0x73, |
| 621 |
0x74, 0x6f, 0x72, 0x65, 0x5c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, |
| 622 |
0x74, 0x6f, 0x33, |
| 623 |
} |
| 624 |
|
| 625 |
var ( |
| 626 |
file_google_firestore_bundle_bundle_proto_rawDescOnce sync.Once |
| 627 |
file_google_firestore_bundle_bundle_proto_rawDescData = file_google_firestore_bundle_bundle_proto_rawDesc |
| 628 |
) |
| 629 |
|
| 630 |
func file_google_firestore_bundle_bundle_proto_rawDescGZIP() []byte { |
| 631 |
file_google_firestore_bundle_bundle_proto_rawDescOnce.Do(func() { |
| 632 |
file_google_firestore_bundle_bundle_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_bundle_bundle_proto_rawDescData) |
| 633 |
}) |
| 634 |
return file_google_firestore_bundle_bundle_proto_rawDescData |
| 635 |
} |
| 636 |
|
| 637 |
var file_google_firestore_bundle_bundle_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 638 |
var file_google_firestore_bundle_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 639 |
var file_google_firestore_bundle_bundle_proto_goTypes = []interface{}{ |
| 640 |
(BundledQuery_LimitType)(0), // 0: google.firestore.bundle.BundledQuery.LimitType |
| 641 |
(*BundledQuery)(nil), // 1: google.firestore.bundle.BundledQuery |
| 642 |
(*NamedQuery)(nil), // 2: google.firestore.bundle.NamedQuery |
| 643 |
(*BundledDocumentMetadata)(nil), // 3: google.firestore.bundle.BundledDocumentMetadata |
| 644 |
(*BundleMetadata)(nil), // 4: google.firestore.bundle.BundleMetadata |
| 645 |
(*BundleElement)(nil), // 5: google.firestore.bundle.BundleElement |
| 646 |
(*v1.StructuredQuery)(nil), // 6: google.firestore.v1.StructuredQuery |
| 647 |
(*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp |
| 648 |
(*v1.Document)(nil), // 8: google.firestore.v1.Document |
| 649 |
} |
| 650 |
var file_google_firestore_bundle_bundle_proto_depIdxs = []int32{ |
| 651 |
6, // 0: google.firestore.bundle.BundledQuery.structured_query:type_name -> google.firestore.v1.StructuredQuery |
| 652 |
0, // 1: google.firestore.bundle.BundledQuery.limit_type:type_name -> google.firestore.bundle.BundledQuery.LimitType |
| 653 |
1, // 2: google.firestore.bundle.NamedQuery.bundled_query:type_name -> google.firestore.bundle.BundledQuery |
| 654 |
7, // 3: google.firestore.bundle.NamedQuery.read_time:type_name -> google.protobuf.Timestamp |
| 655 |
7, // 4: google.firestore.bundle.BundledDocumentMetadata.read_time:type_name -> google.protobuf.Timestamp |
| 656 |
7, // 5: google.firestore.bundle.BundleMetadata.create_time:type_name -> google.protobuf.Timestamp |
| 657 |
4, // 6: google.firestore.bundle.BundleElement.metadata:type_name -> google.firestore.bundle.BundleMetadata |
| 658 |
2, // 7: google.firestore.bundle.BundleElement.named_query:type_name -> google.firestore.bundle.NamedQuery |
| 659 |
3, // 8: google.firestore.bundle.BundleElement.document_metadata:type_name -> google.firestore.bundle.BundledDocumentMetadata |
| 660 |
8, // 9: google.firestore.bundle.BundleElement.document:type_name -> google.firestore.v1.Document |
| 661 |
10, // [10:10] is the sub-list for method output_type |
| 662 |
10, // [10:10] is the sub-list for method input_type |
| 663 |
10, // [10:10] is the sub-list for extension type_name |
| 664 |
10, // [10:10] is the sub-list for extension extendee |
| 665 |
0, // [0:10] is the sub-list for field type_name |
| 666 |
} |
| 667 |
|
| 668 |
func init() { file_google_firestore_bundle_bundle_proto_init() } |
| 669 |
func file_google_firestore_bundle_bundle_proto_init() { |
| 670 |
if File_google_firestore_bundle_bundle_proto != nil { |
| 671 |
return |
| 672 |
} |
| 673 |
if !protoimpl.UnsafeEnabled { |
| 674 |
file_google_firestore_bundle_bundle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 675 |
switch v := v.(*BundledQuery); i { |
| 676 |
case 0: |
| 677 |
return &v.state |
| 678 |
case 1: |
| 679 |
return &v.sizeCache |
| 680 |
case 2: |
| 681 |
return &v.unknownFields |
| 682 |
default: |
| 683 |
return nil |
| 684 |
} |
| 685 |
} |
| 686 |
file_google_firestore_bundle_bundle_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 687 |
switch v := v.(*NamedQuery); i { |
| 688 |
case 0: |
| 689 |
return &v.state |
| 690 |
case 1: |
| 691 |
return &v.sizeCache |
| 692 |
case 2: |
| 693 |
return &v.unknownFields |
| 694 |
default: |
| 695 |
return nil |
| 696 |
} |
| 697 |
} |
| 698 |
file_google_firestore_bundle_bundle_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 699 |
switch v := v.(*BundledDocumentMetadata); i { |
| 700 |
case 0: |
| 701 |
return &v.state |
| 702 |
case 1: |
| 703 |
return &v.sizeCache |
| 704 |
case 2: |
| 705 |
return &v.unknownFields |
| 706 |
default: |
| 707 |
return nil |
| 708 |
} |
| 709 |
} |
| 710 |
file_google_firestore_bundle_bundle_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 711 |
switch v := v.(*BundleMetadata); i { |
| 712 |
case 0: |
| 713 |
return &v.state |
| 714 |
case 1: |
| 715 |
return &v.sizeCache |
| 716 |
case 2: |
| 717 |
return &v.unknownFields |
| 718 |
default: |
| 719 |
return nil |
| 720 |
} |
| 721 |
} |
| 722 |
file_google_firestore_bundle_bundle_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 723 |
switch v := v.(*BundleElement); i { |
| 724 |
case 0: |
| 725 |
return &v.state |
| 726 |
case 1: |
| 727 |
return &v.sizeCache |
| 728 |
case 2: |
| 729 |
return &v.unknownFields |
| 730 |
default: |
| 731 |
return nil |
| 732 |
} |
| 733 |
} |
| 734 |
} |
| 735 |
file_google_firestore_bundle_bundle_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 736 |
(*BundledQuery_StructuredQuery)(nil), |
| 737 |
} |
| 738 |
file_google_firestore_bundle_bundle_proto_msgTypes[4].OneofWrappers = []interface{}{ |
| 739 |
(*BundleElement_Metadata)(nil), |
| 740 |
(*BundleElement_NamedQuery)(nil), |
| 741 |
(*BundleElement_DocumentMetadata)(nil), |
| 742 |
(*BundleElement_Document)(nil), |
| 743 |
} |
| 744 |
type x struct{} |
| 745 |
out := protoimpl.TypeBuilder{ |
| 746 |
File: protoimpl.DescBuilder{ |
| 747 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 748 |
RawDescriptor: file_google_firestore_bundle_bundle_proto_rawDesc, |
| 749 |
NumEnums: 1, |
| 750 |
NumMessages: 5, |
| 751 |
NumExtensions: 0, |
| 752 |
NumServices: 0, |
| 753 |
}, |
| 754 |
GoTypes: file_google_firestore_bundle_bundle_proto_goTypes, |
| 755 |
DependencyIndexes: file_google_firestore_bundle_bundle_proto_depIdxs, |
| 756 |
EnumInfos: file_google_firestore_bundle_bundle_proto_enumTypes, |
| 757 |
MessageInfos: file_google_firestore_bundle_bundle_proto_msgTypes, |
| 758 |
}.Build() |
| 759 |
File_google_firestore_bundle_bundle_proto = out.File |
| 760 |
file_google_firestore_bundle_bundle_proto_rawDesc = nil |
| 761 |
file_google_firestore_bundle_bundle_proto_goTypes = nil |
| 762 |
file_google_firestore_bundle_bundle_proto_depIdxs = nil |
| 763 |
} |