aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/cpp/firestore/local/target.pb.h
blob: 2896f2948e566f4d97a3367719fb80d83a258f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
/*
 * Copyright 2018 Google
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: firestore/local/target.proto

#ifndef PROTOBUF_firestore_2flocal_2ftarget_2eproto__INCLUDED
#define PROTOBUF_firestore_2flocal_2ftarget_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "google/firestore/v1beta1/firestore.pb.h"
#include <google/protobuf/timestamp.pb.h>
// @@protoc_insertion_point(includes)

namespace protobuf_firestore_2flocal_2ftarget_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
  static const ::google::protobuf::internal::ParseTableField entries[];
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  static const ::google::protobuf::internal::ParseTable schema[2];
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
  static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsTargetImpl();
void InitDefaultsTarget();
void InitDefaultsTargetGlobalImpl();
void InitDefaultsTargetGlobal();
inline void InitDefaults() {
  InitDefaultsTarget();
  InitDefaultsTargetGlobal();
}
}  // namespace protobuf_firestore_2flocal_2ftarget_2eproto
namespace firestore {
namespace client {
class Target;
class TargetDefaultTypeInternal;
extern TargetDefaultTypeInternal _Target_default_instance_;
class TargetGlobal;
class TargetGlobalDefaultTypeInternal;
extern TargetGlobalDefaultTypeInternal _TargetGlobal_default_instance_;
}  // namespace client
}  // namespace firestore
namespace firestore {
namespace client {

// ===================================================================

class Target : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.Target) */ {
 public:
  Target();
  virtual ~Target();

  Target(const Target& from);

  inline Target& operator=(const Target& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  Target(Target&& from) noexcept
    : Target() {
    *this = ::std::move(from);
  }

  inline Target& operator=(Target&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const Target& default_instance();

  enum TargetTypeCase {
    kQuery = 5,
    kDocuments = 6,
    TARGET_TYPE_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const Target* internal_default_instance() {
    return reinterpret_cast<const Target*>(
               &_Target_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    0;

  void Swap(Target* other);
  friend void swap(Target& a, Target& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline Target* New() const PROTOBUF_FINAL { return New(NULL); }

  Target* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const Target& from);
  void MergeFrom(const Target& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(Target* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // bytes resume_token = 3;
  void clear_resume_token();
  static const int kResumeTokenFieldNumber = 3;
  const ::std::string& resume_token() const;
  void set_resume_token(const ::std::string& value);
  #if LANG_CXX11
  void set_resume_token(::std::string&& value);
  #endif
  void set_resume_token(const char* value);
  void set_resume_token(const void* value, size_t size);
  ::std::string* mutable_resume_token();
  ::std::string* release_resume_token();
  void set_allocated_resume_token(::std::string* resume_token);

  // .google.protobuf.Timestamp snapshot_version = 2;
  bool has_snapshot_version() const;
  void clear_snapshot_version();
  static const int kSnapshotVersionFieldNumber = 2;
  const ::google::protobuf::Timestamp& snapshot_version() const;
  ::google::protobuf::Timestamp* release_snapshot_version();
  ::google::protobuf::Timestamp* mutable_snapshot_version();
  void set_allocated_snapshot_version(::google::protobuf::Timestamp* snapshot_version);

  // int64 last_listen_sequence_number = 4;
  void clear_last_listen_sequence_number();
  static const int kLastListenSequenceNumberFieldNumber = 4;
  ::google::protobuf::int64 last_listen_sequence_number() const;
  void set_last_listen_sequence_number(::google::protobuf::int64 value);

  // int32 target_id = 1;
  void clear_target_id();
  static const int kTargetIdFieldNumber = 1;
  ::google::protobuf::int32 target_id() const;
  void set_target_id(::google::protobuf::int32 value);

  // .google.firestore.v1beta1.Target.QueryTarget query = 5;
  bool has_query() const;
  void clear_query();
  static const int kQueryFieldNumber = 5;
  const ::google::firestore::v1beta1::Target_QueryTarget& query() const;
  ::google::firestore::v1beta1::Target_QueryTarget* release_query();
  ::google::firestore::v1beta1::Target_QueryTarget* mutable_query();
  void set_allocated_query(::google::firestore::v1beta1::Target_QueryTarget* query);

  // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
  bool has_documents() const;
  void clear_documents();
  static const int kDocumentsFieldNumber = 6;
  const ::google::firestore::v1beta1::Target_DocumentsTarget& documents() const;
  ::google::firestore::v1beta1::Target_DocumentsTarget* release_documents();
  ::google::firestore::v1beta1::Target_DocumentsTarget* mutable_documents();
  void set_allocated_documents(::google::firestore::v1beta1::Target_DocumentsTarget* documents);

  TargetTypeCase target_type_case() const;
  // @@protoc_insertion_point(class_scope:firestore.client.Target)
 private:
  void set_has_query();
  void set_has_documents();

  inline bool has_target_type() const;
  void clear_target_type();
  inline void clear_has_target_type();

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::ArenaStringPtr resume_token_;
  ::google::protobuf::Timestamp* snapshot_version_;
  ::google::protobuf::int64 last_listen_sequence_number_;
  ::google::protobuf::int32 target_id_;
  union TargetTypeUnion {
    TargetTypeUnion() {}
    ::google::firestore::v1beta1::Target_QueryTarget* query_;
    ::google::firestore::v1beta1::Target_DocumentsTarget* documents_;
  } target_type_;
  mutable int _cached_size_;
  ::google::protobuf::uint32 _oneof_case_[1];

  friend struct ::protobuf_firestore_2flocal_2ftarget_2eproto::TableStruct;
  friend void ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTargetImpl();
};
// -------------------------------------------------------------------

class TargetGlobal : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
 public:
  TargetGlobal();
  virtual ~TargetGlobal();

  TargetGlobal(const TargetGlobal& from);

  inline TargetGlobal& operator=(const TargetGlobal& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  TargetGlobal(TargetGlobal&& from) noexcept
    : TargetGlobal() {
    *this = ::std::move(from);
  }

  inline TargetGlobal& operator=(TargetGlobal&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const TargetGlobal& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TargetGlobal* internal_default_instance() {
    return reinterpret_cast<const TargetGlobal*>(
               &_TargetGlobal_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    1;

  void Swap(TargetGlobal* other);
  friend void swap(TargetGlobal& a, TargetGlobal& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline TargetGlobal* New() const PROTOBUF_FINAL { return New(NULL); }

  TargetGlobal* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const TargetGlobal& from);
  void MergeFrom(const TargetGlobal& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(TargetGlobal* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  bool has_last_remote_snapshot_version() const;
  void clear_last_remote_snapshot_version();
  static const int kLastRemoteSnapshotVersionFieldNumber = 3;
  const ::google::protobuf::Timestamp& last_remote_snapshot_version() const;
  ::google::protobuf::Timestamp* release_last_remote_snapshot_version();
  ::google::protobuf::Timestamp* mutable_last_remote_snapshot_version();
  void set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* last_remote_snapshot_version);

  // int64 highest_listen_sequence_number = 2;
  void clear_highest_listen_sequence_number();
  static const int kHighestListenSequenceNumberFieldNumber = 2;
  ::google::protobuf::int64 highest_listen_sequence_number() const;
  void set_highest_listen_sequence_number(::google::protobuf::int64 value);

  // int32 highest_target_id = 1;
  void clear_highest_target_id();
  static const int kHighestTargetIdFieldNumber = 1;
  ::google::protobuf::int32 highest_target_id() const;
  void set_highest_target_id(::google::protobuf::int32 value);

  // int32 target_count = 4;
  void clear_target_count();
  static const int kTargetCountFieldNumber = 4;
  ::google::protobuf::int32 target_count() const;
  void set_target_count(::google::protobuf::int32 value);

  // @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::Timestamp* last_remote_snapshot_version_;
  ::google::protobuf::int64 highest_listen_sequence_number_;
  ::google::protobuf::int32 highest_target_id_;
  ::google::protobuf::int32 target_count_;
  mutable int _cached_size_;
  friend struct ::protobuf_firestore_2flocal_2ftarget_2eproto::TableStruct;
  friend void ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTargetGlobalImpl();
};
// ===================================================================


// ===================================================================

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// Target

// int32 target_id = 1;
inline void Target::clear_target_id() {
  target_id_ = 0;
}
inline ::google::protobuf::int32 Target::target_id() const {
  // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
  return target_id_;
}
inline void Target::set_target_id(::google::protobuf::int32 value) {
  
  target_id_ = value;
  // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
}

// .google.protobuf.Timestamp snapshot_version = 2;
inline bool Target::has_snapshot_version() const {
  return this != internal_default_instance() && snapshot_version_ != NULL;
}
inline const ::google::protobuf::Timestamp& Target::snapshot_version() const {
  const ::google::protobuf::Timestamp* p = snapshot_version_;
  // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
  return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
      &::google::protobuf::_Timestamp_default_instance_);
}
inline ::google::protobuf::Timestamp* Target::release_snapshot_version() {
  // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
  
  ::google::protobuf::Timestamp* temp = snapshot_version_;
  snapshot_version_ = NULL;
  return temp;
}
inline ::google::protobuf::Timestamp* Target::mutable_snapshot_version() {
  
  if (snapshot_version_ == NULL) {
    snapshot_version_ = new ::google::protobuf::Timestamp;
  }
  // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
  return snapshot_version_;
}
inline void Target::set_allocated_snapshot_version(::google::protobuf::Timestamp* snapshot_version) {
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == NULL) {
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(snapshot_version_);
  }
  if (snapshot_version) {
    ::google::protobuf::Arena* submessage_arena =
      reinterpret_cast< ::google::protobuf::MessageLite*>(snapshot_version)->GetArena();
    if (message_arena != submessage_arena) {
      snapshot_version = ::google::protobuf::internal::GetOwnedMessage(
          message_arena, snapshot_version, submessage_arena);
    }
    
  } else {
    
  }
  snapshot_version_ = snapshot_version;
  // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
}

// bytes resume_token = 3;
inline void Target::clear_resume_token() {
  resume_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& Target::resume_token() const {
  // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
  return resume_token_.GetNoArena();
}
inline void Target::set_resume_token(const ::std::string& value) {
  
  resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
}
#if LANG_CXX11
inline void Target::set_resume_token(::std::string&& value) {
  
  resume_token_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:firestore.client.Target.resume_token)
}
#endif
inline void Target::set_resume_token(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  
  resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:firestore.client.Target.resume_token)
}
inline void Target::set_resume_token(const void* value, size_t size) {
  
  resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:firestore.client.Target.resume_token)
}
inline ::std::string* Target::mutable_resume_token() {
  
  // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
  return resume_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* Target::release_resume_token() {
  // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
  
  return resume_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void Target::set_allocated_resume_token(::std::string* resume_token) {
  if (resume_token != NULL) {
    
  } else {
    
  }
  resume_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resume_token);
  // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
}

// int64 last_listen_sequence_number = 4;
inline void Target::clear_last_listen_sequence_number() {
  last_listen_sequence_number_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 Target::last_listen_sequence_number() const {
  // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
  return last_listen_sequence_number_;
}
inline void Target::set_last_listen_sequence_number(::google::protobuf::int64 value) {
  
  last_listen_sequence_number_ = value;
  // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
}

// .google.firestore.v1beta1.Target.QueryTarget query = 5;
inline bool Target::has_query() const {
  return target_type_case() == kQuery;
}
inline void Target::set_has_query() {
  _oneof_case_[0] = kQuery;
}
inline ::google::firestore::v1beta1::Target_QueryTarget* Target::release_query() {
  // @@protoc_insertion_point(field_release:firestore.client.Target.query)
  if (has_query()) {
    clear_has_target_type();
      ::google::firestore::v1beta1::Target_QueryTarget* temp = target_type_.query_;
    target_type_.query_ = NULL;
    return temp;
  } else {
    return NULL;
  }
}
inline const ::google::firestore::v1beta1::Target_QueryTarget& Target::query() const {
  // @@protoc_insertion_point(field_get:firestore.client.Target.query)
  return has_query()
      ? *target_type_.query_
      : *reinterpret_cast< ::google::firestore::v1beta1::Target_QueryTarget*>(&::google::firestore::v1beta1::_Target_QueryTarget_default_instance_);
}
inline ::google::firestore::v1beta1::Target_QueryTarget* Target::mutable_query() {
  if (!has_query()) {
    clear_target_type();
    set_has_query();
    target_type_.query_ = new ::google::firestore::v1beta1::Target_QueryTarget;
  }
  // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
  return target_type_.query_;
}

// .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
inline bool Target::has_documents() const {
  return target_type_case() == kDocuments;
}
inline void Target::set_has_documents() {
  _oneof_case_[0] = kDocuments;
}
inline ::google::firestore::v1beta1::Target_DocumentsTarget* Target::release_documents() {
  // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
  if (has_documents()) {
    clear_has_target_type();
      ::google::firestore::v1beta1::Target_DocumentsTarget* temp = target_type_.documents_;
    target_type_.documents_ = NULL;
    return temp;
  } else {
    return NULL;
  }
}
inline const ::google::firestore::v1beta1::Target_DocumentsTarget& Target::documents() const {
  // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
  return has_documents()
      ? *target_type_.documents_
      : *reinterpret_cast< ::google::firestore::v1beta1::Target_DocumentsTarget*>(&::google::firestore::v1beta1::_Target_DocumentsTarget_default_instance_);
}
inline ::google::firestore::v1beta1::Target_DocumentsTarget* Target::mutable_documents() {
  if (!has_documents()) {
    clear_target_type();
    set_has_documents();
    target_type_.documents_ = new ::google::firestore::v1beta1::Target_DocumentsTarget;
  }
  // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
  return target_type_.documents_;
}

inline bool Target::has_target_type() const {
  return target_type_case() != TARGET_TYPE_NOT_SET;
}
inline void Target::clear_has_target_type() {
  _oneof_case_[0] = TARGET_TYPE_NOT_SET;
}
inline Target::TargetTypeCase Target::target_type_case() const {
  return Target::TargetTypeCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------

// TargetGlobal

// int32 highest_target_id = 1;
inline void TargetGlobal::clear_highest_target_id() {
  highest_target_id_ = 0;
}
inline ::google::protobuf::int32 TargetGlobal::highest_target_id() const {
  // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
  return highest_target_id_;
}
inline void TargetGlobal::set_highest_target_id(::google::protobuf::int32 value) {
  
  highest_target_id_ = value;
  // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
}

// int64 highest_listen_sequence_number = 2;
inline void TargetGlobal::clear_highest_listen_sequence_number() {
  highest_listen_sequence_number_ = GOOGLE_LONGLONG(0);
}
inline ::google::protobuf::int64 TargetGlobal::highest_listen_sequence_number() const {
  // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
  return highest_listen_sequence_number_;
}
inline void TargetGlobal::set_highest_listen_sequence_number(::google::protobuf::int64 value) {
  
  highest_listen_sequence_number_ = value;
  // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
}

// .google.protobuf.Timestamp last_remote_snapshot_version = 3;
inline bool TargetGlobal::has_last_remote_snapshot_version() const {
  return this != internal_default_instance() && last_remote_snapshot_version_ != NULL;
}
inline const ::google::protobuf::Timestamp& TargetGlobal::last_remote_snapshot_version() const {
  const ::google::protobuf::Timestamp* p = last_remote_snapshot_version_;
  // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
  return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
      &::google::protobuf::_Timestamp_default_instance_);
}
inline ::google::protobuf::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
  // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
  
  ::google::protobuf::Timestamp* temp = last_remote_snapshot_version_;
  last_remote_snapshot_version_ = NULL;
  return temp;
}
inline ::google::protobuf::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() {
  
  if (last_remote_snapshot_version_ == NULL) {
    last_remote_snapshot_version_ = new ::google::protobuf::Timestamp;
  }
  // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
  return last_remote_snapshot_version_;
}
inline void TargetGlobal::set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* last_remote_snapshot_version) {
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  if (message_arena == NULL) {
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_remote_snapshot_version_);
  }
  if (last_remote_snapshot_version) {
    ::google::protobuf::Arena* submessage_arena =
      reinterpret_cast< ::google::protobuf::MessageLite*>(last_remote_snapshot_version)->GetArena();
    if (message_arena != submessage_arena) {
      last_remote_snapshot_version = ::google::protobuf::internal::GetOwnedMessage(
          message_arena, last_remote_snapshot_version, submessage_arena);
    }
    
  } else {
    
  }
  last_remote_snapshot_version_ = last_remote_snapshot_version;
  // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
}

// int32 target_count = 4;
inline void TargetGlobal::clear_target_count() {
  target_count_ = 0;
}
inline ::google::protobuf::int32 TargetGlobal::target_count() const {
  // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
  return target_count_;
}
inline void TargetGlobal::set_target_count(::google::protobuf::int32 value) {
  
  target_count_ = value;
  // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
}

#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__
// -------------------------------------------------------------------


// @@protoc_insertion_point(namespace_scope)

}  // namespace client
}  // namespace firestore

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_firestore_2flocal_2ftarget_2eproto__INCLUDED