| 1 |
// Copyright 2021 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.26.0 |
| 18 |
// protoc v3.12.2 |
| 19 |
// source: google/firestore/v1beta1/common.proto |
| 20 |
|
| 21 |
package firestore |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 30 |
) |
| 31 |
|
| 32 |
const ( |
| 33 |
// Verify that this generated code is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 35 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 36 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 37 |
) |
| 38 |
|
| 39 |
// A set of field paths on a document. |
| 40 |
// Used to restrict a get or update operation on a document to a subset of its |
| 41 |
// fields. |
| 42 |
// This is different from standard field masks, as this is always scoped to a |
| 43 |
// [Document][google.firestore.v1beta1.Document], and takes in account the dynamic nature of [Value][google.firestore.v1beta1.Value]. |
| 44 |
type DocumentMask struct { |
| 45 |
state protoimpl.MessageState |
| 46 |
sizeCache protoimpl.SizeCache |
| 47 |
unknownFields protoimpl.UnknownFields |
| 48 |
|
| 49 |
// The list of field paths in the mask. See [Document.fields][google.firestore.v1beta1.Document.fields] for a field |
| 50 |
// path syntax reference. |
| 51 |
FieldPaths []string `protobuf:"bytes,1,rep,name=field_paths,json=fieldPaths,proto3" json:"field_paths,omitempty"` |
| 52 |
} |
| 53 |
|
| 54 |
func (x *DocumentMask) Reset() { |
| 55 |
*x = DocumentMask{} |
| 56 |
if protoimpl.UnsafeEnabled { |
| 57 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[0] |
| 58 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 59 |
ms.StoreMessageInfo(mi) |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
func (x *DocumentMask) String() string { |
| 64 |
return protoimpl.X.MessageStringOf(x) |
| 65 |
} |
| 66 |
|
| 67 |
func (*DocumentMask) ProtoMessage() {} |
| 68 |
|
| 69 |
func (x *DocumentMask) ProtoReflect() protoreflect.Message { |
| 70 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[0] |
| 71 |
if protoimpl.UnsafeEnabled && x != nil { |
| 72 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 73 |
if ms.LoadMessageInfo() == nil { |
| 74 |
ms.StoreMessageInfo(mi) |
| 75 |
} |
| 76 |
return ms |
| 77 |
} |
| 78 |
return mi.MessageOf(x) |
| 79 |
} |
| 80 |
|
| 81 |
// Deprecated: Use DocumentMask.ProtoReflect.Descriptor instead. |
| 82 |
func (*DocumentMask) Descriptor() ([]byte, []int) { |
| 83 |
return file_google_firestore_v1beta1_common_proto_rawDescGZIP(), []int{0} |
| 84 |
} |
| 85 |
|
| 86 |
func (x *DocumentMask) GetFieldPaths() []string { |
| 87 |
if x != nil { |
| 88 |
return x.FieldPaths |
| 89 |
} |
| 90 |
return nil |
| 91 |
} |
| 92 |
|
| 93 |
// A precondition on a document, used for conditional operations. |
| 94 |
type Precondition struct { |
| 95 |
state protoimpl.MessageState |
| 96 |
sizeCache protoimpl.SizeCache |
| 97 |
unknownFields protoimpl.UnknownFields |
| 98 |
|
| 99 |
// The type of precondition. |
| 100 |
// |
| 101 |
// Types that are assignable to ConditionType: |
| 102 |
// |
| 103 |
// *Precondition_Exists |
| 104 |
// *Precondition_UpdateTime |
| 105 |
ConditionType isPrecondition_ConditionType `protobuf_oneof:"condition_type"` |
| 106 |
} |
| 107 |
|
| 108 |
func (x *Precondition) Reset() { |
| 109 |
*x = Precondition{} |
| 110 |
if protoimpl.UnsafeEnabled { |
| 111 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[1] |
| 112 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 113 |
ms.StoreMessageInfo(mi) |
| 114 |
} |
| 115 |
} |
| 116 |
|
| 117 |
func (x *Precondition) String() string { |
| 118 |
return protoimpl.X.MessageStringOf(x) |
| 119 |
} |
| 120 |
|
| 121 |
func (*Precondition) ProtoMessage() {} |
| 122 |
|
| 123 |
func (x *Precondition) ProtoReflect() protoreflect.Message { |
| 124 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[1] |
| 125 |
if protoimpl.UnsafeEnabled && x != nil { |
| 126 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 127 |
if ms.LoadMessageInfo() == nil { |
| 128 |
ms.StoreMessageInfo(mi) |
| 129 |
} |
| 130 |
return ms |
| 131 |
} |
| 132 |
return mi.MessageOf(x) |
| 133 |
} |
| 134 |
|
| 135 |
// Deprecated: Use Precondition.ProtoReflect.Descriptor instead. |
| 136 |
func (*Precondition) Descriptor() ([]byte, []int) { |
| 137 |
return file_google_firestore_v1beta1_common_proto_rawDescGZIP(), []int{1} |
| 138 |
} |
| 139 |
|
| 140 |
func (m *Precondition) GetConditionType() isPrecondition_ConditionType { |
| 141 |
if m != nil { |
| 142 |
return m.ConditionType |
| 143 |
} |
| 144 |
return nil |
| 145 |
} |
| 146 |
|
| 147 |
func (x *Precondition) GetExists() bool { |
| 148 |
if x, ok := x.GetConditionType().(*Precondition_Exists); ok { |
| 149 |
return x.Exists |
| 150 |
} |
| 151 |
return false |
| 152 |
} |
| 153 |
|
| 154 |
func (x *Precondition) GetUpdateTime() *timestamppb.Timestamp { |
| 155 |
if x, ok := x.GetConditionType().(*Precondition_UpdateTime); ok { |
| 156 |
return x.UpdateTime |
| 157 |
} |
| 158 |
return nil |
| 159 |
} |
| 160 |
|
| 161 |
type isPrecondition_ConditionType interface { |
| 162 |
isPrecondition_ConditionType() |
| 163 |
} |
| 164 |
|
| 165 |
type Precondition_Exists struct { |
| 166 |
// When set to `true`, the target document must exist. |
| 167 |
// When set to `false`, the target document must not exist. |
| 168 |
Exists bool `protobuf:"varint,1,opt,name=exists,proto3,oneof"` |
| 169 |
} |
| 170 |
|
| 171 |
type Precondition_UpdateTime struct { |
| 172 |
// When set, the target document must exist and have been last updated at |
| 173 |
// that time. |
| 174 |
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3,oneof"` |
| 175 |
} |
| 176 |
|
| 177 |
func (*Precondition_Exists) isPrecondition_ConditionType() {} |
| 178 |
|
| 179 |
func (*Precondition_UpdateTime) isPrecondition_ConditionType() {} |
| 180 |
|
| 181 |
// Options for creating a new transaction. |
| 182 |
type TransactionOptions struct { |
| 183 |
state protoimpl.MessageState |
| 184 |
sizeCache protoimpl.SizeCache |
| 185 |
unknownFields protoimpl.UnknownFields |
| 186 |
|
| 187 |
// The mode of the transaction. |
| 188 |
// |
| 189 |
// Types that are assignable to Mode: |
| 190 |
// |
| 191 |
// *TransactionOptions_ReadOnly_ |
| 192 |
// *TransactionOptions_ReadWrite_ |
| 193 |
Mode isTransactionOptions_Mode `protobuf_oneof:"mode"` |
| 194 |
} |
| 195 |
|
| 196 |
func (x *TransactionOptions) Reset() { |
| 197 |
*x = TransactionOptions{} |
| 198 |
if protoimpl.UnsafeEnabled { |
| 199 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[2] |
| 200 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 201 |
ms.StoreMessageInfo(mi) |
| 202 |
} |
| 203 |
} |
| 204 |
|
| 205 |
func (x *TransactionOptions) String() string { |
| 206 |
return protoimpl.X.MessageStringOf(x) |
| 207 |
} |
| 208 |
|
| 209 |
func (*TransactionOptions) ProtoMessage() {} |
| 210 |
|
| 211 |
func (x *TransactionOptions) ProtoReflect() protoreflect.Message { |
| 212 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[2] |
| 213 |
if protoimpl.UnsafeEnabled && x != nil { |
| 214 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 215 |
if ms.LoadMessageInfo() == nil { |
| 216 |
ms.StoreMessageInfo(mi) |
| 217 |
} |
| 218 |
return ms |
| 219 |
} |
| 220 |
return mi.MessageOf(x) |
| 221 |
} |
| 222 |
|
| 223 |
// Deprecated: Use TransactionOptions.ProtoReflect.Descriptor instead. |
| 224 |
func (*TransactionOptions) Descriptor() ([]byte, []int) { |
| 225 |
return file_google_firestore_v1beta1_common_proto_rawDescGZIP(), []int{2} |
| 226 |
} |
| 227 |
|
| 228 |
func (m *TransactionOptions) GetMode() isTransactionOptions_Mode { |
| 229 |
if m != nil { |
| 230 |
return m.Mode |
| 231 |
} |
| 232 |
return nil |
| 233 |
} |
| 234 |
|
| 235 |
func (x *TransactionOptions) GetReadOnly() *TransactionOptions_ReadOnly { |
| 236 |
if x, ok := x.GetMode().(*TransactionOptions_ReadOnly_); ok { |
| 237 |
return x.ReadOnly |
| 238 |
} |
| 239 |
return nil |
| 240 |
} |
| 241 |
|
| 242 |
func (x *TransactionOptions) GetReadWrite() *TransactionOptions_ReadWrite { |
| 243 |
if x, ok := x.GetMode().(*TransactionOptions_ReadWrite_); ok { |
| 244 |
return x.ReadWrite |
| 245 |
} |
| 246 |
return nil |
| 247 |
} |
| 248 |
|
| 249 |
type isTransactionOptions_Mode interface { |
| 250 |
isTransactionOptions_Mode() |
| 251 |
} |
| 252 |
|
| 253 |
type TransactionOptions_ReadOnly_ struct { |
| 254 |
// The transaction can only be used for read operations. |
| 255 |
ReadOnly *TransactionOptions_ReadOnly `protobuf:"bytes,2,opt,name=read_only,json=readOnly,proto3,oneof"` |
| 256 |
} |
| 257 |
|
| 258 |
type TransactionOptions_ReadWrite_ struct { |
| 259 |
// The transaction can be used for both read and write operations. |
| 260 |
ReadWrite *TransactionOptions_ReadWrite `protobuf:"bytes,3,opt,name=read_write,json=readWrite,proto3,oneof"` |
| 261 |
} |
| 262 |
|
| 263 |
func (*TransactionOptions_ReadOnly_) isTransactionOptions_Mode() {} |
| 264 |
|
| 265 |
func (*TransactionOptions_ReadWrite_) isTransactionOptions_Mode() {} |
| 266 |
|
| 267 |
// Options for a transaction that can be used to read and write documents. |
| 268 |
type TransactionOptions_ReadWrite struct { |
| 269 |
state protoimpl.MessageState |
| 270 |
sizeCache protoimpl.SizeCache |
| 271 |
unknownFields protoimpl.UnknownFields |
| 272 |
|
| 273 |
// An optional transaction to retry. |
| 274 |
RetryTransaction []byte `protobuf:"bytes,1,opt,name=retry_transaction,json=retryTransaction,proto3" json:"retry_transaction,omitempty"` |
| 275 |
} |
| 276 |
|
| 277 |
func (x *TransactionOptions_ReadWrite) Reset() { |
| 278 |
*x = TransactionOptions_ReadWrite{} |
| 279 |
if protoimpl.UnsafeEnabled { |
| 280 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[3] |
| 281 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 282 |
ms.StoreMessageInfo(mi) |
| 283 |
} |
| 284 |
} |
| 285 |
|
| 286 |
func (x *TransactionOptions_ReadWrite) String() string { |
| 287 |
return protoimpl.X.MessageStringOf(x) |
| 288 |
} |
| 289 |
|
| 290 |
func (*TransactionOptions_ReadWrite) ProtoMessage() {} |
| 291 |
|
| 292 |
func (x *TransactionOptions_ReadWrite) ProtoReflect() protoreflect.Message { |
| 293 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[3] |
| 294 |
if protoimpl.UnsafeEnabled && x != nil { |
| 295 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 296 |
if ms.LoadMessageInfo() == nil { |
| 297 |
ms.StoreMessageInfo(mi) |
| 298 |
} |
| 299 |
return ms |
| 300 |
} |
| 301 |
return mi.MessageOf(x) |
| 302 |
} |
| 303 |
|
| 304 |
// Deprecated: Use TransactionOptions_ReadWrite.ProtoReflect.Descriptor instead. |
| 305 |
func (*TransactionOptions_ReadWrite) Descriptor() ([]byte, []int) { |
| 306 |
return file_google_firestore_v1beta1_common_proto_rawDescGZIP(), []int{2, 0} |
| 307 |
} |
| 308 |
|
| 309 |
func (x *TransactionOptions_ReadWrite) GetRetryTransaction() []byte { |
| 310 |
if x != nil { |
| 311 |
return x.RetryTransaction |
| 312 |
} |
| 313 |
return nil |
| 314 |
} |
| 315 |
|
| 316 |
// Options for a transaction that can only be used to read documents. |
| 317 |
type TransactionOptions_ReadOnly struct { |
| 318 |
state protoimpl.MessageState |
| 319 |
sizeCache protoimpl.SizeCache |
| 320 |
unknownFields protoimpl.UnknownFields |
| 321 |
|
| 322 |
// The consistency mode for this transaction. If not set, defaults to strong |
| 323 |
// consistency. |
| 324 |
// |
| 325 |
// Types that are assignable to ConsistencySelector: |
| 326 |
// |
| 327 |
// *TransactionOptions_ReadOnly_ReadTime |
| 328 |
ConsistencySelector isTransactionOptions_ReadOnly_ConsistencySelector `protobuf_oneof:"consistency_selector"` |
| 329 |
} |
| 330 |
|
| 331 |
func (x *TransactionOptions_ReadOnly) Reset() { |
| 332 |
*x = TransactionOptions_ReadOnly{} |
| 333 |
if protoimpl.UnsafeEnabled { |
| 334 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[4] |
| 335 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 336 |
ms.StoreMessageInfo(mi) |
| 337 |
} |
| 338 |
} |
| 339 |
|
| 340 |
func (x *TransactionOptions_ReadOnly) String() string { |
| 341 |
return protoimpl.X.MessageStringOf(x) |
| 342 |
} |
| 343 |
|
| 344 |
func (*TransactionOptions_ReadOnly) ProtoMessage() {} |
| 345 |
|
| 346 |
func (x *TransactionOptions_ReadOnly) ProtoReflect() protoreflect.Message { |
| 347 |
mi := &file_google_firestore_v1beta1_common_proto_msgTypes[4] |
| 348 |
if protoimpl.UnsafeEnabled && x != nil { |
| 349 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 350 |
if ms.LoadMessageInfo() == nil { |
| 351 |
ms.StoreMessageInfo(mi) |
| 352 |
} |
| 353 |
return ms |
| 354 |
} |
| 355 |
return mi.MessageOf(x) |
| 356 |
} |
| 357 |
|
| 358 |
// Deprecated: Use TransactionOptions_ReadOnly.ProtoReflect.Descriptor instead. |
| 359 |
func (*TransactionOptions_ReadOnly) Descriptor() ([]byte, []int) { |
| 360 |
return file_google_firestore_v1beta1_common_proto_rawDescGZIP(), []int{2, 1} |
| 361 |
} |
| 362 |
|
| 363 |
func (m *TransactionOptions_ReadOnly) GetConsistencySelector() isTransactionOptions_ReadOnly_ConsistencySelector { |
| 364 |
if m != nil { |
| 365 |
return m.ConsistencySelector |
| 366 |
} |
| 367 |
return nil |
| 368 |
} |
| 369 |
|
| 370 |
func (x *TransactionOptions_ReadOnly) GetReadTime() *timestamppb.Timestamp { |
| 371 |
if x, ok := x.GetConsistencySelector().(*TransactionOptions_ReadOnly_ReadTime); ok { |
| 372 |
return x.ReadTime |
| 373 |
} |
| 374 |
return nil |
| 375 |
} |
| 376 |
|
| 377 |
type isTransactionOptions_ReadOnly_ConsistencySelector interface { |
| 378 |
isTransactionOptions_ReadOnly_ConsistencySelector() |
| 379 |
} |
| 380 |
|
| 381 |
type TransactionOptions_ReadOnly_ReadTime struct { |
| 382 |
// Reads documents at the given time. |
| 383 |
// This may not be older than 60 seconds. |
| 384 |
ReadTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=read_time,json=readTime,proto3,oneof"` |
| 385 |
} |
| 386 |
|
| 387 |
func (*TransactionOptions_ReadOnly_ReadTime) isTransactionOptions_ReadOnly_ConsistencySelector() {} |
| 388 |
|
| 389 |
var File_google_firestore_v1beta1_common_proto protoreflect.FileDescriptor |
| 390 |
|
| 391 |
var file_google_firestore_v1beta1_common_proto_rawDesc = []byte{ |
| 392 |
0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 393 |
0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, |
| 394 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 395 |
0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 396 |
0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 397 |
0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, |
| 398 |
0x74, 0x6f, 0x22, 0x2f, 0x0a, 0x0c, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x61, |
| 399 |
0x73, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, |
| 400 |
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, |
| 401 |
0x74, 0x68, 0x73, 0x22, 0x79, 0x0a, 0x0c, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, |
| 402 |
0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, |
| 403 |
0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x3d, 0x0a, |
| 404 |
0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 405 |
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 406 |
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, |
| 407 |
0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x10, 0x0a, 0x0e, |
| 408 |
0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xe4, |
| 409 |
0x02, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, |
| 410 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x54, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, |
| 411 |
0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 412 |
0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 413 |
0x74, 0x61, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, |
| 414 |
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x48, |
| 415 |
0x00, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x57, 0x0a, 0x0a, 0x72, |
| 416 |
0x65, 0x61, 0x64, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 417 |
0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, |
| 418 |
0x72, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, |
| 419 |
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, |
| 420 |
0x61, 0x64, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x61, 0x64, 0x57, |
| 421 |
0x72, 0x69, 0x74, 0x65, 0x1a, 0x38, 0x0a, 0x09, 0x52, 0x65, 0x61, 0x64, 0x57, 0x72, 0x69, 0x74, |
| 422 |
0x65, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, |
| 423 |
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, |
| 424 |
0x74, 0x72, 0x79, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5d, |
| 425 |
0x0a, 0x08, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x39, 0x0a, 0x09, 0x72, 0x65, |
| 426 |
0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, |
| 427 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
| 428 |
0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x08, 0x72, 0x65, 0x61, |
| 429 |
0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x16, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, |
| 430 |
0x65, 0x6e, 0x63, 0x79, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x06, 0x0a, |
| 431 |
0x04, 0x6d, 0x6f, 0x64, 0x65, 0x42, 0xdd, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, |
| 432 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, |
| 433 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, |
| 434 |
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, |
| 435 |
0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, |
| 436 |
0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x66, 0x69, 0x72, |
| 437 |
0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x66, |
| 438 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x04, 0x47, 0x43, 0x46, 0x53, 0xaa, |
| 439 |
0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x46, |
| 440 |
0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, |
| 441 |
0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, |
| 442 |
0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 443 |
0x31, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, |
| 444 |
0x64, 0x3a, 0x3a, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, |
| 445 |
0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 446 |
} |
| 447 |
|
| 448 |
var ( |
| 449 |
file_google_firestore_v1beta1_common_proto_rawDescOnce sync.Once |
| 450 |
file_google_firestore_v1beta1_common_proto_rawDescData = file_google_firestore_v1beta1_common_proto_rawDesc |
| 451 |
) |
| 452 |
|
| 453 |
func file_google_firestore_v1beta1_common_proto_rawDescGZIP() []byte { |
| 454 |
file_google_firestore_v1beta1_common_proto_rawDescOnce.Do(func() { |
| 455 |
file_google_firestore_v1beta1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_v1beta1_common_proto_rawDescData) |
| 456 |
}) |
| 457 |
return file_google_firestore_v1beta1_common_proto_rawDescData |
| 458 |
} |
| 459 |
|
| 460 |
var file_google_firestore_v1beta1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 461 |
var file_google_firestore_v1beta1_common_proto_goTypes = []interface{}{ |
| 462 |
(*DocumentMask)(nil), // 0: google.firestore.v1beta1.DocumentMask |
| 463 |
(*Precondition)(nil), // 1: google.firestore.v1beta1.Precondition |
| 464 |
(*TransactionOptions)(nil), // 2: google.firestore.v1beta1.TransactionOptions |
| 465 |
(*TransactionOptions_ReadWrite)(nil), // 3: google.firestore.v1beta1.TransactionOptions.ReadWrite |
| 466 |
(*TransactionOptions_ReadOnly)(nil), // 4: google.firestore.v1beta1.TransactionOptions.ReadOnly |
| 467 |
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp |
| 468 |
} |
| 469 |
var file_google_firestore_v1beta1_common_proto_depIdxs = []int32{ |
| 470 |
5, // 0: google.firestore.v1beta1.Precondition.update_time:type_name -> google.protobuf.Timestamp |
| 471 |
4, // 1: google.firestore.v1beta1.TransactionOptions.read_only:type_name -> google.firestore.v1beta1.TransactionOptions.ReadOnly |
| 472 |
3, // 2: google.firestore.v1beta1.TransactionOptions.read_write:type_name -> google.firestore.v1beta1.TransactionOptions.ReadWrite |
| 473 |
5, // 3: google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time:type_name -> google.protobuf.Timestamp |
| 474 |
4, // [4:4] is the sub-list for method output_type |
| 475 |
4, // [4:4] is the sub-list for method input_type |
| 476 |
4, // [4:4] is the sub-list for extension type_name |
| 477 |
4, // [4:4] is the sub-list for extension extendee |
| 478 |
0, // [0:4] is the sub-list for field type_name |
| 479 |
} |
| 480 |
|
| 481 |
func init() { file_google_firestore_v1beta1_common_proto_init() } |
| 482 |
func file_google_firestore_v1beta1_common_proto_init() { |
| 483 |
if File_google_firestore_v1beta1_common_proto != nil { |
| 484 |
return |
| 485 |
} |
| 486 |
if !protoimpl.UnsafeEnabled { |
| 487 |
file_google_firestore_v1beta1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 488 |
switch v := v.(*DocumentMask); i { |
| 489 |
case 0: |
| 490 |
return &v.state |
| 491 |
case 1: |
| 492 |
return &v.sizeCache |
| 493 |
case 2: |
| 494 |
return &v.unknownFields |
| 495 |
default: |
| 496 |
return nil |
| 497 |
} |
| 498 |
} |
| 499 |
file_google_firestore_v1beta1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 500 |
switch v := v.(*Precondition); i { |
| 501 |
case 0: |
| 502 |
return &v.state |
| 503 |
case 1: |
| 504 |
return &v.sizeCache |
| 505 |
case 2: |
| 506 |
return &v.unknownFields |
| 507 |
default: |
| 508 |
return nil |
| 509 |
} |
| 510 |
} |
| 511 |
file_google_firestore_v1beta1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 512 |
switch v := v.(*TransactionOptions); i { |
| 513 |
case 0: |
| 514 |
return &v.state |
| 515 |
case 1: |
| 516 |
return &v.sizeCache |
| 517 |
case 2: |
| 518 |
return &v.unknownFields |
| 519 |
default: |
| 520 |
return nil |
| 521 |
} |
| 522 |
} |
| 523 |
file_google_firestore_v1beta1_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 524 |
switch v := v.(*TransactionOptions_ReadWrite); i { |
| 525 |
case 0: |
| 526 |
return &v.state |
| 527 |
case 1: |
| 528 |
return &v.sizeCache |
| 529 |
case 2: |
| 530 |
return &v.unknownFields |
| 531 |
default: |
| 532 |
return nil |
| 533 |
} |
| 534 |
} |
| 535 |
file_google_firestore_v1beta1_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 536 |
switch v := v.(*TransactionOptions_ReadOnly); i { |
| 537 |
case 0: |
| 538 |
return &v.state |
| 539 |
case 1: |
| 540 |
return &v.sizeCache |
| 541 |
case 2: |
| 542 |
return &v.unknownFields |
| 543 |
default: |
| 544 |
return nil |
| 545 |
} |
| 546 |
} |
| 547 |
} |
| 548 |
file_google_firestore_v1beta1_common_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 549 |
(*Precondition_Exists)(nil), |
| 550 |
(*Precondition_UpdateTime)(nil), |
| 551 |
} |
| 552 |
file_google_firestore_v1beta1_common_proto_msgTypes[2].OneofWrappers = []interface{}{ |
| 553 |
(*TransactionOptions_ReadOnly_)(nil), |
| 554 |
(*TransactionOptions_ReadWrite_)(nil), |
| 555 |
} |
| 556 |
file_google_firestore_v1beta1_common_proto_msgTypes[4].OneofWrappers = []interface{}{ |
| 557 |
(*TransactionOptions_ReadOnly_ReadTime)(nil), |
| 558 |
} |
| 559 |
type x struct{} |
| 560 |
out := protoimpl.TypeBuilder{ |
| 561 |
File: protoimpl.DescBuilder{ |
| 562 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 563 |
RawDescriptor: file_google_firestore_v1beta1_common_proto_rawDesc, |
| 564 |
NumEnums: 0, |
| 565 |
NumMessages: 5, |
| 566 |
NumExtensions: 0, |
| 567 |
NumServices: 0, |
| 568 |
}, |
| 569 |
GoTypes: file_google_firestore_v1beta1_common_proto_goTypes, |
| 570 |
DependencyIndexes: file_google_firestore_v1beta1_common_proto_depIdxs, |
| 571 |
MessageInfos: file_google_firestore_v1beta1_common_proto_msgTypes, |
| 572 |
}.Build() |
| 573 |
File_google_firestore_v1beta1_common_proto = out.File |
| 574 |
file_google_firestore_v1beta1_common_proto_rawDesc = nil |
| 575 |
file_google_firestore_v1beta1_common_proto_goTypes = nil |
| 576 |
file_google_firestore_v1beta1_common_proto_depIdxs = nil |
| 577 |
} |