aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-04-24 11:31:58 -0400
committerGravatar GitHub <noreply@github.com>2018-04-24 11:31:58 -0400
commit6dfc142888410ef6906970d8cb90f69c0992852a (patch)
tree72b1287cc6143f1d005d03cb710c60a9f3414fd8 /Firestore/Protos
parenta04e782db87b86bacc6a232fae38dcd8d203f5b6 (diff)
Adjust serializer test to verify via libprotobuf. (#1039)
Previously, the tests would compare serialization results against a precomputed (via protoc) array of bytes. Now they serialize via our nanopb based class and deserialize via libprotobuf (and vice versa) and then ensure the result is the same as the input
Diffstat (limited to 'Firestore/Protos')
-rw-r--r--Firestore/Protos/CMakeLists.txt55
-rwxr-xr-xFirestore/Protos/build-protos.sh2
-rw-r--r--Firestore/Protos/cpp/firestore/local/maybe_document.pb.cc862
-rw-r--r--Firestore/Protos/cpp/firestore/local/maybe_document.pb.h541
-rw-r--r--Firestore/Protos/cpp/firestore/local/mutation.pb.cc808
-rw-r--r--Firestore/Protos/cpp/firestore/local/mutation.pb.h502
-rw-r--r--Firestore/Protos/cpp/firestore/local/target.pb.cc1121
-rw-r--r--Firestore/Protos/cpp/firestore/local/target.pb.h695
-rw-r--r--Firestore/Protos/cpp/google/api/annotations.pb.cc106
-rw-r--r--Firestore/Protos/cpp/google/api/annotations.pb.h98
-rw-r--r--Firestore/Protos/cpp/google/api/http.pb.cc1620
-rw-r--r--Firestore/Protos/cpp/google/api/http.pb.h1798
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.cc1803
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.h1082
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.cc2301
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.h1584
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.cc12004
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.h8488
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.cc3941
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.h2592
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.cc3415
-rw-r--r--Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.h2304
-rw-r--r--Firestore/Protos/cpp/google/protobuf/any.pb.cc456
-rw-r--r--Firestore/Protos/cpp/google/protobuf/any.pb.h339
-rw-r--r--Firestore/Protos/cpp/google/protobuf/empty.pb.cc358
-rw-r--r--Firestore/Protos/cpp/google/protobuf/empty.pb.h206
-rw-r--r--Firestore/Protos/cpp/google/protobuf/struct.pb.cc1491
-rw-r--r--Firestore/Protos/cpp/google/protobuf/struct.pb.h1046
-rw-r--r--Firestore/Protos/cpp/google/protobuf/timestamp.pb.cc447
-rw-r--r--Firestore/Protos/cpp/google/protobuf/timestamp.pb.h248
-rw-r--r--Firestore/Protos/cpp/google/protobuf/wrappers.pb.cc2812
-rw-r--r--Firestore/Protos/cpp/google/protobuf/wrappers.pb.h1503
-rw-r--r--Firestore/Protos/cpp/google/rpc/status.pb.cc485
-rw-r--r--Firestore/Protos/cpp/google/rpc/status.pb.h321
-rw-r--r--Firestore/Protos/cpp/google/type/latlng.pb.cc416
-rw-r--r--Firestore/Protos/cpp/google/type/latlng.pb.h233
36 files changed, 58082 insertions, 1 deletions
diff --git a/Firestore/Protos/CMakeLists.txt b/Firestore/Protos/CMakeLists.txt
index de33491..c589a0f 100644
--- a/Firestore/Protos/CMakeLists.txt
+++ b/Firestore/Protos/CMakeLists.txt
@@ -50,3 +50,58 @@ target_include_directories(
firebase_firestore_protos_nanopb PUBLIC
${FIREBASE_SOURCE_DIR}/Firestore/Protos/nanopb
)
+
+# libprotobuf based generated protos. Expected only to be used in test (as
+# libprotobuf[-lite] is too large; we're using nanopb instead. But we do want
+# to test our serialization logic against libprotobuf.)
+cc_library(
+ firebase_firestore_protos_libprotobuf
+ SOURCES
+ cpp/firestore/local/maybe_document.pb.cc
+ cpp/firestore/local/maybe_document.pb.h
+ cpp/firestore/local/mutation.pb.cc
+ cpp/firestore/local/mutation.pb.h
+ cpp/firestore/local/target.pb.cc
+ cpp/firestore/local/target.pb.h
+ cpp/google/api/annotations.pb.cc
+ cpp/google/api/annotations.pb.h
+ cpp/google/api/http.pb.cc
+ cpp/google/api/http.pb.h
+ cpp/google/firestore/v1beta1/common.pb.cc
+ cpp/google/firestore/v1beta1/common.pb.h
+ cpp/google/firestore/v1beta1/document.pb.cc
+ cpp/google/firestore/v1beta1/document.pb.h
+ cpp/google/firestore/v1beta1/firestore.pb.cc
+ cpp/google/firestore/v1beta1/firestore.pb.h
+ cpp/google/firestore/v1beta1/query.pb.cc
+ cpp/google/firestore/v1beta1/query.pb.h
+ cpp/google/firestore/v1beta1/write.pb.cc
+ cpp/google/firestore/v1beta1/write.pb.h
+ cpp/google/protobuf/any.pb.cc
+ cpp/google/protobuf/any.pb.h
+ cpp/google/protobuf/empty.pb.cc
+ cpp/google/protobuf/empty.pb.h
+ cpp/google/protobuf/struct.pb.cc
+ cpp/google/protobuf/struct.pb.h
+ cpp/google/protobuf/timestamp.pb.cc
+ cpp/google/protobuf/timestamp.pb.h
+ cpp/google/protobuf/wrappers.pb.cc
+ cpp/google/protobuf/wrappers.pb.h
+ cpp/google/rpc/status.pb.cc
+ cpp/google/rpc/status.pb.h
+ cpp/google/type/latlng.pb.cc
+ cpp/google/type/latlng.pb.h
+ DEPENDS
+ protobuf
+ EXCLUDE_FROM_ALL
+)
+
+target_include_directories(
+ firebase_firestore_protos_libprotobuf PUBLIC
+ ${FIREBASE_SOURCE_DIR}/Firestore/Protos/cpp
+)
+
+set_target_properties(
+ firebase_firestore_protos_libprotobuf PROPERTIES
+ COMPILE_FLAGS "-Wno-unused-parameter"
+)
diff --git a/Firestore/Protos/build-protos.sh b/Firestore/Protos/build-protos.sh
index a535f16..d55ed55 100755
--- a/Firestore/Protos/build-protos.sh
+++ b/Firestore/Protos/build-protos.sh
@@ -23,7 +23,7 @@ pod update
./Pods/!ProtoCompiler/protoc \
--plugin=protoc-gen-grpc=Pods/\!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin \
--plugin=../../build/external/nanopb/src/nanopb/generator/protoc-gen-nanopb \
- -I protos --objc_out=objc --grpc_out=objc \
+ -I protos --objc_out=objc --grpc_out=objc --cpp_out=cpp \
--nanopb_out="--options-file=protos/%s.options:nanopb" \
`find protos -name *.proto -print | xargs`
diff --git a/Firestore/Protos/cpp/firestore/local/maybe_document.pb.cc b/Firestore/Protos/cpp/firestore/local/maybe_document.pb.cc
new file mode 100644
index 0000000..04f2b26
--- /dev/null
+++ b/Firestore/Protos/cpp/firestore/local/maybe_document.pb.cc
@@ -0,0 +1,862 @@
+/*
+ * 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/maybe_document.proto
+
+#include "firestore/local/maybe_document.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace firestore {
+namespace client {
+class NoDocumentDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<NoDocument>
+ _instance;
+} _NoDocument_default_instance_;
+class MaybeDocumentDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MaybeDocument>
+ _instance;
+ const ::firestore::client::NoDocument* no_document_;
+ const ::google::firestore::v1beta1::Document* document_;
+} _MaybeDocument_default_instance_;
+} // namespace client
+} // namespace firestore
+namespace protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto {
+void InitDefaultsNoDocumentImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::firestore::client::_NoDocument_default_instance_;
+ new (ptr) ::firestore::client::NoDocument();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::firestore::client::NoDocument::InitAsDefaultInstance();
+}
+
+void InitDefaultsNoDocument() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNoDocumentImpl);
+}
+
+void InitDefaultsMaybeDocumentImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsNoDocument();
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ {
+ void* ptr = &::firestore::client::_MaybeDocument_default_instance_;
+ new (ptr) ::firestore::client::MaybeDocument();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::firestore::client::MaybeDocument::InitAsDefaultInstance();
+}
+
+void InitDefaultsMaybeDocument() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMaybeDocumentImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[2];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::NoDocument, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::NoDocument, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::NoDocument, read_time_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::MaybeDocument, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::MaybeDocument, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::firestore::client::MaybeDocumentDefaultTypeInternal, no_document_),
+ offsetof(::firestore::client::MaybeDocumentDefaultTypeInternal, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::MaybeDocument, document_type_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::firestore::client::NoDocument)},
+ { 7, -1, sizeof(::firestore::client::MaybeDocument)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::firestore::client::_NoDocument_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::firestore::client::_MaybeDocument_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "firestore/local/maybe_document.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n$firestore/local/maybe_document.proto\022\020"
+ "firestore.client\032\'google/firestore/v1bet"
+ "a1/document.proto\032\037google/protobuf/times"
+ "tamp.proto\"I\n\nNoDocument\022\014\n\004name\030\001 \001(\t\022-"
+ "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time"
+ "stamp\"\215\001\n\rMaybeDocument\0223\n\013no_document\030\001"
+ " \001(\0132\034.firestore.client.NoDocumentH\000\0226\n\010"
+ "document\030\002 \001(\0132\".google.firestore.v1beta"
+ "1.DocumentH\000B\017\n\rdocument_typeB/\n#com.goo"
+ "gle.firebase.firestore.protoP\001\242\002\005FSTPBb\006"
+ "proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 406);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "firestore/local/maybe_document.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto
+namespace firestore {
+namespace client {
+
+// ===================================================================
+
+void NoDocument::InitAsDefaultInstance() {
+ ::firestore::client::_NoDocument_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void NoDocument::clear_read_time() {
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int NoDocument::kNameFieldNumber;
+const int NoDocument::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+NoDocument::NoDocument()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsNoDocument();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:firestore.client.NoDocument)
+}
+NoDocument::NoDocument(const NoDocument& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.name().size() > 0) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_read_time()) {
+ read_time_ = new ::google::protobuf::Timestamp(*from.read_time_);
+ } else {
+ read_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:firestore.client.NoDocument)
+}
+
+void NoDocument::SharedCtor() {
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ read_time_ = NULL;
+ _cached_size_ = 0;
+}
+
+NoDocument::~NoDocument() {
+ // @@protoc_insertion_point(destructor:firestore.client.NoDocument)
+ SharedDtor();
+}
+
+void NoDocument::SharedDtor() {
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete read_time_;
+}
+
+void NoDocument::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* NoDocument::descriptor() {
+ ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const NoDocument& NoDocument::default_instance() {
+ ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsNoDocument();
+ return *internal_default_instance();
+}
+
+NoDocument* NoDocument::New(::google::protobuf::Arena* arena) const {
+ NoDocument* n = new NoDocument;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void NoDocument::Clear() {
+// @@protoc_insertion_point(message_clear_start:firestore.client.NoDocument)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool NoDocument::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:firestore.client.NoDocument)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string name = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_name()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "firestore.client.NoDocument.name"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:firestore.client.NoDocument)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:firestore.client.NoDocument)
+ return false;
+#undef DO_
+}
+
+void NoDocument::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:firestore.client.NoDocument)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "firestore.client.NoDocument.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->name(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 2;
+ if (this->has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:firestore.client.NoDocument)
+}
+
+::google::protobuf::uint8* NoDocument::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:firestore.client.NoDocument)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "firestore.client.NoDocument.name");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->name(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 2;
+ if (this->has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:firestore.client.NoDocument)
+ return target;
+}
+
+size_t NoDocument::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:firestore.client.NoDocument)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string name = 1;
+ if (this->name().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->name());
+ }
+
+ // .google.protobuf.Timestamp read_time = 2;
+ if (this->has_read_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->read_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void NoDocument::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:firestore.client.NoDocument)
+ GOOGLE_DCHECK_NE(&from, this);
+ const NoDocument* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const NoDocument>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:firestore.client.NoDocument)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:firestore.client.NoDocument)
+ MergeFrom(*source);
+ }
+}
+
+void NoDocument::MergeFrom(const NoDocument& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:firestore.client.NoDocument)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.name().size() > 0) {
+
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_read_time()) {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ }
+}
+
+void NoDocument::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:firestore.client.NoDocument)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void NoDocument::CopyFrom(const NoDocument& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:firestore.client.NoDocument)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool NoDocument::IsInitialized() const {
+ return true;
+}
+
+void NoDocument::Swap(NoDocument* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void NoDocument::InternalSwap(NoDocument* other) {
+ using std::swap;
+ name_.Swap(&other->name_);
+ swap(read_time_, other->read_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata NoDocument::GetMetadata() const {
+ protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void MaybeDocument::InitAsDefaultInstance() {
+ ::firestore::client::_MaybeDocument_default_instance_.no_document_ = const_cast< ::firestore::client::NoDocument*>(
+ ::firestore::client::NoDocument::internal_default_instance());
+ ::firestore::client::_MaybeDocument_default_instance_.document_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+}
+void MaybeDocument::set_allocated_no_document(::firestore::client::NoDocument* no_document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_document_type();
+ if (no_document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ no_document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, no_document, submessage_arena);
+ }
+ set_has_no_document();
+ document_type_.no_document_ = no_document;
+ }
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.MaybeDocument.no_document)
+}
+void MaybeDocument::set_allocated_document(::google::firestore::v1beta1::Document* document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_document_type();
+ if (document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document, submessage_arena);
+ }
+ set_has_document();
+ document_type_.document_ = document;
+ }
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.MaybeDocument.document)
+}
+void MaybeDocument::clear_document() {
+ if (has_document()) {
+ delete document_type_.document_;
+ clear_has_document_type();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int MaybeDocument::kNoDocumentFieldNumber;
+const int MaybeDocument::kDocumentFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+MaybeDocument::MaybeDocument()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsMaybeDocument();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:firestore.client.MaybeDocument)
+}
+MaybeDocument::MaybeDocument(const MaybeDocument& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_document_type();
+ switch (from.document_type_case()) {
+ case kNoDocument: {
+ mutable_no_document()->::firestore::client::NoDocument::MergeFrom(from.no_document());
+ break;
+ }
+ case kDocument: {
+ mutable_document()->::google::firestore::v1beta1::Document::MergeFrom(from.document());
+ break;
+ }
+ case DOCUMENT_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:firestore.client.MaybeDocument)
+}
+
+void MaybeDocument::SharedCtor() {
+ clear_has_document_type();
+ _cached_size_ = 0;
+}
+
+MaybeDocument::~MaybeDocument() {
+ // @@protoc_insertion_point(destructor:firestore.client.MaybeDocument)
+ SharedDtor();
+}
+
+void MaybeDocument::SharedDtor() {
+ if (has_document_type()) {
+ clear_document_type();
+ }
+}
+
+void MaybeDocument::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* MaybeDocument::descriptor() {
+ ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const MaybeDocument& MaybeDocument::default_instance() {
+ ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsMaybeDocument();
+ return *internal_default_instance();
+}
+
+MaybeDocument* MaybeDocument::New(::google::protobuf::Arena* arena) const {
+ MaybeDocument* n = new MaybeDocument;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void MaybeDocument::clear_document_type() {
+// @@protoc_insertion_point(one_of_clear_start:firestore.client.MaybeDocument)
+ switch (document_type_case()) {
+ case kNoDocument: {
+ delete document_type_.no_document_;
+ break;
+ }
+ case kDocument: {
+ delete document_type_.document_;
+ break;
+ }
+ case DOCUMENT_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = DOCUMENT_TYPE_NOT_SET;
+}
+
+
+void MaybeDocument::Clear() {
+// @@protoc_insertion_point(message_clear_start:firestore.client.MaybeDocument)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_document_type();
+ _internal_metadata_.Clear();
+}
+
+bool MaybeDocument::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:firestore.client.MaybeDocument)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .firestore.client.NoDocument no_document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_no_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Document document = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:firestore.client.MaybeDocument)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:firestore.client.MaybeDocument)
+ return false;
+#undef DO_
+}
+
+void MaybeDocument::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:firestore.client.MaybeDocument)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .firestore.client.NoDocument no_document = 1;
+ if (has_no_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *document_type_.no_document_, output);
+ }
+
+ // .google.firestore.v1beta1.Document document = 2;
+ if (has_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *document_type_.document_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:firestore.client.MaybeDocument)
+}
+
+::google::protobuf::uint8* MaybeDocument::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:firestore.client.MaybeDocument)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .firestore.client.NoDocument no_document = 1;
+ if (has_no_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *document_type_.no_document_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.Document document = 2;
+ if (has_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *document_type_.document_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:firestore.client.MaybeDocument)
+ return target;
+}
+
+size_t MaybeDocument::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:firestore.client.MaybeDocument)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (document_type_case()) {
+ // .firestore.client.NoDocument no_document = 1;
+ case kNoDocument: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *document_type_.no_document_);
+ break;
+ }
+ // .google.firestore.v1beta1.Document document = 2;
+ case kDocument: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *document_type_.document_);
+ break;
+ }
+ case DOCUMENT_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void MaybeDocument::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:firestore.client.MaybeDocument)
+ GOOGLE_DCHECK_NE(&from, this);
+ const MaybeDocument* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const MaybeDocument>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:firestore.client.MaybeDocument)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:firestore.client.MaybeDocument)
+ MergeFrom(*source);
+ }
+}
+
+void MaybeDocument::MergeFrom(const MaybeDocument& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:firestore.client.MaybeDocument)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.document_type_case()) {
+ case kNoDocument: {
+ mutable_no_document()->::firestore::client::NoDocument::MergeFrom(from.no_document());
+ break;
+ }
+ case kDocument: {
+ mutable_document()->::google::firestore::v1beta1::Document::MergeFrom(from.document());
+ break;
+ }
+ case DOCUMENT_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void MaybeDocument::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:firestore.client.MaybeDocument)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void MaybeDocument::CopyFrom(const MaybeDocument& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:firestore.client.MaybeDocument)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool MaybeDocument::IsInitialized() const {
+ return true;
+}
+
+void MaybeDocument::Swap(MaybeDocument* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MaybeDocument::InternalSwap(MaybeDocument* other) {
+ using std::swap;
+ swap(document_type_, other->document_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata MaybeDocument::GetMetadata() const {
+ protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace client
+} // namespace firestore
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/firestore/local/maybe_document.pb.h b/Firestore/Protos/cpp/firestore/local/maybe_document.pb.h
new file mode 100644
index 0000000..34125fa
--- /dev/null
+++ b/Firestore/Protos/cpp/firestore/local/maybe_document.pb.h
@@ -0,0 +1,541 @@
+/*
+ * 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/maybe_document.proto
+
+#ifndef PROTOBUF_firestore_2flocal_2fmaybe_5fdocument_2eproto__INCLUDED
+#define PROTOBUF_firestore_2flocal_2fmaybe_5fdocument_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/document.pb.h"
+#include <google/protobuf/timestamp.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_firestore_2flocal_2fmaybe_5fdocument_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 InitDefaultsNoDocumentImpl();
+void InitDefaultsNoDocument();
+void InitDefaultsMaybeDocumentImpl();
+void InitDefaultsMaybeDocument();
+inline void InitDefaults() {
+ InitDefaultsNoDocument();
+ InitDefaultsMaybeDocument();
+}
+} // namespace protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto
+namespace firestore {
+namespace client {
+class MaybeDocument;
+class MaybeDocumentDefaultTypeInternal;
+extern MaybeDocumentDefaultTypeInternal _MaybeDocument_default_instance_;
+class NoDocument;
+class NoDocumentDefaultTypeInternal;
+extern NoDocumentDefaultTypeInternal _NoDocument_default_instance_;
+} // namespace client
+} // namespace firestore
+namespace firestore {
+namespace client {
+
+// ===================================================================
+
+class NoDocument : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.NoDocument) */ {
+ public:
+ NoDocument();
+ virtual ~NoDocument();
+
+ NoDocument(const NoDocument& from);
+
+ inline NoDocument& operator=(const NoDocument& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ NoDocument(NoDocument&& from) noexcept
+ : NoDocument() {
+ *this = ::std::move(from);
+ }
+
+ inline NoDocument& operator=(NoDocument&& 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 NoDocument& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const NoDocument* internal_default_instance() {
+ return reinterpret_cast<const NoDocument*>(
+ &_NoDocument_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(NoDocument* other);
+ friend void swap(NoDocument& a, NoDocument& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline NoDocument* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ NoDocument* 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 NoDocument& from);
+ void MergeFrom(const NoDocument& 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(NoDocument* 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 -------------------------------------------------------
+
+ // string name = 1;
+ void clear_name();
+ static const int kNameFieldNumber = 1;
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
+
+ // .google.protobuf.Timestamp read_time = 2;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 2;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ // @@protoc_insertion_point(class_scope:firestore.client.NoDocument)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
+ ::google::protobuf::Timestamp* read_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::TableStruct;
+ friend void ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsNoDocumentImpl();
+};
+// -------------------------------------------------------------------
+
+class MaybeDocument : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.MaybeDocument) */ {
+ public:
+ MaybeDocument();
+ virtual ~MaybeDocument();
+
+ MaybeDocument(const MaybeDocument& from);
+
+ inline MaybeDocument& operator=(const MaybeDocument& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ MaybeDocument(MaybeDocument&& from) noexcept
+ : MaybeDocument() {
+ *this = ::std::move(from);
+ }
+
+ inline MaybeDocument& operator=(MaybeDocument&& 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 MaybeDocument& default_instance();
+
+ enum DocumentTypeCase {
+ kNoDocument = 1,
+ kDocument = 2,
+ DOCUMENT_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MaybeDocument* internal_default_instance() {
+ return reinterpret_cast<const MaybeDocument*>(
+ &_MaybeDocument_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(MaybeDocument* other);
+ friend void swap(MaybeDocument& a, MaybeDocument& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline MaybeDocument* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ MaybeDocument* 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 MaybeDocument& from);
+ void MergeFrom(const MaybeDocument& 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(MaybeDocument* 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 -------------------------------------------------------
+
+ // .firestore.client.NoDocument no_document = 1;
+ bool has_no_document() const;
+ void clear_no_document();
+ static const int kNoDocumentFieldNumber = 1;
+ const ::firestore::client::NoDocument& no_document() const;
+ ::firestore::client::NoDocument* release_no_document();
+ ::firestore::client::NoDocument* mutable_no_document();
+ void set_allocated_no_document(::firestore::client::NoDocument* no_document);
+
+ // .google.firestore.v1beta1.Document document = 2;
+ bool has_document() const;
+ void clear_document();
+ static const int kDocumentFieldNumber = 2;
+ const ::google::firestore::v1beta1::Document& document() const;
+ ::google::firestore::v1beta1::Document* release_document();
+ ::google::firestore::v1beta1::Document* mutable_document();
+ void set_allocated_document(::google::firestore::v1beta1::Document* document);
+
+ DocumentTypeCase document_type_case() const;
+ // @@protoc_insertion_point(class_scope:firestore.client.MaybeDocument)
+ private:
+ void set_has_no_document();
+ void set_has_document();
+
+ inline bool has_document_type() const;
+ void clear_document_type();
+ inline void clear_has_document_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union DocumentTypeUnion {
+ DocumentTypeUnion() {}
+ ::firestore::client::NoDocument* no_document_;
+ ::google::firestore::v1beta1::Document* document_;
+ } document_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::TableStruct;
+ friend void ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsMaybeDocumentImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// NoDocument
+
+// string name = 1;
+inline void NoDocument::clear_name() {
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& NoDocument::name() const {
+ // @@protoc_insertion_point(field_get:firestore.client.NoDocument.name)
+ return name_.GetNoArena();
+}
+inline void NoDocument::set_name(const ::std::string& value) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:firestore.client.NoDocument.name)
+}
+#if LANG_CXX11
+inline void NoDocument::set_name(::std::string&& value) {
+
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:firestore.client.NoDocument.name)
+}
+#endif
+inline void NoDocument::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:firestore.client.NoDocument.name)
+}
+inline void NoDocument::set_name(const char* value, size_t size) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:firestore.client.NoDocument.name)
+}
+inline ::std::string* NoDocument::mutable_name() {
+
+ // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* NoDocument::release_name() {
+ // @@protoc_insertion_point(field_release:firestore.client.NoDocument.name)
+
+ return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void NoDocument::set_allocated_name(::std::string* name) {
+ if (name != NULL) {
+
+ } else {
+
+ }
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.name)
+}
+
+// .google.protobuf.Timestamp read_time = 2;
+inline bool NoDocument::has_read_time() const {
+ return this != internal_default_instance() && read_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& NoDocument::read_time() const {
+ const ::google::protobuf::Timestamp* p = read_time_;
+ // @@protoc_insertion_point(field_get:firestore.client.NoDocument.read_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* NoDocument::release_read_time() {
+ // @@protoc_insertion_point(field_release:firestore.client.NoDocument.read_time)
+
+ ::google::protobuf::Timestamp* temp = read_time_;
+ read_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* NoDocument::mutable_read_time() {
+
+ if (read_time_ == NULL) {
+ read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.read_time)
+ return read_time_;
+}
+inline void NoDocument::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_time_);
+ }
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ read_time_ = read_time;
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.read_time)
+}
+
+// -------------------------------------------------------------------
+
+// MaybeDocument
+
+// .firestore.client.NoDocument no_document = 1;
+inline bool MaybeDocument::has_no_document() const {
+ return document_type_case() == kNoDocument;
+}
+inline void MaybeDocument::set_has_no_document() {
+ _oneof_case_[0] = kNoDocument;
+}
+inline void MaybeDocument::clear_no_document() {
+ if (has_no_document()) {
+ delete document_type_.no_document_;
+ clear_has_document_type();
+ }
+}
+inline ::firestore::client::NoDocument* MaybeDocument::release_no_document() {
+ // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.no_document)
+ if (has_no_document()) {
+ clear_has_document_type();
+ ::firestore::client::NoDocument* temp = document_type_.no_document_;
+ document_type_.no_document_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::firestore::client::NoDocument& MaybeDocument::no_document() const {
+ // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.no_document)
+ return has_no_document()
+ ? *document_type_.no_document_
+ : *reinterpret_cast< ::firestore::client::NoDocument*>(&::firestore::client::_NoDocument_default_instance_);
+}
+inline ::firestore::client::NoDocument* MaybeDocument::mutable_no_document() {
+ if (!has_no_document()) {
+ clear_document_type();
+ set_has_no_document();
+ document_type_.no_document_ = new ::firestore::client::NoDocument;
+ }
+ // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.no_document)
+ return document_type_.no_document_;
+}
+
+// .google.firestore.v1beta1.Document document = 2;
+inline bool MaybeDocument::has_document() const {
+ return document_type_case() == kDocument;
+}
+inline void MaybeDocument::set_has_document() {
+ _oneof_case_[0] = kDocument;
+}
+inline ::google::firestore::v1beta1::Document* MaybeDocument::release_document() {
+ // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.document)
+ if (has_document()) {
+ clear_has_document_type();
+ ::google::firestore::v1beta1::Document* temp = document_type_.document_;
+ document_type_.document_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::Document& MaybeDocument::document() const {
+ // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.document)
+ return has_document()
+ ? *document_type_.document_
+ : *reinterpret_cast< ::google::firestore::v1beta1::Document*>(&::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* MaybeDocument::mutable_document() {
+ if (!has_document()) {
+ clear_document_type();
+ set_has_document();
+ document_type_.document_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.document)
+ return document_type_.document_;
+}
+
+inline bool MaybeDocument::has_document_type() const {
+ return document_type_case() != DOCUMENT_TYPE_NOT_SET;
+}
+inline void MaybeDocument::clear_has_document_type() {
+ _oneof_case_[0] = DOCUMENT_TYPE_NOT_SET;
+}
+inline MaybeDocument::DocumentTypeCase MaybeDocument::document_type_case() const {
+ return MaybeDocument::DocumentTypeCase(_oneof_case_[0]);
+}
+#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_2fmaybe_5fdocument_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/firestore/local/mutation.pb.cc b/Firestore/Protos/cpp/firestore/local/mutation.pb.cc
new file mode 100644
index 0000000..e6c88d7
--- /dev/null
+++ b/Firestore/Protos/cpp/firestore/local/mutation.pb.cc
@@ -0,0 +1,808 @@
+/*
+ * 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/mutation.proto
+
+#include "firestore/local/mutation.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace firestore {
+namespace client {
+class MutationQueueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MutationQueue>
+ _instance;
+} _MutationQueue_default_instance_;
+class WriteBatchDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<WriteBatch>
+ _instance;
+} _WriteBatch_default_instance_;
+} // namespace client
+} // namespace firestore
+namespace protobuf_firestore_2flocal_2fmutation_2eproto {
+void InitDefaultsMutationQueueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::firestore::client::_MutationQueue_default_instance_;
+ new (ptr) ::firestore::client::MutationQueue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::firestore::client::MutationQueue::InitAsDefaultInstance();
+}
+
+void InitDefaultsMutationQueue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMutationQueueImpl);
+}
+
+void InitDefaultsWriteBatchImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWrite();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::firestore::client::_WriteBatch_default_instance_;
+ new (ptr) ::firestore::client::WriteBatch();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::firestore::client::WriteBatch::InitAsDefaultInstance();
+}
+
+void InitDefaultsWriteBatch() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteBatchImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[2];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::MutationQueue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::MutationQueue, last_acknowledged_batch_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::MutationQueue, last_stream_token_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::WriteBatch, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::WriteBatch, batch_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::WriteBatch, writes_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::WriteBatch, local_write_time_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::firestore::client::MutationQueue)},
+ { 7, -1, sizeof(::firestore::client::WriteBatch)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::firestore::client::_MutationQueue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::firestore::client::_WriteBatch_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "firestore/local/mutation.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\036firestore/local/mutation.proto\022\020firest"
+ "ore.client\032$google/firestore/v1beta1/wri"
+ "te.proto\032\037google/protobuf/timestamp.prot"
+ "o\"N\n\rMutationQueue\022\"\n\032last_acknowledged_"
+ "batch_id\030\001 \001(\005\022\031\n\021last_stream_token\030\002 \001("
+ "\014\"\205\001\n\nWriteBatch\022\020\n\010batch_id\030\001 \001(\005\022/\n\006wr"
+ "ites\030\002 \003(\0132\037.google.firestore.v1beta1.Wr"
+ "ite\0224\n\020local_write_time\030\003 \001(\0132\032.google.p"
+ "rotobuf.TimestampB/\n#com.google.firebase"
+ ".firestore.protoP\001\242\002\005FSTPBb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 394);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "firestore/local/mutation.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_firestore_2flocal_2fmutation_2eproto
+namespace firestore {
+namespace client {
+
+// ===================================================================
+
+void MutationQueue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int MutationQueue::kLastAcknowledgedBatchIdFieldNumber;
+const int MutationQueue::kLastStreamTokenFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+MutationQueue::MutationQueue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_firestore_2flocal_2fmutation_2eproto::InitDefaultsMutationQueue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:firestore.client.MutationQueue)
+}
+MutationQueue::MutationQueue(const MutationQueue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ last_stream_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.last_stream_token().size() > 0) {
+ last_stream_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.last_stream_token_);
+ }
+ last_acknowledged_batch_id_ = from.last_acknowledged_batch_id_;
+ // @@protoc_insertion_point(copy_constructor:firestore.client.MutationQueue)
+}
+
+void MutationQueue::SharedCtor() {
+ last_stream_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ last_acknowledged_batch_id_ = 0;
+ _cached_size_ = 0;
+}
+
+MutationQueue::~MutationQueue() {
+ // @@protoc_insertion_point(destructor:firestore.client.MutationQueue)
+ SharedDtor();
+}
+
+void MutationQueue::SharedDtor() {
+ last_stream_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void MutationQueue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* MutationQueue::descriptor() {
+ ::protobuf_firestore_2flocal_2fmutation_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmutation_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const MutationQueue& MutationQueue::default_instance() {
+ ::protobuf_firestore_2flocal_2fmutation_2eproto::InitDefaultsMutationQueue();
+ return *internal_default_instance();
+}
+
+MutationQueue* MutationQueue::New(::google::protobuf::Arena* arena) const {
+ MutationQueue* n = new MutationQueue;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void MutationQueue::Clear() {
+// @@protoc_insertion_point(message_clear_start:firestore.client.MutationQueue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ last_stream_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ last_acknowledged_batch_id_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool MutationQueue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:firestore.client.MutationQueue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 last_acknowledged_batch_id = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &last_acknowledged_batch_id_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes last_stream_token = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_last_stream_token()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:firestore.client.MutationQueue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:firestore.client.MutationQueue)
+ return false;
+#undef DO_
+}
+
+void MutationQueue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:firestore.client.MutationQueue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 last_acknowledged_batch_id = 1;
+ if (this->last_acknowledged_batch_id() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->last_acknowledged_batch_id(), output);
+ }
+
+ // bytes last_stream_token = 2;
+ if (this->last_stream_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 2, this->last_stream_token(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:firestore.client.MutationQueue)
+}
+
+::google::protobuf::uint8* MutationQueue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:firestore.client.MutationQueue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 last_acknowledged_batch_id = 1;
+ if (this->last_acknowledged_batch_id() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->last_acknowledged_batch_id(), target);
+ }
+
+ // bytes last_stream_token = 2;
+ if (this->last_stream_token().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 2, this->last_stream_token(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:firestore.client.MutationQueue)
+ return target;
+}
+
+size_t MutationQueue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:firestore.client.MutationQueue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes last_stream_token = 2;
+ if (this->last_stream_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->last_stream_token());
+ }
+
+ // int32 last_acknowledged_batch_id = 1;
+ if (this->last_acknowledged_batch_id() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->last_acknowledged_batch_id());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void MutationQueue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:firestore.client.MutationQueue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const MutationQueue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const MutationQueue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:firestore.client.MutationQueue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:firestore.client.MutationQueue)
+ MergeFrom(*source);
+ }
+}
+
+void MutationQueue::MergeFrom(const MutationQueue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:firestore.client.MutationQueue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.last_stream_token().size() > 0) {
+
+ last_stream_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.last_stream_token_);
+ }
+ if (from.last_acknowledged_batch_id() != 0) {
+ set_last_acknowledged_batch_id(from.last_acknowledged_batch_id());
+ }
+}
+
+void MutationQueue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:firestore.client.MutationQueue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void MutationQueue::CopyFrom(const MutationQueue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:firestore.client.MutationQueue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool MutationQueue::IsInitialized() const {
+ return true;
+}
+
+void MutationQueue::Swap(MutationQueue* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MutationQueue::InternalSwap(MutationQueue* other) {
+ using std::swap;
+ last_stream_token_.Swap(&other->last_stream_token_);
+ swap(last_acknowledged_batch_id_, other->last_acknowledged_batch_id_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata MutationQueue::GetMetadata() const {
+ protobuf_firestore_2flocal_2fmutation_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmutation_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void WriteBatch::InitAsDefaultInstance() {
+ ::firestore::client::_WriteBatch_default_instance_._instance.get_mutable()->local_write_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void WriteBatch::clear_writes() {
+ writes_.Clear();
+}
+void WriteBatch::clear_local_write_time() {
+ if (GetArenaNoVirtual() == NULL && local_write_time_ != NULL) {
+ delete local_write_time_;
+ }
+ local_write_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int WriteBatch::kBatchIdFieldNumber;
+const int WriteBatch::kWritesFieldNumber;
+const int WriteBatch::kLocalWriteTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+WriteBatch::WriteBatch()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_firestore_2flocal_2fmutation_2eproto::InitDefaultsWriteBatch();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:firestore.client.WriteBatch)
+}
+WriteBatch::WriteBatch(const WriteBatch& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ writes_(from.writes_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_local_write_time()) {
+ local_write_time_ = new ::google::protobuf::Timestamp(*from.local_write_time_);
+ } else {
+ local_write_time_ = NULL;
+ }
+ batch_id_ = from.batch_id_;
+ // @@protoc_insertion_point(copy_constructor:firestore.client.WriteBatch)
+}
+
+void WriteBatch::SharedCtor() {
+ ::memset(&local_write_time_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&batch_id_) -
+ reinterpret_cast<char*>(&local_write_time_)) + sizeof(batch_id_));
+ _cached_size_ = 0;
+}
+
+WriteBatch::~WriteBatch() {
+ // @@protoc_insertion_point(destructor:firestore.client.WriteBatch)
+ SharedDtor();
+}
+
+void WriteBatch::SharedDtor() {
+ if (this != internal_default_instance()) delete local_write_time_;
+}
+
+void WriteBatch::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* WriteBatch::descriptor() {
+ ::protobuf_firestore_2flocal_2fmutation_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmutation_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const WriteBatch& WriteBatch::default_instance() {
+ ::protobuf_firestore_2flocal_2fmutation_2eproto::InitDefaultsWriteBatch();
+ return *internal_default_instance();
+}
+
+WriteBatch* WriteBatch::New(::google::protobuf::Arena* arena) const {
+ WriteBatch* n = new WriteBatch;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void WriteBatch::Clear() {
+// @@protoc_insertion_point(message_clear_start:firestore.client.WriteBatch)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ writes_.Clear();
+ if (GetArenaNoVirtual() == NULL && local_write_time_ != NULL) {
+ delete local_write_time_;
+ }
+ local_write_time_ = NULL;
+ batch_id_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool WriteBatch::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:firestore.client.WriteBatch)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 batch_id = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &batch_id_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_writes()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp local_write_time = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_local_write_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:firestore.client.WriteBatch)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:firestore.client.WriteBatch)
+ return false;
+#undef DO_
+}
+
+void WriteBatch::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:firestore.client.WriteBatch)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 batch_id = 1;
+ if (this->batch_id() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->batch_id(), output);
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->writes_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->writes(static_cast<int>(i)), output);
+ }
+
+ // .google.protobuf.Timestamp local_write_time = 3;
+ if (this->has_local_write_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->local_write_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:firestore.client.WriteBatch)
+}
+
+::google::protobuf::uint8* WriteBatch::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:firestore.client.WriteBatch)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 batch_id = 1;
+ if (this->batch_id() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->batch_id(), target);
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->writes_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->writes(static_cast<int>(i)), deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp local_write_time = 3;
+ if (this->has_local_write_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->local_write_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:firestore.client.WriteBatch)
+ return target;
+}
+
+size_t WriteBatch::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:firestore.client.WriteBatch)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->writes_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->writes(static_cast<int>(i)));
+ }
+ }
+
+ // .google.protobuf.Timestamp local_write_time = 3;
+ if (this->has_local_write_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->local_write_time_);
+ }
+
+ // int32 batch_id = 1;
+ if (this->batch_id() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->batch_id());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void WriteBatch::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:firestore.client.WriteBatch)
+ GOOGLE_DCHECK_NE(&from, this);
+ const WriteBatch* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const WriteBatch>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:firestore.client.WriteBatch)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:firestore.client.WriteBatch)
+ MergeFrom(*source);
+ }
+}
+
+void WriteBatch::MergeFrom(const WriteBatch& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:firestore.client.WriteBatch)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ writes_.MergeFrom(from.writes_);
+ if (from.has_local_write_time()) {
+ mutable_local_write_time()->::google::protobuf::Timestamp::MergeFrom(from.local_write_time());
+ }
+ if (from.batch_id() != 0) {
+ set_batch_id(from.batch_id());
+ }
+}
+
+void WriteBatch::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:firestore.client.WriteBatch)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void WriteBatch::CopyFrom(const WriteBatch& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:firestore.client.WriteBatch)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool WriteBatch::IsInitialized() const {
+ return true;
+}
+
+void WriteBatch::Swap(WriteBatch* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void WriteBatch::InternalSwap(WriteBatch* other) {
+ using std::swap;
+ writes_.InternalSwap(&other->writes_);
+ swap(local_write_time_, other->local_write_time_);
+ swap(batch_id_, other->batch_id_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata WriteBatch::GetMetadata() const {
+ protobuf_firestore_2flocal_2fmutation_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2fmutation_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace client
+} // namespace firestore
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/firestore/local/mutation.pb.h b/Firestore/Protos/cpp/firestore/local/mutation.pb.h
new file mode 100644
index 0000000..24ad8f1
--- /dev/null
+++ b/Firestore/Protos/cpp/firestore/local/mutation.pb.h
@@ -0,0 +1,502 @@
+/*
+ * 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/mutation.proto
+
+#ifndef PROTOBUF_firestore_2flocal_2fmutation_2eproto__INCLUDED
+#define PROTOBUF_firestore_2flocal_2fmutation_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/write.pb.h"
+#include <google/protobuf/timestamp.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_firestore_2flocal_2fmutation_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 InitDefaultsMutationQueueImpl();
+void InitDefaultsMutationQueue();
+void InitDefaultsWriteBatchImpl();
+void InitDefaultsWriteBatch();
+inline void InitDefaults() {
+ InitDefaultsMutationQueue();
+ InitDefaultsWriteBatch();
+}
+} // namespace protobuf_firestore_2flocal_2fmutation_2eproto
+namespace firestore {
+namespace client {
+class MutationQueue;
+class MutationQueueDefaultTypeInternal;
+extern MutationQueueDefaultTypeInternal _MutationQueue_default_instance_;
+class WriteBatch;
+class WriteBatchDefaultTypeInternal;
+extern WriteBatchDefaultTypeInternal _WriteBatch_default_instance_;
+} // namespace client
+} // namespace firestore
+namespace firestore {
+namespace client {
+
+// ===================================================================
+
+class MutationQueue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.MutationQueue) */ {
+ public:
+ MutationQueue();
+ virtual ~MutationQueue();
+
+ MutationQueue(const MutationQueue& from);
+
+ inline MutationQueue& operator=(const MutationQueue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ MutationQueue(MutationQueue&& from) noexcept
+ : MutationQueue() {
+ *this = ::std::move(from);
+ }
+
+ inline MutationQueue& operator=(MutationQueue&& 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 MutationQueue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MutationQueue* internal_default_instance() {
+ return reinterpret_cast<const MutationQueue*>(
+ &_MutationQueue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(MutationQueue* other);
+ friend void swap(MutationQueue& a, MutationQueue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline MutationQueue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ MutationQueue* 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 MutationQueue& from);
+ void MergeFrom(const MutationQueue& 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(MutationQueue* 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 last_stream_token = 2;
+ void clear_last_stream_token();
+ static const int kLastStreamTokenFieldNumber = 2;
+ const ::std::string& last_stream_token() const;
+ void set_last_stream_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_last_stream_token(::std::string&& value);
+ #endif
+ void set_last_stream_token(const char* value);
+ void set_last_stream_token(const void* value, size_t size);
+ ::std::string* mutable_last_stream_token();
+ ::std::string* release_last_stream_token();
+ void set_allocated_last_stream_token(::std::string* last_stream_token);
+
+ // int32 last_acknowledged_batch_id = 1;
+ void clear_last_acknowledged_batch_id();
+ static const int kLastAcknowledgedBatchIdFieldNumber = 1;
+ ::google::protobuf::int32 last_acknowledged_batch_id() const;
+ void set_last_acknowledged_batch_id(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:firestore.client.MutationQueue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr last_stream_token_;
+ ::google::protobuf::int32 last_acknowledged_batch_id_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_firestore_2flocal_2fmutation_2eproto::TableStruct;
+ friend void ::protobuf_firestore_2flocal_2fmutation_2eproto::InitDefaultsMutationQueueImpl();
+};
+// -------------------------------------------------------------------
+
+class WriteBatch : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.WriteBatch) */ {
+ public:
+ WriteBatch();
+ virtual ~WriteBatch();
+
+ WriteBatch(const WriteBatch& from);
+
+ inline WriteBatch& operator=(const WriteBatch& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ WriteBatch(WriteBatch&& from) noexcept
+ : WriteBatch() {
+ *this = ::std::move(from);
+ }
+
+ inline WriteBatch& operator=(WriteBatch&& 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 WriteBatch& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const WriteBatch* internal_default_instance() {
+ return reinterpret_cast<const WriteBatch*>(
+ &_WriteBatch_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(WriteBatch* other);
+ friend void swap(WriteBatch& a, WriteBatch& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline WriteBatch* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ WriteBatch* 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 WriteBatch& from);
+ void MergeFrom(const WriteBatch& 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(WriteBatch* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ int writes_size() const;
+ void clear_writes();
+ static const int kWritesFieldNumber = 2;
+ const ::google::firestore::v1beta1::Write& writes(int index) const;
+ ::google::firestore::v1beta1::Write* mutable_writes(int index);
+ ::google::firestore::v1beta1::Write* add_writes();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >*
+ mutable_writes();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >&
+ writes() const;
+
+ // .google.protobuf.Timestamp local_write_time = 3;
+ bool has_local_write_time() const;
+ void clear_local_write_time();
+ static const int kLocalWriteTimeFieldNumber = 3;
+ const ::google::protobuf::Timestamp& local_write_time() const;
+ ::google::protobuf::Timestamp* release_local_write_time();
+ ::google::protobuf::Timestamp* mutable_local_write_time();
+ void set_allocated_local_write_time(::google::protobuf::Timestamp* local_write_time);
+
+ // int32 batch_id = 1;
+ void clear_batch_id();
+ static const int kBatchIdFieldNumber = 1;
+ ::google::protobuf::int32 batch_id() const;
+ void set_batch_id(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:firestore.client.WriteBatch)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write > writes_;
+ ::google::protobuf::Timestamp* local_write_time_;
+ ::google::protobuf::int32 batch_id_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_firestore_2flocal_2fmutation_2eproto::TableStruct;
+ friend void ::protobuf_firestore_2flocal_2fmutation_2eproto::InitDefaultsWriteBatchImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// MutationQueue
+
+// int32 last_acknowledged_batch_id = 1;
+inline void MutationQueue::clear_last_acknowledged_batch_id() {
+ last_acknowledged_batch_id_ = 0;
+}
+inline ::google::protobuf::int32 MutationQueue::last_acknowledged_batch_id() const {
+ // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_acknowledged_batch_id)
+ return last_acknowledged_batch_id_;
+}
+inline void MutationQueue::set_last_acknowledged_batch_id(::google::protobuf::int32 value) {
+
+ last_acknowledged_batch_id_ = value;
+ // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_acknowledged_batch_id)
+}
+
+// bytes last_stream_token = 2;
+inline void MutationQueue::clear_last_stream_token() {
+ last_stream_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& MutationQueue::last_stream_token() const {
+ // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_stream_token)
+ return last_stream_token_.GetNoArena();
+}
+inline void MutationQueue::set_last_stream_token(const ::std::string& value) {
+
+ last_stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_stream_token)
+}
+#if LANG_CXX11
+inline void MutationQueue::set_last_stream_token(::std::string&& value) {
+
+ last_stream_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:firestore.client.MutationQueue.last_stream_token)
+}
+#endif
+inline void MutationQueue::set_last_stream_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ last_stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:firestore.client.MutationQueue.last_stream_token)
+}
+inline void MutationQueue::set_last_stream_token(const void* value, size_t size) {
+
+ last_stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:firestore.client.MutationQueue.last_stream_token)
+}
+inline ::std::string* MutationQueue::mutable_last_stream_token() {
+
+ // @@protoc_insertion_point(field_mutable:firestore.client.MutationQueue.last_stream_token)
+ return last_stream_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* MutationQueue::release_last_stream_token() {
+ // @@protoc_insertion_point(field_release:firestore.client.MutationQueue.last_stream_token)
+
+ return last_stream_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void MutationQueue::set_allocated_last_stream_token(::std::string* last_stream_token) {
+ if (last_stream_token != NULL) {
+
+ } else {
+
+ }
+ last_stream_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), last_stream_token);
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.MutationQueue.last_stream_token)
+}
+
+// -------------------------------------------------------------------
+
+// WriteBatch
+
+// int32 batch_id = 1;
+inline void WriteBatch::clear_batch_id() {
+ batch_id_ = 0;
+}
+inline ::google::protobuf::int32 WriteBatch::batch_id() const {
+ // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.batch_id)
+ return batch_id_;
+}
+inline void WriteBatch::set_batch_id(::google::protobuf::int32 value) {
+
+ batch_id_ = value;
+ // @@protoc_insertion_point(field_set:firestore.client.WriteBatch.batch_id)
+}
+
+// repeated .google.firestore.v1beta1.Write writes = 2;
+inline int WriteBatch::writes_size() const {
+ return writes_.size();
+}
+inline const ::google::firestore::v1beta1::Write& WriteBatch::writes(int index) const {
+ // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.writes)
+ return writes_.Get(index);
+}
+inline ::google::firestore::v1beta1::Write* WriteBatch::mutable_writes(int index) {
+ // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.writes)
+ return writes_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Write* WriteBatch::add_writes() {
+ // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.writes)
+ return writes_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >*
+WriteBatch::mutable_writes() {
+ // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.writes)
+ return &writes_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >&
+WriteBatch::writes() const {
+ // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.writes)
+ return writes_;
+}
+
+// .google.protobuf.Timestamp local_write_time = 3;
+inline bool WriteBatch::has_local_write_time() const {
+ return this != internal_default_instance() && local_write_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& WriteBatch::local_write_time() const {
+ const ::google::protobuf::Timestamp* p = local_write_time_;
+ // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.local_write_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* WriteBatch::release_local_write_time() {
+ // @@protoc_insertion_point(field_release:firestore.client.WriteBatch.local_write_time)
+
+ ::google::protobuf::Timestamp* temp = local_write_time_;
+ local_write_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* WriteBatch::mutable_local_write_time() {
+
+ if (local_write_time_ == NULL) {
+ local_write_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.local_write_time)
+ return local_write_time_;
+}
+inline void WriteBatch::set_allocated_local_write_time(::google::protobuf::Timestamp* local_write_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(local_write_time_);
+ }
+ if (local_write_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(local_write_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ local_write_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, local_write_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ local_write_time_ = local_write_time;
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.WriteBatch.local_write_time)
+}
+
+#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_2fmutation_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/firestore/local/target.pb.cc b/Firestore/Protos/cpp/firestore/local/target.pb.cc
new file mode 100644
index 0000000..6f9a8a1
--- /dev/null
+++ b/Firestore/Protos/cpp/firestore/local/target.pb.cc
@@ -0,0 +1,1121 @@
+/*
+ * 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
+
+#include "firestore/local/target.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace firestore {
+namespace client {
+class TargetDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Target>
+ _instance;
+ const ::google::firestore::v1beta1::Target_QueryTarget* query_;
+ const ::google::firestore::v1beta1::Target_DocumentsTarget* documents_;
+} _Target_default_instance_;
+class TargetGlobalDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<TargetGlobal>
+ _instance;
+} _TargetGlobal_default_instance_;
+} // namespace client
+} // namespace firestore
+namespace protobuf_firestore_2flocal_2ftarget_2eproto {
+void InitDefaultsTargetImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_QueryTarget();
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_DocumentsTarget();
+ {
+ void* ptr = &::firestore::client::_Target_default_instance_;
+ new (ptr) ::firestore::client::Target();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::firestore::client::Target::InitAsDefaultInstance();
+}
+
+void InitDefaultsTarget() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTargetImpl);
+}
+
+void InitDefaultsTargetGlobalImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::firestore::client::_TargetGlobal_default_instance_;
+ new (ptr) ::firestore::client::TargetGlobal();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::firestore::client::TargetGlobal::InitAsDefaultInstance();
+}
+
+void InitDefaultsTargetGlobal() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTargetGlobalImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[2];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, target_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, snapshot_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, resume_token_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, last_listen_sequence_number_),
+ offsetof(::firestore::client::TargetDefaultTypeInternal, query_),
+ offsetof(::firestore::client::TargetDefaultTypeInternal, documents_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::Target, target_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::TargetGlobal, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::TargetGlobal, highest_target_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::TargetGlobal, highest_listen_sequence_number_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::TargetGlobal, last_remote_snapshot_version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::firestore::client::TargetGlobal, target_count_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::firestore::client::Target)},
+ { 12, -1, sizeof(::firestore::client::TargetGlobal)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::firestore::client::_Target_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::firestore::client::_TargetGlobal_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "firestore/local/target.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\034firestore/local/target.proto\022\020firestor"
+ "e.client\032(google/firestore/v1beta1/fires"
+ "tore.proto\032\037google/protobuf/timestamp.pr"
+ "oto\"\241\002\n\006Target\022\021\n\ttarget_id\030\001 \001(\005\0224\n\020sna"
+ "pshot_version\030\002 \001(\0132\032.google.protobuf.Ti"
+ "mestamp\022\024\n\014resume_token\030\003 \001(\014\022#\n\033last_li"
+ "sten_sequence_number\030\004 \001(\003\022=\n\005query\030\005 \001("
+ "\0132,.google.firestore.v1beta1.Target.Quer"
+ "yTargetH\000\022E\n\tdocuments\030\006 \001(\01320.google.fi"
+ "restore.v1beta1.Target.DocumentsTargetH\000"
+ "B\r\n\013target_type\"\251\001\n\014TargetGlobal\022\031\n\021high"
+ "est_target_id\030\001 \001(\005\022&\n\036highest_listen_se"
+ "quence_number\030\002 \001(\003\022@\n\034last_remote_snaps"
+ "hot_version\030\003 \001(\0132\032.google.protobuf.Time"
+ "stamp\022\024\n\014target_count\030\004 \001(\005B/\n#com.googl"
+ "e.firebase.firestore.protoP\001\242\002\005FSTPBb\006pr"
+ "oto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 644);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "firestore/local/target.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_firestore_2flocal_2ftarget_2eproto
+namespace firestore {
+namespace client {
+
+// ===================================================================
+
+void Target::InitAsDefaultInstance() {
+ ::firestore::client::_Target_default_instance_._instance.get_mutable()->snapshot_version_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+ ::firestore::client::_Target_default_instance_.query_ = const_cast< ::google::firestore::v1beta1::Target_QueryTarget*>(
+ ::google::firestore::v1beta1::Target_QueryTarget::internal_default_instance());
+ ::firestore::client::_Target_default_instance_.documents_ = const_cast< ::google::firestore::v1beta1::Target_DocumentsTarget*>(
+ ::google::firestore::v1beta1::Target_DocumentsTarget::internal_default_instance());
+}
+void Target::clear_snapshot_version() {
+ if (GetArenaNoVirtual() == NULL && snapshot_version_ != NULL) {
+ delete snapshot_version_;
+ }
+ snapshot_version_ = NULL;
+}
+void Target::set_allocated_query(::google::firestore::v1beta1::Target_QueryTarget* query) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_target_type();
+ if (query) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query, submessage_arena);
+ }
+ set_has_query();
+ target_type_.query_ = query;
+ }
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.query)
+}
+void Target::clear_query() {
+ if (has_query()) {
+ delete target_type_.query_;
+ clear_has_target_type();
+ }
+}
+void Target::set_allocated_documents(::google::firestore::v1beta1::Target_DocumentsTarget* documents) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_target_type();
+ if (documents) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ documents = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, documents, submessage_arena);
+ }
+ set_has_documents();
+ target_type_.documents_ = documents;
+ }
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.documents)
+}
+void Target::clear_documents() {
+ if (has_documents()) {
+ delete target_type_.documents_;
+ clear_has_target_type();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Target::kTargetIdFieldNumber;
+const int Target::kSnapshotVersionFieldNumber;
+const int Target::kResumeTokenFieldNumber;
+const int Target::kLastListenSequenceNumberFieldNumber;
+const int Target::kQueryFieldNumber;
+const int Target::kDocumentsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Target::Target()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTarget();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:firestore.client.Target)
+}
+Target::Target(const Target& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.resume_token().size() > 0) {
+ resume_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resume_token_);
+ }
+ if (from.has_snapshot_version()) {
+ snapshot_version_ = new ::google::protobuf::Timestamp(*from.snapshot_version_);
+ } else {
+ snapshot_version_ = NULL;
+ }
+ ::memcpy(&last_listen_sequence_number_, &from.last_listen_sequence_number_,
+ static_cast<size_t>(reinterpret_cast<char*>(&target_id_) -
+ reinterpret_cast<char*>(&last_listen_sequence_number_)) + sizeof(target_id_));
+ clear_has_target_type();
+ switch (from.target_type_case()) {
+ case kQuery: {
+ mutable_query()->::google::firestore::v1beta1::Target_QueryTarget::MergeFrom(from.query());
+ break;
+ }
+ case kDocuments: {
+ mutable_documents()->::google::firestore::v1beta1::Target_DocumentsTarget::MergeFrom(from.documents());
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:firestore.client.Target)
+}
+
+void Target::SharedCtor() {
+ resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&snapshot_version_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&target_id_) -
+ reinterpret_cast<char*>(&snapshot_version_)) + sizeof(target_id_));
+ clear_has_target_type();
+ _cached_size_ = 0;
+}
+
+Target::~Target() {
+ // @@protoc_insertion_point(destructor:firestore.client.Target)
+ SharedDtor();
+}
+
+void Target::SharedDtor() {
+ resume_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete snapshot_version_;
+ if (has_target_type()) {
+ clear_target_type();
+ }
+}
+
+void Target::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Target::descriptor() {
+ ::protobuf_firestore_2flocal_2ftarget_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2ftarget_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Target& Target::default_instance() {
+ ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTarget();
+ return *internal_default_instance();
+}
+
+Target* Target::New(::google::protobuf::Arena* arena) const {
+ Target* n = new Target;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Target::clear_target_type() {
+// @@protoc_insertion_point(one_of_clear_start:firestore.client.Target)
+ switch (target_type_case()) {
+ case kQuery: {
+ delete target_type_.query_;
+ break;
+ }
+ case kDocuments: {
+ delete target_type_.documents_;
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = TARGET_TYPE_NOT_SET;
+}
+
+
+void Target::Clear() {
+// @@protoc_insertion_point(message_clear_start:firestore.client.Target)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ resume_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && snapshot_version_ != NULL) {
+ delete snapshot_version_;
+ }
+ snapshot_version_ = NULL;
+ ::memset(&last_listen_sequence_number_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&target_id_) -
+ reinterpret_cast<char*>(&last_listen_sequence_number_)) + sizeof(target_id_));
+ clear_target_type();
+ _internal_metadata_.Clear();
+}
+
+bool Target::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:firestore.client.Target)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 target_id = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &target_id_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp snapshot_version = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_snapshot_version()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes resume_token = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_resume_token()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int64 last_listen_sequence_number = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
+ input, &last_listen_sequence_number_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Target.QueryTarget query = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_query()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_documents()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:firestore.client.Target)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:firestore.client.Target)
+ return false;
+#undef DO_
+}
+
+void Target::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:firestore.client.Target)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 target_id = 1;
+ if (this->target_id() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->target_id(), output);
+ }
+
+ // .google.protobuf.Timestamp snapshot_version = 2;
+ if (this->has_snapshot_version()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->snapshot_version_, output);
+ }
+
+ // bytes resume_token = 3;
+ if (this->resume_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 3, this->resume_token(), output);
+ }
+
+ // int64 last_listen_sequence_number = 4;
+ if (this->last_listen_sequence_number() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->last_listen_sequence_number(), output);
+ }
+
+ // .google.firestore.v1beta1.Target.QueryTarget query = 5;
+ if (has_query()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *target_type_.query_, output);
+ }
+
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
+ if (has_documents()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *target_type_.documents_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:firestore.client.Target)
+}
+
+::google::protobuf::uint8* Target::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:firestore.client.Target)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 target_id = 1;
+ if (this->target_id() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->target_id(), target);
+ }
+
+ // .google.protobuf.Timestamp snapshot_version = 2;
+ if (this->has_snapshot_version()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->snapshot_version_, deterministic, target);
+ }
+
+ // bytes resume_token = 3;
+ if (this->resume_token().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 3, this->resume_token(), target);
+ }
+
+ // int64 last_listen_sequence_number = 4;
+ if (this->last_listen_sequence_number() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->last_listen_sequence_number(), target);
+ }
+
+ // .google.firestore.v1beta1.Target.QueryTarget query = 5;
+ if (has_query()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *target_type_.query_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
+ if (has_documents()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *target_type_.documents_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:firestore.client.Target)
+ return target;
+}
+
+size_t Target::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:firestore.client.Target)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes resume_token = 3;
+ if (this->resume_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->resume_token());
+ }
+
+ // .google.protobuf.Timestamp snapshot_version = 2;
+ if (this->has_snapshot_version()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->snapshot_version_);
+ }
+
+ // int64 last_listen_sequence_number = 4;
+ if (this->last_listen_sequence_number() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->last_listen_sequence_number());
+ }
+
+ // int32 target_id = 1;
+ if (this->target_id() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->target_id());
+ }
+
+ switch (target_type_case()) {
+ // .google.firestore.v1beta1.Target.QueryTarget query = 5;
+ case kQuery: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *target_type_.query_);
+ break;
+ }
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
+ case kDocuments: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *target_type_.documents_);
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Target::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:firestore.client.Target)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Target* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Target>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:firestore.client.Target)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:firestore.client.Target)
+ MergeFrom(*source);
+ }
+}
+
+void Target::MergeFrom(const Target& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:firestore.client.Target)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.resume_token().size() > 0) {
+
+ resume_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resume_token_);
+ }
+ if (from.has_snapshot_version()) {
+ mutable_snapshot_version()->::google::protobuf::Timestamp::MergeFrom(from.snapshot_version());
+ }
+ if (from.last_listen_sequence_number() != 0) {
+ set_last_listen_sequence_number(from.last_listen_sequence_number());
+ }
+ if (from.target_id() != 0) {
+ set_target_id(from.target_id());
+ }
+ switch (from.target_type_case()) {
+ case kQuery: {
+ mutable_query()->::google::firestore::v1beta1::Target_QueryTarget::MergeFrom(from.query());
+ break;
+ }
+ case kDocuments: {
+ mutable_documents()->::google::firestore::v1beta1::Target_DocumentsTarget::MergeFrom(from.documents());
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Target::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:firestore.client.Target)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Target::CopyFrom(const Target& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:firestore.client.Target)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Target::IsInitialized() const {
+ return true;
+}
+
+void Target::Swap(Target* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Target::InternalSwap(Target* other) {
+ using std::swap;
+ resume_token_.Swap(&other->resume_token_);
+ swap(snapshot_version_, other->snapshot_version_);
+ swap(last_listen_sequence_number_, other->last_listen_sequence_number_);
+ swap(target_id_, other->target_id_);
+ swap(target_type_, other->target_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Target::GetMetadata() const {
+ protobuf_firestore_2flocal_2ftarget_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2ftarget_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void TargetGlobal::InitAsDefaultInstance() {
+ ::firestore::client::_TargetGlobal_default_instance_._instance.get_mutable()->last_remote_snapshot_version_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void TargetGlobal::clear_last_remote_snapshot_version() {
+ if (GetArenaNoVirtual() == NULL && last_remote_snapshot_version_ != NULL) {
+ delete last_remote_snapshot_version_;
+ }
+ last_remote_snapshot_version_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int TargetGlobal::kHighestTargetIdFieldNumber;
+const int TargetGlobal::kHighestListenSequenceNumberFieldNumber;
+const int TargetGlobal::kLastRemoteSnapshotVersionFieldNumber;
+const int TargetGlobal::kTargetCountFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+TargetGlobal::TargetGlobal()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTargetGlobal();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:firestore.client.TargetGlobal)
+}
+TargetGlobal::TargetGlobal(const TargetGlobal& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_last_remote_snapshot_version()) {
+ last_remote_snapshot_version_ = new ::google::protobuf::Timestamp(*from.last_remote_snapshot_version_);
+ } else {
+ last_remote_snapshot_version_ = NULL;
+ }
+ ::memcpy(&highest_listen_sequence_number_, &from.highest_listen_sequence_number_,
+ static_cast<size_t>(reinterpret_cast<char*>(&target_count_) -
+ reinterpret_cast<char*>(&highest_listen_sequence_number_)) + sizeof(target_count_));
+ // @@protoc_insertion_point(copy_constructor:firestore.client.TargetGlobal)
+}
+
+void TargetGlobal::SharedCtor() {
+ ::memset(&last_remote_snapshot_version_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&target_count_) -
+ reinterpret_cast<char*>(&last_remote_snapshot_version_)) + sizeof(target_count_));
+ _cached_size_ = 0;
+}
+
+TargetGlobal::~TargetGlobal() {
+ // @@protoc_insertion_point(destructor:firestore.client.TargetGlobal)
+ SharedDtor();
+}
+
+void TargetGlobal::SharedDtor() {
+ if (this != internal_default_instance()) delete last_remote_snapshot_version_;
+}
+
+void TargetGlobal::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* TargetGlobal::descriptor() {
+ ::protobuf_firestore_2flocal_2ftarget_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2ftarget_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const TargetGlobal& TargetGlobal::default_instance() {
+ ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTargetGlobal();
+ return *internal_default_instance();
+}
+
+TargetGlobal* TargetGlobal::New(::google::protobuf::Arena* arena) const {
+ TargetGlobal* n = new TargetGlobal;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void TargetGlobal::Clear() {
+// @@protoc_insertion_point(message_clear_start:firestore.client.TargetGlobal)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (GetArenaNoVirtual() == NULL && last_remote_snapshot_version_ != NULL) {
+ delete last_remote_snapshot_version_;
+ }
+ last_remote_snapshot_version_ = NULL;
+ ::memset(&highest_listen_sequence_number_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&target_count_) -
+ reinterpret_cast<char*>(&highest_listen_sequence_number_)) + sizeof(target_count_));
+ _internal_metadata_.Clear();
+}
+
+bool TargetGlobal::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:firestore.client.TargetGlobal)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 highest_target_id = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &highest_target_id_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int64 highest_listen_sequence_number = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
+ input, &highest_listen_sequence_number_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_last_remote_snapshot_version()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 target_count = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &target_count_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:firestore.client.TargetGlobal)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:firestore.client.TargetGlobal)
+ return false;
+#undef DO_
+}
+
+void TargetGlobal::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:firestore.client.TargetGlobal)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 highest_target_id = 1;
+ if (this->highest_target_id() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->highest_target_id(), output);
+ }
+
+ // int64 highest_listen_sequence_number = 2;
+ if (this->highest_listen_sequence_number() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->highest_listen_sequence_number(), output);
+ }
+
+ // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
+ if (this->has_last_remote_snapshot_version()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->last_remote_snapshot_version_, output);
+ }
+
+ // int32 target_count = 4;
+ if (this->target_count() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->target_count(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:firestore.client.TargetGlobal)
+}
+
+::google::protobuf::uint8* TargetGlobal::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:firestore.client.TargetGlobal)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 highest_target_id = 1;
+ if (this->highest_target_id() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->highest_target_id(), target);
+ }
+
+ // int64 highest_listen_sequence_number = 2;
+ if (this->highest_listen_sequence_number() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->highest_listen_sequence_number(), target);
+ }
+
+ // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
+ if (this->has_last_remote_snapshot_version()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->last_remote_snapshot_version_, deterministic, target);
+ }
+
+ // int32 target_count = 4;
+ if (this->target_count() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->target_count(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:firestore.client.TargetGlobal)
+ return target;
+}
+
+size_t TargetGlobal::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:firestore.client.TargetGlobal)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
+ if (this->has_last_remote_snapshot_version()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->last_remote_snapshot_version_);
+ }
+
+ // int64 highest_listen_sequence_number = 2;
+ if (this->highest_listen_sequence_number() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->highest_listen_sequence_number());
+ }
+
+ // int32 highest_target_id = 1;
+ if (this->highest_target_id() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->highest_target_id());
+ }
+
+ // int32 target_count = 4;
+ if (this->target_count() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->target_count());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void TargetGlobal::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:firestore.client.TargetGlobal)
+ GOOGLE_DCHECK_NE(&from, this);
+ const TargetGlobal* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const TargetGlobal>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:firestore.client.TargetGlobal)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:firestore.client.TargetGlobal)
+ MergeFrom(*source);
+ }
+}
+
+void TargetGlobal::MergeFrom(const TargetGlobal& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:firestore.client.TargetGlobal)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_last_remote_snapshot_version()) {
+ mutable_last_remote_snapshot_version()->::google::protobuf::Timestamp::MergeFrom(from.last_remote_snapshot_version());
+ }
+ if (from.highest_listen_sequence_number() != 0) {
+ set_highest_listen_sequence_number(from.highest_listen_sequence_number());
+ }
+ if (from.highest_target_id() != 0) {
+ set_highest_target_id(from.highest_target_id());
+ }
+ if (from.target_count() != 0) {
+ set_target_count(from.target_count());
+ }
+}
+
+void TargetGlobal::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:firestore.client.TargetGlobal)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void TargetGlobal::CopyFrom(const TargetGlobal& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:firestore.client.TargetGlobal)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TargetGlobal::IsInitialized() const {
+ return true;
+}
+
+void TargetGlobal::Swap(TargetGlobal* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void TargetGlobal::InternalSwap(TargetGlobal* other) {
+ using std::swap;
+ swap(last_remote_snapshot_version_, other->last_remote_snapshot_version_);
+ swap(highest_listen_sequence_number_, other->highest_listen_sequence_number_);
+ swap(highest_target_id_, other->highest_target_id_);
+ swap(target_count_, other->target_count_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata TargetGlobal::GetMetadata() const {
+ protobuf_firestore_2flocal_2ftarget_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_firestore_2flocal_2ftarget_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace client
+} // namespace firestore
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/firestore/local/target.pb.h b/Firestore/Protos/cpp/firestore/local/target.pb.h
new file mode 100644
index 0000000..2896f29
--- /dev/null
+++ b/Firestore/Protos/cpp/firestore/local/target.pb.h
@@ -0,0 +1,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
diff --git a/Firestore/Protos/cpp/google/api/annotations.pb.cc b/Firestore/Protos/cpp/google/api/annotations.pb.cc
new file mode 100644
index 0000000..bfc3456
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/annotations.pb.cc
@@ -0,0 +1,106 @@
+/*
+ * 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: google/api/annotations.proto
+
+#include "google/api/annotations.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace api {
+} // namespace api
+} // namespace google
+namespace protobuf_google_2fapi_2fannotations_2eproto {
+const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
+static const ::google::protobuf::internal::MigrationSchema* schemas = NULL;
+static const ::google::protobuf::Message* const* file_default_instances = NULL;
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/api/annotations.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ NULL, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\034google/api/annotations.proto\022\ngoogle.a"
+ "pi\032\025google/api/http.proto\032 google/protob"
+ "uf/descriptor.proto:E\n\004http\022\036.google.pro"
+ "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap"
+ "i.HttpRuleBn\n\016com.google.apiB\020Annotation"
+ "sProtoP\001ZAgoogle.golang.org/genproto/goo"
+ "gleapis/api/annotations;annotations\242\002\004GA"
+ "PIb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 290);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/api/annotations.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fhttp_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fapi_2fannotations_2eproto
+namespace google {
+namespace api {
+::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
+ ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false >
+ http(kHttpFieldNumber, *::google::api::HttpRule::internal_default_instance());
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/api/annotations.pb.h b/Firestore/Protos/cpp/google/api/annotations.pb.h
new file mode 100644
index 0000000..a1335d6
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/annotations.pb.h
@@ -0,0 +1,98 @@
+/*
+ * 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: google/api/annotations.proto
+
+#ifndef PROTOBUF_google_2fapi_2fannotations_2eproto__INCLUDED
+#define PROTOBUF_google_2fapi_2fannotations_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/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
+#include "google/api/http.pb.h"
+#include <google/protobuf/descriptor.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fapi_2fannotations_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[1];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+inline void InitDefaults() {
+}
+} // namespace protobuf_google_2fapi_2fannotations_2eproto
+namespace google {
+namespace api {
+} // namespace api
+} // namespace google
+namespace google {
+namespace api {
+
+// ===================================================================
+
+
+// ===================================================================
+
+static const int kHttpFieldNumber = 72295728;
+extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
+ ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false >
+ http;
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fapi_2fannotations_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/api/http.pb.cc b/Firestore/Protos/cpp/google/api/http.pb.cc
new file mode 100644
index 0000000..b691cfd
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/http.pb.cc
@@ -0,0 +1,1620 @@
+/*
+ * 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: google/api/http.proto
+
+#include "google/api/http.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace api {
+class HttpDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Http>
+ _instance;
+} _Http_default_instance_;
+class HttpRuleDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<HttpRule>
+ _instance;
+ ::google::protobuf::internal::ArenaStringPtr get_;
+ ::google::protobuf::internal::ArenaStringPtr put_;
+ ::google::protobuf::internal::ArenaStringPtr post_;
+ ::google::protobuf::internal::ArenaStringPtr delete__;
+ ::google::protobuf::internal::ArenaStringPtr patch_;
+ const ::google::api::CustomHttpPattern* custom_;
+} _HttpRule_default_instance_;
+class CustomHttpPatternDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CustomHttpPattern>
+ _instance;
+} _CustomHttpPattern_default_instance_;
+} // namespace api
+} // namespace google
+namespace protobuf_google_2fapi_2fhttp_2eproto {
+void InitDefaultsHttpImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ {
+ void* ptr = &::google::api::_Http_default_instance_;
+ new (ptr) ::google::api::Http();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::api::Http::InitAsDefaultInstance();
+}
+
+void InitDefaultsHttp() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHttpImpl);
+}
+
+void InitDefaultsHttpRuleImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ {
+ void* ptr = &::google::api::_HttpRule_default_instance_;
+ new (ptr) ::google::api::HttpRule();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::api::HttpRule::InitAsDefaultInstance();
+}
+
+void InitDefaultsHttpRule() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHttpRuleImpl);
+}
+
+void InitDefaultsCustomHttpPatternImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::api::_CustomHttpPattern_default_instance_;
+ new (ptr) ::google::api::CustomHttpPattern();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::api::CustomHttpPattern::InitAsDefaultInstance();
+}
+
+void InitDefaultsCustomHttpPattern() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCustomHttpPatternImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[3];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::Http, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::Http, rules_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, selector_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, get_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, put_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, post_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, delete__),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, patch_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, custom_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, body_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, additional_bindings_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, pattern_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::CustomHttpPattern, kind_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::CustomHttpPattern, path_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::api::Http)},
+ { 6, -1, sizeof(::google::api::HttpRule)},
+ { 21, -1, sizeof(::google::api::CustomHttpPattern)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::api::_Http_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::api::_HttpRule_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::api::_CustomHttpPattern_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/api/http.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\025google/api/http.proto\022\ngoogle.api\"+\n\004H"
+ "ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule"
+ "\"\352\001\n\010HttpRule\022\020\n\010selector\030\001 \001(\t\022\r\n\003get\030\002"
+ " \001(\tH\000\022\r\n\003put\030\003 \001(\tH\000\022\016\n\004post\030\004 \001(\tH\000\022\020\n"
+ "\006delete\030\005 \001(\tH\000\022\017\n\005patch\030\006 \001(\tH\000\022/\n\006cust"
+ "om\030\010 \001(\0132\035.google.api.CustomHttpPatternH"
+ "\000\022\014\n\004body\030\007 \001(\t\0221\n\023additional_bindings\030\013"
+ " \003(\0132\024.google.api.HttpRuleB\t\n\007pattern\"/\n"
+ "\021CustomHttpPattern\022\014\n\004kind\030\001 \001(\t\022\014\n\004path"
+ "\030\002 \001(\tBj\n\016com.google.apiB\tHttpProtoP\001ZAg"
+ "oogle.golang.org/genproto/googleapis/api"
+ "/annotations;annotations\370\001\001\242\002\004GAPIb\006prot"
+ "o3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 482);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/api/http.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fapi_2fhttp_2eproto
+namespace google {
+namespace api {
+
+// ===================================================================
+
+void Http::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Http::kRulesFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Http::Http()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttp();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.api.Http)
+}
+Http::Http(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena),
+ rules_(arena) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttp();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.api.Http)
+}
+Http::Http(const Http& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ rules_(from.rules_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.api.Http)
+}
+
+void Http::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+Http::~Http() {
+ // @@protoc_insertion_point(destructor:google.api.Http)
+ SharedDtor();
+}
+
+void Http::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Http::ArenaDtor(void* object) {
+ Http* _this = reinterpret_cast< Http* >(object);
+ (void)_this;
+}
+void Http::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Http::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Http::descriptor() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Http& Http::default_instance() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttp();
+ return *internal_default_instance();
+}
+
+Http* Http::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Http>(arena);
+}
+
+void Http::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.api.Http)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ rules_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool Http::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.api.Http)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.api.HttpRule rules = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rules()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.api.Http)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.api.Http)
+ return false;
+#undef DO_
+}
+
+void Http::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.api.Http)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.api.HttpRule rules = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->rules_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->rules(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.api.Http)
+}
+
+::google::protobuf::uint8* Http::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.api.Http)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.api.HttpRule rules = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->rules_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->rules(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.api.Http)
+ return target;
+}
+
+size_t Http::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.api.Http)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.api.HttpRule rules = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->rules_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->rules(static_cast<int>(i)));
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Http::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.api.Http)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Http* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Http>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.Http)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.Http)
+ MergeFrom(*source);
+ }
+}
+
+void Http::MergeFrom(const Http& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ rules_.MergeFrom(from.rules_);
+}
+
+void Http::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.api.Http)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Http::CopyFrom(const Http& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Http::IsInitialized() const {
+ return true;
+}
+
+void Http::Swap(Http* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Http* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Http::UnsafeArenaSwap(Http* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Http::InternalSwap(Http* other) {
+ using std::swap;
+ rules_.InternalSwap(&other->rules_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Http::GetMetadata() const {
+ protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void HttpRule::InitAsDefaultInstance() {
+ ::google::api::_HttpRule_default_instance_.get_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.put_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.post_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.delete__.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.patch_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.custom_ = const_cast< ::google::api::CustomHttpPattern*>(
+ ::google::api::CustomHttpPattern::internal_default_instance());
+}
+void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_pattern();
+ if (custom) {
+ ::google::protobuf::Arena* submessage_arena =
+ ::google::protobuf::Arena::GetArena(custom);
+ if (message_arena != submessage_arena) {
+ custom = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, custom, submessage_arena);
+ }
+ set_has_custom();
+ pattern_.custom_ = custom;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int HttpRule::kSelectorFieldNumber;
+const int HttpRule::kGetFieldNumber;
+const int HttpRule::kPutFieldNumber;
+const int HttpRule::kPostFieldNumber;
+const int HttpRule::kDeleteFieldNumber;
+const int HttpRule::kPatchFieldNumber;
+const int HttpRule::kCustomFieldNumber;
+const int HttpRule::kBodyFieldNumber;
+const int HttpRule::kAdditionalBindingsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+HttpRule::HttpRule()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.api.HttpRule)
+}
+HttpRule::HttpRule(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena),
+ additional_bindings_(arena) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.api.HttpRule)
+}
+HttpRule::HttpRule(const HttpRule& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ additional_bindings_(from.additional_bindings_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ selector_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.selector().size() > 0) {
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.selector(),
+ GetArenaNoVirtual());
+ }
+ body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.body().size() > 0) {
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body(),
+ GetArenaNoVirtual());
+ }
+ clear_has_pattern();
+ switch (from.pattern_case()) {
+ case kGet: {
+ set_get(from.get());
+ break;
+ }
+ case kPut: {
+ set_put(from.put());
+ break;
+ }
+ case kPost: {
+ set_post(from.post());
+ break;
+ }
+ case kDelete: {
+ set_delete_(from.delete_());
+ break;
+ }
+ case kPatch: {
+ set_patch(from.patch());
+ break;
+ }
+ case kCustom: {
+ mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from.custom());
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.api.HttpRule)
+}
+
+void HttpRule::SharedCtor() {
+ selector_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_pattern();
+ _cached_size_ = 0;
+}
+
+HttpRule::~HttpRule() {
+ // @@protoc_insertion_point(destructor:google.api.HttpRule)
+ SharedDtor();
+}
+
+void HttpRule::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ selector_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (has_pattern()) {
+ clear_pattern();
+ }
+}
+
+void HttpRule::ArenaDtor(void* object) {
+ HttpRule* _this = reinterpret_cast< HttpRule* >(object);
+ (void)_this;
+}
+void HttpRule::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void HttpRule::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* HttpRule::descriptor() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const HttpRule& HttpRule::default_instance() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ return *internal_default_instance();
+}
+
+HttpRule* HttpRule::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<HttpRule>(arena);
+}
+
+void HttpRule::clear_pattern() {
+// @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule)
+ switch (pattern_case()) {
+ case kGet: {
+ pattern_.get_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kPut: {
+ pattern_.put_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kPost: {
+ pattern_.post_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kDelete: {
+ pattern_.delete__.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kPatch: {
+ pattern_.patch_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kCustom: {
+ if (GetArenaNoVirtual() == NULL) {
+ delete pattern_.custom_;
+ }
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = PATTERN_NOT_SET;
+}
+
+
+void HttpRule::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.api.HttpRule)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ additional_bindings_.Clear();
+ selector_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ body_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ clear_pattern();
+ _internal_metadata_.Clear();
+}
+
+bool HttpRule::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.api.HttpRule)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string selector = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_selector()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->selector().data(), static_cast<int>(this->selector().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.selector"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string get = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_get()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->get().data(), static_cast<int>(this->get().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.get"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string put = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_put()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->put().data(), static_cast<int>(this->put().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.put"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string post = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_post()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->post().data(), static_cast<int>(this->post().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.post"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string delete = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_delete_()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.delete"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string patch = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_patch()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->patch().data(), static_cast<int>(this->patch().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.patch"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string body = 7;
+ case 7: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_body()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->body().data(), static_cast<int>(this->body().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.body"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.api.CustomHttpPattern custom = 8;
+ case 8: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_custom()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ case 11: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_additional_bindings()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.api.HttpRule)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.api.HttpRule)
+ return false;
+#undef DO_
+}
+
+void HttpRule::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.api.HttpRule)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string selector = 1;
+ if (this->selector().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->selector().data(), static_cast<int>(this->selector().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.selector");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->selector(), output);
+ }
+
+ // string get = 2;
+ if (has_get()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->get().data(), static_cast<int>(this->get().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.get");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->get(), output);
+ }
+
+ // string put = 3;
+ if (has_put()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->put().data(), static_cast<int>(this->put().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.put");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 3, this->put(), output);
+ }
+
+ // string post = 4;
+ if (has_post()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->post().data(), static_cast<int>(this->post().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.post");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 4, this->post(), output);
+ }
+
+ // string delete = 5;
+ if (has_delete_()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.delete");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 5, this->delete_(), output);
+ }
+
+ // string patch = 6;
+ if (has_patch()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->patch().data(), static_cast<int>(this->patch().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.patch");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 6, this->patch(), output);
+ }
+
+ // string body = 7;
+ if (this->body().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->body().data(), static_cast<int>(this->body().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.body");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 7, this->body(), output);
+ }
+
+ // .google.api.CustomHttpPattern custom = 8;
+ if (has_custom()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 8, *pattern_.custom_, output);
+ }
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->additional_bindings_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 11, this->additional_bindings(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.api.HttpRule)
+}
+
+::google::protobuf::uint8* HttpRule::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string selector = 1;
+ if (this->selector().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->selector().data(), static_cast<int>(this->selector().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.selector");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->selector(), target);
+ }
+
+ // string get = 2;
+ if (has_get()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->get().data(), static_cast<int>(this->get().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.get");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->get(), target);
+ }
+
+ // string put = 3;
+ if (has_put()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->put().data(), static_cast<int>(this->put().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.put");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 3, this->put(), target);
+ }
+
+ // string post = 4;
+ if (has_post()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->post().data(), static_cast<int>(this->post().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.post");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 4, this->post(), target);
+ }
+
+ // string delete = 5;
+ if (has_delete_()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.delete");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 5, this->delete_(), target);
+ }
+
+ // string patch = 6;
+ if (has_patch()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->patch().data(), static_cast<int>(this->patch().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.patch");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 6, this->patch(), target);
+ }
+
+ // string body = 7;
+ if (this->body().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->body().data(), static_cast<int>(this->body().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.body");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 7, this->body(), target);
+ }
+
+ // .google.api.CustomHttpPattern custom = 8;
+ if (has_custom()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 8, *pattern_.custom_, deterministic, target);
+ }
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->additional_bindings_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 11, this->additional_bindings(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpRule)
+ return target;
+}
+
+size_t HttpRule::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.api.HttpRule)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ {
+ unsigned int count = static_cast<unsigned int>(this->additional_bindings_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->additional_bindings(static_cast<int>(i)));
+ }
+ }
+
+ // string selector = 1;
+ if (this->selector().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->selector());
+ }
+
+ // string body = 7;
+ if (this->body().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->body());
+ }
+
+ switch (pattern_case()) {
+ // string get = 2;
+ case kGet: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->get());
+ break;
+ }
+ // string put = 3;
+ case kPut: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->put());
+ break;
+ }
+ // string post = 4;
+ case kPost: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->post());
+ break;
+ }
+ // string delete = 5;
+ case kDelete: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->delete_());
+ break;
+ }
+ // string patch = 6;
+ case kPatch: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->patch());
+ break;
+ }
+ // .google.api.CustomHttpPattern custom = 8;
+ case kCustom: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *pattern_.custom_);
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void HttpRule::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.api.HttpRule)
+ GOOGLE_DCHECK_NE(&from, this);
+ const HttpRule* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const HttpRule>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.HttpRule)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.HttpRule)
+ MergeFrom(*source);
+ }
+}
+
+void HttpRule::MergeFrom(const HttpRule& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ additional_bindings_.MergeFrom(from.additional_bindings_);
+ if (from.selector().size() > 0) {
+ set_selector(from.selector());
+ }
+ if (from.body().size() > 0) {
+ set_body(from.body());
+ }
+ switch (from.pattern_case()) {
+ case kGet: {
+ set_get(from.get());
+ break;
+ }
+ case kPut: {
+ set_put(from.put());
+ break;
+ }
+ case kPost: {
+ set_post(from.post());
+ break;
+ }
+ case kDelete: {
+ set_delete_(from.delete_());
+ break;
+ }
+ case kPatch: {
+ set_patch(from.patch());
+ break;
+ }
+ case kCustom: {
+ mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from.custom());
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void HttpRule::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.api.HttpRule)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void HttpRule::CopyFrom(const HttpRule& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool HttpRule::IsInitialized() const {
+ return true;
+}
+
+void HttpRule::Swap(HttpRule* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ HttpRule* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void HttpRule::UnsafeArenaSwap(HttpRule* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void HttpRule::InternalSwap(HttpRule* other) {
+ using std::swap;
+ additional_bindings_.InternalSwap(&other->additional_bindings_);
+ selector_.Swap(&other->selector_);
+ body_.Swap(&other->body_);
+ swap(pattern_, other->pattern_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata HttpRule::GetMetadata() const {
+ protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void CustomHttpPattern::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int CustomHttpPattern::kKindFieldNumber;
+const int CustomHttpPattern::kPathFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+CustomHttpPattern::CustomHttpPattern()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.api.CustomHttpPattern)
+}
+CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern)
+}
+CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ kind_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.kind().size() > 0) {
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kind(),
+ GetArenaNoVirtual());
+ }
+ path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.path().size() > 0) {
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path(),
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern)
+}
+
+void CustomHttpPattern::SharedCtor() {
+ kind_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+CustomHttpPattern::~CustomHttpPattern() {
+ // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern)
+ SharedDtor();
+}
+
+void CustomHttpPattern::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ kind_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void CustomHttpPattern::ArenaDtor(void* object) {
+ CustomHttpPattern* _this = reinterpret_cast< CustomHttpPattern* >(object);
+ (void)_this;
+}
+void CustomHttpPattern::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void CustomHttpPattern::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* CustomHttpPattern::descriptor() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const CustomHttpPattern& CustomHttpPattern::default_instance() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ return *internal_default_instance();
+}
+
+CustomHttpPattern* CustomHttpPattern::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<CustomHttpPattern>(arena);
+}
+
+void CustomHttpPattern::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ path_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ _internal_metadata_.Clear();
+}
+
+bool CustomHttpPattern::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.api.CustomHttpPattern)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string kind = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_kind()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->kind().data(), static_cast<int>(this->kind().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.CustomHttpPattern.kind"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string path = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_path()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->path().data(), static_cast<int>(this->path().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.CustomHttpPattern.path"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.api.CustomHttpPattern)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.api.CustomHttpPattern)
+ return false;
+#undef DO_
+}
+
+void CustomHttpPattern::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.api.CustomHttpPattern)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string kind = 1;
+ if (this->kind().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->kind().data(), static_cast<int>(this->kind().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.kind");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->kind(), output);
+ }
+
+ // string path = 2;
+ if (this->path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->path().data(), static_cast<int>(this->path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.path");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->path(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.api.CustomHttpPattern)
+}
+
+::google::protobuf::uint8* CustomHttpPattern::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string kind = 1;
+ if (this->kind().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->kind().data(), static_cast<int>(this->kind().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.kind");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->kind(), target);
+ }
+
+ // string path = 2;
+ if (this->path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->path().data(), static_cast<int>(this->path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.path");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->path(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.api.CustomHttpPattern)
+ return target;
+}
+
+size_t CustomHttpPattern::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.api.CustomHttpPattern)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string kind = 1;
+ if (this->kind().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->kind());
+ }
+
+ // string path = 2;
+ if (this->path().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->path());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void CustomHttpPattern::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.api.CustomHttpPattern)
+ GOOGLE_DCHECK_NE(&from, this);
+ const CustomHttpPattern* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const CustomHttpPattern>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.CustomHttpPattern)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.CustomHttpPattern)
+ MergeFrom(*source);
+ }
+}
+
+void CustomHttpPattern::MergeFrom(const CustomHttpPattern& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.kind().size() > 0) {
+ set_kind(from.kind());
+ }
+ if (from.path().size() > 0) {
+ set_path(from.path());
+ }
+}
+
+void CustomHttpPattern::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.api.CustomHttpPattern)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CustomHttpPattern::IsInitialized() const {
+ return true;
+}
+
+void CustomHttpPattern::Swap(CustomHttpPattern* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ CustomHttpPattern* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void CustomHttpPattern::UnsafeArenaSwap(CustomHttpPattern* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void CustomHttpPattern::InternalSwap(CustomHttpPattern* other) {
+ using std::swap;
+ kind_.Swap(&other->kind_);
+ path_.Swap(&other->path_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata CustomHttpPattern::GetMetadata() const {
+ protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/api/http.pb.h b/Firestore/Protos/cpp/google/api/http.pb.h
new file mode 100644
index 0000000..337aec7
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/http.pb.h
@@ -0,0 +1,1798 @@
+/*
+ * 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: google/api/http.proto
+
+#ifndef PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
+#define PROTOBUF_google_2fapi_2fhttp_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>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fapi_2fhttp_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[3];
+ 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 InitDefaultsHttpImpl();
+void InitDefaultsHttp();
+void InitDefaultsHttpRuleImpl();
+void InitDefaultsHttpRule();
+void InitDefaultsCustomHttpPatternImpl();
+void InitDefaultsCustomHttpPattern();
+inline void InitDefaults() {
+ InitDefaultsHttp();
+ InitDefaultsHttpRule();
+ InitDefaultsCustomHttpPattern();
+}
+} // namespace protobuf_google_2fapi_2fhttp_2eproto
+namespace google {
+namespace api {
+class CustomHttpPattern;
+class CustomHttpPatternDefaultTypeInternal;
+extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_;
+class Http;
+class HttpDefaultTypeInternal;
+extern HttpDefaultTypeInternal _Http_default_instance_;
+class HttpRule;
+class HttpRuleDefaultTypeInternal;
+extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_;
+} // namespace api
+} // namespace google
+namespace google {
+namespace api {
+
+// ===================================================================
+
+class Http : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ {
+ public:
+ Http();
+ virtual ~Http();
+
+ Http(const Http& from);
+
+ inline Http& operator=(const Http& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Http(Http&& from) noexcept
+ : Http() {
+ *this = ::std::move(from);
+ }
+
+ inline Http& operator=(Http&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Http& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Http* internal_default_instance() {
+ return reinterpret_cast<const Http*>(
+ &_Http_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void UnsafeArenaSwap(Http* other);
+ void Swap(Http* other);
+ friend void swap(Http& a, Http& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Http* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Http* 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 Http& from);
+ void MergeFrom(const Http& 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(Http* other);
+ protected:
+ explicit Http(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.api.HttpRule rules = 1;
+ int rules_size() const;
+ void clear_rules();
+ static const int kRulesFieldNumber = 1;
+ const ::google::api::HttpRule& rules(int index) const;
+ ::google::api::HttpRule* mutable_rules(int index);
+ ::google::api::HttpRule* add_rules();
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+ mutable_rules();
+ const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+ rules() const;
+
+ // @@protoc_insertion_point(class_scope:google.api.Http)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpImpl();
+};
+// -------------------------------------------------------------------
+
+class HttpRule : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
+ public:
+ HttpRule();
+ virtual ~HttpRule();
+
+ HttpRule(const HttpRule& from);
+
+ inline HttpRule& operator=(const HttpRule& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ HttpRule(HttpRule&& from) noexcept
+ : HttpRule() {
+ *this = ::std::move(from);
+ }
+
+ inline HttpRule& operator=(HttpRule&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const HttpRule& default_instance();
+
+ enum PatternCase {
+ kGet = 2,
+ kPut = 3,
+ kPost = 4,
+ kDelete = 5,
+ kPatch = 6,
+ kCustom = 8,
+ PATTERN_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const HttpRule* internal_default_instance() {
+ return reinterpret_cast<const HttpRule*>(
+ &_HttpRule_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void UnsafeArenaSwap(HttpRule* other);
+ void Swap(HttpRule* other);
+ friend void swap(HttpRule& a, HttpRule& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline HttpRule* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ HttpRule* 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 HttpRule& from);
+ void MergeFrom(const HttpRule& 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(HttpRule* other);
+ protected:
+ explicit HttpRule(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ int additional_bindings_size() const;
+ void clear_additional_bindings();
+ static const int kAdditionalBindingsFieldNumber = 11;
+ const ::google::api::HttpRule& additional_bindings(int index) const;
+ ::google::api::HttpRule* mutable_additional_bindings(int index);
+ ::google::api::HttpRule* add_additional_bindings();
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+ mutable_additional_bindings();
+ const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+ additional_bindings() const;
+
+ // string selector = 1;
+ void clear_selector();
+ static const int kSelectorFieldNumber = 1;
+ const ::std::string& selector() const;
+ void set_selector(const ::std::string& value);
+ #if LANG_CXX11
+ void set_selector(::std::string&& value);
+ #endif
+ void set_selector(const char* value);
+ void set_selector(const char* value, size_t size);
+ ::std::string* mutable_selector();
+ ::std::string* release_selector();
+ void set_allocated_selector(::std::string* selector);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_selector();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_selector(
+ ::std::string* selector);
+
+ // string body = 7;
+ void clear_body();
+ static const int kBodyFieldNumber = 7;
+ const ::std::string& body() const;
+ void set_body(const ::std::string& value);
+ #if LANG_CXX11
+ void set_body(::std::string&& value);
+ #endif
+ void set_body(const char* value);
+ void set_body(const char* value, size_t size);
+ ::std::string* mutable_body();
+ ::std::string* release_body();
+ void set_allocated_body(::std::string* body);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_body();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_body(
+ ::std::string* body);
+
+ // string get = 2;
+ private:
+ bool has_get() const;
+ public:
+ void clear_get();
+ static const int kGetFieldNumber = 2;
+ const ::std::string& get() const;
+ void set_get(const ::std::string& value);
+ #if LANG_CXX11
+ void set_get(::std::string&& value);
+ #endif
+ void set_get(const char* value);
+ void set_get(const char* value, size_t size);
+ ::std::string* mutable_get();
+ ::std::string* release_get();
+ void set_allocated_get(::std::string* get);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_get();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_get(
+ ::std::string* get);
+
+ // string put = 3;
+ private:
+ bool has_put() const;
+ public:
+ void clear_put();
+ static const int kPutFieldNumber = 3;
+ const ::std::string& put() const;
+ void set_put(const ::std::string& value);
+ #if LANG_CXX11
+ void set_put(::std::string&& value);
+ #endif
+ void set_put(const char* value);
+ void set_put(const char* value, size_t size);
+ ::std::string* mutable_put();
+ ::std::string* release_put();
+ void set_allocated_put(::std::string* put);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_put();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_put(
+ ::std::string* put);
+
+ // string post = 4;
+ private:
+ bool has_post() const;
+ public:
+ void clear_post();
+ static const int kPostFieldNumber = 4;
+ const ::std::string& post() const;
+ void set_post(const ::std::string& value);
+ #if LANG_CXX11
+ void set_post(::std::string&& value);
+ #endif
+ void set_post(const char* value);
+ void set_post(const char* value, size_t size);
+ ::std::string* mutable_post();
+ ::std::string* release_post();
+ void set_allocated_post(::std::string* post);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_post();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_post(
+ ::std::string* post);
+
+ // string delete = 5;
+ private:
+ bool has_delete_() const;
+ public:
+ void clear_delete_();
+ static const int kDeleteFieldNumber = 5;
+ const ::std::string& delete_() const;
+ void set_delete_(const ::std::string& value);
+ #if LANG_CXX11
+ void set_delete_(::std::string&& value);
+ #endif
+ void set_delete_(const char* value);
+ void set_delete_(const char* value, size_t size);
+ ::std::string* mutable_delete_();
+ ::std::string* release_delete_();
+ void set_allocated_delete_(::std::string* delete_);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_delete_();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_delete_(
+ ::std::string* delete_);
+
+ // string patch = 6;
+ private:
+ bool has_patch() const;
+ public:
+ void clear_patch();
+ static const int kPatchFieldNumber = 6;
+ const ::std::string& patch() const;
+ void set_patch(const ::std::string& value);
+ #if LANG_CXX11
+ void set_patch(::std::string&& value);
+ #endif
+ void set_patch(const char* value);
+ void set_patch(const char* value, size_t size);
+ ::std::string* mutable_patch();
+ ::std::string* release_patch();
+ void set_allocated_patch(::std::string* patch);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_patch();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_patch(
+ ::std::string* patch);
+
+ // .google.api.CustomHttpPattern custom = 8;
+ bool has_custom() const;
+ void clear_custom();
+ static const int kCustomFieldNumber = 8;
+ private:
+ void _slow_mutable_custom();
+ public:
+ const ::google::api::CustomHttpPattern& custom() const;
+ ::google::api::CustomHttpPattern* release_custom();
+ ::google::api::CustomHttpPattern* mutable_custom();
+ void set_allocated_custom(::google::api::CustomHttpPattern* custom);
+ void unsafe_arena_set_allocated_custom(
+ ::google::api::CustomHttpPattern* custom);
+ ::google::api::CustomHttpPattern* unsafe_arena_release_custom();
+
+ PatternCase pattern_case() const;
+ // @@protoc_insertion_point(class_scope:google.api.HttpRule)
+ private:
+ void set_has_get();
+ void set_has_put();
+ void set_has_post();
+ void set_has_delete_();
+ void set_has_patch();
+ void set_has_custom();
+
+ inline bool has_pattern() const;
+ void clear_pattern();
+ inline void clear_has_pattern();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
+ ::google::protobuf::internal::ArenaStringPtr selector_;
+ ::google::protobuf::internal::ArenaStringPtr body_;
+ union PatternUnion {
+ PatternUnion() {}
+ ::google::protobuf::internal::ArenaStringPtr get_;
+ ::google::protobuf::internal::ArenaStringPtr put_;
+ ::google::protobuf::internal::ArenaStringPtr post_;
+ ::google::protobuf::internal::ArenaStringPtr delete__;
+ ::google::protobuf::internal::ArenaStringPtr patch_;
+ ::google::api::CustomHttpPattern* custom_;
+ } pattern_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRuleImpl();
+};
+// -------------------------------------------------------------------
+
+class CustomHttpPattern : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
+ public:
+ CustomHttpPattern();
+ virtual ~CustomHttpPattern();
+
+ CustomHttpPattern(const CustomHttpPattern& from);
+
+ inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ CustomHttpPattern(CustomHttpPattern&& from) noexcept
+ : CustomHttpPattern() {
+ *this = ::std::move(from);
+ }
+
+ inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const CustomHttpPattern& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CustomHttpPattern* internal_default_instance() {
+ return reinterpret_cast<const CustomHttpPattern*>(
+ &_CustomHttpPattern_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void UnsafeArenaSwap(CustomHttpPattern* other);
+ void Swap(CustomHttpPattern* other);
+ friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline CustomHttpPattern* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ CustomHttpPattern* 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 CustomHttpPattern& from);
+ void MergeFrom(const CustomHttpPattern& 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(CustomHttpPattern* other);
+ protected:
+ explicit CustomHttpPattern(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // string kind = 1;
+ void clear_kind();
+ static const int kKindFieldNumber = 1;
+ const ::std::string& kind() const;
+ void set_kind(const ::std::string& value);
+ #if LANG_CXX11
+ void set_kind(::std::string&& value);
+ #endif
+ void set_kind(const char* value);
+ void set_kind(const char* value, size_t size);
+ ::std::string* mutable_kind();
+ ::std::string* release_kind();
+ void set_allocated_kind(::std::string* kind);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_kind();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_kind(
+ ::std::string* kind);
+
+ // string path = 2;
+ void clear_path();
+ static const int kPathFieldNumber = 2;
+ const ::std::string& path() const;
+ void set_path(const ::std::string& value);
+ #if LANG_CXX11
+ void set_path(::std::string&& value);
+ #endif
+ void set_path(const char* value);
+ void set_path(const char* value, size_t size);
+ ::std::string* mutable_path();
+ ::std::string* release_path();
+ void set_allocated_path(::std::string* path);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_path();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_path(
+ ::std::string* path);
+
+ // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::internal::ArenaStringPtr kind_;
+ ::google::protobuf::internal::ArenaStringPtr path_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPatternImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Http
+
+// repeated .google.api.HttpRule rules = 1;
+inline int Http::rules_size() const {
+ return rules_.size();
+}
+inline void Http::clear_rules() {
+ rules_.Clear();
+}
+inline const ::google::api::HttpRule& Http::rules(int index) const {
+ // @@protoc_insertion_point(field_get:google.api.Http.rules)
+ return rules_.Get(index);
+}
+inline ::google::api::HttpRule* Http::mutable_rules(int index) {
+ // @@protoc_insertion_point(field_mutable:google.api.Http.rules)
+ return rules_.Mutable(index);
+}
+inline ::google::api::HttpRule* Http::add_rules() {
+ // @@protoc_insertion_point(field_add:google.api.Http.rules)
+ return rules_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+Http::mutable_rules() {
+ // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
+ return &rules_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+Http::rules() const {
+ // @@protoc_insertion_point(field_list:google.api.Http.rules)
+ return rules_;
+}
+
+// -------------------------------------------------------------------
+
+// HttpRule
+
+// string selector = 1;
+inline void HttpRule::clear_selector() {
+ selector_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& HttpRule::selector() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
+ return selector_.Get();
+}
+inline void HttpRule::set_selector(const ::std::string& value) {
+
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
+}
+#if LANG_CXX11
+inline void HttpRule::set_selector(::std::string&& value) {
+
+ selector_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector)
+}
+#endif
+inline void HttpRule::set_selector(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.selector)
+}
+inline void HttpRule::set_selector(const char* value,
+ size_t size) {
+
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.selector)
+}
+inline ::std::string* HttpRule::mutable_selector() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
+ return selector_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* HttpRule::release_selector() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
+
+ return selector_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void HttpRule::set_allocated_selector(::std::string* selector) {
+ if (selector != NULL) {
+
+ } else {
+
+ }
+ selector_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), selector,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_selector() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.selector)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return selector_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void HttpRule::unsafe_arena_set_allocated_selector(
+ ::std::string* selector) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (selector != NULL) {
+
+ } else {
+
+ }
+ selector_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ selector, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.selector)
+}
+
+// string get = 2;
+inline bool HttpRule::has_get() const {
+ return pattern_case() == kGet;
+}
+inline void HttpRule::set_has_get() {
+ _oneof_case_[0] = kGet;
+}
+inline void HttpRule::clear_get() {
+ if (has_get()) {
+ pattern_.get_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::get() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.get)
+ if (has_get()) {
+ return pattern_.get_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_get(const ::std::string& value) {
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
+}
+#if LANG_CXX11
+inline void HttpRule::set_get(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get)
+}
+#endif
+inline void HttpRule::set_get(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.get)
+}
+inline void HttpRule::set_get(const char* value,
+ size_t size) {
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.get)
+}
+inline ::std::string* HttpRule::mutable_get() {
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.get_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get)
+}
+inline ::std::string* HttpRule::release_get() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.get)
+ if (has_get()) {
+ clear_has_pattern();
+ return pattern_.get_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_get(::std::string* get) {
+ if (!has_get()) {
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (get != NULL) {
+ set_has_get();
+ pattern_.get_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_get() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.get)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_get()) {
+ clear_has_pattern();
+ return pattern_.get_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_get(::std::string* get) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_get()) {
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (get) {
+ set_has_get();
+ pattern_.get_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get)
+}
+
+// string put = 3;
+inline bool HttpRule::has_put() const {
+ return pattern_case() == kPut;
+}
+inline void HttpRule::set_has_put() {
+ _oneof_case_[0] = kPut;
+}
+inline void HttpRule::clear_put() {
+ if (has_put()) {
+ pattern_.put_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::put() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.put)
+ if (has_put()) {
+ return pattern_.put_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_put(const ::std::string& value) {
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
+}
+#if LANG_CXX11
+inline void HttpRule::set_put(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put)
+}
+#endif
+inline void HttpRule::set_put(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.put)
+}
+inline void HttpRule::set_put(const char* value,
+ size_t size) {
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.put)
+}
+inline ::std::string* HttpRule::mutable_put() {
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.put_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put)
+}
+inline ::std::string* HttpRule::release_put() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.put)
+ if (has_put()) {
+ clear_has_pattern();
+ return pattern_.put_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_put(::std::string* put) {
+ if (!has_put()) {
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (put != NULL) {
+ set_has_put();
+ pattern_.put_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_put() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.put)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_put()) {
+ clear_has_pattern();
+ return pattern_.put_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_put(::std::string* put) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_put()) {
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (put) {
+ set_has_put();
+ pattern_.put_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put)
+}
+
+// string post = 4;
+inline bool HttpRule::has_post() const {
+ return pattern_case() == kPost;
+}
+inline void HttpRule::set_has_post() {
+ _oneof_case_[0] = kPost;
+}
+inline void HttpRule::clear_post() {
+ if (has_post()) {
+ pattern_.post_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::post() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.post)
+ if (has_post()) {
+ return pattern_.post_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_post(const ::std::string& value) {
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
+}
+#if LANG_CXX11
+inline void HttpRule::set_post(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post)
+}
+#endif
+inline void HttpRule::set_post(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.post)
+}
+inline void HttpRule::set_post(const char* value,
+ size_t size) {
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.post)
+}
+inline ::std::string* HttpRule::mutable_post() {
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.post_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post)
+}
+inline ::std::string* HttpRule::release_post() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.post)
+ if (has_post()) {
+ clear_has_pattern();
+ return pattern_.post_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_post(::std::string* post) {
+ if (!has_post()) {
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (post != NULL) {
+ set_has_post();
+ pattern_.post_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_post() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.post)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_post()) {
+ clear_has_pattern();
+ return pattern_.post_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_post(::std::string* post) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_post()) {
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (post) {
+ set_has_post();
+ pattern_.post_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post)
+}
+
+// string delete = 5;
+inline bool HttpRule::has_delete_() const {
+ return pattern_case() == kDelete;
+}
+inline void HttpRule::set_has_delete_() {
+ _oneof_case_[0] = kDelete;
+}
+inline void HttpRule::clear_delete_() {
+ if (has_delete_()) {
+ pattern_.delete__.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::delete_() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.delete)
+ if (has_delete_()) {
+ return pattern_.delete__.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_delete_(const ::std::string& value) {
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
+}
+#if LANG_CXX11
+inline void HttpRule::set_delete_(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete)
+}
+#endif
+inline void HttpRule::set_delete_(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.delete)
+}
+inline void HttpRule::set_delete_(const char* value,
+ size_t size) {
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.delete)
+}
+inline ::std::string* HttpRule::mutable_delete_() {
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.delete__.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete)
+}
+inline ::std::string* HttpRule::release_delete_() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.delete)
+ if (has_delete_()) {
+ clear_has_pattern();
+ return pattern_.delete__.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_delete_(::std::string* delete_) {
+ if (!has_delete_()) {
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (delete_ != NULL) {
+ set_has_delete_();
+ pattern_.delete__.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_delete_() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.delete)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_delete_()) {
+ clear_has_pattern();
+ return pattern_.delete__.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_delete_(::std::string* delete_) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_delete_()) {
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (delete_) {
+ set_has_delete_();
+ pattern_.delete__.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete)
+}
+
+// string patch = 6;
+inline bool HttpRule::has_patch() const {
+ return pattern_case() == kPatch;
+}
+inline void HttpRule::set_has_patch() {
+ _oneof_case_[0] = kPatch;
+}
+inline void HttpRule::clear_patch() {
+ if (has_patch()) {
+ pattern_.patch_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::patch() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.patch)
+ if (has_patch()) {
+ return pattern_.patch_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_patch(const ::std::string& value) {
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
+}
+#if LANG_CXX11
+inline void HttpRule::set_patch(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch)
+}
+#endif
+inline void HttpRule::set_patch(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.patch)
+}
+inline void HttpRule::set_patch(const char* value,
+ size_t size) {
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.patch)
+}
+inline ::std::string* HttpRule::mutable_patch() {
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.patch_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch)
+}
+inline ::std::string* HttpRule::release_patch() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.patch)
+ if (has_patch()) {
+ clear_has_pattern();
+ return pattern_.patch_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_patch(::std::string* patch) {
+ if (!has_patch()) {
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (patch != NULL) {
+ set_has_patch();
+ pattern_.patch_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_patch() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.patch)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_patch()) {
+ clear_has_pattern();
+ return pattern_.patch_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_patch(::std::string* patch) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_patch()) {
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (patch) {
+ set_has_patch();
+ pattern_.patch_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch)
+}
+
+// .google.api.CustomHttpPattern custom = 8;
+inline bool HttpRule::has_custom() const {
+ return pattern_case() == kCustom;
+}
+inline void HttpRule::set_has_custom() {
+ _oneof_case_[0] = kCustom;
+}
+inline void HttpRule::clear_custom() {
+ if (has_custom()) {
+ if (GetArenaNoVirtual() == NULL) {
+ delete pattern_.custom_;
+ }
+ clear_has_pattern();
+ }
+}
+inline ::google::api::CustomHttpPattern* HttpRule::release_custom() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.custom)
+ if (has_custom()) {
+ clear_has_pattern();
+ ::google::api::CustomHttpPattern* temp = pattern_.custom_;
+ if (GetArenaNoVirtual() != NULL) {
+ temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
+ }
+ pattern_.custom_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::api::CustomHttpPattern& HttpRule::custom() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.custom)
+ return has_custom()
+ ? *pattern_.custom_
+ : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_);
+}
+inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom)
+ if (has_custom()) {
+ clear_has_pattern();
+ ::google::api::CustomHttpPattern* temp = pattern_.custom_;
+ pattern_.custom_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) {
+ clear_pattern();
+ if (custom) {
+ set_has_custom();
+ pattern_.custom_ = custom;
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom)
+}
+inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() {
+ if (!has_custom()) {
+ clear_pattern();
+ set_has_custom();
+ pattern_.custom_ =
+ ::google::protobuf::Arena::CreateMessage< ::google::api::CustomHttpPattern >(
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom)
+ return pattern_.custom_;
+}
+
+// string body = 7;
+inline void HttpRule::clear_body() {
+ body_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& HttpRule::body() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.body)
+ return body_.Get();
+}
+inline void HttpRule::set_body(const ::std::string& value) {
+
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
+}
+#if LANG_CXX11
+inline void HttpRule::set_body(::std::string&& value) {
+
+ body_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body)
+}
+#endif
+inline void HttpRule::set_body(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.body)
+}
+inline void HttpRule::set_body(const char* value,
+ size_t size) {
+
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.body)
+}
+inline ::std::string* HttpRule::mutable_body() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body)
+ return body_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* HttpRule::release_body() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.body)
+
+ return body_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void HttpRule::set_allocated_body(::std::string* body) {
+ if (body != NULL) {
+
+ } else {
+
+ }
+ body_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_body() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.body)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return body_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void HttpRule::unsafe_arena_set_allocated_body(
+ ::std::string* body) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (body != NULL) {
+
+ } else {
+
+ }
+ body_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ body, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.body)
+}
+
+// repeated .google.api.HttpRule additional_bindings = 11;
+inline int HttpRule::additional_bindings_size() const {
+ return additional_bindings_.size();
+}
+inline void HttpRule::clear_additional_bindings() {
+ additional_bindings_.Clear();
+}
+inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings)
+ return additional_bindings_.Get(index);
+}
+inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) {
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings)
+ return additional_bindings_.Mutable(index);
+}
+inline ::google::api::HttpRule* HttpRule::add_additional_bindings() {
+ // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
+ return additional_bindings_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+HttpRule::mutable_additional_bindings() {
+ // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings)
+ return &additional_bindings_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+HttpRule::additional_bindings() const {
+ // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings)
+ return additional_bindings_;
+}
+
+inline bool HttpRule::has_pattern() const {
+ return pattern_case() != PATTERN_NOT_SET;
+}
+inline void HttpRule::clear_has_pattern() {
+ _oneof_case_[0] = PATTERN_NOT_SET;
+}
+inline HttpRule::PatternCase HttpRule::pattern_case() const {
+ return HttpRule::PatternCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// CustomHttpPattern
+
+// string kind = 1;
+inline void CustomHttpPattern::clear_kind() {
+ kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& CustomHttpPattern::kind() const {
+ // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind)
+ return kind_.Get();
+}
+inline void CustomHttpPattern::set_kind(const ::std::string& value) {
+
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
+}
+#if LANG_CXX11
+inline void CustomHttpPattern::set_kind(::std::string&& value) {
+
+ kind_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind)
+}
+#endif
+inline void CustomHttpPattern::set_kind(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.kind)
+}
+inline void CustomHttpPattern::set_kind(const char* value,
+ size_t size) {
+
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.kind)
+}
+inline ::std::string* CustomHttpPattern::mutable_kind() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind)
+ return kind_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* CustomHttpPattern::release_kind() {
+ // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind)
+
+ return kind_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::set_allocated_kind(::std::string* kind) {
+ if (kind != NULL) {
+
+ } else {
+
+ }
+ kind_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kind,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind)
+}
+inline ::std::string* CustomHttpPattern::unsafe_arena_release_kind() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.kind)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return kind_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::unsafe_arena_set_allocated_kind(
+ ::std::string* kind) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (kind != NULL) {
+
+ } else {
+
+ }
+ kind_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ kind, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.kind)
+}
+
+// string path = 2;
+inline void CustomHttpPattern::clear_path() {
+ path_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& CustomHttpPattern::path() const {
+ // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path)
+ return path_.Get();
+}
+inline void CustomHttpPattern::set_path(const ::std::string& value) {
+
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
+}
+#if LANG_CXX11
+inline void CustomHttpPattern::set_path(::std::string&& value) {
+
+ path_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path)
+}
+#endif
+inline void CustomHttpPattern::set_path(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.path)
+}
+inline void CustomHttpPattern::set_path(const char* value,
+ size_t size) {
+
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.path)
+}
+inline ::std::string* CustomHttpPattern::mutable_path() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path)
+ return path_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* CustomHttpPattern::release_path() {
+ // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path)
+
+ return path_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::set_allocated_path(::std::string* path) {
+ if (path != NULL) {
+
+ } else {
+
+ }
+ path_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path)
+}
+inline ::std::string* CustomHttpPattern::unsafe_arena_release_path() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.path)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return path_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::unsafe_arena_set_allocated_path(
+ ::std::string* path) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (path != NULL) {
+
+ } else {
+
+ }
+ path_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ path, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.path)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.cc b/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.cc
new file mode 100644
index 0000000..57237a1
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.cc
@@ -0,0 +1,1803 @@
+/*
+ * 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: google/firestore/v1beta1/common.proto
+
+#include "google/firestore/v1beta1/common.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class DocumentMaskDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DocumentMask>
+ _instance;
+} _DocumentMask_default_instance_;
+class PreconditionDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Precondition>
+ _instance;
+ bool exists_;
+ const ::google::protobuf::Timestamp* update_time_;
+} _Precondition_default_instance_;
+class TransactionOptions_ReadWriteDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<TransactionOptions_ReadWrite>
+ _instance;
+} _TransactionOptions_ReadWrite_default_instance_;
+class TransactionOptions_ReadOnlyDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<TransactionOptions_ReadOnly>
+ _instance;
+ const ::google::protobuf::Timestamp* read_time_;
+} _TransactionOptions_ReadOnly_default_instance_;
+class TransactionOptionsDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<TransactionOptions>
+ _instance;
+ const ::google::firestore::v1beta1::TransactionOptions_ReadOnly* read_only_;
+ const ::google::firestore::v1beta1::TransactionOptions_ReadWrite* read_write_;
+} _TransactionOptions_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto {
+void InitDefaultsDocumentMaskImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_DocumentMask_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DocumentMask();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DocumentMask::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocumentMask() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentMaskImpl);
+}
+
+void InitDefaultsPreconditionImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Precondition_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Precondition();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Precondition::InitAsDefaultInstance();
+}
+
+void InitDefaultsPrecondition() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPreconditionImpl);
+}
+
+void InitDefaultsTransactionOptions_ReadWriteImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_TransactionOptions_ReadWrite_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::TransactionOptions_ReadWrite();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::TransactionOptions_ReadWrite::InitAsDefaultInstance();
+}
+
+void InitDefaultsTransactionOptions_ReadWrite() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionOptions_ReadWriteImpl);
+}
+
+void InitDefaultsTransactionOptions_ReadOnlyImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_TransactionOptions_ReadOnly_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::TransactionOptions_ReadOnly();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::TransactionOptions_ReadOnly::InitAsDefaultInstance();
+}
+
+void InitDefaultsTransactionOptions_ReadOnly() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionOptions_ReadOnlyImpl);
+}
+
+void InitDefaultsTransactionOptionsImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadOnly();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadWrite();
+ {
+ void* ptr = &::google::firestore::v1beta1::_TransactionOptions_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::TransactionOptions();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::TransactionOptions::InitAsDefaultInstance();
+}
+
+void InitDefaultsTransactionOptions() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionOptionsImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[5];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentMask, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentMask, field_paths_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Precondition, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Precondition, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::PreconditionDefaultTypeInternal, exists_),
+ offsetof(::google::firestore::v1beta1::PreconditionDefaultTypeInternal, update_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Precondition, condition_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions_ReadWrite, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions_ReadWrite, retry_transaction_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions_ReadOnly, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions_ReadOnly, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::TransactionOptions_ReadOnlyDefaultTypeInternal, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions_ReadOnly, consistency_selector_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::TransactionOptionsDefaultTypeInternal, read_only_),
+ offsetof(::google::firestore::v1beta1::TransactionOptionsDefaultTypeInternal, read_write_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TransactionOptions, mode_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::firestore::v1beta1::DocumentMask)},
+ { 6, -1, sizeof(::google::firestore::v1beta1::Precondition)},
+ { 14, -1, sizeof(::google::firestore::v1beta1::TransactionOptions_ReadWrite)},
+ { 20, -1, sizeof(::google::firestore::v1beta1::TransactionOptions_ReadOnly)},
+ { 27, -1, sizeof(::google::firestore::v1beta1::TransactionOptions)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DocumentMask_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Precondition_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_TransactionOptions_ReadWrite_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_TransactionOptions_ReadOnly_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_TransactionOptions_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/firestore/v1beta1/common.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n%google/firestore/v1beta1/common.proto\022"
+ "\030google.firestore.v1beta1\032\034google/api/an"
+ "notations.proto\032\037google/protobuf/timesta"
+ "mp.proto\"#\n\014DocumentMask\022\023\n\013field_paths\030"
+ "\001 \003(\t\"e\n\014Precondition\022\020\n\006exists\030\001 \001(\010H\000\022"
+ "1\n\013update_time\030\002 \001(\0132\032.google.protobuf.T"
+ "imestampH\000B\020\n\016condition_type\"\263\002\n\022Transac"
+ "tionOptions\022J\n\tread_only\030\002 \001(\01325.google."
+ "firestore.v1beta1.TransactionOptions.Rea"
+ "dOnlyH\000\022L\n\nread_write\030\003 \001(\01326.google.fir"
+ "estore.v1beta1.TransactionOptions.ReadWr"
+ "iteH\000\032&\n\tReadWrite\022\031\n\021retry_transaction\030"
+ "\001 \001(\014\032S\n\010ReadOnly\022/\n\tread_time\030\002 \001(\0132\032.g"
+ "oogle.protobuf.TimestampH\000B\026\n\024consistenc"
+ "y_selectorB\006\n\004modeB\230\001\n\034com.google.firest"
+ "ore.v1beta1B\013CommonProtoP\001ZAgoogle.golan"
+ "g.org/genproto/googleapis/firestore/v1be"
+ "ta1;firestore\242\002\004GCFS\252\002\036Google.Cloud.Fire"
+ "store.V1Beta1b\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 741);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/firestore/v1beta1/common.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+// ===================================================================
+
+void DocumentMask::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DocumentMask::kFieldPathsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DocumentMask::DocumentMask()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DocumentMask)
+}
+DocumentMask::DocumentMask(const DocumentMask& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ field_paths_(from.field_paths_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DocumentMask)
+}
+
+void DocumentMask::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+DocumentMask::~DocumentMask() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DocumentMask)
+ SharedDtor();
+}
+
+void DocumentMask::SharedDtor() {
+}
+
+void DocumentMask::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DocumentMask::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DocumentMask& DocumentMask::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ return *internal_default_instance();
+}
+
+DocumentMask* DocumentMask::New(::google::protobuf::Arena* arena) const {
+ DocumentMask* n = new DocumentMask;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DocumentMask::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DocumentMask)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ field_paths_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool DocumentMask::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DocumentMask)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated string field_paths = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->add_field_paths()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_paths(this->field_paths_size() - 1).data(),
+ static_cast<int>(this->field_paths(this->field_paths_size() - 1).length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.DocumentMask.field_paths"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DocumentMask)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DocumentMask)
+ return false;
+#undef DO_
+}
+
+void DocumentMask::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DocumentMask)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated string field_paths = 1;
+ for (int i = 0, n = this->field_paths_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_paths(i).data(), static_cast<int>(this->field_paths(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentMask.field_paths");
+ ::google::protobuf::internal::WireFormatLite::WriteString(
+ 1, this->field_paths(i), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DocumentMask)
+}
+
+::google::protobuf::uint8* DocumentMask::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DocumentMask)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated string field_paths = 1;
+ for (int i = 0, n = this->field_paths_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_paths(i).data(), static_cast<int>(this->field_paths(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentMask.field_paths");
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteStringToArray(1, this->field_paths(i), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DocumentMask)
+ return target;
+}
+
+size_t DocumentMask::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DocumentMask)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated string field_paths = 1;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->field_paths_size());
+ for (int i = 0, n = this->field_paths_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->field_paths(i));
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DocumentMask::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DocumentMask)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DocumentMask* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DocumentMask>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DocumentMask)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DocumentMask)
+ MergeFrom(*source);
+ }
+}
+
+void DocumentMask::MergeFrom(const DocumentMask& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DocumentMask)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ field_paths_.MergeFrom(from.field_paths_);
+}
+
+void DocumentMask::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DocumentMask)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DocumentMask::CopyFrom(const DocumentMask& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DocumentMask)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DocumentMask::IsInitialized() const {
+ return true;
+}
+
+void DocumentMask::Swap(DocumentMask* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DocumentMask::InternalSwap(DocumentMask* other) {
+ using std::swap;
+ field_paths_.InternalSwap(&other->field_paths_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DocumentMask::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Precondition::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_Precondition_default_instance_.exists_ = false;
+ ::google::firestore::v1beta1::_Precondition_default_instance_.update_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void Precondition::set_allocated_update_time(::google::protobuf::Timestamp* update_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_condition_type();
+ if (update_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(update_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ update_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, update_time, submessage_arena);
+ }
+ set_has_update_time();
+ condition_type_.update_time_ = update_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Precondition.update_time)
+}
+void Precondition::clear_update_time() {
+ if (has_update_time()) {
+ delete condition_type_.update_time_;
+ clear_has_condition_type();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Precondition::kExistsFieldNumber;
+const int Precondition::kUpdateTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Precondition::Precondition()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPrecondition();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Precondition)
+}
+Precondition::Precondition(const Precondition& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_condition_type();
+ switch (from.condition_type_case()) {
+ case kExists: {
+ set_exists(from.exists());
+ break;
+ }
+ case kUpdateTime: {
+ mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(from.update_time());
+ break;
+ }
+ case CONDITION_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Precondition)
+}
+
+void Precondition::SharedCtor() {
+ clear_has_condition_type();
+ _cached_size_ = 0;
+}
+
+Precondition::~Precondition() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Precondition)
+ SharedDtor();
+}
+
+void Precondition::SharedDtor() {
+ if (has_condition_type()) {
+ clear_condition_type();
+ }
+}
+
+void Precondition::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Precondition::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Precondition& Precondition::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPrecondition();
+ return *internal_default_instance();
+}
+
+Precondition* Precondition::New(::google::protobuf::Arena* arena) const {
+ Precondition* n = new Precondition;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Precondition::clear_condition_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.Precondition)
+ switch (condition_type_case()) {
+ case kExists: {
+ // No need to clear
+ break;
+ }
+ case kUpdateTime: {
+ delete condition_type_.update_time_;
+ break;
+ }
+ case CONDITION_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = CONDITION_TYPE_NOT_SET;
+}
+
+
+void Precondition::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Precondition)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_condition_type();
+ _internal_metadata_.Clear();
+}
+
+bool Precondition::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Precondition)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // bool exists = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ clear_condition_type();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &condition_type_.exists_)));
+ set_has_exists();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp update_time = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_update_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Precondition)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Precondition)
+ return false;
+#undef DO_
+}
+
+void Precondition::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Precondition)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bool exists = 1;
+ if (has_exists()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->exists(), output);
+ }
+
+ // .google.protobuf.Timestamp update_time = 2;
+ if (has_update_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *condition_type_.update_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Precondition)
+}
+
+::google::protobuf::uint8* Precondition::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Precondition)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bool exists = 1;
+ if (has_exists()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->exists(), target);
+ }
+
+ // .google.protobuf.Timestamp update_time = 2;
+ if (has_update_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *condition_type_.update_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Precondition)
+ return target;
+}
+
+size_t Precondition::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Precondition)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (condition_type_case()) {
+ // bool exists = 1;
+ case kExists: {
+ total_size += 1 + 1;
+ break;
+ }
+ // .google.protobuf.Timestamp update_time = 2;
+ case kUpdateTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *condition_type_.update_time_);
+ break;
+ }
+ case CONDITION_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Precondition::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Precondition)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Precondition* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Precondition>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Precondition)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Precondition)
+ MergeFrom(*source);
+ }
+}
+
+void Precondition::MergeFrom(const Precondition& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Precondition)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.condition_type_case()) {
+ case kExists: {
+ set_exists(from.exists());
+ break;
+ }
+ case kUpdateTime: {
+ mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(from.update_time());
+ break;
+ }
+ case CONDITION_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Precondition::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Precondition)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Precondition::CopyFrom(const Precondition& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Precondition)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Precondition::IsInitialized() const {
+ return true;
+}
+
+void Precondition::Swap(Precondition* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Precondition::InternalSwap(Precondition* other) {
+ using std::swap;
+ swap(condition_type_, other->condition_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Precondition::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void TransactionOptions_ReadWrite::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int TransactionOptions_ReadWrite::kRetryTransactionFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+TransactionOptions_ReadWrite::TransactionOptions_ReadWrite()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadWrite();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+}
+TransactionOptions_ReadWrite::TransactionOptions_ReadWrite(const TransactionOptions_ReadWrite& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ retry_transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.retry_transaction().size() > 0) {
+ retry_transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_transaction_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+}
+
+void TransactionOptions_ReadWrite::SharedCtor() {
+ retry_transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+TransactionOptions_ReadWrite::~TransactionOptions_ReadWrite() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ SharedDtor();
+}
+
+void TransactionOptions_ReadWrite::SharedDtor() {
+ retry_transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void TransactionOptions_ReadWrite::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* TransactionOptions_ReadWrite::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const TransactionOptions_ReadWrite& TransactionOptions_ReadWrite::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadWrite();
+ return *internal_default_instance();
+}
+
+TransactionOptions_ReadWrite* TransactionOptions_ReadWrite::New(::google::protobuf::Arena* arena) const {
+ TransactionOptions_ReadWrite* n = new TransactionOptions_ReadWrite;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void TransactionOptions_ReadWrite::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ retry_transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool TransactionOptions_ReadWrite::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // bytes retry_transaction = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_retry_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ return false;
+#undef DO_
+}
+
+void TransactionOptions_ReadWrite::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes retry_transaction = 1;
+ if (this->retry_transaction().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 1, this->retry_transaction(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+}
+
+::google::protobuf::uint8* TransactionOptions_ReadWrite::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes retry_transaction = 1;
+ if (this->retry_transaction().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 1, this->retry_transaction(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ return target;
+}
+
+size_t TransactionOptions_ReadWrite::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes retry_transaction = 1;
+ if (this->retry_transaction().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->retry_transaction());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void TransactionOptions_ReadWrite::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ GOOGLE_DCHECK_NE(&from, this);
+ const TransactionOptions_ReadWrite* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const TransactionOptions_ReadWrite>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ MergeFrom(*source);
+ }
+}
+
+void TransactionOptions_ReadWrite::MergeFrom(const TransactionOptions_ReadWrite& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.retry_transaction().size() > 0) {
+
+ retry_transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_transaction_);
+ }
+}
+
+void TransactionOptions_ReadWrite::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void TransactionOptions_ReadWrite::CopyFrom(const TransactionOptions_ReadWrite& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TransactionOptions_ReadWrite::IsInitialized() const {
+ return true;
+}
+
+void TransactionOptions_ReadWrite::Swap(TransactionOptions_ReadWrite* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void TransactionOptions_ReadWrite::InternalSwap(TransactionOptions_ReadWrite* other) {
+ using std::swap;
+ retry_transaction_.Swap(&other->retry_transaction_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata TransactionOptions_ReadWrite::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void TransactionOptions_ReadOnly::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_TransactionOptions_ReadOnly_default_instance_.read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void TransactionOptions_ReadOnly::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+ set_has_read_time();
+ consistency_selector_.read_time_ = read_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
+}
+void TransactionOptions_ReadOnly::clear_read_time() {
+ if (has_read_time()) {
+ delete consistency_selector_.read_time_;
+ clear_has_consistency_selector();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int TransactionOptions_ReadOnly::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+TransactionOptions_ReadOnly::TransactionOptions_ReadOnly()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadOnly();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+}
+TransactionOptions_ReadOnly::TransactionOptions_ReadOnly(const TransactionOptions_ReadOnly& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_consistency_selector();
+ switch (from.consistency_selector_case()) {
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+}
+
+void TransactionOptions_ReadOnly::SharedCtor() {
+ clear_has_consistency_selector();
+ _cached_size_ = 0;
+}
+
+TransactionOptions_ReadOnly::~TransactionOptions_ReadOnly() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ SharedDtor();
+}
+
+void TransactionOptions_ReadOnly::SharedDtor() {
+ if (has_consistency_selector()) {
+ clear_consistency_selector();
+ }
+}
+
+void TransactionOptions_ReadOnly::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* TransactionOptions_ReadOnly::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const TransactionOptions_ReadOnly& TransactionOptions_ReadOnly::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadOnly();
+ return *internal_default_instance();
+}
+
+TransactionOptions_ReadOnly* TransactionOptions_ReadOnly::New(::google::protobuf::Arena* arena) const {
+ TransactionOptions_ReadOnly* n = new TransactionOptions_ReadOnly;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void TransactionOptions_ReadOnly::clear_consistency_selector() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ switch (consistency_selector_case()) {
+ case kReadTime: {
+ delete consistency_selector_.read_time_;
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+
+
+void TransactionOptions_ReadOnly::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_consistency_selector();
+ _internal_metadata_.Clear();
+}
+
+bool TransactionOptions_ReadOnly::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.protobuf.Timestamp read_time = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ return false;
+#undef DO_
+}
+
+void TransactionOptions_ReadOnly::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.protobuf.Timestamp read_time = 2;
+ if (has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *consistency_selector_.read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+}
+
+::google::protobuf::uint8* TransactionOptions_ReadOnly::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.protobuf.Timestamp read_time = 2;
+ if (has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *consistency_selector_.read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ return target;
+}
+
+size_t TransactionOptions_ReadOnly::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (consistency_selector_case()) {
+ // .google.protobuf.Timestamp read_time = 2;
+ case kReadTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.read_time_);
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void TransactionOptions_ReadOnly::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ GOOGLE_DCHECK_NE(&from, this);
+ const TransactionOptions_ReadOnly* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const TransactionOptions_ReadOnly>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ MergeFrom(*source);
+ }
+}
+
+void TransactionOptions_ReadOnly::MergeFrom(const TransactionOptions_ReadOnly& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.consistency_selector_case()) {
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void TransactionOptions_ReadOnly::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void TransactionOptions_ReadOnly::CopyFrom(const TransactionOptions_ReadOnly& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TransactionOptions_ReadOnly::IsInitialized() const {
+ return true;
+}
+
+void TransactionOptions_ReadOnly::Swap(TransactionOptions_ReadOnly* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void TransactionOptions_ReadOnly::InternalSwap(TransactionOptions_ReadOnly* other) {
+ using std::swap;
+ swap(consistency_selector_, other->consistency_selector_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata TransactionOptions_ReadOnly::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void TransactionOptions::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_TransactionOptions_default_instance_.read_only_ = const_cast< ::google::firestore::v1beta1::TransactionOptions_ReadOnly*>(
+ ::google::firestore::v1beta1::TransactionOptions_ReadOnly::internal_default_instance());
+ ::google::firestore::v1beta1::_TransactionOptions_default_instance_.read_write_ = const_cast< ::google::firestore::v1beta1::TransactionOptions_ReadWrite*>(
+ ::google::firestore::v1beta1::TransactionOptions_ReadWrite::internal_default_instance());
+}
+void TransactionOptions::set_allocated_read_only(::google::firestore::v1beta1::TransactionOptions_ReadOnly* read_only) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_mode();
+ if (read_only) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ read_only = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_only, submessage_arena);
+ }
+ set_has_read_only();
+ mode_.read_only_ = read_only;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TransactionOptions.read_only)
+}
+void TransactionOptions::set_allocated_read_write(::google::firestore::v1beta1::TransactionOptions_ReadWrite* read_write) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_mode();
+ if (read_write) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ read_write = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_write, submessage_arena);
+ }
+ set_has_read_write();
+ mode_.read_write_ = read_write;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TransactionOptions.read_write)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int TransactionOptions::kReadOnlyFieldNumber;
+const int TransactionOptions::kReadWriteFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+TransactionOptions::TransactionOptions()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.TransactionOptions)
+}
+TransactionOptions::TransactionOptions(const TransactionOptions& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_mode();
+ switch (from.mode_case()) {
+ case kReadOnly: {
+ mutable_read_only()->::google::firestore::v1beta1::TransactionOptions_ReadOnly::MergeFrom(from.read_only());
+ break;
+ }
+ case kReadWrite: {
+ mutable_read_write()->::google::firestore::v1beta1::TransactionOptions_ReadWrite::MergeFrom(from.read_write());
+ break;
+ }
+ case MODE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.TransactionOptions)
+}
+
+void TransactionOptions::SharedCtor() {
+ clear_has_mode();
+ _cached_size_ = 0;
+}
+
+TransactionOptions::~TransactionOptions() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.TransactionOptions)
+ SharedDtor();
+}
+
+void TransactionOptions::SharedDtor() {
+ if (has_mode()) {
+ clear_mode();
+ }
+}
+
+void TransactionOptions::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* TransactionOptions::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const TransactionOptions& TransactionOptions::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions();
+ return *internal_default_instance();
+}
+
+TransactionOptions* TransactionOptions::New(::google::protobuf::Arena* arena) const {
+ TransactionOptions* n = new TransactionOptions;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void TransactionOptions::clear_mode() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.TransactionOptions)
+ switch (mode_case()) {
+ case kReadOnly: {
+ delete mode_.read_only_;
+ break;
+ }
+ case kReadWrite: {
+ delete mode_.read_write_;
+ break;
+ }
+ case MODE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = MODE_NOT_SET;
+}
+
+
+void TransactionOptions::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.TransactionOptions)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_mode();
+ _internal_metadata_.Clear();
+}
+
+bool TransactionOptions::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.TransactionOptions)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_only()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_write()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.TransactionOptions)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.TransactionOptions)
+ return false;
+#undef DO_
+}
+
+void TransactionOptions::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.TransactionOptions)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
+ if (has_read_only()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *mode_.read_only_, output);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
+ if (has_read_write()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *mode_.read_write_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.TransactionOptions)
+}
+
+::google::protobuf::uint8* TransactionOptions::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.TransactionOptions)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
+ if (has_read_only()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *mode_.read_only_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
+ if (has_read_write()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *mode_.read_write_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.TransactionOptions)
+ return target;
+}
+
+size_t TransactionOptions::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.TransactionOptions)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (mode_case()) {
+ // .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
+ case kReadOnly: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *mode_.read_only_);
+ break;
+ }
+ // .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
+ case kReadWrite: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *mode_.read_write_);
+ break;
+ }
+ case MODE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void TransactionOptions::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.TransactionOptions)
+ GOOGLE_DCHECK_NE(&from, this);
+ const TransactionOptions* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const TransactionOptions>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.TransactionOptions)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.TransactionOptions)
+ MergeFrom(*source);
+ }
+}
+
+void TransactionOptions::MergeFrom(const TransactionOptions& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.TransactionOptions)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.mode_case()) {
+ case kReadOnly: {
+ mutable_read_only()->::google::firestore::v1beta1::TransactionOptions_ReadOnly::MergeFrom(from.read_only());
+ break;
+ }
+ case kReadWrite: {
+ mutable_read_write()->::google::firestore::v1beta1::TransactionOptions_ReadWrite::MergeFrom(from.read_write());
+ break;
+ }
+ case MODE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void TransactionOptions::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.TransactionOptions)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void TransactionOptions::CopyFrom(const TransactionOptions& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.TransactionOptions)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TransactionOptions::IsInitialized() const {
+ return true;
+}
+
+void TransactionOptions::Swap(TransactionOptions* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void TransactionOptions::InternalSwap(TransactionOptions* other) {
+ using std::swap;
+ swap(mode_, other->mode_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata TransactionOptions::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.h b/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.h
new file mode 100644
index 0000000..1cf26d4
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.h
@@ -0,0 +1,1082 @@
+/*
+ * 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: google/firestore/v1beta1/common.proto
+
+#ifndef PROTOBUF_google_2ffirestore_2fv1beta1_2fcommon_2eproto__INCLUDED
+#define PROTOBUF_google_2ffirestore_2fv1beta1_2fcommon_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/api/annotations.pb.h"
+#include <google/protobuf/timestamp.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2ffirestore_2fv1beta1_2fcommon_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[5];
+ 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 InitDefaultsDocumentMaskImpl();
+void InitDefaultsDocumentMask();
+void InitDefaultsPreconditionImpl();
+void InitDefaultsPrecondition();
+void InitDefaultsTransactionOptions_ReadWriteImpl();
+void InitDefaultsTransactionOptions_ReadWrite();
+void InitDefaultsTransactionOptions_ReadOnlyImpl();
+void InitDefaultsTransactionOptions_ReadOnly();
+void InitDefaultsTransactionOptionsImpl();
+void InitDefaultsTransactionOptions();
+inline void InitDefaults() {
+ InitDefaultsDocumentMask();
+ InitDefaultsPrecondition();
+ InitDefaultsTransactionOptions_ReadWrite();
+ InitDefaultsTransactionOptions_ReadOnly();
+ InitDefaultsTransactionOptions();
+}
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class DocumentMask;
+class DocumentMaskDefaultTypeInternal;
+extern DocumentMaskDefaultTypeInternal _DocumentMask_default_instance_;
+class Precondition;
+class PreconditionDefaultTypeInternal;
+extern PreconditionDefaultTypeInternal _Precondition_default_instance_;
+class TransactionOptions;
+class TransactionOptionsDefaultTypeInternal;
+extern TransactionOptionsDefaultTypeInternal _TransactionOptions_default_instance_;
+class TransactionOptions_ReadOnly;
+class TransactionOptions_ReadOnlyDefaultTypeInternal;
+extern TransactionOptions_ReadOnlyDefaultTypeInternal _TransactionOptions_ReadOnly_default_instance_;
+class TransactionOptions_ReadWrite;
+class TransactionOptions_ReadWriteDefaultTypeInternal;
+extern TransactionOptions_ReadWriteDefaultTypeInternal _TransactionOptions_ReadWrite_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+// ===================================================================
+
+class DocumentMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentMask) */ {
+ public:
+ DocumentMask();
+ virtual ~DocumentMask();
+
+ DocumentMask(const DocumentMask& from);
+
+ inline DocumentMask& operator=(const DocumentMask& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DocumentMask(DocumentMask&& from) noexcept
+ : DocumentMask() {
+ *this = ::std::move(from);
+ }
+
+ inline DocumentMask& operator=(DocumentMask&& 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 DocumentMask& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DocumentMask* internal_default_instance() {
+ return reinterpret_cast<const DocumentMask*>(
+ &_DocumentMask_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(DocumentMask* other);
+ friend void swap(DocumentMask& a, DocumentMask& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DocumentMask* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DocumentMask* 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 DocumentMask& from);
+ void MergeFrom(const DocumentMask& 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(DocumentMask* 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 -------------------------------------------------------
+
+ // repeated string field_paths = 1;
+ int field_paths_size() const;
+ void clear_field_paths();
+ static const int kFieldPathsFieldNumber = 1;
+ const ::std::string& field_paths(int index) const;
+ ::std::string* mutable_field_paths(int index);
+ void set_field_paths(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_field_paths(int index, ::std::string&& value);
+ #endif
+ void set_field_paths(int index, const char* value);
+ void set_field_paths(int index, const char* value, size_t size);
+ ::std::string* add_field_paths();
+ void add_field_paths(const ::std::string& value);
+ #if LANG_CXX11
+ void add_field_paths(::std::string&& value);
+ #endif
+ void add_field_paths(const char* value);
+ void add_field_paths(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& field_paths() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_field_paths();
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentMask)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> field_paths_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMaskImpl();
+};
+// -------------------------------------------------------------------
+
+class Precondition : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Precondition) */ {
+ public:
+ Precondition();
+ virtual ~Precondition();
+
+ Precondition(const Precondition& from);
+
+ inline Precondition& operator=(const Precondition& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Precondition(Precondition&& from) noexcept
+ : Precondition() {
+ *this = ::std::move(from);
+ }
+
+ inline Precondition& operator=(Precondition&& 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 Precondition& default_instance();
+
+ enum ConditionTypeCase {
+ kExists = 1,
+ kUpdateTime = 2,
+ CONDITION_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Precondition* internal_default_instance() {
+ return reinterpret_cast<const Precondition*>(
+ &_Precondition_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(Precondition* other);
+ friend void swap(Precondition& a, Precondition& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Precondition* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Precondition* 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 Precondition& from);
+ void MergeFrom(const Precondition& 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(Precondition* 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 -------------------------------------------------------
+
+ // bool exists = 1;
+ private:
+ bool has_exists() const;
+ public:
+ void clear_exists();
+ static const int kExistsFieldNumber = 1;
+ bool exists() const;
+ void set_exists(bool value);
+
+ // .google.protobuf.Timestamp update_time = 2;
+ bool has_update_time() const;
+ void clear_update_time();
+ static const int kUpdateTimeFieldNumber = 2;
+ const ::google::protobuf::Timestamp& update_time() const;
+ ::google::protobuf::Timestamp* release_update_time();
+ ::google::protobuf::Timestamp* mutable_update_time();
+ void set_allocated_update_time(::google::protobuf::Timestamp* update_time);
+
+ ConditionTypeCase condition_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Precondition)
+ private:
+ void set_has_exists();
+ void set_has_update_time();
+
+ inline bool has_condition_type() const;
+ void clear_condition_type();
+ inline void clear_has_condition_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union ConditionTypeUnion {
+ ConditionTypeUnion() {}
+ bool exists_;
+ ::google::protobuf::Timestamp* update_time_;
+ } condition_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPreconditionImpl();
+};
+// -------------------------------------------------------------------
+
+class TransactionOptions_ReadWrite : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TransactionOptions.ReadWrite) */ {
+ public:
+ TransactionOptions_ReadWrite();
+ virtual ~TransactionOptions_ReadWrite();
+
+ TransactionOptions_ReadWrite(const TransactionOptions_ReadWrite& from);
+
+ inline TransactionOptions_ReadWrite& operator=(const TransactionOptions_ReadWrite& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ TransactionOptions_ReadWrite(TransactionOptions_ReadWrite&& from) noexcept
+ : TransactionOptions_ReadWrite() {
+ *this = ::std::move(from);
+ }
+
+ inline TransactionOptions_ReadWrite& operator=(TransactionOptions_ReadWrite&& 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 TransactionOptions_ReadWrite& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TransactionOptions_ReadWrite* internal_default_instance() {
+ return reinterpret_cast<const TransactionOptions_ReadWrite*>(
+ &_TransactionOptions_ReadWrite_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void Swap(TransactionOptions_ReadWrite* other);
+ friend void swap(TransactionOptions_ReadWrite& a, TransactionOptions_ReadWrite& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TransactionOptions_ReadWrite* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ TransactionOptions_ReadWrite* 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 TransactionOptions_ReadWrite& from);
+ void MergeFrom(const TransactionOptions_ReadWrite& 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(TransactionOptions_ReadWrite* 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 retry_transaction = 1;
+ void clear_retry_transaction();
+ static const int kRetryTransactionFieldNumber = 1;
+ const ::std::string& retry_transaction() const;
+ void set_retry_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_retry_transaction(::std::string&& value);
+ #endif
+ void set_retry_transaction(const char* value);
+ void set_retry_transaction(const void* value, size_t size);
+ ::std::string* mutable_retry_transaction();
+ ::std::string* release_retry_transaction();
+ void set_allocated_retry_transaction(::std::string* retry_transaction);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TransactionOptions.ReadWrite)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr retry_transaction_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadWriteImpl();
+};
+// -------------------------------------------------------------------
+
+class TransactionOptions_ReadOnly : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TransactionOptions.ReadOnly) */ {
+ public:
+ TransactionOptions_ReadOnly();
+ virtual ~TransactionOptions_ReadOnly();
+
+ TransactionOptions_ReadOnly(const TransactionOptions_ReadOnly& from);
+
+ inline TransactionOptions_ReadOnly& operator=(const TransactionOptions_ReadOnly& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ TransactionOptions_ReadOnly(TransactionOptions_ReadOnly&& from) noexcept
+ : TransactionOptions_ReadOnly() {
+ *this = ::std::move(from);
+ }
+
+ inline TransactionOptions_ReadOnly& operator=(TransactionOptions_ReadOnly&& 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 TransactionOptions_ReadOnly& default_instance();
+
+ enum ConsistencySelectorCase {
+ kReadTime = 2,
+ CONSISTENCY_SELECTOR_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TransactionOptions_ReadOnly* internal_default_instance() {
+ return reinterpret_cast<const TransactionOptions_ReadOnly*>(
+ &_TransactionOptions_ReadOnly_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void Swap(TransactionOptions_ReadOnly* other);
+ friend void swap(TransactionOptions_ReadOnly& a, TransactionOptions_ReadOnly& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TransactionOptions_ReadOnly* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ TransactionOptions_ReadOnly* 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 TransactionOptions_ReadOnly& from);
+ void MergeFrom(const TransactionOptions_ReadOnly& 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(TransactionOptions_ReadOnly* 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 read_time = 2;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 2;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ ConsistencySelectorCase consistency_selector_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TransactionOptions.ReadOnly)
+ private:
+ void set_has_read_time();
+
+ inline bool has_consistency_selector() const;
+ void clear_consistency_selector();
+ inline void clear_has_consistency_selector();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union ConsistencySelectorUnion {
+ ConsistencySelectorUnion() {}
+ ::google::protobuf::Timestamp* read_time_;
+ } consistency_selector_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadOnlyImpl();
+};
+// -------------------------------------------------------------------
+
+class TransactionOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TransactionOptions) */ {
+ public:
+ TransactionOptions();
+ virtual ~TransactionOptions();
+
+ TransactionOptions(const TransactionOptions& from);
+
+ inline TransactionOptions& operator=(const TransactionOptions& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ TransactionOptions(TransactionOptions&& from) noexcept
+ : TransactionOptions() {
+ *this = ::std::move(from);
+ }
+
+ inline TransactionOptions& operator=(TransactionOptions&& 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 TransactionOptions& default_instance();
+
+ enum ModeCase {
+ kReadOnly = 2,
+ kReadWrite = 3,
+ MODE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TransactionOptions* internal_default_instance() {
+ return reinterpret_cast<const TransactionOptions*>(
+ &_TransactionOptions_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 4;
+
+ void Swap(TransactionOptions* other);
+ friend void swap(TransactionOptions& a, TransactionOptions& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TransactionOptions* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ TransactionOptions* 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 TransactionOptions& from);
+ void MergeFrom(const TransactionOptions& 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(TransactionOptions* 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 ----------------------------------------------------
+
+ typedef TransactionOptions_ReadWrite ReadWrite;
+ typedef TransactionOptions_ReadOnly ReadOnly;
+
+ // accessors -------------------------------------------------------
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
+ bool has_read_only() const;
+ void clear_read_only();
+ static const int kReadOnlyFieldNumber = 2;
+ const ::google::firestore::v1beta1::TransactionOptions_ReadOnly& read_only() const;
+ ::google::firestore::v1beta1::TransactionOptions_ReadOnly* release_read_only();
+ ::google::firestore::v1beta1::TransactionOptions_ReadOnly* mutable_read_only();
+ void set_allocated_read_only(::google::firestore::v1beta1::TransactionOptions_ReadOnly* read_only);
+
+ // .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
+ bool has_read_write() const;
+ void clear_read_write();
+ static const int kReadWriteFieldNumber = 3;
+ const ::google::firestore::v1beta1::TransactionOptions_ReadWrite& read_write() const;
+ ::google::firestore::v1beta1::TransactionOptions_ReadWrite* release_read_write();
+ ::google::firestore::v1beta1::TransactionOptions_ReadWrite* mutable_read_write();
+ void set_allocated_read_write(::google::firestore::v1beta1::TransactionOptions_ReadWrite* read_write);
+
+ ModeCase mode_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TransactionOptions)
+ private:
+ void set_has_read_only();
+ void set_has_read_write();
+
+ inline bool has_mode() const;
+ void clear_mode();
+ inline void clear_has_mode();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union ModeUnion {
+ ModeUnion() {}
+ ::google::firestore::v1beta1::TransactionOptions_ReadOnly* read_only_;
+ ::google::firestore::v1beta1::TransactionOptions_ReadWrite* read_write_;
+ } mode_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptionsImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// DocumentMask
+
+// repeated string field_paths = 1;
+inline int DocumentMask::field_paths_size() const {
+ return field_paths_.size();
+}
+inline void DocumentMask::clear_field_paths() {
+ field_paths_.Clear();
+}
+inline const ::std::string& DocumentMask::field_paths(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentMask.field_paths)
+ return field_paths_.Get(index);
+}
+inline ::std::string* DocumentMask::mutable_field_paths(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentMask.field_paths)
+ return field_paths_.Mutable(index);
+}
+inline void DocumentMask::set_field_paths(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentMask.field_paths)
+ field_paths_.Mutable(index)->assign(value);
+}
+#if LANG_CXX11
+inline void DocumentMask::set_field_paths(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentMask.field_paths)
+ field_paths_.Mutable(index)->assign(std::move(value));
+}
+#endif
+inline void DocumentMask::set_field_paths(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ field_paths_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DocumentMask.field_paths)
+}
+inline void DocumentMask::set_field_paths(int index, const char* value, size_t size) {
+ field_paths_.Mutable(index)->assign(
+ reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DocumentMask.field_paths)
+}
+inline ::std::string* DocumentMask::add_field_paths() {
+ // @@protoc_insertion_point(field_add_mutable:google.firestore.v1beta1.DocumentMask.field_paths)
+ return field_paths_.Add();
+}
+inline void DocumentMask::add_field_paths(const ::std::string& value) {
+ field_paths_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentMask.field_paths)
+}
+#if LANG_CXX11
+inline void DocumentMask::add_field_paths(::std::string&& value) {
+ field_paths_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentMask.field_paths)
+}
+#endif
+inline void DocumentMask::add_field_paths(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ field_paths_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:google.firestore.v1beta1.DocumentMask.field_paths)
+}
+inline void DocumentMask::add_field_paths(const char* value, size_t size) {
+ field_paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:google.firestore.v1beta1.DocumentMask.field_paths)
+}
+inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
+DocumentMask::field_paths() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentMask.field_paths)
+ return field_paths_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::std::string>*
+DocumentMask::mutable_field_paths() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentMask.field_paths)
+ return &field_paths_;
+}
+
+// -------------------------------------------------------------------
+
+// Precondition
+
+// bool exists = 1;
+inline bool Precondition::has_exists() const {
+ return condition_type_case() == kExists;
+}
+inline void Precondition::set_has_exists() {
+ _oneof_case_[0] = kExists;
+}
+inline void Precondition::clear_exists() {
+ if (has_exists()) {
+ condition_type_.exists_ = false;
+ clear_has_condition_type();
+ }
+}
+inline bool Precondition::exists() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Precondition.exists)
+ if (has_exists()) {
+ return condition_type_.exists_;
+ }
+ return false;
+}
+inline void Precondition::set_exists(bool value) {
+ if (!has_exists()) {
+ clear_condition_type();
+ set_has_exists();
+ }
+ condition_type_.exists_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Precondition.exists)
+}
+
+// .google.protobuf.Timestamp update_time = 2;
+inline bool Precondition::has_update_time() const {
+ return condition_type_case() == kUpdateTime;
+}
+inline void Precondition::set_has_update_time() {
+ _oneof_case_[0] = kUpdateTime;
+}
+inline ::google::protobuf::Timestamp* Precondition::release_update_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Precondition.update_time)
+ if (has_update_time()) {
+ clear_has_condition_type();
+ ::google::protobuf::Timestamp* temp = condition_type_.update_time_;
+ condition_type_.update_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& Precondition::update_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Precondition.update_time)
+ return has_update_time()
+ ? *condition_type_.update_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* Precondition::mutable_update_time() {
+ if (!has_update_time()) {
+ clear_condition_type();
+ set_has_update_time();
+ condition_type_.update_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Precondition.update_time)
+ return condition_type_.update_time_;
+}
+
+inline bool Precondition::has_condition_type() const {
+ return condition_type_case() != CONDITION_TYPE_NOT_SET;
+}
+inline void Precondition::clear_has_condition_type() {
+ _oneof_case_[0] = CONDITION_TYPE_NOT_SET;
+}
+inline Precondition::ConditionTypeCase Precondition::condition_type_case() const {
+ return Precondition::ConditionTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// TransactionOptions_ReadWrite
+
+// bytes retry_transaction = 1;
+inline void TransactionOptions_ReadWrite::clear_retry_transaction() {
+ retry_transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& TransactionOptions_ReadWrite::retry_transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+ return retry_transaction_.GetNoArena();
+}
+inline void TransactionOptions_ReadWrite::set_retry_transaction(const ::std::string& value) {
+
+ retry_transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+}
+#if LANG_CXX11
+inline void TransactionOptions_ReadWrite::set_retry_transaction(::std::string&& value) {
+
+ retry_transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+}
+#endif
+inline void TransactionOptions_ReadWrite::set_retry_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ retry_transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+}
+inline void TransactionOptions_ReadWrite::set_retry_transaction(const void* value, size_t size) {
+
+ retry_transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+}
+inline ::std::string* TransactionOptions_ReadWrite::mutable_retry_transaction() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+ return retry_transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* TransactionOptions_ReadWrite::release_retry_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+
+ return retry_transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void TransactionOptions_ReadWrite::set_allocated_retry_transaction(::std::string* retry_transaction) {
+ if (retry_transaction != NULL) {
+
+ } else {
+
+ }
+ retry_transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retry_transaction);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
+}
+
+// -------------------------------------------------------------------
+
+// TransactionOptions_ReadOnly
+
+// .google.protobuf.Timestamp read_time = 2;
+inline bool TransactionOptions_ReadOnly::has_read_time() const {
+ return consistency_selector_case() == kReadTime;
+}
+inline void TransactionOptions_ReadOnly::set_has_read_time() {
+ _oneof_case_[0] = kReadTime;
+}
+inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
+ if (has_read_time()) {
+ clear_has_consistency_selector();
+ ::google::protobuf::Timestamp* temp = consistency_selector_.read_time_;
+ consistency_selector_.read_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& TransactionOptions_ReadOnly::read_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
+ return has_read_time()
+ ? *consistency_selector_.read_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::mutable_read_time() {
+ if (!has_read_time()) {
+ clear_consistency_selector();
+ set_has_read_time();
+ consistency_selector_.read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
+ return consistency_selector_.read_time_;
+}
+
+inline bool TransactionOptions_ReadOnly::has_consistency_selector() const {
+ return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline void TransactionOptions_ReadOnly::clear_has_consistency_selector() {
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline TransactionOptions_ReadOnly::ConsistencySelectorCase TransactionOptions_ReadOnly::consistency_selector_case() const {
+ return TransactionOptions_ReadOnly::ConsistencySelectorCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// TransactionOptions
+
+// .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
+inline bool TransactionOptions::has_read_only() const {
+ return mode_case() == kReadOnly;
+}
+inline void TransactionOptions::set_has_read_only() {
+ _oneof_case_[0] = kReadOnly;
+}
+inline void TransactionOptions::clear_read_only() {
+ if (has_read_only()) {
+ delete mode_.read_only_;
+ clear_has_mode();
+ }
+}
+inline ::google::firestore::v1beta1::TransactionOptions_ReadOnly* TransactionOptions::release_read_only() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.read_only)
+ if (has_read_only()) {
+ clear_has_mode();
+ ::google::firestore::v1beta1::TransactionOptions_ReadOnly* temp = mode_.read_only_;
+ mode_.read_only_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::TransactionOptions_ReadOnly& TransactionOptions::read_only() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.read_only)
+ return has_read_only()
+ ? *mode_.read_only_
+ : *reinterpret_cast< ::google::firestore::v1beta1::TransactionOptions_ReadOnly*>(&::google::firestore::v1beta1::_TransactionOptions_ReadOnly_default_instance_);
+}
+inline ::google::firestore::v1beta1::TransactionOptions_ReadOnly* TransactionOptions::mutable_read_only() {
+ if (!has_read_only()) {
+ clear_mode();
+ set_has_read_only();
+ mode_.read_only_ = new ::google::firestore::v1beta1::TransactionOptions_ReadOnly;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.read_only)
+ return mode_.read_only_;
+}
+
+// .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
+inline bool TransactionOptions::has_read_write() const {
+ return mode_case() == kReadWrite;
+}
+inline void TransactionOptions::set_has_read_write() {
+ _oneof_case_[0] = kReadWrite;
+}
+inline void TransactionOptions::clear_read_write() {
+ if (has_read_write()) {
+ delete mode_.read_write_;
+ clear_has_mode();
+ }
+}
+inline ::google::firestore::v1beta1::TransactionOptions_ReadWrite* TransactionOptions::release_read_write() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.read_write)
+ if (has_read_write()) {
+ clear_has_mode();
+ ::google::firestore::v1beta1::TransactionOptions_ReadWrite* temp = mode_.read_write_;
+ mode_.read_write_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::TransactionOptions_ReadWrite& TransactionOptions::read_write() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.read_write)
+ return has_read_write()
+ ? *mode_.read_write_
+ : *reinterpret_cast< ::google::firestore::v1beta1::TransactionOptions_ReadWrite*>(&::google::firestore::v1beta1::_TransactionOptions_ReadWrite_default_instance_);
+}
+inline ::google::firestore::v1beta1::TransactionOptions_ReadWrite* TransactionOptions::mutable_read_write() {
+ if (!has_read_write()) {
+ clear_mode();
+ set_has_read_write();
+ mode_.read_write_ = new ::google::firestore::v1beta1::TransactionOptions_ReadWrite;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.read_write)
+ return mode_.read_write_;
+}
+
+inline bool TransactionOptions::has_mode() const {
+ return mode_case() != MODE_NOT_SET;
+}
+inline void TransactionOptions::clear_has_mode() {
+ _oneof_case_[0] = MODE_NOT_SET;
+}
+inline TransactionOptions::ModeCase TransactionOptions::mode_case() const {
+ return TransactionOptions::ModeCase(_oneof_case_[0]);
+}
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2ffirestore_2fv1beta1_2fcommon_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.cc b/Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.cc
new file mode 100644
index 0000000..a0dccf0
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.cc
@@ -0,0 +1,2301 @@
+/*
+ * 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: google/firestore/v1beta1/document.proto
+
+#include "google/firestore/v1beta1/document.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class Document_FieldsEntry_DoNotUseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Document_FieldsEntry_DoNotUse>
+ _instance;
+} _Document_FieldsEntry_DoNotUse_default_instance_;
+class DocumentDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Document>
+ _instance;
+} _Document_default_instance_;
+class ValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Value>
+ _instance;
+ int null_value_;
+ bool boolean_value_;
+ ::google::protobuf::int64 integer_value_;
+ double double_value_;
+ const ::google::protobuf::Timestamp* timestamp_value_;
+ ::google::protobuf::internal::ArenaStringPtr string_value_;
+ ::google::protobuf::internal::ArenaStringPtr bytes_value_;
+ ::google::protobuf::internal::ArenaStringPtr reference_value_;
+ const ::google::type::LatLng* geo_point_value_;
+ const ::google::firestore::v1beta1::ArrayValue* array_value_;
+ const ::google::firestore::v1beta1::MapValue* map_value_;
+} _Value_default_instance_;
+class ArrayValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ArrayValue>
+ _instance;
+} _ArrayValue_default_instance_;
+class MapValue_FieldsEntry_DoNotUseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MapValue_FieldsEntry_DoNotUse>
+ _instance;
+} _MapValue_FieldsEntry_DoNotUse_default_instance_;
+class MapValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<MapValue>
+ _instance;
+} _MapValue_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto {
+void InitDefaultsDocument_FieldsEntry_DoNotUseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Document_FieldsEntry_DoNotUse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse();
+ }
+ ::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocument_FieldsEntry_DoNotUse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocument_FieldsEntry_DoNotUseImpl);
+}
+
+void InitDefaultsDocumentImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument_FieldsEntry_DoNotUse();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Document_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Document();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Document::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocument() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentImpl);
+}
+
+void InitDefaultsArrayValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ protobuf_google_2ftype_2flatlng_2eproto::InitDefaultsLatLng();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Value_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Value();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ {
+ void* ptr = &::google::firestore::v1beta1::_ArrayValue_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ArrayValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ {
+ void* ptr = &::google::firestore::v1beta1::_MapValue_FieldsEntry_DoNotUse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse();
+ }
+ {
+ void* ptr = &::google::firestore::v1beta1::_MapValue_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::MapValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Value::InitAsDefaultInstance();
+ ::google::firestore::v1beta1::ArrayValue::InitAsDefaultInstance();
+ ::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse::InitAsDefaultInstance();
+ ::google::firestore::v1beta1::MapValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsArrayValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArrayValueImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[6];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse, key_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse, value_),
+ 0,
+ 1,
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document, fields_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document, create_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Document, update_time_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Value, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Value, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, null_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, boolean_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, integer_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, double_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, timestamp_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, string_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, bytes_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, reference_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, geo_point_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, array_value_),
+ offsetof(::google::firestore::v1beta1::ValueDefaultTypeInternal, map_value_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Value, value_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ArrayValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ArrayValue, values_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse, key_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse, value_),
+ 0,
+ 1,
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::MapValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::MapValue, fields_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 7, sizeof(::google::firestore::v1beta1::Document_FieldsEntry_DoNotUse)},
+ { 9, -1, sizeof(::google::firestore::v1beta1::Document)},
+ { 18, -1, sizeof(::google::firestore::v1beta1::Value)},
+ { 35, -1, sizeof(::google::firestore::v1beta1::ArrayValue)},
+ { 41, 48, sizeof(::google::firestore::v1beta1::MapValue_FieldsEntry_DoNotUse)},
+ { 50, -1, sizeof(::google::firestore::v1beta1::MapValue)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Document_FieldsEntry_DoNotUse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Document_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Value_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ArrayValue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_MapValue_FieldsEntry_DoNotUse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_MapValue_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/firestore/v1beta1/document.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\'google/firestore/v1beta1/document.prot"
+ "o\022\030google.firestore.v1beta1\032\034google/api/"
+ "annotations.proto\032\034google/protobuf/struc"
+ "t.proto\032\037google/protobuf/timestamp.proto"
+ "\032\030google/type/latlng.proto\"\212\002\n\010Document\022"
+ "\014\n\004name\030\001 \001(\t\022>\n\006fields\030\002 \003(\0132..google.f"
+ "irestore.v1beta1.Document.FieldsEntry\022/\n"
+ "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim"
+ "estamp\022/\n\013update_time\030\004 \001(\0132\032.google.pro"
+ "tobuf.Timestamp\032N\n\013FieldsEntry\022\013\n\003key\030\001 "
+ "\001(\t\022.\n\005value\030\002 \001(\0132\037.google.firestore.v1"
+ "beta1.Value:\0028\001\"\270\003\n\005Value\0220\n\nnull_value\030"
+ "\013 \001(\0162\032.google.protobuf.NullValueH\000\022\027\n\rb"
+ "oolean_value\030\001 \001(\010H\000\022\027\n\rinteger_value\030\002 "
+ "\001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\0225\n\017timesta"
+ "mp_value\030\n \001(\0132\032.google.protobuf.Timesta"
+ "mpH\000\022\026\n\014string_value\030\021 \001(\tH\000\022\025\n\013bytes_va"
+ "lue\030\022 \001(\014H\000\022\031\n\017reference_value\030\005 \001(\tH\000\022."
+ "\n\017geo_point_value\030\010 \001(\0132\023.google.type.La"
+ "tLngH\000\022;\n\013array_value\030\t \001(\0132$.google.fir"
+ "estore.v1beta1.ArrayValueH\000\0227\n\tmap_value"
+ "\030\006 \001(\0132\".google.firestore.v1beta1.MapVal"
+ "ueH\000B\014\n\nvalue_type\"=\n\nArrayValue\022/\n\006valu"
+ "es\030\001 \003(\0132\037.google.firestore.v1beta1.Valu"
+ "e\"\232\001\n\010MapValue\022>\n\006fields\030\001 \003(\0132..google."
+ "firestore.v1beta1.MapValue.FieldsEntry\032N"
+ "\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001("
+ "\0132\037.google.firestore.v1beta1.Value:\0028\001B\232"
+ "\001\n\034com.google.firestore.v1beta1B\rDocumen"
+ "tProtoP\001ZAgoogle.golang.org/genproto/goo"
+ "gleapis/firestore/v1beta1;firestore\242\002\004GC"
+ "FS\252\002\036Google.Cloud.Firestore.V1Beta1b\006pro"
+ "to3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 1283);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/firestore/v1beta1/document.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+ ::protobuf_google_2ftype_2flatlng_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+// ===================================================================
+
+Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse() {}
+Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
+void Document_FieldsEntry_DoNotUse::MergeFrom(const Document_FieldsEntry_DoNotUse& other) {
+ MergeFromInternal(other);
+}
+::google::protobuf::Metadata Document_FieldsEntry_DoNotUse::GetMetadata() const {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[0];
+}
+void Document_FieldsEntry_DoNotUse::MergeFrom(
+ const ::google::protobuf::Message& other) {
+ ::google::protobuf::Message::MergeFrom(other);
+}
+
+
+// ===================================================================
+
+void Document::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_Document_default_instance_._instance.get_mutable()->create_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+ ::google::firestore::v1beta1::_Document_default_instance_._instance.get_mutable()->update_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void Document::clear_create_time() {
+ if (GetArenaNoVirtual() == NULL && create_time_ != NULL) {
+ delete create_time_;
+ }
+ create_time_ = NULL;
+}
+void Document::clear_update_time() {
+ if (GetArenaNoVirtual() == NULL && update_time_ != NULL) {
+ delete update_time_;
+ }
+ update_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Document::kNameFieldNumber;
+const int Document::kFieldsFieldNumber;
+const int Document::kCreateTimeFieldNumber;
+const int Document::kUpdateTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Document::Document()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Document)
+}
+Document::Document(const Document& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ fields_.MergeFrom(from.fields_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.name().size() > 0) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_create_time()) {
+ create_time_ = new ::google::protobuf::Timestamp(*from.create_time_);
+ } else {
+ create_time_ = NULL;
+ }
+ if (from.has_update_time()) {
+ update_time_ = new ::google::protobuf::Timestamp(*from.update_time_);
+ } else {
+ update_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Document)
+}
+
+void Document::SharedCtor() {
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&create_time_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&update_time_) -
+ reinterpret_cast<char*>(&create_time_)) + sizeof(update_time_));
+ _cached_size_ = 0;
+}
+
+Document::~Document() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Document)
+ SharedDtor();
+}
+
+void Document::SharedDtor() {
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete create_time_;
+ if (this != internal_default_instance()) delete update_time_;
+}
+
+void Document::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Document::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Document& Document::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ return *internal_default_instance();
+}
+
+Document* Document::New(::google::protobuf::Arena* arena) const {
+ Document* n = new Document;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Document::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Document)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fields_.Clear();
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && create_time_ != NULL) {
+ delete create_time_;
+ }
+ create_time_ = NULL;
+ if (GetArenaNoVirtual() == NULL && update_time_ != NULL) {
+ delete update_time_;
+ }
+ update_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool Document::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Document)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string name = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_name()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Document.name"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ Document_FieldsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
+ Document_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 >,
+ ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value > > parser(&fields_);
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ input, &parser));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.key().data(), static_cast<int>(parser.key().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Document.FieldsEntry.key"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp create_time = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_create_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp update_time = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_update_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Document)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Document)
+ return false;
+#undef DO_
+}
+
+void Document::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Document)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Document.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->name(), output);
+ }
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 2;
+ if (!this->fields().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Document.FieldsEntry.key");
+ }
+ };
+
+ if (output->IsSerializationDeterministic() &&
+ this->fields().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->fields().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<Document_FieldsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(fields_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *entry, output);
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<Document_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(
+ it->first, it->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *entry, output);
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ // .google.protobuf.Timestamp create_time = 3;
+ if (this->has_create_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->create_time_, output);
+ }
+
+ // .google.protobuf.Timestamp update_time = 4;
+ if (this->has_update_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->update_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Document)
+}
+
+::google::protobuf::uint8* Document::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Document)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Document.name");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->name(), target);
+ }
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 2;
+ if (!this->fields().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Document.FieldsEntry.key");
+ }
+ };
+
+ if (deterministic &&
+ this->fields().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->fields().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<Document_FieldsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(fields_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 2, *entry, deterministic, target);
+;
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<Document_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(
+ it->first, it->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 2, *entry, deterministic, target);
+;
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ // .google.protobuf.Timestamp create_time = 3;
+ if (this->has_create_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->create_time_, deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp update_time = 4;
+ if (this->has_update_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->update_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Document)
+ return target;
+}
+
+size_t Document::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Document)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // map<string, .google.firestore.v1beta1.Value> fields = 2;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->fields_size());
+ {
+ ::google::protobuf::scoped_ptr<Document_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(it->first, it->second));
+ total_size += ::google::protobuf::internal::WireFormatLite::
+ MessageSizeNoVirtual(*entry);
+ }
+ }
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->name());
+ }
+
+ // .google.protobuf.Timestamp create_time = 3;
+ if (this->has_create_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->create_time_);
+ }
+
+ // .google.protobuf.Timestamp update_time = 4;
+ if (this->has_update_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->update_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Document::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Document)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Document* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Document>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Document)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Document)
+ MergeFrom(*source);
+ }
+}
+
+void Document::MergeFrom(const Document& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Document)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ fields_.MergeFrom(from.fields_);
+ if (from.name().size() > 0) {
+
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_create_time()) {
+ mutable_create_time()->::google::protobuf::Timestamp::MergeFrom(from.create_time());
+ }
+ if (from.has_update_time()) {
+ mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(from.update_time());
+ }
+}
+
+void Document::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Document)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Document::CopyFrom(const Document& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Document)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Document::IsInitialized() const {
+ return true;
+}
+
+void Document::Swap(Document* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Document::InternalSwap(Document* other) {
+ using std::swap;
+ fields_.Swap(&other->fields_);
+ name_.Swap(&other->name_);
+ swap(create_time_, other->create_time_);
+ swap(update_time_, other->update_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Document::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Value::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_Value_default_instance_.null_value_ = 0;
+ ::google::firestore::v1beta1::_Value_default_instance_.boolean_value_ = false;
+ ::google::firestore::v1beta1::_Value_default_instance_.integer_value_ = GOOGLE_LONGLONG(0);
+ ::google::firestore::v1beta1::_Value_default_instance_.double_value_ = 0;
+ ::google::firestore::v1beta1::_Value_default_instance_.timestamp_value_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+ ::google::firestore::v1beta1::_Value_default_instance_.string_value_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_Value_default_instance_.bytes_value_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_Value_default_instance_.reference_value_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_Value_default_instance_.geo_point_value_ = const_cast< ::google::type::LatLng*>(
+ ::google::type::LatLng::internal_default_instance());
+ ::google::firestore::v1beta1::_Value_default_instance_.array_value_ = const_cast< ::google::firestore::v1beta1::ArrayValue*>(
+ ::google::firestore::v1beta1::ArrayValue::internal_default_instance());
+ ::google::firestore::v1beta1::_Value_default_instance_.map_value_ = const_cast< ::google::firestore::v1beta1::MapValue*>(
+ ::google::firestore::v1beta1::MapValue::internal_default_instance());
+}
+void Value::set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_value_type();
+ if (timestamp_value) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_value)->GetArena();
+ if (message_arena != submessage_arena) {
+ timestamp_value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, timestamp_value, submessage_arena);
+ }
+ set_has_timestamp_value();
+ value_type_.timestamp_value_ = timestamp_value;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.timestamp_value)
+}
+void Value::clear_timestamp_value() {
+ if (has_timestamp_value()) {
+ delete value_type_.timestamp_value_;
+ clear_has_value_type();
+ }
+}
+void Value::set_allocated_geo_point_value(::google::type::LatLng* geo_point_value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_value_type();
+ if (geo_point_value) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ geo_point_value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, geo_point_value, submessage_arena);
+ }
+ set_has_geo_point_value();
+ value_type_.geo_point_value_ = geo_point_value;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.geo_point_value)
+}
+void Value::clear_geo_point_value() {
+ if (has_geo_point_value()) {
+ delete value_type_.geo_point_value_;
+ clear_has_value_type();
+ }
+}
+void Value::set_allocated_array_value(::google::firestore::v1beta1::ArrayValue* array_value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_value_type();
+ if (array_value) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ array_value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, array_value, submessage_arena);
+ }
+ set_has_array_value();
+ value_type_.array_value_ = array_value;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.array_value)
+}
+void Value::set_allocated_map_value(::google::firestore::v1beta1::MapValue* map_value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_value_type();
+ if (map_value) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ map_value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, map_value, submessage_arena);
+ }
+ set_has_map_value();
+ value_type_.map_value_ = map_value;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.map_value)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Value::kNullValueFieldNumber;
+const int Value::kBooleanValueFieldNumber;
+const int Value::kIntegerValueFieldNumber;
+const int Value::kDoubleValueFieldNumber;
+const int Value::kTimestampValueFieldNumber;
+const int Value::kStringValueFieldNumber;
+const int Value::kBytesValueFieldNumber;
+const int Value::kReferenceValueFieldNumber;
+const int Value::kGeoPointValueFieldNumber;
+const int Value::kArrayValueFieldNumber;
+const int Value::kMapValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Value::Value()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Value)
+}
+Value::Value(const Value& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_value_type();
+ switch (from.value_type_case()) {
+ case kNullValue: {
+ set_null_value(from.null_value());
+ break;
+ }
+ case kBooleanValue: {
+ set_boolean_value(from.boolean_value());
+ break;
+ }
+ case kIntegerValue: {
+ set_integer_value(from.integer_value());
+ break;
+ }
+ case kDoubleValue: {
+ set_double_value(from.double_value());
+ break;
+ }
+ case kTimestampValue: {
+ mutable_timestamp_value()->::google::protobuf::Timestamp::MergeFrom(from.timestamp_value());
+ break;
+ }
+ case kStringValue: {
+ set_string_value(from.string_value());
+ break;
+ }
+ case kBytesValue: {
+ set_bytes_value(from.bytes_value());
+ break;
+ }
+ case kReferenceValue: {
+ set_reference_value(from.reference_value());
+ break;
+ }
+ case kGeoPointValue: {
+ mutable_geo_point_value()->::google::type::LatLng::MergeFrom(from.geo_point_value());
+ break;
+ }
+ case kArrayValue: {
+ mutable_array_value()->::google::firestore::v1beta1::ArrayValue::MergeFrom(from.array_value());
+ break;
+ }
+ case kMapValue: {
+ mutable_map_value()->::google::firestore::v1beta1::MapValue::MergeFrom(from.map_value());
+ break;
+ }
+ case VALUE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Value)
+}
+
+void Value::SharedCtor() {
+ clear_has_value_type();
+ _cached_size_ = 0;
+}
+
+Value::~Value() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Value)
+ SharedDtor();
+}
+
+void Value::SharedDtor() {
+ if (has_value_type()) {
+ clear_value_type();
+ }
+}
+
+void Value::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Value::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Value& Value::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ return *internal_default_instance();
+}
+
+Value* Value::New(::google::protobuf::Arena* arena) const {
+ Value* n = new Value;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Value::clear_value_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.Value)
+ switch (value_type_case()) {
+ case kNullValue: {
+ // No need to clear
+ break;
+ }
+ case kBooleanValue: {
+ // No need to clear
+ break;
+ }
+ case kIntegerValue: {
+ // No need to clear
+ break;
+ }
+ case kDoubleValue: {
+ // No need to clear
+ break;
+ }
+ case kTimestampValue: {
+ delete value_type_.timestamp_value_;
+ break;
+ }
+ case kStringValue: {
+ value_type_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kBytesValue: {
+ value_type_.bytes_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kReferenceValue: {
+ value_type_.reference_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kGeoPointValue: {
+ delete value_type_.geo_point_value_;
+ break;
+ }
+ case kArrayValue: {
+ delete value_type_.array_value_;
+ break;
+ }
+ case kMapValue: {
+ delete value_type_.map_value_;
+ break;
+ }
+ case VALUE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = VALUE_TYPE_NOT_SET;
+}
+
+
+void Value::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_value_type();
+ _internal_metadata_.Clear();
+}
+
+bool Value::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Value)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // bool boolean_value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ clear_value_type();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &value_type_.boolean_value_)));
+ set_has_boolean_value();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int64 integer_value = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ clear_value_type();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
+ input, &value_type_.integer_value_)));
+ set_has_integer_value();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // double double_value = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
+ clear_value_type();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
+ input, &value_type_.double_value_)));
+ set_has_double_value();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string reference_value = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_reference_value()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->reference_value().data(), static_cast<int>(this->reference_value().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Value.reference_value"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.MapValue map_value = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_map_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.type.LatLng geo_point_value = 8;
+ case 8: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_geo_point_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.ArrayValue array_value = 9;
+ case 9: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_array_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp timestamp_value = 10;
+ case 10: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_timestamp_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.NullValue null_value = 11;
+ case 11: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_null_value(static_cast< ::google::protobuf::NullValue >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string string_value = 17;
+ case 17: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_string_value()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->string_value().data(), static_cast<int>(this->string_value().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Value.string_value"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes bytes_value = 18;
+ case 18: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_bytes_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Value)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Value)
+ return false;
+#undef DO_
+}
+
+void Value::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bool boolean_value = 1;
+ if (has_boolean_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->boolean_value(), output);
+ }
+
+ // int64 integer_value = 2;
+ if (has_integer_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->integer_value(), output);
+ }
+
+ // double double_value = 3;
+ if (has_double_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->double_value(), output);
+ }
+
+ // string reference_value = 5;
+ if (has_reference_value()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->reference_value().data(), static_cast<int>(this->reference_value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Value.reference_value");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 5, this->reference_value(), output);
+ }
+
+ // .google.firestore.v1beta1.MapValue map_value = 6;
+ if (has_map_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *value_type_.map_value_, output);
+ }
+
+ // .google.type.LatLng geo_point_value = 8;
+ if (has_geo_point_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 8, *value_type_.geo_point_value_, output);
+ }
+
+ // .google.firestore.v1beta1.ArrayValue array_value = 9;
+ if (has_array_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 9, *value_type_.array_value_, output);
+ }
+
+ // .google.protobuf.Timestamp timestamp_value = 10;
+ if (has_timestamp_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 10, *value_type_.timestamp_value_, output);
+ }
+
+ // .google.protobuf.NullValue null_value = 11;
+ if (has_null_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 11, this->null_value(), output);
+ }
+
+ // string string_value = 17;
+ if (has_string_value()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->string_value().data(), static_cast<int>(this->string_value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Value.string_value");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 17, this->string_value(), output);
+ }
+
+ // bytes bytes_value = 18;
+ if (has_bytes_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 18, this->bytes_value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Value)
+}
+
+::google::protobuf::uint8* Value::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bool boolean_value = 1;
+ if (has_boolean_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->boolean_value(), target);
+ }
+
+ // int64 integer_value = 2;
+ if (has_integer_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->integer_value(), target);
+ }
+
+ // double double_value = 3;
+ if (has_double_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->double_value(), target);
+ }
+
+ // string reference_value = 5;
+ if (has_reference_value()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->reference_value().data(), static_cast<int>(this->reference_value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Value.reference_value");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 5, this->reference_value(), target);
+ }
+
+ // .google.firestore.v1beta1.MapValue map_value = 6;
+ if (has_map_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *value_type_.map_value_, deterministic, target);
+ }
+
+ // .google.type.LatLng geo_point_value = 8;
+ if (has_geo_point_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 8, *value_type_.geo_point_value_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.ArrayValue array_value = 9;
+ if (has_array_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 9, *value_type_.array_value_, deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp timestamp_value = 10;
+ if (has_timestamp_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 10, *value_type_.timestamp_value_, deterministic, target);
+ }
+
+ // .google.protobuf.NullValue null_value = 11;
+ if (has_null_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 11, this->null_value(), target);
+ }
+
+ // string string_value = 17;
+ if (has_string_value()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->string_value().data(), static_cast<int>(this->string_value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Value.string_value");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 17, this->string_value(), target);
+ }
+
+ // bytes bytes_value = 18;
+ if (has_bytes_value()) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 18, this->bytes_value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Value)
+ return target;
+}
+
+size_t Value::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Value)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (value_type_case()) {
+ // .google.protobuf.NullValue null_value = 11;
+ case kNullValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->null_value());
+ break;
+ }
+ // bool boolean_value = 1;
+ case kBooleanValue: {
+ total_size += 1 + 1;
+ break;
+ }
+ // int64 integer_value = 2;
+ case kIntegerValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->integer_value());
+ break;
+ }
+ // double double_value = 3;
+ case kDoubleValue: {
+ total_size += 1 + 8;
+ break;
+ }
+ // .google.protobuf.Timestamp timestamp_value = 10;
+ case kTimestampValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *value_type_.timestamp_value_);
+ break;
+ }
+ // string string_value = 17;
+ case kStringValue: {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->string_value());
+ break;
+ }
+ // bytes bytes_value = 18;
+ case kBytesValue: {
+ total_size += 2 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->bytes_value());
+ break;
+ }
+ // string reference_value = 5;
+ case kReferenceValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->reference_value());
+ break;
+ }
+ // .google.type.LatLng geo_point_value = 8;
+ case kGeoPointValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *value_type_.geo_point_value_);
+ break;
+ }
+ // .google.firestore.v1beta1.ArrayValue array_value = 9;
+ case kArrayValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *value_type_.array_value_);
+ break;
+ }
+ // .google.firestore.v1beta1.MapValue map_value = 6;
+ case kMapValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *value_type_.map_value_);
+ break;
+ }
+ case VALUE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Value::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Value* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Value>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Value)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Value)
+ MergeFrom(*source);
+ }
+}
+
+void Value::MergeFrom(const Value& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.value_type_case()) {
+ case kNullValue: {
+ set_null_value(from.null_value());
+ break;
+ }
+ case kBooleanValue: {
+ set_boolean_value(from.boolean_value());
+ break;
+ }
+ case kIntegerValue: {
+ set_integer_value(from.integer_value());
+ break;
+ }
+ case kDoubleValue: {
+ set_double_value(from.double_value());
+ break;
+ }
+ case kTimestampValue: {
+ mutable_timestamp_value()->::google::protobuf::Timestamp::MergeFrom(from.timestamp_value());
+ break;
+ }
+ case kStringValue: {
+ set_string_value(from.string_value());
+ break;
+ }
+ case kBytesValue: {
+ set_bytes_value(from.bytes_value());
+ break;
+ }
+ case kReferenceValue: {
+ set_reference_value(from.reference_value());
+ break;
+ }
+ case kGeoPointValue: {
+ mutable_geo_point_value()->::google::type::LatLng::MergeFrom(from.geo_point_value());
+ break;
+ }
+ case kArrayValue: {
+ mutable_array_value()->::google::firestore::v1beta1::ArrayValue::MergeFrom(from.array_value());
+ break;
+ }
+ case kMapValue: {
+ mutable_map_value()->::google::firestore::v1beta1::MapValue::MergeFrom(from.map_value());
+ break;
+ }
+ case VALUE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Value::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Value::CopyFrom(const Value& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Value::IsInitialized() const {
+ return true;
+}
+
+void Value::Swap(Value* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Value::InternalSwap(Value* other) {
+ using std::swap;
+ swap(value_type_, other->value_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Value::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ArrayValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ArrayValue::kValuesFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ArrayValue::ArrayValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ArrayValue)
+}
+ArrayValue::ArrayValue(const ArrayValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ values_(from.values_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ArrayValue)
+}
+
+void ArrayValue::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+ArrayValue::~ArrayValue() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ArrayValue)
+ SharedDtor();
+}
+
+void ArrayValue::SharedDtor() {
+}
+
+void ArrayValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ArrayValue::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ArrayValue& ArrayValue::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ return *internal_default_instance();
+}
+
+ArrayValue* ArrayValue::New(::google::protobuf::Arena* arena) const {
+ ArrayValue* n = new ArrayValue;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ArrayValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ArrayValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ values_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool ArrayValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ArrayValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_values()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ArrayValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ArrayValue)
+ return false;
+#undef DO_
+}
+
+void ArrayValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ArrayValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->values(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ArrayValue)
+}
+
+::google::protobuf::uint8* ArrayValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ArrayValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->values(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ArrayValue)
+ return target;
+}
+
+size_t ArrayValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ArrayValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->values_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->values(static_cast<int>(i)));
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ArrayValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ArrayValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ArrayValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ArrayValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ArrayValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ArrayValue)
+ MergeFrom(*source);
+ }
+}
+
+void ArrayValue::MergeFrom(const ArrayValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ArrayValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ values_.MergeFrom(from.values_);
+}
+
+void ArrayValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ArrayValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ArrayValue::CopyFrom(const ArrayValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ArrayValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ArrayValue::IsInitialized() const {
+ return true;
+}
+
+void ArrayValue::Swap(ArrayValue* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ArrayValue::InternalSwap(ArrayValue* other) {
+ using std::swap;
+ values_.InternalSwap(&other->values_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ArrayValue::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse() {}
+MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
+void MapValue_FieldsEntry_DoNotUse::MergeFrom(const MapValue_FieldsEntry_DoNotUse& other) {
+ MergeFromInternal(other);
+}
+::google::protobuf::Metadata MapValue_FieldsEntry_DoNotUse::GetMetadata() const {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[4];
+}
+void MapValue_FieldsEntry_DoNotUse::MergeFrom(
+ const ::google::protobuf::Message& other) {
+ ::google::protobuf::Message::MergeFrom(other);
+}
+
+
+// ===================================================================
+
+void MapValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int MapValue::kFieldsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+MapValue::MapValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.MapValue)
+}
+MapValue::MapValue(const MapValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ fields_.MergeFrom(from.fields_);
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.MapValue)
+}
+
+void MapValue::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+MapValue::~MapValue() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.MapValue)
+ SharedDtor();
+}
+
+void MapValue::SharedDtor() {
+}
+
+void MapValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* MapValue::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const MapValue& MapValue::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ return *internal_default_instance();
+}
+
+MapValue* MapValue::New(::google::protobuf::Arena* arena) const {
+ MapValue* n = new MapValue;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void MapValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.MapValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fields_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool MapValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.MapValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // map<string, .google.firestore.v1beta1.Value> fields = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ MapValue_FieldsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
+ MapValue_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 >,
+ ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value > > parser(&fields_);
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ input, &parser));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.key().data(), static_cast<int>(parser.key().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.MapValue.FieldsEntry.key"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.MapValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.MapValue)
+ return false;
+#undef DO_
+}
+
+void MapValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.MapValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 1;
+ if (!this->fields().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.MapValue.FieldsEntry.key");
+ }
+ };
+
+ if (output->IsSerializationDeterministic() &&
+ this->fields().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->fields().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<MapValue_FieldsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(fields_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *entry, output);
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<MapValue_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(
+ it->first, it->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *entry, output);
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.MapValue)
+}
+
+::google::protobuf::uint8* MapValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.MapValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 1;
+ if (!this->fields().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.MapValue.FieldsEntry.key");
+ }
+ };
+
+ if (deterministic &&
+ this->fields().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->fields().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<MapValue_FieldsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(fields_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 1, *entry, deterministic, target);
+;
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<MapValue_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(
+ it->first, it->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 1, *entry, deterministic, target);
+;
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.MapValue)
+ return target;
+}
+
+size_t MapValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.MapValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // map<string, .google.firestore.v1beta1.Value> fields = 1;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->fields_size());
+ {
+ ::google::protobuf::scoped_ptr<MapValue_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(it->first, it->second));
+ total_size += ::google::protobuf::internal::WireFormatLite::
+ MessageSizeNoVirtual(*entry);
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void MapValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.MapValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const MapValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const MapValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.MapValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.MapValue)
+ MergeFrom(*source);
+ }
+}
+
+void MapValue::MergeFrom(const MapValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.MapValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ fields_.MergeFrom(from.fields_);
+}
+
+void MapValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.MapValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void MapValue::CopyFrom(const MapValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.MapValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool MapValue::IsInitialized() const {
+ return true;
+}
+
+void MapValue::Swap(MapValue* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void MapValue::InternalSwap(MapValue* other) {
+ using std::swap;
+ fields_.Swap(&other->fields_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata MapValue::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.h b/Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.h
new file mode 100644
index 0000000..688f15e
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/document.pb.h
@@ -0,0 +1,1584 @@
+/*
+ * 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: google/firestore/v1beta1/document.proto
+
+#ifndef PROTOBUF_google_2ffirestore_2fv1beta1_2fdocument_2eproto__INCLUDED
+#define PROTOBUF_google_2ffirestore_2fv1beta1_2fdocument_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/map.h> // IWYU pragma: export
+#include <google/protobuf/map_entry.h>
+#include <google/protobuf/map_field_inl.h>
+#include <google/protobuf/unknown_field_set.h>
+#include "google/api/annotations.pb.h"
+#include <google/protobuf/struct.pb.h>
+#include <google/protobuf/timestamp.pb.h>
+#include "google/type/latlng.pb.h"
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2ffirestore_2fv1beta1_2fdocument_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[6];
+ 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 InitDefaultsDocument_FieldsEntry_DoNotUseImpl();
+void InitDefaultsDocument_FieldsEntry_DoNotUse();
+void InitDefaultsDocumentImpl();
+void InitDefaultsDocument();
+void InitDefaultsArrayValueImpl();
+void InitDefaultsArrayValue();
+inline void InitDefaults() {
+ InitDefaultsDocument_FieldsEntry_DoNotUse();
+ InitDefaultsDocument();
+ InitDefaultsArrayValue();
+}
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class ArrayValue;
+class ArrayValueDefaultTypeInternal;
+extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
+class Document;
+class DocumentDefaultTypeInternal;
+extern DocumentDefaultTypeInternal _Document_default_instance_;
+class Document_FieldsEntry_DoNotUse;
+class Document_FieldsEntry_DoNotUseDefaultTypeInternal;
+extern Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
+class MapValue;
+class MapValueDefaultTypeInternal;
+extern MapValueDefaultTypeInternal _MapValue_default_instance_;
+class MapValue_FieldsEntry_DoNotUse;
+class MapValue_FieldsEntry_DoNotUseDefaultTypeInternal;
+extern MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
+class Value;
+class ValueDefaultTypeInternal;
+extern ValueDefaultTypeInternal _Value_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+// ===================================================================
+
+class Document_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Document_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > {
+public:
+ typedef ::google::protobuf::internal::MapEntry<Document_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > SuperType;
+ Document_FieldsEntry_DoNotUse();
+ Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
+ void MergeFrom(const Document_FieldsEntry_DoNotUse& other);
+ static const Document_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Document_FieldsEntry_DoNotUse*>(&_Document_FieldsEntry_DoNotUse_default_instance_); }
+ void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
+ ::google::protobuf::Metadata GetMetadata() const;
+};
+
+// -------------------------------------------------------------------
+
+class Document : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Document) */ {
+ public:
+ Document();
+ virtual ~Document();
+
+ Document(const Document& from);
+
+ inline Document& operator=(const Document& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Document(Document&& from) noexcept
+ : Document() {
+ *this = ::std::move(from);
+ }
+
+ inline Document& operator=(Document&& 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 Document& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Document* internal_default_instance() {
+ return reinterpret_cast<const Document*>(
+ &_Document_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(Document* other);
+ friend void swap(Document& a, Document& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Document* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Document* 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 Document& from);
+ void MergeFrom(const Document& 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(Document* 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 -------------------------------------------------------
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 2;
+ int fields_size() const;
+ void clear_fields();
+ static const int kFieldsFieldNumber = 2;
+ const ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >&
+ fields() const;
+ ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >*
+ mutable_fields();
+
+ // string name = 1;
+ void clear_name();
+ static const int kNameFieldNumber = 1;
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
+
+ // .google.protobuf.Timestamp create_time = 3;
+ bool has_create_time() const;
+ void clear_create_time();
+ static const int kCreateTimeFieldNumber = 3;
+ const ::google::protobuf::Timestamp& create_time() const;
+ ::google::protobuf::Timestamp* release_create_time();
+ ::google::protobuf::Timestamp* mutable_create_time();
+ void set_allocated_create_time(::google::protobuf::Timestamp* create_time);
+
+ // .google.protobuf.Timestamp update_time = 4;
+ bool has_update_time() const;
+ void clear_update_time();
+ static const int kUpdateTimeFieldNumber = 4;
+ const ::google::protobuf::Timestamp& update_time() const;
+ ::google::protobuf::Timestamp* release_update_time();
+ ::google::protobuf::Timestamp* mutable_update_time();
+ void set_allocated_update_time(::google::protobuf::Timestamp* update_time);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Document)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::MapField<
+ Document_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > fields_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
+ ::google::protobuf::Timestamp* create_time_;
+ ::google::protobuf::Timestamp* update_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocumentImpl();
+};
+// -------------------------------------------------------------------
+
+class Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Value) */ {
+ public:
+ Value();
+ virtual ~Value();
+
+ Value(const Value& from);
+
+ inline Value& operator=(const Value& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Value(Value&& from) noexcept
+ : Value() {
+ *this = ::std::move(from);
+ }
+
+ inline Value& operator=(Value&& 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 Value& default_instance();
+
+ enum ValueTypeCase {
+ kNullValue = 11,
+ kBooleanValue = 1,
+ kIntegerValue = 2,
+ kDoubleValue = 3,
+ kTimestampValue = 10,
+ kStringValue = 17,
+ kBytesValue = 18,
+ kReferenceValue = 5,
+ kGeoPointValue = 8,
+ kArrayValue = 9,
+ kMapValue = 6,
+ VALUE_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Value* internal_default_instance() {
+ return reinterpret_cast<const Value*>(
+ &_Value_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void Swap(Value* other);
+ friend void swap(Value& a, Value& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Value* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Value* 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 Value& from);
+ void MergeFrom(const Value& 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(Value* 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.NullValue null_value = 11;
+ private:
+ bool has_null_value() const;
+ public:
+ void clear_null_value();
+ static const int kNullValueFieldNumber = 11;
+ ::google::protobuf::NullValue null_value() const;
+ void set_null_value(::google::protobuf::NullValue value);
+
+ // bool boolean_value = 1;
+ private:
+ bool has_boolean_value() const;
+ public:
+ void clear_boolean_value();
+ static const int kBooleanValueFieldNumber = 1;
+ bool boolean_value() const;
+ void set_boolean_value(bool value);
+
+ // int64 integer_value = 2;
+ private:
+ bool has_integer_value() const;
+ public:
+ void clear_integer_value();
+ static const int kIntegerValueFieldNumber = 2;
+ ::google::protobuf::int64 integer_value() const;
+ void set_integer_value(::google::protobuf::int64 value);
+
+ // double double_value = 3;
+ private:
+ bool has_double_value() const;
+ public:
+ void clear_double_value();
+ static const int kDoubleValueFieldNumber = 3;
+ double double_value() const;
+ void set_double_value(double value);
+
+ // .google.protobuf.Timestamp timestamp_value = 10;
+ bool has_timestamp_value() const;
+ void clear_timestamp_value();
+ static const int kTimestampValueFieldNumber = 10;
+ const ::google::protobuf::Timestamp& timestamp_value() const;
+ ::google::protobuf::Timestamp* release_timestamp_value();
+ ::google::protobuf::Timestamp* mutable_timestamp_value();
+ void set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value);
+
+ // string string_value = 17;
+ private:
+ bool has_string_value() const;
+ public:
+ void clear_string_value();
+ static const int kStringValueFieldNumber = 17;
+ const ::std::string& string_value() const;
+ void set_string_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_string_value(::std::string&& value);
+ #endif
+ void set_string_value(const char* value);
+ void set_string_value(const char* value, size_t size);
+ ::std::string* mutable_string_value();
+ ::std::string* release_string_value();
+ void set_allocated_string_value(::std::string* string_value);
+
+ // bytes bytes_value = 18;
+ private:
+ bool has_bytes_value() const;
+ public:
+ void clear_bytes_value();
+ static const int kBytesValueFieldNumber = 18;
+ const ::std::string& bytes_value() const;
+ void set_bytes_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_bytes_value(::std::string&& value);
+ #endif
+ void set_bytes_value(const char* value);
+ void set_bytes_value(const void* value, size_t size);
+ ::std::string* mutable_bytes_value();
+ ::std::string* release_bytes_value();
+ void set_allocated_bytes_value(::std::string* bytes_value);
+
+ // string reference_value = 5;
+ private:
+ bool has_reference_value() const;
+ public:
+ void clear_reference_value();
+ static const int kReferenceValueFieldNumber = 5;
+ const ::std::string& reference_value() const;
+ void set_reference_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_reference_value(::std::string&& value);
+ #endif
+ void set_reference_value(const char* value);
+ void set_reference_value(const char* value, size_t size);
+ ::std::string* mutable_reference_value();
+ ::std::string* release_reference_value();
+ void set_allocated_reference_value(::std::string* reference_value);
+
+ // .google.type.LatLng geo_point_value = 8;
+ bool has_geo_point_value() const;
+ void clear_geo_point_value();
+ static const int kGeoPointValueFieldNumber = 8;
+ const ::google::type::LatLng& geo_point_value() const;
+ ::google::type::LatLng* release_geo_point_value();
+ ::google::type::LatLng* mutable_geo_point_value();
+ void set_allocated_geo_point_value(::google::type::LatLng* geo_point_value);
+
+ // .google.firestore.v1beta1.ArrayValue array_value = 9;
+ bool has_array_value() const;
+ void clear_array_value();
+ static const int kArrayValueFieldNumber = 9;
+ const ::google::firestore::v1beta1::ArrayValue& array_value() const;
+ ::google::firestore::v1beta1::ArrayValue* release_array_value();
+ ::google::firestore::v1beta1::ArrayValue* mutable_array_value();
+ void set_allocated_array_value(::google::firestore::v1beta1::ArrayValue* array_value);
+
+ // .google.firestore.v1beta1.MapValue map_value = 6;
+ bool has_map_value() const;
+ void clear_map_value();
+ static const int kMapValueFieldNumber = 6;
+ const ::google::firestore::v1beta1::MapValue& map_value() const;
+ ::google::firestore::v1beta1::MapValue* release_map_value();
+ ::google::firestore::v1beta1::MapValue* mutable_map_value();
+ void set_allocated_map_value(::google::firestore::v1beta1::MapValue* map_value);
+
+ ValueTypeCase value_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Value)
+ private:
+ void set_has_null_value();
+ void set_has_boolean_value();
+ void set_has_integer_value();
+ void set_has_double_value();
+ void set_has_timestamp_value();
+ void set_has_string_value();
+ void set_has_bytes_value();
+ void set_has_reference_value();
+ void set_has_geo_point_value();
+ void set_has_array_value();
+ void set_has_map_value();
+
+ inline bool has_value_type() const;
+ void clear_value_type();
+ inline void clear_has_value_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union ValueTypeUnion {
+ ValueTypeUnion() {}
+ int null_value_;
+ bool boolean_value_;
+ ::google::protobuf::int64 integer_value_;
+ double double_value_;
+ ::google::protobuf::Timestamp* timestamp_value_;
+ ::google::protobuf::internal::ArenaStringPtr string_value_;
+ ::google::protobuf::internal::ArenaStringPtr bytes_value_;
+ ::google::protobuf::internal::ArenaStringPtr reference_value_;
+ ::google::type::LatLng* geo_point_value_;
+ ::google::firestore::v1beta1::ArrayValue* array_value_;
+ ::google::firestore::v1beta1::MapValue* map_value_;
+ } value_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
+};
+// -------------------------------------------------------------------
+
+class ArrayValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ArrayValue) */ {
+ public:
+ ArrayValue();
+ virtual ~ArrayValue();
+
+ ArrayValue(const ArrayValue& from);
+
+ inline ArrayValue& operator=(const ArrayValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ArrayValue(ArrayValue&& from) noexcept
+ : ArrayValue() {
+ *this = ::std::move(from);
+ }
+
+ inline ArrayValue& operator=(ArrayValue&& 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 ArrayValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ArrayValue* internal_default_instance() {
+ return reinterpret_cast<const ArrayValue*>(
+ &_ArrayValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void Swap(ArrayValue* other);
+ friend void swap(ArrayValue& a, ArrayValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ArrayValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ArrayValue* 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 ArrayValue& from);
+ void MergeFrom(const ArrayValue& 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(ArrayValue* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ int values_size() const;
+ void clear_values();
+ static const int kValuesFieldNumber = 1;
+ const ::google::firestore::v1beta1::Value& values(int index) const;
+ ::google::firestore::v1beta1::Value* mutable_values(int index);
+ ::google::firestore::v1beta1::Value* add_values();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >*
+ mutable_values();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >&
+ values() const;
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ArrayValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value > values_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
+};
+// -------------------------------------------------------------------
+
+class MapValue_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapValue_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > {
+public:
+ typedef ::google::protobuf::internal::MapEntry<MapValue_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > SuperType;
+ MapValue_FieldsEntry_DoNotUse();
+ MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
+ void MergeFrom(const MapValue_FieldsEntry_DoNotUse& other);
+ static const MapValue_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapValue_FieldsEntry_DoNotUse*>(&_MapValue_FieldsEntry_DoNotUse_default_instance_); }
+ void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
+ ::google::protobuf::Metadata GetMetadata() const;
+};
+
+// -------------------------------------------------------------------
+
+class MapValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.MapValue) */ {
+ public:
+ MapValue();
+ virtual ~MapValue();
+
+ MapValue(const MapValue& from);
+
+ inline MapValue& operator=(const MapValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ MapValue(MapValue&& from) noexcept
+ : MapValue() {
+ *this = ::std::move(from);
+ }
+
+ inline MapValue& operator=(MapValue&& 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 MapValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MapValue* internal_default_instance() {
+ return reinterpret_cast<const MapValue*>(
+ &_MapValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 5;
+
+ void Swap(MapValue* other);
+ friend void swap(MapValue& a, MapValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline MapValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ MapValue* 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 MapValue& from);
+ void MergeFrom(const MapValue& 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(MapValue* 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 -------------------------------------------------------
+
+ // map<string, .google.firestore.v1beta1.Value> fields = 1;
+ int fields_size() const;
+ void clear_fields();
+ static const int kFieldsFieldNumber = 1;
+ const ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >&
+ fields() const;
+ ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >*
+ mutable_fields();
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.MapValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::MapField<
+ MapValue_FieldsEntry_DoNotUse,
+ ::std::string, ::google::firestore::v1beta1::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > fields_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// Document
+
+// string name = 1;
+inline void Document::clear_name() {
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& Document::name() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Document.name)
+ return name_.GetNoArena();
+}
+inline void Document::set_name(const ::std::string& value) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Document.name)
+}
+#if LANG_CXX11
+inline void Document::set_name(::std::string&& value) {
+
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Document.name)
+}
+#endif
+inline void Document::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Document.name)
+}
+inline void Document::set_name(const char* value, size_t size) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Document.name)
+}
+inline ::std::string* Document::mutable_name() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Document.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Document::release_name() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Document.name)
+
+ return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void Document::set_allocated_name(::std::string* name) {
+ if (name != NULL) {
+
+ } else {
+
+ }
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Document.name)
+}
+
+// map<string, .google.firestore.v1beta1.Value> fields = 2;
+inline int Document::fields_size() const {
+ return fields_.size();
+}
+inline void Document::clear_fields() {
+ fields_.Clear();
+}
+inline const ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >&
+Document::fields() const {
+ // @@protoc_insertion_point(field_map:google.firestore.v1beta1.Document.fields)
+ return fields_.GetMap();
+}
+inline ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >*
+Document::mutable_fields() {
+ // @@protoc_insertion_point(field_mutable_map:google.firestore.v1beta1.Document.fields)
+ return fields_.MutableMap();
+}
+
+// .google.protobuf.Timestamp create_time = 3;
+inline bool Document::has_create_time() const {
+ return this != internal_default_instance() && create_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& Document::create_time() const {
+ const ::google::protobuf::Timestamp* p = create_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Document.create_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* Document::release_create_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Document.create_time)
+
+ ::google::protobuf::Timestamp* temp = create_time_;
+ create_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* Document::mutable_create_time() {
+
+ if (create_time_ == NULL) {
+ create_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Document.create_time)
+ return create_time_;
+}
+inline void Document::set_allocated_create_time(::google::protobuf::Timestamp* create_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(create_time_);
+ }
+ if (create_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(create_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ create_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, create_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ create_time_ = create_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Document.create_time)
+}
+
+// .google.protobuf.Timestamp update_time = 4;
+inline bool Document::has_update_time() const {
+ return this != internal_default_instance() && update_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& Document::update_time() const {
+ const ::google::protobuf::Timestamp* p = update_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Document.update_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* Document::release_update_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Document.update_time)
+
+ ::google::protobuf::Timestamp* temp = update_time_;
+ update_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* Document::mutable_update_time() {
+
+ if (update_time_ == NULL) {
+ update_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Document.update_time)
+ return update_time_;
+}
+inline void Document::set_allocated_update_time(::google::protobuf::Timestamp* update_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(update_time_);
+ }
+ if (update_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(update_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ update_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, update_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ update_time_ = update_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Document.update_time)
+}
+
+// -------------------------------------------------------------------
+
+// Value
+
+// .google.protobuf.NullValue null_value = 11;
+inline bool Value::has_null_value() const {
+ return value_type_case() == kNullValue;
+}
+inline void Value::set_has_null_value() {
+ _oneof_case_[0] = kNullValue;
+}
+inline void Value::clear_null_value() {
+ if (has_null_value()) {
+ value_type_.null_value_ = 0;
+ clear_has_value_type();
+ }
+}
+inline ::google::protobuf::NullValue Value::null_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.null_value)
+ if (has_null_value()) {
+ return static_cast< ::google::protobuf::NullValue >(value_type_.null_value_);
+ }
+ return static_cast< ::google::protobuf::NullValue >(0);
+}
+inline void Value::set_null_value(::google::protobuf::NullValue value) {
+ if (!has_null_value()) {
+ clear_value_type();
+ set_has_null_value();
+ }
+ value_type_.null_value_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.null_value)
+}
+
+// bool boolean_value = 1;
+inline bool Value::has_boolean_value() const {
+ return value_type_case() == kBooleanValue;
+}
+inline void Value::set_has_boolean_value() {
+ _oneof_case_[0] = kBooleanValue;
+}
+inline void Value::clear_boolean_value() {
+ if (has_boolean_value()) {
+ value_type_.boolean_value_ = false;
+ clear_has_value_type();
+ }
+}
+inline bool Value::boolean_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.boolean_value)
+ if (has_boolean_value()) {
+ return value_type_.boolean_value_;
+ }
+ return false;
+}
+inline void Value::set_boolean_value(bool value) {
+ if (!has_boolean_value()) {
+ clear_value_type();
+ set_has_boolean_value();
+ }
+ value_type_.boolean_value_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.boolean_value)
+}
+
+// int64 integer_value = 2;
+inline bool Value::has_integer_value() const {
+ return value_type_case() == kIntegerValue;
+}
+inline void Value::set_has_integer_value() {
+ _oneof_case_[0] = kIntegerValue;
+}
+inline void Value::clear_integer_value() {
+ if (has_integer_value()) {
+ value_type_.integer_value_ = GOOGLE_LONGLONG(0);
+ clear_has_value_type();
+ }
+}
+inline ::google::protobuf::int64 Value::integer_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.integer_value)
+ if (has_integer_value()) {
+ return value_type_.integer_value_;
+ }
+ return GOOGLE_LONGLONG(0);
+}
+inline void Value::set_integer_value(::google::protobuf::int64 value) {
+ if (!has_integer_value()) {
+ clear_value_type();
+ set_has_integer_value();
+ }
+ value_type_.integer_value_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.integer_value)
+}
+
+// double double_value = 3;
+inline bool Value::has_double_value() const {
+ return value_type_case() == kDoubleValue;
+}
+inline void Value::set_has_double_value() {
+ _oneof_case_[0] = kDoubleValue;
+}
+inline void Value::clear_double_value() {
+ if (has_double_value()) {
+ value_type_.double_value_ = 0;
+ clear_has_value_type();
+ }
+}
+inline double Value::double_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.double_value)
+ if (has_double_value()) {
+ return value_type_.double_value_;
+ }
+ return 0;
+}
+inline void Value::set_double_value(double value) {
+ if (!has_double_value()) {
+ clear_value_type();
+ set_has_double_value();
+ }
+ value_type_.double_value_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.double_value)
+}
+
+// .google.protobuf.Timestamp timestamp_value = 10;
+inline bool Value::has_timestamp_value() const {
+ return value_type_case() == kTimestampValue;
+}
+inline void Value::set_has_timestamp_value() {
+ _oneof_case_[0] = kTimestampValue;
+}
+inline ::google::protobuf::Timestamp* Value::release_timestamp_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.timestamp_value)
+ if (has_timestamp_value()) {
+ clear_has_value_type();
+ ::google::protobuf::Timestamp* temp = value_type_.timestamp_value_;
+ value_type_.timestamp_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& Value::timestamp_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.timestamp_value)
+ return has_timestamp_value()
+ ? *value_type_.timestamp_value_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* Value::mutable_timestamp_value() {
+ if (!has_timestamp_value()) {
+ clear_value_type();
+ set_has_timestamp_value();
+ value_type_.timestamp_value_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.timestamp_value)
+ return value_type_.timestamp_value_;
+}
+
+// string string_value = 17;
+inline bool Value::has_string_value() const {
+ return value_type_case() == kStringValue;
+}
+inline void Value::set_has_string_value() {
+ _oneof_case_[0] = kStringValue;
+}
+inline void Value::clear_string_value() {
+ if (has_string_value()) {
+ value_type_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_value_type();
+ }
+}
+inline const ::std::string& Value::string_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.string_value)
+ if (has_string_value()) {
+ return value_type_.string_value_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Value::set_string_value(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.string_value)
+ if (!has_string_value()) {
+ clear_value_type();
+ set_has_string_value();
+ value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.string_value)
+}
+#if LANG_CXX11
+inline void Value::set_string_value(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.string_value)
+ if (!has_string_value()) {
+ clear_value_type();
+ set_has_string_value();
+ value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.string_value_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Value.string_value)
+}
+#endif
+inline void Value::set_string_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_string_value()) {
+ clear_value_type();
+ set_has_string_value();
+ value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Value.string_value)
+}
+inline void Value::set_string_value(const char* value, size_t size) {
+ if (!has_string_value()) {
+ clear_value_type();
+ set_has_string_value();
+ value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Value.string_value)
+}
+inline ::std::string* Value::mutable_string_value() {
+ if (!has_string_value()) {
+ clear_value_type();
+ set_has_string_value();
+ value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.string_value)
+ return value_type_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Value::release_string_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.string_value)
+ if (has_string_value()) {
+ clear_has_value_type();
+ return value_type_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void Value::set_allocated_string_value(::std::string* string_value) {
+ if (!has_string_value()) {
+ value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_value_type();
+ if (string_value != NULL) {
+ set_has_string_value();
+ value_type_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ string_value);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.string_value)
+}
+
+// bytes bytes_value = 18;
+inline bool Value::has_bytes_value() const {
+ return value_type_case() == kBytesValue;
+}
+inline void Value::set_has_bytes_value() {
+ _oneof_case_[0] = kBytesValue;
+}
+inline void Value::clear_bytes_value() {
+ if (has_bytes_value()) {
+ value_type_.bytes_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_value_type();
+ }
+}
+inline const ::std::string& Value::bytes_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.bytes_value)
+ if (has_bytes_value()) {
+ return value_type_.bytes_value_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Value::set_bytes_value(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.bytes_value)
+ if (!has_bytes_value()) {
+ clear_value_type();
+ set_has_bytes_value();
+ value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.bytes_value)
+}
+#if LANG_CXX11
+inline void Value::set_bytes_value(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.bytes_value)
+ if (!has_bytes_value()) {
+ clear_value_type();
+ set_has_bytes_value();
+ value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.bytes_value_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Value.bytes_value)
+}
+#endif
+inline void Value::set_bytes_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_bytes_value()) {
+ clear_value_type();
+ set_has_bytes_value();
+ value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Value.bytes_value)
+}
+inline void Value::set_bytes_value(const void* value, size_t size) {
+ if (!has_bytes_value()) {
+ clear_value_type();
+ set_has_bytes_value();
+ value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Value.bytes_value)
+}
+inline ::std::string* Value::mutable_bytes_value() {
+ if (!has_bytes_value()) {
+ clear_value_type();
+ set_has_bytes_value();
+ value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.bytes_value)
+ return value_type_.bytes_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Value::release_bytes_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.bytes_value)
+ if (has_bytes_value()) {
+ clear_has_value_type();
+ return value_type_.bytes_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void Value::set_allocated_bytes_value(::std::string* bytes_value) {
+ if (!has_bytes_value()) {
+ value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_value_type();
+ if (bytes_value != NULL) {
+ set_has_bytes_value();
+ value_type_.bytes_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ bytes_value);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.bytes_value)
+}
+
+// string reference_value = 5;
+inline bool Value::has_reference_value() const {
+ return value_type_case() == kReferenceValue;
+}
+inline void Value::set_has_reference_value() {
+ _oneof_case_[0] = kReferenceValue;
+}
+inline void Value::clear_reference_value() {
+ if (has_reference_value()) {
+ value_type_.reference_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_value_type();
+ }
+}
+inline const ::std::string& Value::reference_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.reference_value)
+ if (has_reference_value()) {
+ return value_type_.reference_value_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Value::set_reference_value(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.reference_value)
+ if (!has_reference_value()) {
+ clear_value_type();
+ set_has_reference_value();
+ value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.reference_value)
+}
+#if LANG_CXX11
+inline void Value::set_reference_value(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Value.reference_value)
+ if (!has_reference_value()) {
+ clear_value_type();
+ set_has_reference_value();
+ value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.reference_value_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Value.reference_value)
+}
+#endif
+inline void Value::set_reference_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_reference_value()) {
+ clear_value_type();
+ set_has_reference_value();
+ value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Value.reference_value)
+}
+inline void Value::set_reference_value(const char* value, size_t size) {
+ if (!has_reference_value()) {
+ clear_value_type();
+ set_has_reference_value();
+ value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Value.reference_value)
+}
+inline ::std::string* Value::mutable_reference_value() {
+ if (!has_reference_value()) {
+ clear_value_type();
+ set_has_reference_value();
+ value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.reference_value)
+ return value_type_.reference_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Value::release_reference_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.reference_value)
+ if (has_reference_value()) {
+ clear_has_value_type();
+ return value_type_.reference_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void Value::set_allocated_reference_value(::std::string* reference_value) {
+ if (!has_reference_value()) {
+ value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_value_type();
+ if (reference_value != NULL) {
+ set_has_reference_value();
+ value_type_.reference_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ reference_value);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Value.reference_value)
+}
+
+// .google.type.LatLng geo_point_value = 8;
+inline bool Value::has_geo_point_value() const {
+ return value_type_case() == kGeoPointValue;
+}
+inline void Value::set_has_geo_point_value() {
+ _oneof_case_[0] = kGeoPointValue;
+}
+inline ::google::type::LatLng* Value::release_geo_point_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.geo_point_value)
+ if (has_geo_point_value()) {
+ clear_has_value_type();
+ ::google::type::LatLng* temp = value_type_.geo_point_value_;
+ value_type_.geo_point_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::type::LatLng& Value::geo_point_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.geo_point_value)
+ return has_geo_point_value()
+ ? *value_type_.geo_point_value_
+ : *reinterpret_cast< ::google::type::LatLng*>(&::google::type::_LatLng_default_instance_);
+}
+inline ::google::type::LatLng* Value::mutable_geo_point_value() {
+ if (!has_geo_point_value()) {
+ clear_value_type();
+ set_has_geo_point_value();
+ value_type_.geo_point_value_ = new ::google::type::LatLng;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.geo_point_value)
+ return value_type_.geo_point_value_;
+}
+
+// .google.firestore.v1beta1.ArrayValue array_value = 9;
+inline bool Value::has_array_value() const {
+ return value_type_case() == kArrayValue;
+}
+inline void Value::set_has_array_value() {
+ _oneof_case_[0] = kArrayValue;
+}
+inline void Value::clear_array_value() {
+ if (has_array_value()) {
+ delete value_type_.array_value_;
+ clear_has_value_type();
+ }
+}
+inline ::google::firestore::v1beta1::ArrayValue* Value::release_array_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.array_value)
+ if (has_array_value()) {
+ clear_has_value_type();
+ ::google::firestore::v1beta1::ArrayValue* temp = value_type_.array_value_;
+ value_type_.array_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::ArrayValue& Value::array_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.array_value)
+ return has_array_value()
+ ? *value_type_.array_value_
+ : *reinterpret_cast< ::google::firestore::v1beta1::ArrayValue*>(&::google::firestore::v1beta1::_ArrayValue_default_instance_);
+}
+inline ::google::firestore::v1beta1::ArrayValue* Value::mutable_array_value() {
+ if (!has_array_value()) {
+ clear_value_type();
+ set_has_array_value();
+ value_type_.array_value_ = new ::google::firestore::v1beta1::ArrayValue;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.array_value)
+ return value_type_.array_value_;
+}
+
+// .google.firestore.v1beta1.MapValue map_value = 6;
+inline bool Value::has_map_value() const {
+ return value_type_case() == kMapValue;
+}
+inline void Value::set_has_map_value() {
+ _oneof_case_[0] = kMapValue;
+}
+inline void Value::clear_map_value() {
+ if (has_map_value()) {
+ delete value_type_.map_value_;
+ clear_has_value_type();
+ }
+}
+inline ::google::firestore::v1beta1::MapValue* Value::release_map_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Value.map_value)
+ if (has_map_value()) {
+ clear_has_value_type();
+ ::google::firestore::v1beta1::MapValue* temp = value_type_.map_value_;
+ value_type_.map_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::MapValue& Value::map_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Value.map_value)
+ return has_map_value()
+ ? *value_type_.map_value_
+ : *reinterpret_cast< ::google::firestore::v1beta1::MapValue*>(&::google::firestore::v1beta1::_MapValue_default_instance_);
+}
+inline ::google::firestore::v1beta1::MapValue* Value::mutable_map_value() {
+ if (!has_map_value()) {
+ clear_value_type();
+ set_has_map_value();
+ value_type_.map_value_ = new ::google::firestore::v1beta1::MapValue;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Value.map_value)
+ return value_type_.map_value_;
+}
+
+inline bool Value::has_value_type() const {
+ return value_type_case() != VALUE_TYPE_NOT_SET;
+}
+inline void Value::clear_has_value_type() {
+ _oneof_case_[0] = VALUE_TYPE_NOT_SET;
+}
+inline Value::ValueTypeCase Value::value_type_case() const {
+ return Value::ValueTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// ArrayValue
+
+// repeated .google.firestore.v1beta1.Value values = 1;
+inline int ArrayValue::values_size() const {
+ return values_.size();
+}
+inline void ArrayValue::clear_values() {
+ values_.Clear();
+}
+inline const ::google::firestore::v1beta1::Value& ArrayValue::values(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ArrayValue.values)
+ return values_.Get(index);
+}
+inline ::google::firestore::v1beta1::Value* ArrayValue::mutable_values(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ArrayValue.values)
+ return values_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Value* ArrayValue::add_values() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.ArrayValue.values)
+ return values_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >*
+ArrayValue::mutable_values() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.ArrayValue.values)
+ return &values_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >&
+ArrayValue::values() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.ArrayValue.values)
+ return values_;
+}
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// MapValue
+
+// map<string, .google.firestore.v1beta1.Value> fields = 1;
+inline int MapValue::fields_size() const {
+ return fields_.size();
+}
+inline void MapValue::clear_fields() {
+ fields_.Clear();
+}
+inline const ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >&
+MapValue::fields() const {
+ // @@protoc_insertion_point(field_map:google.firestore.v1beta1.MapValue.fields)
+ return fields_.GetMap();
+}
+inline ::google::protobuf::Map< ::std::string, ::google::firestore::v1beta1::Value >*
+MapValue::mutable_fields() {
+ // @@protoc_insertion_point(field_mutable_map:google.firestore.v1beta1.MapValue.fields)
+ return fields_.MutableMap();
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2ffirestore_2fv1beta1_2fdocument_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.cc b/Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.cc
new file mode 100644
index 0000000..79233f4
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.cc
@@ -0,0 +1,12004 @@
+/*
+ * 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: google/firestore/v1beta1/firestore.proto
+
+#include "google/firestore/v1beta1/firestore.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class GetDocumentRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<GetDocumentRequest>
+ _instance;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ const ::google::protobuf::Timestamp* read_time_;
+} _GetDocumentRequest_default_instance_;
+class ListDocumentsRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListDocumentsRequest>
+ _instance;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ const ::google::protobuf::Timestamp* read_time_;
+} _ListDocumentsRequest_default_instance_;
+class ListDocumentsResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListDocumentsResponse>
+ _instance;
+} _ListDocumentsResponse_default_instance_;
+class CreateDocumentRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CreateDocumentRequest>
+ _instance;
+} _CreateDocumentRequest_default_instance_;
+class UpdateDocumentRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<UpdateDocumentRequest>
+ _instance;
+} _UpdateDocumentRequest_default_instance_;
+class DeleteDocumentRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DeleteDocumentRequest>
+ _instance;
+} _DeleteDocumentRequest_default_instance_;
+class BatchGetDocumentsRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BatchGetDocumentsRequest>
+ _instance;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ const ::google::firestore::v1beta1::TransactionOptions* new_transaction_;
+ const ::google::protobuf::Timestamp* read_time_;
+} _BatchGetDocumentsRequest_default_instance_;
+class BatchGetDocumentsResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BatchGetDocumentsResponse>
+ _instance;
+ const ::google::firestore::v1beta1::Document* found_;
+ ::google::protobuf::internal::ArenaStringPtr missing_;
+} _BatchGetDocumentsResponse_default_instance_;
+class BeginTransactionRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BeginTransactionRequest>
+ _instance;
+} _BeginTransactionRequest_default_instance_;
+class BeginTransactionResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BeginTransactionResponse>
+ _instance;
+} _BeginTransactionResponse_default_instance_;
+class CommitRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CommitRequest>
+ _instance;
+} _CommitRequest_default_instance_;
+class CommitResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CommitResponse>
+ _instance;
+} _CommitResponse_default_instance_;
+class RollbackRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RollbackRequest>
+ _instance;
+} _RollbackRequest_default_instance_;
+class RunQueryRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RunQueryRequest>
+ _instance;
+ const ::google::firestore::v1beta1::StructuredQuery* structured_query_;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ const ::google::firestore::v1beta1::TransactionOptions* new_transaction_;
+ const ::google::protobuf::Timestamp* read_time_;
+} _RunQueryRequest_default_instance_;
+class RunQueryResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<RunQueryResponse>
+ _instance;
+} _RunQueryResponse_default_instance_;
+class WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<WriteRequest_LabelsEntry_DoNotUse>
+ _instance;
+} _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
+class WriteRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<WriteRequest>
+ _instance;
+} _WriteRequest_default_instance_;
+class WriteResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<WriteResponse>
+ _instance;
+} _WriteResponse_default_instance_;
+class ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListenRequest_LabelsEntry_DoNotUse>
+ _instance;
+} _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
+class ListenRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListenRequest>
+ _instance;
+ const ::google::firestore::v1beta1::Target* add_target_;
+ ::google::protobuf::int32 remove_target_;
+} _ListenRequest_default_instance_;
+class ListenResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListenResponse>
+ _instance;
+ const ::google::firestore::v1beta1::TargetChange* target_change_;
+ const ::google::firestore::v1beta1::DocumentChange* document_change_;
+ const ::google::firestore::v1beta1::DocumentDelete* document_delete_;
+ const ::google::firestore::v1beta1::DocumentRemove* document_remove_;
+ const ::google::firestore::v1beta1::ExistenceFilter* filter_;
+} _ListenResponse_default_instance_;
+class Target_DocumentsTargetDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Target_DocumentsTarget>
+ _instance;
+} _Target_DocumentsTarget_default_instance_;
+class Target_QueryTargetDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Target_QueryTarget>
+ _instance;
+ const ::google::firestore::v1beta1::StructuredQuery* structured_query_;
+} _Target_QueryTarget_default_instance_;
+class TargetDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Target>
+ _instance;
+ const ::google::firestore::v1beta1::Target_QueryTarget* query_;
+ const ::google::firestore::v1beta1::Target_DocumentsTarget* documents_;
+ ::google::protobuf::internal::ArenaStringPtr resume_token_;
+ const ::google::protobuf::Timestamp* read_time_;
+} _Target_default_instance_;
+class TargetChangeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<TargetChange>
+ _instance;
+} _TargetChange_default_instance_;
+class ListCollectionIdsRequestDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListCollectionIdsRequest>
+ _instance;
+} _ListCollectionIdsRequest_default_instance_;
+class ListCollectionIdsResponseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListCollectionIdsResponse>
+ _instance;
+} _ListCollectionIdsResponse_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto {
+void InitDefaultsGetDocumentRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_GetDocumentRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::GetDocumentRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::GetDocumentRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsGetDocumentRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetDocumentRequestImpl);
+}
+
+void InitDefaultsListDocumentsRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListDocumentsRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListDocumentsRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ListDocumentsRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsListDocumentsRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListDocumentsRequestImpl);
+}
+
+void InitDefaultsListDocumentsResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListDocumentsResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListDocumentsResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ListDocumentsResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsListDocumentsResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListDocumentsResponseImpl);
+}
+
+void InitDefaultsCreateDocumentRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ {
+ void* ptr = &::google::firestore::v1beta1::_CreateDocumentRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::CreateDocumentRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::CreateDocumentRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsCreateDocumentRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateDocumentRequestImpl);
+}
+
+void InitDefaultsUpdateDocumentRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPrecondition();
+ {
+ void* ptr = &::google::firestore::v1beta1::_UpdateDocumentRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::UpdateDocumentRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::UpdateDocumentRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsUpdateDocumentRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdateDocumentRequestImpl);
+}
+
+void InitDefaultsDeleteDocumentRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPrecondition();
+ {
+ void* ptr = &::google::firestore::v1beta1::_DeleteDocumentRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DeleteDocumentRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DeleteDocumentRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsDeleteDocumentRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteDocumentRequestImpl);
+}
+
+void InitDefaultsBatchGetDocumentsRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_BatchGetDocumentsRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::BatchGetDocumentsRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::BatchGetDocumentsRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsBatchGetDocumentsRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBatchGetDocumentsRequestImpl);
+}
+
+void InitDefaultsBatchGetDocumentsResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_BatchGetDocumentsResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::BatchGetDocumentsResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::BatchGetDocumentsResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsBatchGetDocumentsResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBatchGetDocumentsResponseImpl);
+}
+
+void InitDefaultsBeginTransactionRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions();
+ {
+ void* ptr = &::google::firestore::v1beta1::_BeginTransactionRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::BeginTransactionRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::BeginTransactionRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsBeginTransactionRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBeginTransactionRequestImpl);
+}
+
+void InitDefaultsBeginTransactionResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_BeginTransactionResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::BeginTransactionResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::BeginTransactionResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsBeginTransactionResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBeginTransactionResponseImpl);
+}
+
+void InitDefaultsCommitRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWrite();
+ {
+ void* ptr = &::google::firestore::v1beta1::_CommitRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::CommitRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::CommitRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsCommitRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommitRequestImpl);
+}
+
+void InitDefaultsCommitResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWriteResult();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_CommitResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::CommitResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::CommitResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsCommitResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCommitResponseImpl);
+}
+
+void InitDefaultsRollbackRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_RollbackRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::RollbackRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::RollbackRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsRollbackRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRollbackRequestImpl);
+}
+
+void InitDefaultsRunQueryRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_RunQueryRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::RunQueryRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::RunQueryRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsRunQueryRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRunQueryRequestImpl);
+}
+
+void InitDefaultsRunQueryResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_RunQueryResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::RunQueryResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::RunQueryResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsRunQueryResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRunQueryResponseImpl);
+}
+
+void InitDefaultsWriteRequest_LabelsEntry_DoNotUseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_WriteRequest_LabelsEntry_DoNotUse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse();
+ }
+ ::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse::InitAsDefaultInstance();
+}
+
+void InitDefaultsWriteRequest_LabelsEntry_DoNotUse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteRequest_LabelsEntry_DoNotUseImpl);
+}
+
+void InitDefaultsWriteRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWrite();
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteRequest_LabelsEntry_DoNotUse();
+ {
+ void* ptr = &::google::firestore::v1beta1::_WriteRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::WriteRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::WriteRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsWriteRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteRequestImpl);
+}
+
+void InitDefaultsWriteResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWriteResult();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_WriteResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::WriteResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::WriteResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsWriteResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteResponseImpl);
+}
+
+void InitDefaultsListenRequest_LabelsEntry_DoNotUseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListenRequest_LabelsEntry_DoNotUse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse();
+ }
+ ::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse::InitAsDefaultInstance();
+}
+
+void InitDefaultsListenRequest_LabelsEntry_DoNotUse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListenRequest_LabelsEntry_DoNotUseImpl);
+}
+
+void InitDefaultsListenRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget();
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenRequest_LabelsEntry_DoNotUse();
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListenRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListenRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ListenRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsListenRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListenRequestImpl);
+}
+
+void InitDefaultsListenResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTargetChange();
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentChange();
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentDelete();
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentRemove();
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsExistenceFilter();
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListenResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListenResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ListenResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsListenResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListenResponseImpl);
+}
+
+void InitDefaultsTarget_DocumentsTargetImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_Target_DocumentsTarget_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Target_DocumentsTarget();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Target_DocumentsTarget::InitAsDefaultInstance();
+}
+
+void InitDefaultsTarget_DocumentsTarget() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTarget_DocumentsTargetImpl);
+}
+
+void InitDefaultsTarget_QueryTargetImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Target_QueryTarget_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Target_QueryTarget();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Target_QueryTarget::InitAsDefaultInstance();
+}
+
+void InitDefaultsTarget_QueryTarget() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTarget_QueryTargetImpl);
+}
+
+void InitDefaultsTargetImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_QueryTarget();
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_DocumentsTarget();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Target_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Target();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Target::InitAsDefaultInstance();
+}
+
+void InitDefaultsTarget() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTargetImpl);
+}
+
+void InitDefaultsTargetChangeImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatus();
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_TargetChange_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::TargetChange();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::TargetChange::InitAsDefaultInstance();
+}
+
+void InitDefaultsTargetChange() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTargetChangeImpl);
+}
+
+void InitDefaultsListCollectionIdsRequestImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListCollectionIdsRequest_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListCollectionIdsRequest();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ListCollectionIdsRequest::InitAsDefaultInstance();
+}
+
+void InitDefaultsListCollectionIdsRequest() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListCollectionIdsRequestImpl);
+}
+
+void InitDefaultsListCollectionIdsResponseImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_ListCollectionIdsResponse_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ListCollectionIdsResponse();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ListCollectionIdsResponse::InitAsDefaultInstance();
+}
+
+void InitDefaultsListCollectionIdsResponse() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListCollectionIdsResponseImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[27];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::GetDocumentRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::GetDocumentRequest, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::GetDocumentRequest, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::GetDocumentRequest, mask_),
+ offsetof(::google::firestore::v1beta1::GetDocumentRequestDefaultTypeInternal, transaction_),
+ offsetof(::google::firestore::v1beta1::GetDocumentRequestDefaultTypeInternal, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::GetDocumentRequest, consistency_selector_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, parent_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, collection_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, page_size_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, page_token_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, order_by_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, mask_),
+ offsetof(::google::firestore::v1beta1::ListDocumentsRequestDefaultTypeInternal, transaction_),
+ offsetof(::google::firestore::v1beta1::ListDocumentsRequestDefaultTypeInternal, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, show_missing_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsRequest, consistency_selector_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsResponse, documents_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListDocumentsResponse, next_page_token_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CreateDocumentRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CreateDocumentRequest, parent_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CreateDocumentRequest, collection_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CreateDocumentRequest, document_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CreateDocumentRequest, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CreateDocumentRequest, mask_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::UpdateDocumentRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::UpdateDocumentRequest, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::UpdateDocumentRequest, update_mask_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::UpdateDocumentRequest, mask_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::UpdateDocumentRequest, current_document_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DeleteDocumentRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DeleteDocumentRequest, name_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DeleteDocumentRequest, current_document_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsRequest, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsRequest, database_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsRequest, documents_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsRequest, mask_),
+ offsetof(::google::firestore::v1beta1::BatchGetDocumentsRequestDefaultTypeInternal, transaction_),
+ offsetof(::google::firestore::v1beta1::BatchGetDocumentsRequestDefaultTypeInternal, new_transaction_),
+ offsetof(::google::firestore::v1beta1::BatchGetDocumentsRequestDefaultTypeInternal, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsRequest, consistency_selector_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsResponse, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::BatchGetDocumentsResponseDefaultTypeInternal, found_),
+ offsetof(::google::firestore::v1beta1::BatchGetDocumentsResponseDefaultTypeInternal, missing_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsResponse, transaction_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsResponse, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BatchGetDocumentsResponse, result_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BeginTransactionRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BeginTransactionRequest, database_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BeginTransactionRequest, options_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BeginTransactionResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::BeginTransactionResponse, transaction_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitRequest, database_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitRequest, writes_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitRequest, transaction_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitResponse, write_results_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::CommitResponse, commit_time_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RollbackRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RollbackRequest, database_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RollbackRequest, transaction_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryRequest, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryRequest, parent_),
+ offsetof(::google::firestore::v1beta1::RunQueryRequestDefaultTypeInternal, structured_query_),
+ offsetof(::google::firestore::v1beta1::RunQueryRequestDefaultTypeInternal, transaction_),
+ offsetof(::google::firestore::v1beta1::RunQueryRequestDefaultTypeInternal, new_transaction_),
+ offsetof(::google::firestore::v1beta1::RunQueryRequestDefaultTypeInternal, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryRequest, query_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryRequest, consistency_selector_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryResponse, transaction_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryResponse, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryResponse, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::RunQueryResponse, skipped_results_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse, key_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse, value_),
+ 0,
+ 1,
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest, database_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest, stream_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest, writes_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest, stream_token_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteRequest, labels_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResponse, stream_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResponse, stream_token_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResponse, write_results_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResponse, commit_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse, key_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse, value_),
+ 0,
+ 1,
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest, database_),
+ offsetof(::google::firestore::v1beta1::ListenRequestDefaultTypeInternal, add_target_),
+ offsetof(::google::firestore::v1beta1::ListenRequestDefaultTypeInternal, remove_target_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest, labels_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenRequest, target_change_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenResponse, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::ListenResponseDefaultTypeInternal, target_change_),
+ offsetof(::google::firestore::v1beta1::ListenResponseDefaultTypeInternal, document_change_),
+ offsetof(::google::firestore::v1beta1::ListenResponseDefaultTypeInternal, document_delete_),
+ offsetof(::google::firestore::v1beta1::ListenResponseDefaultTypeInternal, document_remove_),
+ offsetof(::google::firestore::v1beta1::ListenResponseDefaultTypeInternal, filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListenResponse, response_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target_DocumentsTarget, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target_DocumentsTarget, documents_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target_QueryTarget, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target_QueryTarget, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target_QueryTarget, parent_),
+ offsetof(::google::firestore::v1beta1::Target_QueryTargetDefaultTypeInternal, structured_query_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target_QueryTarget, query_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::TargetDefaultTypeInternal, query_),
+ offsetof(::google::firestore::v1beta1::TargetDefaultTypeInternal, documents_),
+ offsetof(::google::firestore::v1beta1::TargetDefaultTypeInternal, resume_token_),
+ offsetof(::google::firestore::v1beta1::TargetDefaultTypeInternal, read_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target, target_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target, once_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target, target_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Target, resume_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TargetChange, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TargetChange, target_change_type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TargetChange, target_ids_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TargetChange, cause_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TargetChange, resume_token_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::TargetChange, read_time_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsRequest, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsRequest, parent_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsRequest, page_size_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsRequest, page_token_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsResponse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsResponse, collection_ids_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ListCollectionIdsResponse, next_page_token_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::firestore::v1beta1::GetDocumentRequest)},
+ { 10, -1, sizeof(::google::firestore::v1beta1::ListDocumentsRequest)},
+ { 25, -1, sizeof(::google::firestore::v1beta1::ListDocumentsResponse)},
+ { 32, -1, sizeof(::google::firestore::v1beta1::CreateDocumentRequest)},
+ { 42, -1, sizeof(::google::firestore::v1beta1::UpdateDocumentRequest)},
+ { 51, -1, sizeof(::google::firestore::v1beta1::DeleteDocumentRequest)},
+ { 58, -1, sizeof(::google::firestore::v1beta1::BatchGetDocumentsRequest)},
+ { 70, -1, sizeof(::google::firestore::v1beta1::BatchGetDocumentsResponse)},
+ { 80, -1, sizeof(::google::firestore::v1beta1::BeginTransactionRequest)},
+ { 87, -1, sizeof(::google::firestore::v1beta1::BeginTransactionResponse)},
+ { 93, -1, sizeof(::google::firestore::v1beta1::CommitRequest)},
+ { 101, -1, sizeof(::google::firestore::v1beta1::CommitResponse)},
+ { 108, -1, sizeof(::google::firestore::v1beta1::RollbackRequest)},
+ { 115, -1, sizeof(::google::firestore::v1beta1::RunQueryRequest)},
+ { 127, -1, sizeof(::google::firestore::v1beta1::RunQueryResponse)},
+ { 136, 143, sizeof(::google::firestore::v1beta1::WriteRequest_LabelsEntry_DoNotUse)},
+ { 145, -1, sizeof(::google::firestore::v1beta1::WriteRequest)},
+ { 155, -1, sizeof(::google::firestore::v1beta1::WriteResponse)},
+ { 164, 171, sizeof(::google::firestore::v1beta1::ListenRequest_LabelsEntry_DoNotUse)},
+ { 173, -1, sizeof(::google::firestore::v1beta1::ListenRequest)},
+ { 183, -1, sizeof(::google::firestore::v1beta1::ListenResponse)},
+ { 194, -1, sizeof(::google::firestore::v1beta1::Target_DocumentsTarget)},
+ { 200, -1, sizeof(::google::firestore::v1beta1::Target_QueryTarget)},
+ { 208, -1, sizeof(::google::firestore::v1beta1::Target)},
+ { 221, -1, sizeof(::google::firestore::v1beta1::TargetChange)},
+ { 231, -1, sizeof(::google::firestore::v1beta1::ListCollectionIdsRequest)},
+ { 239, -1, sizeof(::google::firestore::v1beta1::ListCollectionIdsResponse)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_GetDocumentRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListDocumentsRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListDocumentsResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_CreateDocumentRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_UpdateDocumentRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DeleteDocumentRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_BatchGetDocumentsRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_BatchGetDocumentsResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_BeginTransactionRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_BeginTransactionResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_CommitRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_CommitResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_RollbackRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_RunQueryRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_RunQueryResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_WriteRequest_LabelsEntry_DoNotUse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_WriteRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_WriteResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListenRequest_LabelsEntry_DoNotUse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListenRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListenResponse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Target_DocumentsTarget_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Target_QueryTarget_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Target_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_TargetChange_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListCollectionIdsRequest_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ListCollectionIdsResponse_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/firestore/v1beta1/firestore.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 27);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n(google/firestore/v1beta1/firestore.pro"
+ "to\022\030google.firestore.v1beta1\032\034google/api"
+ "/annotations.proto\032%google/firestore/v1b"
+ "eta1/common.proto\032\'google/firestore/v1be"
+ "ta1/document.proto\032$google/firestore/v1b"
+ "eta1/query.proto\032$google/firestore/v1bet"
+ "a1/write.proto\032\033google/protobuf/empty.pr"
+ "oto\032\037google/protobuf/timestamp.proto\032\027go"
+ "ogle/rpc/status.proto\"\270\001\n\022GetDocumentReq"
+ "uest\022\014\n\004name\030\001 \001(\t\0224\n\004mask\030\002 \001(\0132&.googl"
+ "e.firestore.v1beta1.DocumentMask\022\025\n\013tran"
+ "saction\030\003 \001(\014H\000\022/\n\tread_time\030\005 \001(\0132\032.goo"
+ "gle.protobuf.TimestampH\000B\026\n\024consistency_"
+ "selector\"\242\002\n\024ListDocumentsRequest\022\016\n\006par"
+ "ent\030\001 \001(\t\022\025\n\rcollection_id\030\002 \001(\t\022\021\n\tpage"
+ "_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010order"
+ "_by\030\006 \001(\t\0224\n\004mask\030\007 \001(\0132&.google.firesto"
+ "re.v1beta1.DocumentMask\022\025\n\013transaction\030\010"
+ " \001(\014H\000\022/\n\tread_time\030\n \001(\0132\032.google.proto"
+ "buf.TimestampH\000\022\024\n\014show_missing\030\014 \001(\010B\026\n"
+ "\024consistency_selector\"g\n\025ListDocumentsRe"
+ "sponse\0225\n\tdocuments\030\001 \003(\0132\".google.fires"
+ "tore.v1beta1.Document\022\027\n\017next_page_token"
+ "\030\002 \001(\t\"\277\001\n\025CreateDocumentRequest\022\016\n\006pare"
+ "nt\030\001 \001(\t\022\025\n\rcollection_id\030\002 \001(\t\022\023\n\013docum"
+ "ent_id\030\003 \001(\t\0224\n\010document\030\004 \001(\0132\".google."
+ "firestore.v1beta1.Document\0224\n\004mask\030\005 \001(\013"
+ "2&.google.firestore.v1beta1.DocumentMask"
+ "\"\202\002\n\025UpdateDocumentRequest\0224\n\010document\030\001"
+ " \001(\0132\".google.firestore.v1beta1.Document"
+ "\022;\n\013update_mask\030\002 \001(\0132&.google.firestore"
+ ".v1beta1.DocumentMask\0224\n\004mask\030\003 \001(\0132&.go"
+ "ogle.firestore.v1beta1.DocumentMask\022@\n\020c"
+ "urrent_document\030\004 \001(\0132&.google.firestore"
+ ".v1beta1.Precondition\"g\n\025DeleteDocumentR"
+ "equest\022\014\n\004name\030\001 \001(\t\022@\n\020current_document"
+ "\030\002 \001(\0132&.google.firestore.v1beta1.Precon"
+ "dition\"\236\002\n\030BatchGetDocumentsRequest\022\020\n\010d"
+ "atabase\030\001 \001(\t\022\021\n\tdocuments\030\002 \003(\t\0224\n\004mask"
+ "\030\003 \001(\0132&.google.firestore.v1beta1.Docume"
+ "ntMask\022\025\n\013transaction\030\004 \001(\014H\000\022G\n\017new_tra"
+ "nsaction\030\005 \001(\0132,.google.firestore.v1beta"
+ "1.TransactionOptionsH\000\022/\n\tread_time\030\007 \001("
+ "\0132\032.google.protobuf.TimestampH\000B\026\n\024consi"
+ "stency_selector\"\261\001\n\031BatchGetDocumentsRes"
+ "ponse\0223\n\005found\030\001 \001(\0132\".google.firestore."
+ "v1beta1.DocumentH\000\022\021\n\007missing\030\002 \001(\tH\000\022\023\n"
+ "\013transaction\030\003 \001(\014\022-\n\tread_time\030\004 \001(\0132\032."
+ "google.protobuf.TimestampB\010\n\006result\"j\n\027B"
+ "eginTransactionRequest\022\020\n\010database\030\001 \001(\t"
+ "\022=\n\007options\030\002 \001(\0132,.google.firestore.v1b"
+ "eta1.TransactionOptions\"/\n\030BeginTransact"
+ "ionResponse\022\023\n\013transaction\030\001 \001(\014\"g\n\rComm"
+ "itRequest\022\020\n\010database\030\001 \001(\t\022/\n\006writes\030\002 "
+ "\003(\0132\037.google.firestore.v1beta1.Write\022\023\n\013"
+ "transaction\030\003 \001(\014\"\177\n\016CommitResponse\022<\n\rw"
+ "rite_results\030\001 \003(\0132%.google.firestore.v1"
+ "beta1.WriteResult\022/\n\013commit_time\030\002 \001(\0132\032"
+ ".google.protobuf.Timestamp\"8\n\017RollbackRe"
+ "quest\022\020\n\010database\030\001 \001(\t\022\023\n\013transaction\030\002"
+ " \001(\014\"\237\002\n\017RunQueryRequest\022\016\n\006parent\030\001 \001(\t"
+ "\022E\n\020structured_query\030\002 \001(\0132).google.fire"
+ "store.v1beta1.StructuredQueryH\000\022\025\n\013trans"
+ "action\030\005 \001(\014H\001\022G\n\017new_transaction\030\006 \001(\0132"
+ ",.google.firestore.v1beta1.TransactionOp"
+ "tionsH\001\022/\n\tread_time\030\007 \001(\0132\032.google.prot"
+ "obuf.TimestampH\001B\014\n\nquery_typeB\026\n\024consis"
+ "tency_selector\"\245\001\n\020RunQueryResponse\022\023\n\013t"
+ "ransaction\030\002 \001(\014\0224\n\010document\030\001 \001(\0132\".goo"
+ "gle.firestore.v1beta1.Document\022-\n\tread_t"
+ "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022\027\n"
+ "\017skipped_results\030\004 \001(\005\"\355\001\n\014WriteRequest\022"
+ "\020\n\010database\030\001 \001(\t\022\021\n\tstream_id\030\002 \001(\t\022/\n\006"
+ "writes\030\003 \003(\0132\037.google.firestore.v1beta1."
+ "Write\022\024\n\014stream_token\030\004 \001(\014\022B\n\006labels\030\005 "
+ "\003(\01322.google.firestore.v1beta1.WriteRequ"
+ "est.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 "
+ "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\247\001\n\rWriteResponse"
+ "\022\021\n\tstream_id\030\001 \001(\t\022\024\n\014stream_token\030\002 \001("
+ "\014\022<\n\rwrite_results\030\003 \003(\0132%.google.firest"
+ "ore.v1beta1.WriteResult\022/\n\013commit_time\030\004"
+ " \001(\0132\032.google.protobuf.Timestamp\"\367\001\n\rLis"
+ "tenRequest\022\020\n\010database\030\001 \001(\t\0226\n\nadd_targ"
+ "et\030\002 \001(\0132 .google.firestore.v1beta1.Targ"
+ "etH\000\022\027\n\rremove_target\030\003 \001(\005H\000\022C\n\006labels\030"
+ "\004 \003(\01323.google.firestore.v1beta1.ListenR"
+ "equest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key"
+ "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\rtarget_chan"
+ "ge\"\356\002\n\016ListenResponse\022\?\n\rtarget_change\030\002"
+ " \001(\0132&.google.firestore.v1beta1.TargetCh"
+ "angeH\000\022C\n\017document_change\030\003 \001(\0132(.google"
+ ".firestore.v1beta1.DocumentChangeH\000\022C\n\017d"
+ "ocument_delete\030\004 \001(\0132(.google.firestore."
+ "v1beta1.DocumentDeleteH\000\022C\n\017document_rem"
+ "ove\030\006 \001(\0132(.google.firestore.v1beta1.Doc"
+ "umentRemoveH\000\022;\n\006filter\030\005 \001(\0132).google.f"
+ "irestore.v1beta1.ExistenceFilterH\000B\017\n\rre"
+ "sponse_type\"\260\003\n\006Target\022=\n\005query\030\002 \001(\0132,."
+ "google.firestore.v1beta1.Target.QueryTar"
+ "getH\000\022E\n\tdocuments\030\003 \001(\01320.google.firest"
+ "ore.v1beta1.Target.DocumentsTargetH\000\022\026\n\014"
+ "resume_token\030\004 \001(\014H\001\022/\n\tread_time\030\013 \001(\0132"
+ "\032.google.protobuf.TimestampH\001\022\021\n\ttarget_"
+ "id\030\005 \001(\005\022\014\n\004once\030\006 \001(\010\032$\n\017DocumentsTarge"
+ "t\022\021\n\tdocuments\030\002 \003(\t\032r\n\013QueryTarget\022\016\n\006p"
+ "arent\030\001 \001(\t\022E\n\020structured_query\030\002 \001(\0132)."
+ "google.firestore.v1beta1.StructuredQuery"
+ "H\000B\014\n\nquery_typeB\r\n\013target_typeB\r\n\013resum"
+ "e_type\"\257\002\n\014TargetChange\022S\n\022target_change"
+ "_type\030\001 \001(\01627.google.firestore.v1beta1.T"
+ "argetChange.TargetChangeType\022\022\n\ntarget_i"
+ "ds\030\002 \003(\005\022!\n\005cause\030\003 \001(\0132\022.google.rpc.Sta"
+ "tus\022\024\n\014resume_token\030\004 \001(\014\022-\n\tread_time\030\006"
+ " \001(\0132\032.google.protobuf.Timestamp\"N\n\020Targ"
+ "etChangeType\022\r\n\tNO_CHANGE\020\000\022\007\n\003ADD\020\001\022\n\n\006"
+ "REMOVE\020\002\022\013\n\007CURRENT\020\003\022\t\n\005RESET\020\004\"Q\n\030List"
+ "CollectionIdsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\t"
+ "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"L\n\031L"
+ "istCollectionIdsResponse\022\026\n\016collection_i"
+ "ds\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\255\022\n\tFi"
+ "restore\022\236\001\n\013GetDocument\022,.google.firesto"
+ "re.v1beta1.GetDocumentRequest\032\".google.f"
+ "irestore.v1beta1.Document\"=\202\323\344\223\0027\0225/v1be"
+ "ta1/{name=projects/*/databases/*/documen"
+ "ts/*/**}\022\301\001\n\rListDocuments\022..google.fire"
+ "store.v1beta1.ListDocumentsRequest\032/.goo"
+ "gle.firestore.v1beta1.ListDocumentsRespo"
+ "nse\"O\202\323\344\223\002I\022G/v1beta1/{parent=projects/*"
+ "/databases/*/documents/*/**}/{collection"
+ "_id}\022\276\001\n\016CreateDocument\022/.google.firesto"
+ "re.v1beta1.CreateDocumentRequest\032\".googl"
+ "e.firestore.v1beta1.Document\"W\202\323\344\223\002Q\"E/v"
+ "1beta1/{parent=projects/*/databases/*/do"
+ "cuments/**}/{collection_id}:\010document\022\267\001"
+ "\n\016UpdateDocument\022/.google.firestore.v1be"
+ "ta1.UpdateDocumentRequest\032\".google.fires"
+ "tore.v1beta1.Document\"P\202\323\344\223\002J2>/v1beta1/"
+ "{document.name=projects/*/databases/*/do"
+ "cuments/*/**}:\010document\022\230\001\n\016DeleteDocume"
+ "nt\022/.google.firestore.v1beta1.DeleteDocu"
+ "mentRequest\032\026.google.protobuf.Empty\"=\202\323\344"
+ "\223\0027*5/v1beta1/{name=projects/*/databases"
+ "/*/documents/*/**}\022\310\001\n\021BatchGetDocuments"
+ "\0222.google.firestore.v1beta1.BatchGetDocu"
+ "mentsRequest\0323.google.firestore.v1beta1."
+ "BatchGetDocumentsResponse\"H\202\323\344\223\002B\"=/v1be"
+ "ta1/{database=projects/*/databases/*}/do"
+ "cuments:batchGet:\001*0\001\022\313\001\n\020BeginTransacti"
+ "on\0221.google.firestore.v1beta1.BeginTrans"
+ "actionRequest\0322.google.firestore.v1beta1"
+ ".BeginTransactionResponse\"P\202\323\344\223\002J\"E/v1be"
+ "ta1/{database=projects/*/databases/*}/do"
+ "cuments:beginTransaction:\001*\022\243\001\n\006Commit\022\'"
+ ".google.firestore.v1beta1.CommitRequest\032"
+ "(.google.firestore.v1beta1.CommitRespons"
+ "e\"F\202\323\344\223\002@\";/v1beta1/{database=projects/*"
+ "/databases/*}/documents:commit:\001*\022\227\001\n\010Ro"
+ "llback\022).google.firestore.v1beta1.Rollba"
+ "ckRequest\032\026.google.protobuf.Empty\"H\202\323\344\223\002"
+ "B\"=/v1beta1/{database=projects/*/databas"
+ "es/*}/documents:rollback:\001*\022\253\001\n\010RunQuery"
+ "\022).google.firestore.v1beta1.RunQueryRequ"
+ "est\032*.google.firestore.v1beta1.RunQueryR"
+ "esponse\"F\202\323\344\223\002@\";/v1beta1/{parent=projec"
+ "ts/*/databases/*/documents}:runQuery:\001*0"
+ "\001\022\243\001\n\005Write\022&.google.firestore.v1beta1.W"
+ "riteRequest\032\'.google.firestore.v1beta1.W"
+ "riteResponse\"E\202\323\344\223\002\?\":/v1beta1/{database"
+ "=projects/*/databases/*}/documents:write"
+ ":\001*(\0010\001\022\247\001\n\006Listen\022\'.google.firestore.v1"
+ "beta1.ListenRequest\032(.google.firestore.v"
+ "1beta1.ListenResponse\"F\202\323\344\223\002@\";/v1beta1/"
+ "{database=projects/*/databases/*}/docume"
+ "nts:listen:\001*(\0010\001\022\315\001\n\021ListCollectionIds\022"
+ "2.google.firestore.v1beta1.ListCollectio"
+ "nIdsRequest\0323.google.firestore.v1beta1.L"
+ "istCollectionIdsResponse\"O\202\323\344\223\002I\"D/v1bet"
+ "a1/{parent=projects/*/databases/*/docume"
+ "nts}:listCollectionIds:\001*B\233\001\n\034com.google"
+ ".firestore.v1beta1B\016FirestoreProtoP\001ZAgo"
+ "ogle.golang.org/genproto/googleapis/fire"
+ "store/v1beta1;firestore\242\002\004GCFS\252\002\036Google."
+ "Cloud.Firestore.V1Beta1b\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 7311);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/firestore/v1beta1/firestore.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2fempty_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+ ::protobuf_google_2frpc_2fstatus_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+const ::google::protobuf::EnumDescriptor* TargetChange_TargetChangeType_descriptor() {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_enum_descriptors[0];
+}
+bool TargetChange_TargetChangeType_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const TargetChange_TargetChangeType TargetChange::NO_CHANGE;
+const TargetChange_TargetChangeType TargetChange::ADD;
+const TargetChange_TargetChangeType TargetChange::REMOVE;
+const TargetChange_TargetChangeType TargetChange::CURRENT;
+const TargetChange_TargetChangeType TargetChange::RESET;
+const TargetChange_TargetChangeType TargetChange::TargetChangeType_MIN;
+const TargetChange_TargetChangeType TargetChange::TargetChangeType_MAX;
+const int TargetChange::TargetChangeType_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+// ===================================================================
+
+void GetDocumentRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_GetDocumentRequest_default_instance_._instance.get_mutable()->mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+ ::google::firestore::v1beta1::_GetDocumentRequest_default_instance_.transaction_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_GetDocumentRequest_default_instance_.read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void GetDocumentRequest::clear_mask() {
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+}
+void GetDocumentRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+ set_has_read_time();
+ consistency_selector_.read_time_ = read_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.GetDocumentRequest.read_time)
+}
+void GetDocumentRequest::clear_read_time() {
+ if (has_read_time()) {
+ delete consistency_selector_.read_time_;
+ clear_has_consistency_selector();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int GetDocumentRequest::kNameFieldNumber;
+const int GetDocumentRequest::kMaskFieldNumber;
+const int GetDocumentRequest::kTransactionFieldNumber;
+const int GetDocumentRequest::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+GetDocumentRequest::GetDocumentRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsGetDocumentRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.GetDocumentRequest)
+}
+GetDocumentRequest::GetDocumentRequest(const GetDocumentRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.name().size() > 0) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_mask()) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.mask_);
+ } else {
+ mask_ = NULL;
+ }
+ clear_has_consistency_selector();
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.GetDocumentRequest)
+}
+
+void GetDocumentRequest::SharedCtor() {
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ mask_ = NULL;
+ clear_has_consistency_selector();
+ _cached_size_ = 0;
+}
+
+GetDocumentRequest::~GetDocumentRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.GetDocumentRequest)
+ SharedDtor();
+}
+
+void GetDocumentRequest::SharedDtor() {
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete mask_;
+ if (has_consistency_selector()) {
+ clear_consistency_selector();
+ }
+}
+
+void GetDocumentRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* GetDocumentRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const GetDocumentRequest& GetDocumentRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsGetDocumentRequest();
+ return *internal_default_instance();
+}
+
+GetDocumentRequest* GetDocumentRequest::New(::google::protobuf::Arena* arena) const {
+ GetDocumentRequest* n = new GetDocumentRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void GetDocumentRequest::clear_consistency_selector() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.GetDocumentRequest)
+ switch (consistency_selector_case()) {
+ case kTransaction: {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kReadTime: {
+ delete consistency_selector_.read_time_;
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+
+
+void GetDocumentRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.GetDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+ clear_consistency_selector();
+ _internal_metadata_.Clear();
+}
+
+bool GetDocumentRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.GetDocumentRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string name = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_name()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.GetDocumentRequest.name"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.GetDocumentRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.GetDocumentRequest)
+ return false;
+#undef DO_
+}
+
+void GetDocumentRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.GetDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.GetDocumentRequest.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->name(), output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 2;
+ if (this->has_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->mask_, output);
+ }
+
+ // bytes transaction = 3;
+ if (has_transaction()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 3, this->transaction(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 5;
+ if (has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *consistency_selector_.read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.GetDocumentRequest)
+}
+
+::google::protobuf::uint8* GetDocumentRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.GetDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.GetDocumentRequest.name");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->name(), target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 2;
+ if (this->has_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->mask_, deterministic, target);
+ }
+
+ // bytes transaction = 3;
+ if (has_transaction()) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 3, this->transaction(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 5;
+ if (has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *consistency_selector_.read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.GetDocumentRequest)
+ return target;
+}
+
+size_t GetDocumentRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.GetDocumentRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string name = 1;
+ if (this->name().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->name());
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 2;
+ if (this->has_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->mask_);
+ }
+
+ switch (consistency_selector_case()) {
+ // bytes transaction = 3;
+ case kTransaction: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ break;
+ }
+ // .google.protobuf.Timestamp read_time = 5;
+ case kReadTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.read_time_);
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void GetDocumentRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.GetDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const GetDocumentRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const GetDocumentRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.GetDocumentRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.GetDocumentRequest)
+ MergeFrom(*source);
+ }
+}
+
+void GetDocumentRequest::MergeFrom(const GetDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.GetDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.name().size() > 0) {
+
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_mask()) {
+ mutable_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.mask());
+ }
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void GetDocumentRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.GetDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void GetDocumentRequest::CopyFrom(const GetDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.GetDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool GetDocumentRequest::IsInitialized() const {
+ return true;
+}
+
+void GetDocumentRequest::Swap(GetDocumentRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void GetDocumentRequest::InternalSwap(GetDocumentRequest* other) {
+ using std::swap;
+ name_.Swap(&other->name_);
+ swap(mask_, other->mask_);
+ swap(consistency_selector_, other->consistency_selector_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata GetDocumentRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ListDocumentsRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_ListDocumentsRequest_default_instance_._instance.get_mutable()->mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+ ::google::firestore::v1beta1::_ListDocumentsRequest_default_instance_.transaction_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_ListDocumentsRequest_default_instance_.read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void ListDocumentsRequest::clear_mask() {
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+}
+void ListDocumentsRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+ set_has_read_time();
+ consistency_selector_.read_time_ = read_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.read_time)
+}
+void ListDocumentsRequest::clear_read_time() {
+ if (has_read_time()) {
+ delete consistency_selector_.read_time_;
+ clear_has_consistency_selector();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListDocumentsRequest::kParentFieldNumber;
+const int ListDocumentsRequest::kCollectionIdFieldNumber;
+const int ListDocumentsRequest::kPageSizeFieldNumber;
+const int ListDocumentsRequest::kPageTokenFieldNumber;
+const int ListDocumentsRequest::kOrderByFieldNumber;
+const int ListDocumentsRequest::kMaskFieldNumber;
+const int ListDocumentsRequest::kTransactionFieldNumber;
+const int ListDocumentsRequest::kReadTimeFieldNumber;
+const int ListDocumentsRequest::kShowMissingFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListDocumentsRequest::ListDocumentsRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListDocumentsRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ListDocumentsRequest)
+}
+ListDocumentsRequest::ListDocumentsRequest(const ListDocumentsRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.parent().size() > 0) {
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ collection_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.collection_id().size() > 0) {
+ collection_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_id_);
+ }
+ page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.page_token().size() > 0) {
+ page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token_);
+ }
+ order_by_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.order_by().size() > 0) {
+ order_by_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.order_by_);
+ }
+ if (from.has_mask()) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.mask_);
+ } else {
+ mask_ = NULL;
+ }
+ ::memcpy(&page_size_, &from.page_size_,
+ static_cast<size_t>(reinterpret_cast<char*>(&show_missing_) -
+ reinterpret_cast<char*>(&page_size_)) + sizeof(show_missing_));
+ clear_has_consistency_selector();
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ListDocumentsRequest)
+}
+
+void ListDocumentsRequest::SharedCtor() {
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ collection_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ order_by_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&mask_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&show_missing_) -
+ reinterpret_cast<char*>(&mask_)) + sizeof(show_missing_));
+ clear_has_consistency_selector();
+ _cached_size_ = 0;
+}
+
+ListDocumentsRequest::~ListDocumentsRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ListDocumentsRequest)
+ SharedDtor();
+}
+
+void ListDocumentsRequest::SharedDtor() {
+ parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ collection_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ order_by_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete mask_;
+ if (has_consistency_selector()) {
+ clear_consistency_selector();
+ }
+}
+
+void ListDocumentsRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListDocumentsRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListDocumentsRequest& ListDocumentsRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListDocumentsRequest();
+ return *internal_default_instance();
+}
+
+ListDocumentsRequest* ListDocumentsRequest::New(::google::protobuf::Arena* arena) const {
+ ListDocumentsRequest* n = new ListDocumentsRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ListDocumentsRequest::clear_consistency_selector() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.ListDocumentsRequest)
+ switch (consistency_selector_case()) {
+ case kTransaction: {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kReadTime: {
+ delete consistency_selector_.read_time_;
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+
+
+void ListDocumentsRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ListDocumentsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ order_by_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+ ::memset(&page_size_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&show_missing_) -
+ reinterpret_cast<char*>(&page_size_)) + sizeof(show_missing_));
+ clear_consistency_selector();
+ _internal_metadata_.Clear();
+}
+
+bool ListDocumentsRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ListDocumentsRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string parent = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_parent()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListDocumentsRequest.parent"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string collection_id = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_collection_id()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListDocumentsRequest.collection_id"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 page_size = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &page_size_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string page_token = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_page_token()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->page_token().data(), static_cast<int>(this->page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListDocumentsRequest.page_token"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string order_by = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_order_by()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->order_by().data(), static_cast<int>(this->order_by().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListDocumentsRequest.order_by"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 7;
+ case 7: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 8;
+ case 8: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 10;
+ case 10: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bool show_missing = 12;
+ case 12: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &show_missing_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ListDocumentsRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ListDocumentsRequest)
+ return false;
+#undef DO_
+}
+
+void ListDocumentsRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ListDocumentsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.parent");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->parent(), output);
+ }
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.collection_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->collection_id(), output);
+ }
+
+ // int32 page_size = 3;
+ if (this->page_size() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->page_size(), output);
+ }
+
+ // string page_token = 4;
+ if (this->page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->page_token().data(), static_cast<int>(this->page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.page_token");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 4, this->page_token(), output);
+ }
+
+ // string order_by = 6;
+ if (this->order_by().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->order_by().data(), static_cast<int>(this->order_by().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.order_by");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 6, this->order_by(), output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 7;
+ if (this->has_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 7, *this->mask_, output);
+ }
+
+ // bytes transaction = 8;
+ if (has_transaction()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 8, this->transaction(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 10;
+ if (has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 10, *consistency_selector_.read_time_, output);
+ }
+
+ // bool show_missing = 12;
+ if (this->show_missing() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->show_missing(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ListDocumentsRequest)
+}
+
+::google::protobuf::uint8* ListDocumentsRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ListDocumentsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.parent");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->parent(), target);
+ }
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.collection_id");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->collection_id(), target);
+ }
+
+ // int32 page_size = 3;
+ if (this->page_size() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->page_size(), target);
+ }
+
+ // string page_token = 4;
+ if (this->page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->page_token().data(), static_cast<int>(this->page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.page_token");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 4, this->page_token(), target);
+ }
+
+ // string order_by = 6;
+ if (this->order_by().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->order_by().data(), static_cast<int>(this->order_by().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsRequest.order_by");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 6, this->order_by(), target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 7;
+ if (this->has_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 7, *this->mask_, deterministic, target);
+ }
+
+ // bytes transaction = 8;
+ if (has_transaction()) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 8, this->transaction(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 10;
+ if (has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 10, *consistency_selector_.read_time_, deterministic, target);
+ }
+
+ // bool show_missing = 12;
+ if (this->show_missing() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->show_missing(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ListDocumentsRequest)
+ return target;
+}
+
+size_t ListDocumentsRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ListDocumentsRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->parent());
+ }
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->collection_id());
+ }
+
+ // string page_token = 4;
+ if (this->page_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->page_token());
+ }
+
+ // string order_by = 6;
+ if (this->order_by().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->order_by());
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 7;
+ if (this->has_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->mask_);
+ }
+
+ // int32 page_size = 3;
+ if (this->page_size() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->page_size());
+ }
+
+ // bool show_missing = 12;
+ if (this->show_missing() != 0) {
+ total_size += 1 + 1;
+ }
+
+ switch (consistency_selector_case()) {
+ // bytes transaction = 8;
+ case kTransaction: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ break;
+ }
+ // .google.protobuf.Timestamp read_time = 10;
+ case kReadTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.read_time_);
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListDocumentsRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ListDocumentsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListDocumentsRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListDocumentsRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ListDocumentsRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ListDocumentsRequest)
+ MergeFrom(*source);
+ }
+}
+
+void ListDocumentsRequest::MergeFrom(const ListDocumentsRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ListDocumentsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.parent().size() > 0) {
+
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ if (from.collection_id().size() > 0) {
+
+ collection_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_id_);
+ }
+ if (from.page_token().size() > 0) {
+
+ page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token_);
+ }
+ if (from.order_by().size() > 0) {
+
+ order_by_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.order_by_);
+ }
+ if (from.has_mask()) {
+ mutable_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.mask());
+ }
+ if (from.page_size() != 0) {
+ set_page_size(from.page_size());
+ }
+ if (from.show_missing() != 0) {
+ set_show_missing(from.show_missing());
+ }
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void ListDocumentsRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ListDocumentsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListDocumentsRequest::CopyFrom(const ListDocumentsRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ListDocumentsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListDocumentsRequest::IsInitialized() const {
+ return true;
+}
+
+void ListDocumentsRequest::Swap(ListDocumentsRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ListDocumentsRequest::InternalSwap(ListDocumentsRequest* other) {
+ using std::swap;
+ parent_.Swap(&other->parent_);
+ collection_id_.Swap(&other->collection_id_);
+ page_token_.Swap(&other->page_token_);
+ order_by_.Swap(&other->order_by_);
+ swap(mask_, other->mask_);
+ swap(page_size_, other->page_size_);
+ swap(show_missing_, other->show_missing_);
+ swap(consistency_selector_, other->consistency_selector_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListDocumentsRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ListDocumentsResponse::InitAsDefaultInstance() {
+}
+void ListDocumentsResponse::clear_documents() {
+ documents_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListDocumentsResponse::kDocumentsFieldNumber;
+const int ListDocumentsResponse::kNextPageTokenFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListDocumentsResponse::ListDocumentsResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListDocumentsResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ListDocumentsResponse)
+}
+ListDocumentsResponse::ListDocumentsResponse(const ListDocumentsResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ documents_(from.documents_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.next_page_token().size() > 0) {
+ next_page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ListDocumentsResponse)
+}
+
+void ListDocumentsResponse::SharedCtor() {
+ next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+ListDocumentsResponse::~ListDocumentsResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ListDocumentsResponse)
+ SharedDtor();
+}
+
+void ListDocumentsResponse::SharedDtor() {
+ next_page_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListDocumentsResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListDocumentsResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListDocumentsResponse& ListDocumentsResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListDocumentsResponse();
+ return *internal_default_instance();
+}
+
+ListDocumentsResponse* ListDocumentsResponse::New(::google::protobuf::Arena* arena) const {
+ ListDocumentsResponse* n = new ListDocumentsResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ListDocumentsResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ListDocumentsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ documents_.Clear();
+ next_page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool ListDocumentsResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ListDocumentsResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.firestore.v1beta1.Document documents = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_documents()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string next_page_token = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_next_page_token()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->next_page_token().data(), static_cast<int>(this->next_page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListDocumentsResponse.next_page_token"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ListDocumentsResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ListDocumentsResponse)
+ return false;
+#undef DO_
+}
+
+void ListDocumentsResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ListDocumentsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.Document documents = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->documents_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->documents(static_cast<int>(i)), output);
+ }
+
+ // string next_page_token = 2;
+ if (this->next_page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->next_page_token().data(), static_cast<int>(this->next_page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsResponse.next_page_token");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->next_page_token(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ListDocumentsResponse)
+}
+
+::google::protobuf::uint8* ListDocumentsResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ListDocumentsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.Document documents = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->documents_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->documents(static_cast<int>(i)), deterministic, target);
+ }
+
+ // string next_page_token = 2;
+ if (this->next_page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->next_page_token().data(), static_cast<int>(this->next_page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListDocumentsResponse.next_page_token");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->next_page_token(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ListDocumentsResponse)
+ return target;
+}
+
+size_t ListDocumentsResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ListDocumentsResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Document documents = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->documents_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->documents(static_cast<int>(i)));
+ }
+ }
+
+ // string next_page_token = 2;
+ if (this->next_page_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->next_page_token());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListDocumentsResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ListDocumentsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListDocumentsResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListDocumentsResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ListDocumentsResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ListDocumentsResponse)
+ MergeFrom(*source);
+ }
+}
+
+void ListDocumentsResponse::MergeFrom(const ListDocumentsResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ListDocumentsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ documents_.MergeFrom(from.documents_);
+ if (from.next_page_token().size() > 0) {
+
+ next_page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token_);
+ }
+}
+
+void ListDocumentsResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ListDocumentsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListDocumentsResponse::CopyFrom(const ListDocumentsResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ListDocumentsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListDocumentsResponse::IsInitialized() const {
+ return true;
+}
+
+void ListDocumentsResponse::Swap(ListDocumentsResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ListDocumentsResponse::InternalSwap(ListDocumentsResponse* other) {
+ using std::swap;
+ documents_.InternalSwap(&other->documents_);
+ next_page_token_.Swap(&other->next_page_token_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListDocumentsResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void CreateDocumentRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_CreateDocumentRequest_default_instance_._instance.get_mutable()->document_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+ ::google::firestore::v1beta1::_CreateDocumentRequest_default_instance_._instance.get_mutable()->mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+}
+void CreateDocumentRequest::clear_document() {
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+}
+void CreateDocumentRequest::clear_mask() {
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int CreateDocumentRequest::kParentFieldNumber;
+const int CreateDocumentRequest::kCollectionIdFieldNumber;
+const int CreateDocumentRequest::kDocumentIdFieldNumber;
+const int CreateDocumentRequest::kDocumentFieldNumber;
+const int CreateDocumentRequest::kMaskFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+CreateDocumentRequest::CreateDocumentRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCreateDocumentRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.CreateDocumentRequest)
+}
+CreateDocumentRequest::CreateDocumentRequest(const CreateDocumentRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.parent().size() > 0) {
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ collection_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.collection_id().size() > 0) {
+ collection_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_id_);
+ }
+ document_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.document_id().size() > 0) {
+ document_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_id_);
+ }
+ if (from.has_document()) {
+ document_ = new ::google::firestore::v1beta1::Document(*from.document_);
+ } else {
+ document_ = NULL;
+ }
+ if (from.has_mask()) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.mask_);
+ } else {
+ mask_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.CreateDocumentRequest)
+}
+
+void CreateDocumentRequest::SharedCtor() {
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ collection_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ document_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&document_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&mask_) -
+ reinterpret_cast<char*>(&document_)) + sizeof(mask_));
+ _cached_size_ = 0;
+}
+
+CreateDocumentRequest::~CreateDocumentRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.CreateDocumentRequest)
+ SharedDtor();
+}
+
+void CreateDocumentRequest::SharedDtor() {
+ parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ collection_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ document_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete document_;
+ if (this != internal_default_instance()) delete mask_;
+}
+
+void CreateDocumentRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* CreateDocumentRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const CreateDocumentRequest& CreateDocumentRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCreateDocumentRequest();
+ return *internal_default_instance();
+}
+
+CreateDocumentRequest* CreateDocumentRequest::New(::google::protobuf::Arena* arena) const {
+ CreateDocumentRequest* n = new CreateDocumentRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void CreateDocumentRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.CreateDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ document_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool CreateDocumentRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.CreateDocumentRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string parent = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_parent()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.CreateDocumentRequest.parent"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string collection_id = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_collection_id()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.CreateDocumentRequest.collection_id"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string document_id = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_document_id()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document_id().data(), static_cast<int>(this->document_id().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.CreateDocumentRequest.document_id"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Document document = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.CreateDocumentRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.CreateDocumentRequest)
+ return false;
+#undef DO_
+}
+
+void CreateDocumentRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.CreateDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CreateDocumentRequest.parent");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->parent(), output);
+ }
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CreateDocumentRequest.collection_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->collection_id(), output);
+ }
+
+ // string document_id = 3;
+ if (this->document_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document_id().data(), static_cast<int>(this->document_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CreateDocumentRequest.document_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 3, this->document_id(), output);
+ }
+
+ // .google.firestore.v1beta1.Document document = 4;
+ if (this->has_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->document_, output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 5;
+ if (this->has_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *this->mask_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.CreateDocumentRequest)
+}
+
+::google::protobuf::uint8* CreateDocumentRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.CreateDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CreateDocumentRequest.parent");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->parent(), target);
+ }
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CreateDocumentRequest.collection_id");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->collection_id(), target);
+ }
+
+ // string document_id = 3;
+ if (this->document_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document_id().data(), static_cast<int>(this->document_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CreateDocumentRequest.document_id");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 3, this->document_id(), target);
+ }
+
+ // .google.firestore.v1beta1.Document document = 4;
+ if (this->has_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->document_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 5;
+ if (this->has_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *this->mask_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.CreateDocumentRequest)
+ return target;
+}
+
+size_t CreateDocumentRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.CreateDocumentRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->parent());
+ }
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->collection_id());
+ }
+
+ // string document_id = 3;
+ if (this->document_id().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->document_id());
+ }
+
+ // .google.firestore.v1beta1.Document document = 4;
+ if (this->has_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->document_);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 5;
+ if (this->has_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->mask_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void CreateDocumentRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.CreateDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const CreateDocumentRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const CreateDocumentRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.CreateDocumentRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.CreateDocumentRequest)
+ MergeFrom(*source);
+ }
+}
+
+void CreateDocumentRequest::MergeFrom(const CreateDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.CreateDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.parent().size() > 0) {
+
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ if (from.collection_id().size() > 0) {
+
+ collection_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_id_);
+ }
+ if (from.document_id().size() > 0) {
+
+ document_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_id_);
+ }
+ if (from.has_document()) {
+ mutable_document()->::google::firestore::v1beta1::Document::MergeFrom(from.document());
+ }
+ if (from.has_mask()) {
+ mutable_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.mask());
+ }
+}
+
+void CreateDocumentRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.CreateDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void CreateDocumentRequest::CopyFrom(const CreateDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.CreateDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CreateDocumentRequest::IsInitialized() const {
+ return true;
+}
+
+void CreateDocumentRequest::Swap(CreateDocumentRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CreateDocumentRequest::InternalSwap(CreateDocumentRequest* other) {
+ using std::swap;
+ parent_.Swap(&other->parent_);
+ collection_id_.Swap(&other->collection_id_);
+ document_id_.Swap(&other->document_id_);
+ swap(document_, other->document_);
+ swap(mask_, other->mask_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata CreateDocumentRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void UpdateDocumentRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_UpdateDocumentRequest_default_instance_._instance.get_mutable()->document_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+ ::google::firestore::v1beta1::_UpdateDocumentRequest_default_instance_._instance.get_mutable()->update_mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+ ::google::firestore::v1beta1::_UpdateDocumentRequest_default_instance_._instance.get_mutable()->mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+ ::google::firestore::v1beta1::_UpdateDocumentRequest_default_instance_._instance.get_mutable()->current_document_ = const_cast< ::google::firestore::v1beta1::Precondition*>(
+ ::google::firestore::v1beta1::Precondition::internal_default_instance());
+}
+void UpdateDocumentRequest::clear_document() {
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+}
+void UpdateDocumentRequest::clear_update_mask() {
+ if (GetArenaNoVirtual() == NULL && update_mask_ != NULL) {
+ delete update_mask_;
+ }
+ update_mask_ = NULL;
+}
+void UpdateDocumentRequest::clear_mask() {
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+}
+void UpdateDocumentRequest::clear_current_document() {
+ if (GetArenaNoVirtual() == NULL && current_document_ != NULL) {
+ delete current_document_;
+ }
+ current_document_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int UpdateDocumentRequest::kDocumentFieldNumber;
+const int UpdateDocumentRequest::kUpdateMaskFieldNumber;
+const int UpdateDocumentRequest::kMaskFieldNumber;
+const int UpdateDocumentRequest::kCurrentDocumentFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+UpdateDocumentRequest::UpdateDocumentRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsUpdateDocumentRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.UpdateDocumentRequest)
+}
+UpdateDocumentRequest::UpdateDocumentRequest(const UpdateDocumentRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_document()) {
+ document_ = new ::google::firestore::v1beta1::Document(*from.document_);
+ } else {
+ document_ = NULL;
+ }
+ if (from.has_update_mask()) {
+ update_mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.update_mask_);
+ } else {
+ update_mask_ = NULL;
+ }
+ if (from.has_mask()) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.mask_);
+ } else {
+ mask_ = NULL;
+ }
+ if (from.has_current_document()) {
+ current_document_ = new ::google::firestore::v1beta1::Precondition(*from.current_document_);
+ } else {
+ current_document_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.UpdateDocumentRequest)
+}
+
+void UpdateDocumentRequest::SharedCtor() {
+ ::memset(&document_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&current_document_) -
+ reinterpret_cast<char*>(&document_)) + sizeof(current_document_));
+ _cached_size_ = 0;
+}
+
+UpdateDocumentRequest::~UpdateDocumentRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.UpdateDocumentRequest)
+ SharedDtor();
+}
+
+void UpdateDocumentRequest::SharedDtor() {
+ if (this != internal_default_instance()) delete document_;
+ if (this != internal_default_instance()) delete update_mask_;
+ if (this != internal_default_instance()) delete mask_;
+ if (this != internal_default_instance()) delete current_document_;
+}
+
+void UpdateDocumentRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* UpdateDocumentRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const UpdateDocumentRequest& UpdateDocumentRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsUpdateDocumentRequest();
+ return *internal_default_instance();
+}
+
+UpdateDocumentRequest* UpdateDocumentRequest::New(::google::protobuf::Arena* arena) const {
+ UpdateDocumentRequest* n = new UpdateDocumentRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void UpdateDocumentRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+ if (GetArenaNoVirtual() == NULL && update_mask_ != NULL) {
+ delete update_mask_;
+ }
+ update_mask_ = NULL;
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+ if (GetArenaNoVirtual() == NULL && current_document_ != NULL) {
+ delete current_document_;
+ }
+ current_document_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool UpdateDocumentRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.Document document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_update_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_current_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.UpdateDocumentRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.UpdateDocumentRequest)
+ return false;
+#undef DO_
+}
+
+void UpdateDocumentRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->document_, output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 2;
+ if (this->has_update_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->update_mask_, output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ if (this->has_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->mask_, output);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ if (this->has_current_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->current_document_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.UpdateDocumentRequest)
+}
+
+::google::protobuf::uint8* UpdateDocumentRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->document_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 2;
+ if (this->has_update_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->update_mask_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ if (this->has_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->mask_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ if (this->has_current_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->current_document_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.UpdateDocumentRequest)
+ return target;
+}
+
+size_t UpdateDocumentRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->document_);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 2;
+ if (this->has_update_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->update_mask_);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ if (this->has_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->mask_);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ if (this->has_current_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->current_document_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void UpdateDocumentRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const UpdateDocumentRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const UpdateDocumentRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.UpdateDocumentRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.UpdateDocumentRequest)
+ MergeFrom(*source);
+ }
+}
+
+void UpdateDocumentRequest::MergeFrom(const UpdateDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_document()) {
+ mutable_document()->::google::firestore::v1beta1::Document::MergeFrom(from.document());
+ }
+ if (from.has_update_mask()) {
+ mutable_update_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.update_mask());
+ }
+ if (from.has_mask()) {
+ mutable_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.mask());
+ }
+ if (from.has_current_document()) {
+ mutable_current_document()->::google::firestore::v1beta1::Precondition::MergeFrom(from.current_document());
+ }
+}
+
+void UpdateDocumentRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void UpdateDocumentRequest::CopyFrom(const UpdateDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.UpdateDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool UpdateDocumentRequest::IsInitialized() const {
+ return true;
+}
+
+void UpdateDocumentRequest::Swap(UpdateDocumentRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void UpdateDocumentRequest::InternalSwap(UpdateDocumentRequest* other) {
+ using std::swap;
+ swap(document_, other->document_);
+ swap(update_mask_, other->update_mask_);
+ swap(mask_, other->mask_);
+ swap(current_document_, other->current_document_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata UpdateDocumentRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void DeleteDocumentRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_DeleteDocumentRequest_default_instance_._instance.get_mutable()->current_document_ = const_cast< ::google::firestore::v1beta1::Precondition*>(
+ ::google::firestore::v1beta1::Precondition::internal_default_instance());
+}
+void DeleteDocumentRequest::clear_current_document() {
+ if (GetArenaNoVirtual() == NULL && current_document_ != NULL) {
+ delete current_document_;
+ }
+ current_document_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DeleteDocumentRequest::kNameFieldNumber;
+const int DeleteDocumentRequest::kCurrentDocumentFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DeleteDocumentRequest::DeleteDocumentRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsDeleteDocumentRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DeleteDocumentRequest)
+}
+DeleteDocumentRequest::DeleteDocumentRequest(const DeleteDocumentRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.name().size() > 0) {
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_current_document()) {
+ current_document_ = new ::google::firestore::v1beta1::Precondition(*from.current_document_);
+ } else {
+ current_document_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DeleteDocumentRequest)
+}
+
+void DeleteDocumentRequest::SharedCtor() {
+ name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ current_document_ = NULL;
+ _cached_size_ = 0;
+}
+
+DeleteDocumentRequest::~DeleteDocumentRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DeleteDocumentRequest)
+ SharedDtor();
+}
+
+void DeleteDocumentRequest::SharedDtor() {
+ name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete current_document_;
+}
+
+void DeleteDocumentRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DeleteDocumentRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DeleteDocumentRequest& DeleteDocumentRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsDeleteDocumentRequest();
+ return *internal_default_instance();
+}
+
+DeleteDocumentRequest* DeleteDocumentRequest::New(::google::protobuf::Arena* arena) const {
+ DeleteDocumentRequest* n = new DeleteDocumentRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DeleteDocumentRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && current_document_ != NULL) {
+ delete current_document_;
+ }
+ current_document_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool DeleteDocumentRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string name = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_name()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.DeleteDocumentRequest.name"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_current_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DeleteDocumentRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DeleteDocumentRequest)
+ return false;
+#undef DO_
+}
+
+void DeleteDocumentRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DeleteDocumentRequest.name");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->name(), output);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 2;
+ if (this->has_current_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->current_document_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DeleteDocumentRequest)
+}
+
+::google::protobuf::uint8* DeleteDocumentRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string name = 1;
+ if (this->name().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->name().data(), static_cast<int>(this->name().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DeleteDocumentRequest.name");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->name(), target);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 2;
+ if (this->has_current_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->current_document_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DeleteDocumentRequest)
+ return target;
+}
+
+size_t DeleteDocumentRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string name = 1;
+ if (this->name().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->name());
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 2;
+ if (this->has_current_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->current_document_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DeleteDocumentRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DeleteDocumentRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DeleteDocumentRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DeleteDocumentRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DeleteDocumentRequest)
+ MergeFrom(*source);
+ }
+}
+
+void DeleteDocumentRequest::MergeFrom(const DeleteDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.name().size() > 0) {
+
+ name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
+ }
+ if (from.has_current_document()) {
+ mutable_current_document()->::google::firestore::v1beta1::Precondition::MergeFrom(from.current_document());
+ }
+}
+
+void DeleteDocumentRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DeleteDocumentRequest::CopyFrom(const DeleteDocumentRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DeleteDocumentRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DeleteDocumentRequest::IsInitialized() const {
+ return true;
+}
+
+void DeleteDocumentRequest::Swap(DeleteDocumentRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DeleteDocumentRequest::InternalSwap(DeleteDocumentRequest* other) {
+ using std::swap;
+ name_.Swap(&other->name_);
+ swap(current_document_, other->current_document_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DeleteDocumentRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void BatchGetDocumentsRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_BatchGetDocumentsRequest_default_instance_._instance.get_mutable()->mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+ ::google::firestore::v1beta1::_BatchGetDocumentsRequest_default_instance_.transaction_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_BatchGetDocumentsRequest_default_instance_.new_transaction_ = const_cast< ::google::firestore::v1beta1::TransactionOptions*>(
+ ::google::firestore::v1beta1::TransactionOptions::internal_default_instance());
+ ::google::firestore::v1beta1::_BatchGetDocumentsRequest_default_instance_.read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void BatchGetDocumentsRequest::clear_mask() {
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+}
+void BatchGetDocumentsRequest::set_allocated_new_transaction(::google::firestore::v1beta1::TransactionOptions* new_transaction) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (new_transaction) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ new_transaction = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, new_transaction, submessage_arena);
+ }
+ set_has_new_transaction();
+ consistency_selector_.new_transaction_ = new_transaction;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction)
+}
+void BatchGetDocumentsRequest::clear_new_transaction() {
+ if (has_new_transaction()) {
+ delete consistency_selector_.new_transaction_;
+ clear_has_consistency_selector();
+ }
+}
+void BatchGetDocumentsRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+ set_has_read_time();
+ consistency_selector_.read_time_ = read_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsRequest.read_time)
+}
+void BatchGetDocumentsRequest::clear_read_time() {
+ if (has_read_time()) {
+ delete consistency_selector_.read_time_;
+ clear_has_consistency_selector();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int BatchGetDocumentsRequest::kDatabaseFieldNumber;
+const int BatchGetDocumentsRequest::kDocumentsFieldNumber;
+const int BatchGetDocumentsRequest::kMaskFieldNumber;
+const int BatchGetDocumentsRequest::kTransactionFieldNumber;
+const int BatchGetDocumentsRequest::kNewTransactionFieldNumber;
+const int BatchGetDocumentsRequest::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+BatchGetDocumentsRequest::BatchGetDocumentsRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBatchGetDocumentsRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.BatchGetDocumentsRequest)
+}
+BatchGetDocumentsRequest::BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ documents_(from.documents_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.database().size() > 0) {
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.has_mask()) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.mask_);
+ } else {
+ mask_ = NULL;
+ }
+ clear_has_consistency_selector();
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kNewTransaction: {
+ mutable_new_transaction()->::google::firestore::v1beta1::TransactionOptions::MergeFrom(from.new_transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.BatchGetDocumentsRequest)
+}
+
+void BatchGetDocumentsRequest::SharedCtor() {
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ mask_ = NULL;
+ clear_has_consistency_selector();
+ _cached_size_ = 0;
+}
+
+BatchGetDocumentsRequest::~BatchGetDocumentsRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ SharedDtor();
+}
+
+void BatchGetDocumentsRequest::SharedDtor() {
+ database_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete mask_;
+ if (has_consistency_selector()) {
+ clear_consistency_selector();
+ }
+}
+
+void BatchGetDocumentsRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* BatchGetDocumentsRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const BatchGetDocumentsRequest& BatchGetDocumentsRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBatchGetDocumentsRequest();
+ return *internal_default_instance();
+}
+
+BatchGetDocumentsRequest* BatchGetDocumentsRequest::New(::google::protobuf::Arena* arena) const {
+ BatchGetDocumentsRequest* n = new BatchGetDocumentsRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void BatchGetDocumentsRequest::clear_consistency_selector() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ switch (consistency_selector_case()) {
+ case kTransaction: {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kNewTransaction: {
+ delete consistency_selector_.new_transaction_;
+ break;
+ }
+ case kReadTime: {
+ delete consistency_selector_.read_time_;
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+
+
+void BatchGetDocumentsRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ documents_.Clear();
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && mask_ != NULL) {
+ delete mask_;
+ }
+ mask_ = NULL;
+ clear_consistency_selector();
+ _internal_metadata_.Clear();
+}
+
+bool BatchGetDocumentsRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string database = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_database()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.BatchGetDocumentsRequest.database"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated string documents = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->add_documents()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->documents(this->documents_size() - 1).data(),
+ static_cast<int>(this->documents(this->documents_size() - 1).length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.BatchGetDocumentsRequest.documents"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_new_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 7;
+ case 7: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ return false;
+#undef DO_
+}
+
+void BatchGetDocumentsRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BatchGetDocumentsRequest.database");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->database(), output);
+ }
+
+ // repeated string documents = 2;
+ for (int i = 0, n = this->documents_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->documents(i).data(), static_cast<int>(this->documents(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BatchGetDocumentsRequest.documents");
+ ::google::protobuf::internal::WireFormatLite::WriteString(
+ 2, this->documents(i), output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ if (this->has_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->mask_, output);
+ }
+
+ // bytes transaction = 4;
+ if (has_transaction()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 4, this->transaction(), output);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 5;
+ if (has_new_transaction()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *consistency_selector_.new_transaction_, output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 7;
+ if (has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 7, *consistency_selector_.read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.BatchGetDocumentsRequest)
+}
+
+::google::protobuf::uint8* BatchGetDocumentsRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BatchGetDocumentsRequest.database");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->database(), target);
+ }
+
+ // repeated string documents = 2;
+ for (int i = 0, n = this->documents_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->documents(i).data(), static_cast<int>(this->documents(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BatchGetDocumentsRequest.documents");
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteStringToArray(2, this->documents(i), target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ if (this->has_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->mask_, deterministic, target);
+ }
+
+ // bytes transaction = 4;
+ if (has_transaction()) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 4, this->transaction(), target);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 5;
+ if (has_new_transaction()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *consistency_selector_.new_transaction_, deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 7;
+ if (has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 7, *consistency_selector_.read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ return target;
+}
+
+size_t BatchGetDocumentsRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated string documents = 2;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->documents_size());
+ for (int i = 0, n = this->documents_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->documents(i));
+ }
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->database());
+ }
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ if (this->has_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->mask_);
+ }
+
+ switch (consistency_selector_case()) {
+ // bytes transaction = 4;
+ case kTransaction: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ break;
+ }
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 5;
+ case kNewTransaction: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.new_transaction_);
+ break;
+ }
+ // .google.protobuf.Timestamp read_time = 7;
+ case kReadTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.read_time_);
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void BatchGetDocumentsRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const BatchGetDocumentsRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const BatchGetDocumentsRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ MergeFrom(*source);
+ }
+}
+
+void BatchGetDocumentsRequest::MergeFrom(const BatchGetDocumentsRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ documents_.MergeFrom(from.documents_);
+ if (from.database().size() > 0) {
+
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.has_mask()) {
+ mutable_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.mask());
+ }
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kNewTransaction: {
+ mutable_new_transaction()->::google::firestore::v1beta1::TransactionOptions::MergeFrom(from.new_transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void BatchGetDocumentsRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void BatchGetDocumentsRequest::CopyFrom(const BatchGetDocumentsRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BatchGetDocumentsRequest::IsInitialized() const {
+ return true;
+}
+
+void BatchGetDocumentsRequest::Swap(BatchGetDocumentsRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BatchGetDocumentsRequest::InternalSwap(BatchGetDocumentsRequest* other) {
+ using std::swap;
+ documents_.InternalSwap(&other->documents_);
+ database_.Swap(&other->database_);
+ swap(mask_, other->mask_);
+ swap(consistency_selector_, other->consistency_selector_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata BatchGetDocumentsRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void BatchGetDocumentsResponse::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_BatchGetDocumentsResponse_default_instance_.found_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+ ::google::firestore::v1beta1::_BatchGetDocumentsResponse_default_instance_.missing_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_BatchGetDocumentsResponse_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void BatchGetDocumentsResponse::set_allocated_found(::google::firestore::v1beta1::Document* found) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_result();
+ if (found) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ found = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, found, submessage_arena);
+ }
+ set_has_found();
+ result_.found_ = found;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsResponse.found)
+}
+void BatchGetDocumentsResponse::clear_found() {
+ if (has_found()) {
+ delete result_.found_;
+ clear_has_result();
+ }
+}
+void BatchGetDocumentsResponse::clear_read_time() {
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int BatchGetDocumentsResponse::kFoundFieldNumber;
+const int BatchGetDocumentsResponse::kMissingFieldNumber;
+const int BatchGetDocumentsResponse::kTransactionFieldNumber;
+const int BatchGetDocumentsResponse::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+BatchGetDocumentsResponse::BatchGetDocumentsResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBatchGetDocumentsResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.BatchGetDocumentsResponse)
+}
+BatchGetDocumentsResponse::BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.transaction().size() > 0) {
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ if (from.has_read_time()) {
+ read_time_ = new ::google::protobuf::Timestamp(*from.read_time_);
+ } else {
+ read_time_ = NULL;
+ }
+ clear_has_result();
+ switch (from.result_case()) {
+ case kFound: {
+ mutable_found()->::google::firestore::v1beta1::Document::MergeFrom(from.found());
+ break;
+ }
+ case kMissing: {
+ set_missing(from.missing());
+ break;
+ }
+ case RESULT_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.BatchGetDocumentsResponse)
+}
+
+void BatchGetDocumentsResponse::SharedCtor() {
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ read_time_ = NULL;
+ clear_has_result();
+ _cached_size_ = 0;
+}
+
+BatchGetDocumentsResponse::~BatchGetDocumentsResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ SharedDtor();
+}
+
+void BatchGetDocumentsResponse::SharedDtor() {
+ transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete read_time_;
+ if (has_result()) {
+ clear_result();
+ }
+}
+
+void BatchGetDocumentsResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* BatchGetDocumentsResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const BatchGetDocumentsResponse& BatchGetDocumentsResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBatchGetDocumentsResponse();
+ return *internal_default_instance();
+}
+
+BatchGetDocumentsResponse* BatchGetDocumentsResponse::New(::google::protobuf::Arena* arena) const {
+ BatchGetDocumentsResponse* n = new BatchGetDocumentsResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void BatchGetDocumentsResponse::clear_result() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ switch (result_case()) {
+ case kFound: {
+ delete result_.found_;
+ break;
+ }
+ case kMissing: {
+ result_.missing_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case RESULT_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = RESULT_NOT_SET;
+}
+
+
+void BatchGetDocumentsResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+ clear_result();
+ _internal_metadata_.Clear();
+}
+
+bool BatchGetDocumentsResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.Document found = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_found()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string missing = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_missing()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->missing().data(), static_cast<int>(this->missing().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.BatchGetDocumentsResponse.missing"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ return false;
+#undef DO_
+}
+
+void BatchGetDocumentsResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document found = 1;
+ if (has_found()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *result_.found_, output);
+ }
+
+ // string missing = 2;
+ if (has_missing()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->missing().data(), static_cast<int>(this->missing().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BatchGetDocumentsResponse.missing");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->missing(), output);
+ }
+
+ // bytes transaction = 3;
+ if (this->transaction().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 3, this->transaction(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.BatchGetDocumentsResponse)
+}
+
+::google::protobuf::uint8* BatchGetDocumentsResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document found = 1;
+ if (has_found()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *result_.found_, deterministic, target);
+ }
+
+ // string missing = 2;
+ if (has_missing()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->missing().data(), static_cast<int>(this->missing().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BatchGetDocumentsResponse.missing");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->missing(), target);
+ }
+
+ // bytes transaction = 3;
+ if (this->transaction().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 3, this->transaction(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ return target;
+}
+
+size_t BatchGetDocumentsResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes transaction = 3;
+ if (this->transaction().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->read_time_);
+ }
+
+ switch (result_case()) {
+ // .google.firestore.v1beta1.Document found = 1;
+ case kFound: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *result_.found_);
+ break;
+ }
+ // string missing = 2;
+ case kMissing: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->missing());
+ break;
+ }
+ case RESULT_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void BatchGetDocumentsResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const BatchGetDocumentsResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const BatchGetDocumentsResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ MergeFrom(*source);
+ }
+}
+
+void BatchGetDocumentsResponse::MergeFrom(const BatchGetDocumentsResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.transaction().size() > 0) {
+
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ if (from.has_read_time()) {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ }
+ switch (from.result_case()) {
+ case kFound: {
+ mutable_found()->::google::firestore::v1beta1::Document::MergeFrom(from.found());
+ break;
+ }
+ case kMissing: {
+ set_missing(from.missing());
+ break;
+ }
+ case RESULT_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void BatchGetDocumentsResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void BatchGetDocumentsResponse::CopyFrom(const BatchGetDocumentsResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BatchGetDocumentsResponse::IsInitialized() const {
+ return true;
+}
+
+void BatchGetDocumentsResponse::Swap(BatchGetDocumentsResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BatchGetDocumentsResponse::InternalSwap(BatchGetDocumentsResponse* other) {
+ using std::swap;
+ transaction_.Swap(&other->transaction_);
+ swap(read_time_, other->read_time_);
+ swap(result_, other->result_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata BatchGetDocumentsResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void BeginTransactionRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_BeginTransactionRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::google::firestore::v1beta1::TransactionOptions*>(
+ ::google::firestore::v1beta1::TransactionOptions::internal_default_instance());
+}
+void BeginTransactionRequest::clear_options() {
+ if (GetArenaNoVirtual() == NULL && options_ != NULL) {
+ delete options_;
+ }
+ options_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int BeginTransactionRequest::kDatabaseFieldNumber;
+const int BeginTransactionRequest::kOptionsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+BeginTransactionRequest::BeginTransactionRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBeginTransactionRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.BeginTransactionRequest)
+}
+BeginTransactionRequest::BeginTransactionRequest(const BeginTransactionRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.database().size() > 0) {
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.has_options()) {
+ options_ = new ::google::firestore::v1beta1::TransactionOptions(*from.options_);
+ } else {
+ options_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.BeginTransactionRequest)
+}
+
+void BeginTransactionRequest::SharedCtor() {
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ options_ = NULL;
+ _cached_size_ = 0;
+}
+
+BeginTransactionRequest::~BeginTransactionRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.BeginTransactionRequest)
+ SharedDtor();
+}
+
+void BeginTransactionRequest::SharedDtor() {
+ database_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete options_;
+}
+
+void BeginTransactionRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* BeginTransactionRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const BeginTransactionRequest& BeginTransactionRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBeginTransactionRequest();
+ return *internal_default_instance();
+}
+
+BeginTransactionRequest* BeginTransactionRequest::New(::google::protobuf::Arena* arena) const {
+ BeginTransactionRequest* n = new BeginTransactionRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void BeginTransactionRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.BeginTransactionRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && options_ != NULL) {
+ delete options_;
+ }
+ options_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool BeginTransactionRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.BeginTransactionRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string database = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_database()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.BeginTransactionRequest.database"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions options = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_options()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.BeginTransactionRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.BeginTransactionRequest)
+ return false;
+#undef DO_
+}
+
+void BeginTransactionRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.BeginTransactionRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BeginTransactionRequest.database");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->database(), output);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions options = 2;
+ if (this->has_options()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->options_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.BeginTransactionRequest)
+}
+
+::google::protobuf::uint8* BeginTransactionRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.BeginTransactionRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.BeginTransactionRequest.database");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->database(), target);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions options = 2;
+ if (this->has_options()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->options_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.BeginTransactionRequest)
+ return target;
+}
+
+size_t BeginTransactionRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.BeginTransactionRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string database = 1;
+ if (this->database().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->database());
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions options = 2;
+ if (this->has_options()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->options_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void BeginTransactionRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.BeginTransactionRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const BeginTransactionRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const BeginTransactionRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.BeginTransactionRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.BeginTransactionRequest)
+ MergeFrom(*source);
+ }
+}
+
+void BeginTransactionRequest::MergeFrom(const BeginTransactionRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.BeginTransactionRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.database().size() > 0) {
+
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.has_options()) {
+ mutable_options()->::google::firestore::v1beta1::TransactionOptions::MergeFrom(from.options());
+ }
+}
+
+void BeginTransactionRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.BeginTransactionRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void BeginTransactionRequest::CopyFrom(const BeginTransactionRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.BeginTransactionRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BeginTransactionRequest::IsInitialized() const {
+ return true;
+}
+
+void BeginTransactionRequest::Swap(BeginTransactionRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BeginTransactionRequest::InternalSwap(BeginTransactionRequest* other) {
+ using std::swap;
+ database_.Swap(&other->database_);
+ swap(options_, other->options_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata BeginTransactionRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void BeginTransactionResponse::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int BeginTransactionResponse::kTransactionFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+BeginTransactionResponse::BeginTransactionResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBeginTransactionResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.BeginTransactionResponse)
+}
+BeginTransactionResponse::BeginTransactionResponse(const BeginTransactionResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.transaction().size() > 0) {
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.BeginTransactionResponse)
+}
+
+void BeginTransactionResponse::SharedCtor() {
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+BeginTransactionResponse::~BeginTransactionResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.BeginTransactionResponse)
+ SharedDtor();
+}
+
+void BeginTransactionResponse::SharedDtor() {
+ transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void BeginTransactionResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* BeginTransactionResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const BeginTransactionResponse& BeginTransactionResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBeginTransactionResponse();
+ return *internal_default_instance();
+}
+
+BeginTransactionResponse* BeginTransactionResponse::New(::google::protobuf::Arena* arena) const {
+ BeginTransactionResponse* n = new BeginTransactionResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void BeginTransactionResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.BeginTransactionResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool BeginTransactionResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.BeginTransactionResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // bytes transaction = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.BeginTransactionResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.BeginTransactionResponse)
+ return false;
+#undef DO_
+}
+
+void BeginTransactionResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.BeginTransactionResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes transaction = 1;
+ if (this->transaction().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 1, this->transaction(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.BeginTransactionResponse)
+}
+
+::google::protobuf::uint8* BeginTransactionResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.BeginTransactionResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes transaction = 1;
+ if (this->transaction().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 1, this->transaction(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.BeginTransactionResponse)
+ return target;
+}
+
+size_t BeginTransactionResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.BeginTransactionResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes transaction = 1;
+ if (this->transaction().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void BeginTransactionResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.BeginTransactionResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const BeginTransactionResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const BeginTransactionResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.BeginTransactionResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.BeginTransactionResponse)
+ MergeFrom(*source);
+ }
+}
+
+void BeginTransactionResponse::MergeFrom(const BeginTransactionResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.BeginTransactionResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.transaction().size() > 0) {
+
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+}
+
+void BeginTransactionResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.BeginTransactionResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void BeginTransactionResponse::CopyFrom(const BeginTransactionResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.BeginTransactionResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BeginTransactionResponse::IsInitialized() const {
+ return true;
+}
+
+void BeginTransactionResponse::Swap(BeginTransactionResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void BeginTransactionResponse::InternalSwap(BeginTransactionResponse* other) {
+ using std::swap;
+ transaction_.Swap(&other->transaction_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata BeginTransactionResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void CommitRequest::InitAsDefaultInstance() {
+}
+void CommitRequest::clear_writes() {
+ writes_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int CommitRequest::kDatabaseFieldNumber;
+const int CommitRequest::kWritesFieldNumber;
+const int CommitRequest::kTransactionFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+CommitRequest::CommitRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCommitRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.CommitRequest)
+}
+CommitRequest::CommitRequest(const CommitRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ writes_(from.writes_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.database().size() > 0) {
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.transaction().size() > 0) {
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.CommitRequest)
+}
+
+void CommitRequest::SharedCtor() {
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+CommitRequest::~CommitRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.CommitRequest)
+ SharedDtor();
+}
+
+void CommitRequest::SharedDtor() {
+ database_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void CommitRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* CommitRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const CommitRequest& CommitRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCommitRequest();
+ return *internal_default_instance();
+}
+
+CommitRequest* CommitRequest::New(::google::protobuf::Arena* arena) const {
+ CommitRequest* n = new CommitRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void CommitRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.CommitRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ writes_.Clear();
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool CommitRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.CommitRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string database = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_database()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.CommitRequest.database"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_writes()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.CommitRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.CommitRequest)
+ return false;
+#undef DO_
+}
+
+void CommitRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.CommitRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CommitRequest.database");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->database(), output);
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->writes_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->writes(static_cast<int>(i)), output);
+ }
+
+ // bytes transaction = 3;
+ if (this->transaction().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 3, this->transaction(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.CommitRequest)
+}
+
+::google::protobuf::uint8* CommitRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.CommitRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.CommitRequest.database");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->database(), target);
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->writes_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->writes(static_cast<int>(i)), deterministic, target);
+ }
+
+ // bytes transaction = 3;
+ if (this->transaction().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 3, this->transaction(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.CommitRequest)
+ return target;
+}
+
+size_t CommitRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.CommitRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->writes_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->writes(static_cast<int>(i)));
+ }
+ }
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->database());
+ }
+
+ // bytes transaction = 3;
+ if (this->transaction().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void CommitRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.CommitRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const CommitRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const CommitRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.CommitRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.CommitRequest)
+ MergeFrom(*source);
+ }
+}
+
+void CommitRequest::MergeFrom(const CommitRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.CommitRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ writes_.MergeFrom(from.writes_);
+ if (from.database().size() > 0) {
+
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.transaction().size() > 0) {
+
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+}
+
+void CommitRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.CommitRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void CommitRequest::CopyFrom(const CommitRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.CommitRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CommitRequest::IsInitialized() const {
+ return true;
+}
+
+void CommitRequest::Swap(CommitRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CommitRequest::InternalSwap(CommitRequest* other) {
+ using std::swap;
+ writes_.InternalSwap(&other->writes_);
+ database_.Swap(&other->database_);
+ transaction_.Swap(&other->transaction_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata CommitRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void CommitResponse::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_CommitResponse_default_instance_._instance.get_mutable()->commit_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void CommitResponse::clear_write_results() {
+ write_results_.Clear();
+}
+void CommitResponse::clear_commit_time() {
+ if (GetArenaNoVirtual() == NULL && commit_time_ != NULL) {
+ delete commit_time_;
+ }
+ commit_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int CommitResponse::kWriteResultsFieldNumber;
+const int CommitResponse::kCommitTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+CommitResponse::CommitResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCommitResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.CommitResponse)
+}
+CommitResponse::CommitResponse(const CommitResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ write_results_(from.write_results_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_commit_time()) {
+ commit_time_ = new ::google::protobuf::Timestamp(*from.commit_time_);
+ } else {
+ commit_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.CommitResponse)
+}
+
+void CommitResponse::SharedCtor() {
+ commit_time_ = NULL;
+ _cached_size_ = 0;
+}
+
+CommitResponse::~CommitResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.CommitResponse)
+ SharedDtor();
+}
+
+void CommitResponse::SharedDtor() {
+ if (this != internal_default_instance()) delete commit_time_;
+}
+
+void CommitResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* CommitResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const CommitResponse& CommitResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCommitResponse();
+ return *internal_default_instance();
+}
+
+CommitResponse* CommitResponse::New(::google::protobuf::Arena* arena) const {
+ CommitResponse* n = new CommitResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void CommitResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.CommitResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ write_results_.Clear();
+ if (GetArenaNoVirtual() == NULL && commit_time_ != NULL) {
+ delete commit_time_;
+ }
+ commit_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool CommitResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.CommitResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_write_results()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp commit_time = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_commit_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.CommitResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.CommitResponse)
+ return false;
+#undef DO_
+}
+
+void CommitResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.CommitResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->write_results_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->write_results(static_cast<int>(i)), output);
+ }
+
+ // .google.protobuf.Timestamp commit_time = 2;
+ if (this->has_commit_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *this->commit_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.CommitResponse)
+}
+
+::google::protobuf::uint8* CommitResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.CommitResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->write_results_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->write_results(static_cast<int>(i)), deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp commit_time = 2;
+ if (this->has_commit_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *this->commit_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.CommitResponse)
+ return target;
+}
+
+size_t CommitResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.CommitResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->write_results_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->write_results(static_cast<int>(i)));
+ }
+ }
+
+ // .google.protobuf.Timestamp commit_time = 2;
+ if (this->has_commit_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->commit_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void CommitResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.CommitResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const CommitResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const CommitResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.CommitResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.CommitResponse)
+ MergeFrom(*source);
+ }
+}
+
+void CommitResponse::MergeFrom(const CommitResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.CommitResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ write_results_.MergeFrom(from.write_results_);
+ if (from.has_commit_time()) {
+ mutable_commit_time()->::google::protobuf::Timestamp::MergeFrom(from.commit_time());
+ }
+}
+
+void CommitResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.CommitResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void CommitResponse::CopyFrom(const CommitResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.CommitResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CommitResponse::IsInitialized() const {
+ return true;
+}
+
+void CommitResponse::Swap(CommitResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void CommitResponse::InternalSwap(CommitResponse* other) {
+ using std::swap;
+ write_results_.InternalSwap(&other->write_results_);
+ swap(commit_time_, other->commit_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata CommitResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void RollbackRequest::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int RollbackRequest::kDatabaseFieldNumber;
+const int RollbackRequest::kTransactionFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+RollbackRequest::RollbackRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRollbackRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.RollbackRequest)
+}
+RollbackRequest::RollbackRequest(const RollbackRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.database().size() > 0) {
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.transaction().size() > 0) {
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.RollbackRequest)
+}
+
+void RollbackRequest::SharedCtor() {
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+RollbackRequest::~RollbackRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.RollbackRequest)
+ SharedDtor();
+}
+
+void RollbackRequest::SharedDtor() {
+ database_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void RollbackRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* RollbackRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const RollbackRequest& RollbackRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRollbackRequest();
+ return *internal_default_instance();
+}
+
+RollbackRequest* RollbackRequest::New(::google::protobuf::Arena* arena) const {
+ RollbackRequest* n = new RollbackRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void RollbackRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.RollbackRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool RollbackRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.RollbackRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string database = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_database()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.RollbackRequest.database"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.RollbackRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.RollbackRequest)
+ return false;
+#undef DO_
+}
+
+void RollbackRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.RollbackRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.RollbackRequest.database");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->database(), output);
+ }
+
+ // bytes transaction = 2;
+ if (this->transaction().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 2, this->transaction(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.RollbackRequest)
+}
+
+::google::protobuf::uint8* RollbackRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.RollbackRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.RollbackRequest.database");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->database(), target);
+ }
+
+ // bytes transaction = 2;
+ if (this->transaction().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 2, this->transaction(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.RollbackRequest)
+ return target;
+}
+
+size_t RollbackRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.RollbackRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string database = 1;
+ if (this->database().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->database());
+ }
+
+ // bytes transaction = 2;
+ if (this->transaction().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void RollbackRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.RollbackRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const RollbackRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const RollbackRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.RollbackRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.RollbackRequest)
+ MergeFrom(*source);
+ }
+}
+
+void RollbackRequest::MergeFrom(const RollbackRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.RollbackRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.database().size() > 0) {
+
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.transaction().size() > 0) {
+
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+}
+
+void RollbackRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.RollbackRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void RollbackRequest::CopyFrom(const RollbackRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.RollbackRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool RollbackRequest::IsInitialized() const {
+ return true;
+}
+
+void RollbackRequest::Swap(RollbackRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RollbackRequest::InternalSwap(RollbackRequest* other) {
+ using std::swap;
+ database_.Swap(&other->database_);
+ transaction_.Swap(&other->transaction_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata RollbackRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void RunQueryRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_RunQueryRequest_default_instance_.structured_query_ = const_cast< ::google::firestore::v1beta1::StructuredQuery*>(
+ ::google::firestore::v1beta1::StructuredQuery::internal_default_instance());
+ ::google::firestore::v1beta1::_RunQueryRequest_default_instance_.transaction_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_RunQueryRequest_default_instance_.new_transaction_ = const_cast< ::google::firestore::v1beta1::TransactionOptions*>(
+ ::google::firestore::v1beta1::TransactionOptions::internal_default_instance());
+ ::google::firestore::v1beta1::_RunQueryRequest_default_instance_.read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void RunQueryRequest::set_allocated_structured_query(::google::firestore::v1beta1::StructuredQuery* structured_query) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_query_type();
+ if (structured_query) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ structured_query = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, structured_query, submessage_arena);
+ }
+ set_has_structured_query();
+ query_type_.structured_query_ = structured_query;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryRequest.structured_query)
+}
+void RunQueryRequest::clear_structured_query() {
+ if (has_structured_query()) {
+ delete query_type_.structured_query_;
+ clear_has_query_type();
+ }
+}
+void RunQueryRequest::set_allocated_new_transaction(::google::firestore::v1beta1::TransactionOptions* new_transaction) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (new_transaction) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ new_transaction = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, new_transaction, submessage_arena);
+ }
+ set_has_new_transaction();
+ consistency_selector_.new_transaction_ = new_transaction;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryRequest.new_transaction)
+}
+void RunQueryRequest::clear_new_transaction() {
+ if (has_new_transaction()) {
+ delete consistency_selector_.new_transaction_;
+ clear_has_consistency_selector();
+ }
+}
+void RunQueryRequest::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_consistency_selector();
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+ set_has_read_time();
+ consistency_selector_.read_time_ = read_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryRequest.read_time)
+}
+void RunQueryRequest::clear_read_time() {
+ if (has_read_time()) {
+ delete consistency_selector_.read_time_;
+ clear_has_consistency_selector();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int RunQueryRequest::kParentFieldNumber;
+const int RunQueryRequest::kStructuredQueryFieldNumber;
+const int RunQueryRequest::kTransactionFieldNumber;
+const int RunQueryRequest::kNewTransactionFieldNumber;
+const int RunQueryRequest::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+RunQueryRequest::RunQueryRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRunQueryRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.RunQueryRequest)
+}
+RunQueryRequest::RunQueryRequest(const RunQueryRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.parent().size() > 0) {
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ clear_has_query_type();
+ switch (from.query_type_case()) {
+ case kStructuredQuery: {
+ mutable_structured_query()->::google::firestore::v1beta1::StructuredQuery::MergeFrom(from.structured_query());
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ clear_has_consistency_selector();
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kNewTransaction: {
+ mutable_new_transaction()->::google::firestore::v1beta1::TransactionOptions::MergeFrom(from.new_transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.RunQueryRequest)
+}
+
+void RunQueryRequest::SharedCtor() {
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_query_type();
+ clear_has_consistency_selector();
+ _cached_size_ = 0;
+}
+
+RunQueryRequest::~RunQueryRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.RunQueryRequest)
+ SharedDtor();
+}
+
+void RunQueryRequest::SharedDtor() {
+ parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (has_query_type()) {
+ clear_query_type();
+ }
+ if (has_consistency_selector()) {
+ clear_consistency_selector();
+ }
+}
+
+void RunQueryRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* RunQueryRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const RunQueryRequest& RunQueryRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRunQueryRequest();
+ return *internal_default_instance();
+}
+
+RunQueryRequest* RunQueryRequest::New(::google::protobuf::Arena* arena) const {
+ RunQueryRequest* n = new RunQueryRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void RunQueryRequest::clear_query_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.RunQueryRequest)
+ switch (query_type_case()) {
+ case kStructuredQuery: {
+ delete query_type_.structured_query_;
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = QUERY_TYPE_NOT_SET;
+}
+
+void RunQueryRequest::clear_consistency_selector() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.RunQueryRequest)
+ switch (consistency_selector_case()) {
+ case kTransaction: {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kNewTransaction: {
+ delete consistency_selector_.new_transaction_;
+ break;
+ }
+ case kReadTime: {
+ delete consistency_selector_.read_time_;
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+
+
+void RunQueryRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.RunQueryRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_query_type();
+ clear_consistency_selector();
+ _internal_metadata_.Clear();
+}
+
+bool RunQueryRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.RunQueryRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string parent = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_parent()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.RunQueryRequest.parent"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_structured_query()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_new_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 7;
+ case 7: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.RunQueryRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.RunQueryRequest)
+ return false;
+#undef DO_
+}
+
+void RunQueryRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.RunQueryRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.RunQueryRequest.parent");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->parent(), output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ if (has_structured_query()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *query_type_.structured_query_, output);
+ }
+
+ // bytes transaction = 5;
+ if (has_transaction()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 5, this->transaction(), output);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 6;
+ if (has_new_transaction()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *consistency_selector_.new_transaction_, output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 7;
+ if (has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 7, *consistency_selector_.read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.RunQueryRequest)
+}
+
+::google::protobuf::uint8* RunQueryRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.RunQueryRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.RunQueryRequest.parent");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->parent(), target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ if (has_structured_query()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *query_type_.structured_query_, deterministic, target);
+ }
+
+ // bytes transaction = 5;
+ if (has_transaction()) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 5, this->transaction(), target);
+ }
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 6;
+ if (has_new_transaction()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *consistency_selector_.new_transaction_, deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 7;
+ if (has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 7, *consistency_selector_.read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.RunQueryRequest)
+ return target;
+}
+
+size_t RunQueryRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.RunQueryRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->parent());
+ }
+
+ switch (query_type_case()) {
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ case kStructuredQuery: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_type_.structured_query_);
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ switch (consistency_selector_case()) {
+ // bytes transaction = 5;
+ case kTransaction: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ break;
+ }
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 6;
+ case kNewTransaction: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.new_transaction_);
+ break;
+ }
+ // .google.protobuf.Timestamp read_time = 7;
+ case kReadTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *consistency_selector_.read_time_);
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void RunQueryRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.RunQueryRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const RunQueryRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const RunQueryRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.RunQueryRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.RunQueryRequest)
+ MergeFrom(*source);
+ }
+}
+
+void RunQueryRequest::MergeFrom(const RunQueryRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.RunQueryRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.parent().size() > 0) {
+
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ switch (from.query_type_case()) {
+ case kStructuredQuery: {
+ mutable_structured_query()->::google::firestore::v1beta1::StructuredQuery::MergeFrom(from.structured_query());
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ switch (from.consistency_selector_case()) {
+ case kTransaction: {
+ set_transaction(from.transaction());
+ break;
+ }
+ case kNewTransaction: {
+ mutable_new_transaction()->::google::firestore::v1beta1::TransactionOptions::MergeFrom(from.new_transaction());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case CONSISTENCY_SELECTOR_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void RunQueryRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.RunQueryRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void RunQueryRequest::CopyFrom(const RunQueryRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.RunQueryRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool RunQueryRequest::IsInitialized() const {
+ return true;
+}
+
+void RunQueryRequest::Swap(RunQueryRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RunQueryRequest::InternalSwap(RunQueryRequest* other) {
+ using std::swap;
+ parent_.Swap(&other->parent_);
+ swap(query_type_, other->query_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ swap(consistency_selector_, other->consistency_selector_);
+ swap(_oneof_case_[1], other->_oneof_case_[1]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata RunQueryRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void RunQueryResponse::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_RunQueryResponse_default_instance_._instance.get_mutable()->document_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+ ::google::firestore::v1beta1::_RunQueryResponse_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void RunQueryResponse::clear_document() {
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+}
+void RunQueryResponse::clear_read_time() {
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int RunQueryResponse::kTransactionFieldNumber;
+const int RunQueryResponse::kDocumentFieldNumber;
+const int RunQueryResponse::kReadTimeFieldNumber;
+const int RunQueryResponse::kSkippedResultsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+RunQueryResponse::RunQueryResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRunQueryResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.RunQueryResponse)
+}
+RunQueryResponse::RunQueryResponse(const RunQueryResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.transaction().size() > 0) {
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ if (from.has_document()) {
+ document_ = new ::google::firestore::v1beta1::Document(*from.document_);
+ } else {
+ document_ = NULL;
+ }
+ if (from.has_read_time()) {
+ read_time_ = new ::google::protobuf::Timestamp(*from.read_time_);
+ } else {
+ read_time_ = NULL;
+ }
+ skipped_results_ = from.skipped_results_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.RunQueryResponse)
+}
+
+void RunQueryResponse::SharedCtor() {
+ transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&document_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&skipped_results_) -
+ reinterpret_cast<char*>(&document_)) + sizeof(skipped_results_));
+ _cached_size_ = 0;
+}
+
+RunQueryResponse::~RunQueryResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.RunQueryResponse)
+ SharedDtor();
+}
+
+void RunQueryResponse::SharedDtor() {
+ transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete document_;
+ if (this != internal_default_instance()) delete read_time_;
+}
+
+void RunQueryResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* RunQueryResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const RunQueryResponse& RunQueryResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRunQueryResponse();
+ return *internal_default_instance();
+}
+
+RunQueryResponse* RunQueryResponse::New(::google::protobuf::Arena* arena) const {
+ RunQueryResponse* n = new RunQueryResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void RunQueryResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.RunQueryResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+ skipped_results_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool RunQueryResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.RunQueryResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.Document document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes transaction = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_transaction()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 skipped_results = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &skipped_results_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.RunQueryResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.RunQueryResponse)
+ return false;
+#undef DO_
+}
+
+void RunQueryResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.RunQueryResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->document_, output);
+ }
+
+ // bytes transaction = 2;
+ if (this->transaction().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 2, this->transaction(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 3;
+ if (this->has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->read_time_, output);
+ }
+
+ // int32 skipped_results = 4;
+ if (this->skipped_results() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->skipped_results(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.RunQueryResponse)
+}
+
+::google::protobuf::uint8* RunQueryResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.RunQueryResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->document_, deterministic, target);
+ }
+
+ // bytes transaction = 2;
+ if (this->transaction().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 2, this->transaction(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 3;
+ if (this->has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->read_time_, deterministic, target);
+ }
+
+ // int32 skipped_results = 4;
+ if (this->skipped_results() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->skipped_results(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.RunQueryResponse)
+ return target;
+}
+
+size_t RunQueryResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.RunQueryResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes transaction = 2;
+ if (this->transaction().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->transaction());
+ }
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->document_);
+ }
+
+ // .google.protobuf.Timestamp read_time = 3;
+ if (this->has_read_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->read_time_);
+ }
+
+ // int32 skipped_results = 4;
+ if (this->skipped_results() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->skipped_results());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void RunQueryResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.RunQueryResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const RunQueryResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const RunQueryResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.RunQueryResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.RunQueryResponse)
+ MergeFrom(*source);
+ }
+}
+
+void RunQueryResponse::MergeFrom(const RunQueryResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.RunQueryResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.transaction().size() > 0) {
+
+ transaction_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_);
+ }
+ if (from.has_document()) {
+ mutable_document()->::google::firestore::v1beta1::Document::MergeFrom(from.document());
+ }
+ if (from.has_read_time()) {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ }
+ if (from.skipped_results() != 0) {
+ set_skipped_results(from.skipped_results());
+ }
+}
+
+void RunQueryResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.RunQueryResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void RunQueryResponse::CopyFrom(const RunQueryResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.RunQueryResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool RunQueryResponse::IsInitialized() const {
+ return true;
+}
+
+void RunQueryResponse::Swap(RunQueryResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void RunQueryResponse::InternalSwap(RunQueryResponse* other) {
+ using std::swap;
+ transaction_.Swap(&other->transaction_);
+ swap(document_, other->document_);
+ swap(read_time_, other->read_time_);
+ swap(skipped_results_, other->skipped_results_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata RunQueryResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+WriteRequest_LabelsEntry_DoNotUse::WriteRequest_LabelsEntry_DoNotUse() {}
+WriteRequest_LabelsEntry_DoNotUse::WriteRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
+void WriteRequest_LabelsEntry_DoNotUse::MergeFrom(const WriteRequest_LabelsEntry_DoNotUse& other) {
+ MergeFromInternal(other);
+}
+::google::protobuf::Metadata WriteRequest_LabelsEntry_DoNotUse::GetMetadata() const {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[15];
+}
+void WriteRequest_LabelsEntry_DoNotUse::MergeFrom(
+ const ::google::protobuf::Message& other) {
+ ::google::protobuf::Message::MergeFrom(other);
+}
+
+
+// ===================================================================
+
+void WriteRequest::InitAsDefaultInstance() {
+}
+void WriteRequest::clear_writes() {
+ writes_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int WriteRequest::kDatabaseFieldNumber;
+const int WriteRequest::kStreamIdFieldNumber;
+const int WriteRequest::kWritesFieldNumber;
+const int WriteRequest::kStreamTokenFieldNumber;
+const int WriteRequest::kLabelsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+WriteRequest::WriteRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.WriteRequest)
+}
+WriteRequest::WriteRequest(const WriteRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ writes_(from.writes_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ labels_.MergeFrom(from.labels_);
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.database().size() > 0) {
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.stream_id().size() > 0) {
+ stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
+ }
+ stream_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.stream_token().size() > 0) {
+ stream_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_token_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.WriteRequest)
+}
+
+void WriteRequest::SharedCtor() {
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+WriteRequest::~WriteRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.WriteRequest)
+ SharedDtor();
+}
+
+void WriteRequest::SharedDtor() {
+ database_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void WriteRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* WriteRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const WriteRequest& WriteRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteRequest();
+ return *internal_default_instance();
+}
+
+WriteRequest* WriteRequest::New(::google::protobuf::Arena* arena) const {
+ WriteRequest* n = new WriteRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void WriteRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.WriteRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ writes_.Clear();
+ labels_.Clear();
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool WriteRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.WriteRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string database = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_database()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.WriteRequest.database"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string stream_id = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_stream_id()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->stream_id().data(), static_cast<int>(this->stream_id().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.WriteRequest.stream_id"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_writes()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes stream_token = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_stream_token()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // map<string, string> labels = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ WriteRequest_LabelsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
+ WriteRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 >,
+ ::google::protobuf::Map< ::std::string, ::std::string > > parser(&labels_);
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ input, &parser));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.key().data(), static_cast<int>(parser.key().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.WriteRequest.LabelsEntry.key"));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.value().data(), static_cast<int>(parser.value().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.WriteRequest.LabelsEntry.value"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.WriteRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.WriteRequest)
+ return false;
+#undef DO_
+}
+
+void WriteRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.WriteRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.database");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->database(), output);
+ }
+
+ // string stream_id = 2;
+ if (this->stream_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->stream_id().data(), static_cast<int>(this->stream_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.stream_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->stream_id(), output);
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 3;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->writes_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, this->writes(static_cast<int>(i)), output);
+ }
+
+ // bytes stream_token = 4;
+ if (this->stream_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 4, this->stream_token(), output);
+ }
+
+ // map<string, string> labels = 5;
+ if (!this->labels().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.LabelsEntry.key");
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->second.data(), static_cast<int>(p->second.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.LabelsEntry.value");
+ }
+ };
+
+ if (output->IsSerializationDeterministic() &&
+ this->labels().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->labels().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<WriteRequest_LabelsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(labels_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *entry, output);
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<WriteRequest_LabelsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it) {
+ entry.reset(labels_.NewEntryWrapper(
+ it->first, it->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *entry, output);
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.WriteRequest)
+}
+
+::google::protobuf::uint8* WriteRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.WriteRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.database");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->database(), target);
+ }
+
+ // string stream_id = 2;
+ if (this->stream_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->stream_id().data(), static_cast<int>(this->stream_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.stream_id");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->stream_id(), target);
+ }
+
+ // repeated .google.firestore.v1beta1.Write writes = 3;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->writes_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, this->writes(static_cast<int>(i)), deterministic, target);
+ }
+
+ // bytes stream_token = 4;
+ if (this->stream_token().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 4, this->stream_token(), target);
+ }
+
+ // map<string, string> labels = 5;
+ if (!this->labels().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.LabelsEntry.key");
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->second.data(), static_cast<int>(p->second.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteRequest.LabelsEntry.value");
+ }
+ };
+
+ if (deterministic &&
+ this->labels().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->labels().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<WriteRequest_LabelsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(labels_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 5, *entry, deterministic, target);
+;
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<WriteRequest_LabelsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it) {
+ entry.reset(labels_.NewEntryWrapper(
+ it->first, it->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 5, *entry, deterministic, target);
+;
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.WriteRequest)
+ return target;
+}
+
+size_t WriteRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.WriteRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Write writes = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->writes_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->writes(static_cast<int>(i)));
+ }
+ }
+
+ // map<string, string> labels = 5;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->labels_size());
+ {
+ ::google::protobuf::scoped_ptr<WriteRequest_LabelsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it) {
+ entry.reset(labels_.NewEntryWrapper(it->first, it->second));
+ total_size += ::google::protobuf::internal::WireFormatLite::
+ MessageSizeNoVirtual(*entry);
+ }
+ }
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->database());
+ }
+
+ // string stream_id = 2;
+ if (this->stream_id().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->stream_id());
+ }
+
+ // bytes stream_token = 4;
+ if (this->stream_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->stream_token());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void WriteRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.WriteRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const WriteRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const WriteRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.WriteRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.WriteRequest)
+ MergeFrom(*source);
+ }
+}
+
+void WriteRequest::MergeFrom(const WriteRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.WriteRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ writes_.MergeFrom(from.writes_);
+ labels_.MergeFrom(from.labels_);
+ if (from.database().size() > 0) {
+
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ if (from.stream_id().size() > 0) {
+
+ stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
+ }
+ if (from.stream_token().size() > 0) {
+
+ stream_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_token_);
+ }
+}
+
+void WriteRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.WriteRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void WriteRequest::CopyFrom(const WriteRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.WriteRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool WriteRequest::IsInitialized() const {
+ return true;
+}
+
+void WriteRequest::Swap(WriteRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void WriteRequest::InternalSwap(WriteRequest* other) {
+ using std::swap;
+ writes_.InternalSwap(&other->writes_);
+ labels_.Swap(&other->labels_);
+ database_.Swap(&other->database_);
+ stream_id_.Swap(&other->stream_id_);
+ stream_token_.Swap(&other->stream_token_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata WriteRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void WriteResponse::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_WriteResponse_default_instance_._instance.get_mutable()->commit_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void WriteResponse::clear_write_results() {
+ write_results_.Clear();
+}
+void WriteResponse::clear_commit_time() {
+ if (GetArenaNoVirtual() == NULL && commit_time_ != NULL) {
+ delete commit_time_;
+ }
+ commit_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int WriteResponse::kStreamIdFieldNumber;
+const int WriteResponse::kStreamTokenFieldNumber;
+const int WriteResponse::kWriteResultsFieldNumber;
+const int WriteResponse::kCommitTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+WriteResponse::WriteResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.WriteResponse)
+}
+WriteResponse::WriteResponse(const WriteResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ write_results_(from.write_results_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.stream_id().size() > 0) {
+ stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
+ }
+ stream_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.stream_token().size() > 0) {
+ stream_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_token_);
+ }
+ if (from.has_commit_time()) {
+ commit_time_ = new ::google::protobuf::Timestamp(*from.commit_time_);
+ } else {
+ commit_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.WriteResponse)
+}
+
+void WriteResponse::SharedCtor() {
+ stream_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ commit_time_ = NULL;
+ _cached_size_ = 0;
+}
+
+WriteResponse::~WriteResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.WriteResponse)
+ SharedDtor();
+}
+
+void WriteResponse::SharedDtor() {
+ stream_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete commit_time_;
+}
+
+void WriteResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* WriteResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const WriteResponse& WriteResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteResponse();
+ return *internal_default_instance();
+}
+
+WriteResponse* WriteResponse::New(::google::protobuf::Arena* arena) const {
+ WriteResponse* n = new WriteResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void WriteResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.WriteResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ write_results_.Clear();
+ stream_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ stream_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && commit_time_ != NULL) {
+ delete commit_time_;
+ }
+ commit_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool WriteResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.WriteResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string stream_id = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_stream_id()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->stream_id().data(), static_cast<int>(this->stream_id().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.WriteResponse.stream_id"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes stream_token = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_stream_token()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_write_results()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp commit_time = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_commit_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.WriteResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.WriteResponse)
+ return false;
+#undef DO_
+}
+
+void WriteResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.WriteResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string stream_id = 1;
+ if (this->stream_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->stream_id().data(), static_cast<int>(this->stream_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteResponse.stream_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->stream_id(), output);
+ }
+
+ // bytes stream_token = 2;
+ if (this->stream_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 2, this->stream_token(), output);
+ }
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 3;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->write_results_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, this->write_results(static_cast<int>(i)), output);
+ }
+
+ // .google.protobuf.Timestamp commit_time = 4;
+ if (this->has_commit_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->commit_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.WriteResponse)
+}
+
+::google::protobuf::uint8* WriteResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.WriteResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string stream_id = 1;
+ if (this->stream_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->stream_id().data(), static_cast<int>(this->stream_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.WriteResponse.stream_id");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->stream_id(), target);
+ }
+
+ // bytes stream_token = 2;
+ if (this->stream_token().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 2, this->stream_token(), target);
+ }
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 3;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->write_results_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, this->write_results(static_cast<int>(i)), deterministic, target);
+ }
+
+ // .google.protobuf.Timestamp commit_time = 4;
+ if (this->has_commit_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->commit_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.WriteResponse)
+ return target;
+}
+
+size_t WriteResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.WriteResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->write_results_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->write_results(static_cast<int>(i)));
+ }
+ }
+
+ // string stream_id = 1;
+ if (this->stream_id().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->stream_id());
+ }
+
+ // bytes stream_token = 2;
+ if (this->stream_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->stream_token());
+ }
+
+ // .google.protobuf.Timestamp commit_time = 4;
+ if (this->has_commit_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->commit_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void WriteResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.WriteResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const WriteResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const WriteResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.WriteResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.WriteResponse)
+ MergeFrom(*source);
+ }
+}
+
+void WriteResponse::MergeFrom(const WriteResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.WriteResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ write_results_.MergeFrom(from.write_results_);
+ if (from.stream_id().size() > 0) {
+
+ stream_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_id_);
+ }
+ if (from.stream_token().size() > 0) {
+
+ stream_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stream_token_);
+ }
+ if (from.has_commit_time()) {
+ mutable_commit_time()->::google::protobuf::Timestamp::MergeFrom(from.commit_time());
+ }
+}
+
+void WriteResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.WriteResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void WriteResponse::CopyFrom(const WriteResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.WriteResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool WriteResponse::IsInitialized() const {
+ return true;
+}
+
+void WriteResponse::Swap(WriteResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void WriteResponse::InternalSwap(WriteResponse* other) {
+ using std::swap;
+ write_results_.InternalSwap(&other->write_results_);
+ stream_id_.Swap(&other->stream_id_);
+ stream_token_.Swap(&other->stream_token_);
+ swap(commit_time_, other->commit_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata WriteResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+ListenRequest_LabelsEntry_DoNotUse::ListenRequest_LabelsEntry_DoNotUse() {}
+ListenRequest_LabelsEntry_DoNotUse::ListenRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
+void ListenRequest_LabelsEntry_DoNotUse::MergeFrom(const ListenRequest_LabelsEntry_DoNotUse& other) {
+ MergeFromInternal(other);
+}
+::google::protobuf::Metadata ListenRequest_LabelsEntry_DoNotUse::GetMetadata() const {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[18];
+}
+void ListenRequest_LabelsEntry_DoNotUse::MergeFrom(
+ const ::google::protobuf::Message& other) {
+ ::google::protobuf::Message::MergeFrom(other);
+}
+
+
+// ===================================================================
+
+void ListenRequest::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_ListenRequest_default_instance_.add_target_ = const_cast< ::google::firestore::v1beta1::Target*>(
+ ::google::firestore::v1beta1::Target::internal_default_instance());
+ ::google::firestore::v1beta1::_ListenRequest_default_instance_.remove_target_ = 0;
+}
+void ListenRequest::set_allocated_add_target(::google::firestore::v1beta1::Target* add_target) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_target_change();
+ if (add_target) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ add_target = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, add_target, submessage_arena);
+ }
+ set_has_add_target();
+ target_change_.add_target_ = add_target;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenRequest.add_target)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListenRequest::kDatabaseFieldNumber;
+const int ListenRequest::kAddTargetFieldNumber;
+const int ListenRequest::kRemoveTargetFieldNumber;
+const int ListenRequest::kLabelsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListenRequest::ListenRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ListenRequest)
+}
+ListenRequest::ListenRequest(const ListenRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ labels_.MergeFrom(from.labels_);
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.database().size() > 0) {
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ clear_has_target_change();
+ switch (from.target_change_case()) {
+ case kAddTarget: {
+ mutable_add_target()->::google::firestore::v1beta1::Target::MergeFrom(from.add_target());
+ break;
+ }
+ case kRemoveTarget: {
+ set_remove_target(from.remove_target());
+ break;
+ }
+ case TARGET_CHANGE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ListenRequest)
+}
+
+void ListenRequest::SharedCtor() {
+ database_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_target_change();
+ _cached_size_ = 0;
+}
+
+ListenRequest::~ListenRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ListenRequest)
+ SharedDtor();
+}
+
+void ListenRequest::SharedDtor() {
+ database_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (has_target_change()) {
+ clear_target_change();
+ }
+}
+
+void ListenRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListenRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListenRequest& ListenRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenRequest();
+ return *internal_default_instance();
+}
+
+ListenRequest* ListenRequest::New(::google::protobuf::Arena* arena) const {
+ ListenRequest* n = new ListenRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ListenRequest::clear_target_change() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.ListenRequest)
+ switch (target_change_case()) {
+ case kAddTarget: {
+ delete target_change_.add_target_;
+ break;
+ }
+ case kRemoveTarget: {
+ // No need to clear
+ break;
+ }
+ case TARGET_CHANGE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = TARGET_CHANGE_NOT_SET;
+}
+
+
+void ListenRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ListenRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ labels_.Clear();
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_target_change();
+ _internal_metadata_.Clear();
+}
+
+bool ListenRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ListenRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string database = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_database()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListenRequest.database"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Target add_target = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_add_target()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 remove_target = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ clear_target_change();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &target_change_.remove_target_)));
+ set_has_remove_target();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // map<string, string> labels = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ ListenRequest_LabelsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
+ ListenRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 >,
+ ::google::protobuf::Map< ::std::string, ::std::string > > parser(&labels_);
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ input, &parser));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.key().data(), static_cast<int>(parser.key().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListenRequest.LabelsEntry.key"));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.value().data(), static_cast<int>(parser.value().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListenRequest.LabelsEntry.value"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ListenRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ListenRequest)
+ return false;
+#undef DO_
+}
+
+void ListenRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ListenRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListenRequest.database");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->database(), output);
+ }
+
+ // .google.firestore.v1beta1.Target add_target = 2;
+ if (has_add_target()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *target_change_.add_target_, output);
+ }
+
+ // int32 remove_target = 3;
+ if (has_remove_target()) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->remove_target(), output);
+ }
+
+ // map<string, string> labels = 4;
+ if (!this->labels().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListenRequest.LabelsEntry.key");
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->second.data(), static_cast<int>(p->second.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListenRequest.LabelsEntry.value");
+ }
+ };
+
+ if (output->IsSerializationDeterministic() &&
+ this->labels().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->labels().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<ListenRequest_LabelsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(labels_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *entry, output);
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<ListenRequest_LabelsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it) {
+ entry.reset(labels_.NewEntryWrapper(
+ it->first, it->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *entry, output);
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ListenRequest)
+}
+
+::google::protobuf::uint8* ListenRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ListenRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->database().data(), static_cast<int>(this->database().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListenRequest.database");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->database(), target);
+ }
+
+ // .google.firestore.v1beta1.Target add_target = 2;
+ if (has_add_target()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *target_change_.add_target_, deterministic, target);
+ }
+
+ // int32 remove_target = 3;
+ if (has_remove_target()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->remove_target(), target);
+ }
+
+ // map<string, string> labels = 4;
+ if (!this->labels().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListenRequest.LabelsEntry.key");
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->second.data(), static_cast<int>(p->second.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListenRequest.LabelsEntry.value");
+ }
+ };
+
+ if (deterministic &&
+ this->labels().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->labels().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<ListenRequest_LabelsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(labels_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 4, *entry, deterministic, target);
+;
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<ListenRequest_LabelsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it) {
+ entry.reset(labels_.NewEntryWrapper(
+ it->first, it->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 4, *entry, deterministic, target);
+;
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ListenRequest)
+ return target;
+}
+
+size_t ListenRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ListenRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // map<string, string> labels = 4;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->labels_size());
+ {
+ ::google::protobuf::scoped_ptr<ListenRequest_LabelsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
+ it = this->labels().begin();
+ it != this->labels().end(); ++it) {
+ entry.reset(labels_.NewEntryWrapper(it->first, it->second));
+ total_size += ::google::protobuf::internal::WireFormatLite::
+ MessageSizeNoVirtual(*entry);
+ }
+ }
+
+ // string database = 1;
+ if (this->database().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->database());
+ }
+
+ switch (target_change_case()) {
+ // .google.firestore.v1beta1.Target add_target = 2;
+ case kAddTarget: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *target_change_.add_target_);
+ break;
+ }
+ // int32 remove_target = 3;
+ case kRemoveTarget: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->remove_target());
+ break;
+ }
+ case TARGET_CHANGE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListenRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ListenRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListenRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListenRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ListenRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ListenRequest)
+ MergeFrom(*source);
+ }
+}
+
+void ListenRequest::MergeFrom(const ListenRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ListenRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ labels_.MergeFrom(from.labels_);
+ if (from.database().size() > 0) {
+
+ database_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.database_);
+ }
+ switch (from.target_change_case()) {
+ case kAddTarget: {
+ mutable_add_target()->::google::firestore::v1beta1::Target::MergeFrom(from.add_target());
+ break;
+ }
+ case kRemoveTarget: {
+ set_remove_target(from.remove_target());
+ break;
+ }
+ case TARGET_CHANGE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void ListenRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ListenRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListenRequest::CopyFrom(const ListenRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ListenRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListenRequest::IsInitialized() const {
+ return true;
+}
+
+void ListenRequest::Swap(ListenRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ListenRequest::InternalSwap(ListenRequest* other) {
+ using std::swap;
+ labels_.Swap(&other->labels_);
+ database_.Swap(&other->database_);
+ swap(target_change_, other->target_change_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListenRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ListenResponse::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_ListenResponse_default_instance_.target_change_ = const_cast< ::google::firestore::v1beta1::TargetChange*>(
+ ::google::firestore::v1beta1::TargetChange::internal_default_instance());
+ ::google::firestore::v1beta1::_ListenResponse_default_instance_.document_change_ = const_cast< ::google::firestore::v1beta1::DocumentChange*>(
+ ::google::firestore::v1beta1::DocumentChange::internal_default_instance());
+ ::google::firestore::v1beta1::_ListenResponse_default_instance_.document_delete_ = const_cast< ::google::firestore::v1beta1::DocumentDelete*>(
+ ::google::firestore::v1beta1::DocumentDelete::internal_default_instance());
+ ::google::firestore::v1beta1::_ListenResponse_default_instance_.document_remove_ = const_cast< ::google::firestore::v1beta1::DocumentRemove*>(
+ ::google::firestore::v1beta1::DocumentRemove::internal_default_instance());
+ ::google::firestore::v1beta1::_ListenResponse_default_instance_.filter_ = const_cast< ::google::firestore::v1beta1::ExistenceFilter*>(
+ ::google::firestore::v1beta1::ExistenceFilter::internal_default_instance());
+}
+void ListenResponse::set_allocated_target_change(::google::firestore::v1beta1::TargetChange* target_change) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_response_type();
+ if (target_change) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ target_change = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, target_change, submessage_arena);
+ }
+ set_has_target_change();
+ response_type_.target_change_ = target_change;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenResponse.target_change)
+}
+void ListenResponse::set_allocated_document_change(::google::firestore::v1beta1::DocumentChange* document_change) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_response_type();
+ if (document_change) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document_change = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document_change, submessage_arena);
+ }
+ set_has_document_change();
+ response_type_.document_change_ = document_change;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenResponse.document_change)
+}
+void ListenResponse::clear_document_change() {
+ if (has_document_change()) {
+ delete response_type_.document_change_;
+ clear_has_response_type();
+ }
+}
+void ListenResponse::set_allocated_document_delete(::google::firestore::v1beta1::DocumentDelete* document_delete) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_response_type();
+ if (document_delete) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document_delete = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document_delete, submessage_arena);
+ }
+ set_has_document_delete();
+ response_type_.document_delete_ = document_delete;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenResponse.document_delete)
+}
+void ListenResponse::clear_document_delete() {
+ if (has_document_delete()) {
+ delete response_type_.document_delete_;
+ clear_has_response_type();
+ }
+}
+void ListenResponse::set_allocated_document_remove(::google::firestore::v1beta1::DocumentRemove* document_remove) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_response_type();
+ if (document_remove) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document_remove = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document_remove, submessage_arena);
+ }
+ set_has_document_remove();
+ response_type_.document_remove_ = document_remove;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenResponse.document_remove)
+}
+void ListenResponse::clear_document_remove() {
+ if (has_document_remove()) {
+ delete response_type_.document_remove_;
+ clear_has_response_type();
+ }
+}
+void ListenResponse::set_allocated_filter(::google::firestore::v1beta1::ExistenceFilter* filter) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_response_type();
+ if (filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, filter, submessage_arena);
+ }
+ set_has_filter();
+ response_type_.filter_ = filter;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenResponse.filter)
+}
+void ListenResponse::clear_filter() {
+ if (has_filter()) {
+ delete response_type_.filter_;
+ clear_has_response_type();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListenResponse::kTargetChangeFieldNumber;
+const int ListenResponse::kDocumentChangeFieldNumber;
+const int ListenResponse::kDocumentDeleteFieldNumber;
+const int ListenResponse::kDocumentRemoveFieldNumber;
+const int ListenResponse::kFilterFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListenResponse::ListenResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ListenResponse)
+}
+ListenResponse::ListenResponse(const ListenResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_response_type();
+ switch (from.response_type_case()) {
+ case kTargetChange: {
+ mutable_target_change()->::google::firestore::v1beta1::TargetChange::MergeFrom(from.target_change());
+ break;
+ }
+ case kDocumentChange: {
+ mutable_document_change()->::google::firestore::v1beta1::DocumentChange::MergeFrom(from.document_change());
+ break;
+ }
+ case kDocumentDelete: {
+ mutable_document_delete()->::google::firestore::v1beta1::DocumentDelete::MergeFrom(from.document_delete());
+ break;
+ }
+ case kDocumentRemove: {
+ mutable_document_remove()->::google::firestore::v1beta1::DocumentRemove::MergeFrom(from.document_remove());
+ break;
+ }
+ case kFilter: {
+ mutable_filter()->::google::firestore::v1beta1::ExistenceFilter::MergeFrom(from.filter());
+ break;
+ }
+ case RESPONSE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ListenResponse)
+}
+
+void ListenResponse::SharedCtor() {
+ clear_has_response_type();
+ _cached_size_ = 0;
+}
+
+ListenResponse::~ListenResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ListenResponse)
+ SharedDtor();
+}
+
+void ListenResponse::SharedDtor() {
+ if (has_response_type()) {
+ clear_response_type();
+ }
+}
+
+void ListenResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListenResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListenResponse& ListenResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenResponse();
+ return *internal_default_instance();
+}
+
+ListenResponse* ListenResponse::New(::google::protobuf::Arena* arena) const {
+ ListenResponse* n = new ListenResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ListenResponse::clear_response_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.ListenResponse)
+ switch (response_type_case()) {
+ case kTargetChange: {
+ delete response_type_.target_change_;
+ break;
+ }
+ case kDocumentChange: {
+ delete response_type_.document_change_;
+ break;
+ }
+ case kDocumentDelete: {
+ delete response_type_.document_delete_;
+ break;
+ }
+ case kDocumentRemove: {
+ delete response_type_.document_remove_;
+ break;
+ }
+ case kFilter: {
+ delete response_type_.filter_;
+ break;
+ }
+ case RESPONSE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
+}
+
+
+void ListenResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ListenResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_response_type();
+ _internal_metadata_.Clear();
+}
+
+bool ListenResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ListenResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.TargetChange target_change = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_target_change()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentChange document_change = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document_change()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentDelete document_delete = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document_delete()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.ExistenceFilter filter = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_filter()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentRemove document_remove = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document_remove()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ListenResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ListenResponse)
+ return false;
+#undef DO_
+}
+
+void ListenResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ListenResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.TargetChange target_change = 2;
+ if (has_target_change()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *response_type_.target_change_, output);
+ }
+
+ // .google.firestore.v1beta1.DocumentChange document_change = 3;
+ if (has_document_change()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *response_type_.document_change_, output);
+ }
+
+ // .google.firestore.v1beta1.DocumentDelete document_delete = 4;
+ if (has_document_delete()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *response_type_.document_delete_, output);
+ }
+
+ // .google.firestore.v1beta1.ExistenceFilter filter = 5;
+ if (has_filter()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *response_type_.filter_, output);
+ }
+
+ // .google.firestore.v1beta1.DocumentRemove document_remove = 6;
+ if (has_document_remove()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *response_type_.document_remove_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ListenResponse)
+}
+
+::google::protobuf::uint8* ListenResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ListenResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.TargetChange target_change = 2;
+ if (has_target_change()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *response_type_.target_change_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.DocumentChange document_change = 3;
+ if (has_document_change()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *response_type_.document_change_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.DocumentDelete document_delete = 4;
+ if (has_document_delete()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *response_type_.document_delete_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.ExistenceFilter filter = 5;
+ if (has_filter()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *response_type_.filter_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.DocumentRemove document_remove = 6;
+ if (has_document_remove()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *response_type_.document_remove_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ListenResponse)
+ return target;
+}
+
+size_t ListenResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ListenResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (response_type_case()) {
+ // .google.firestore.v1beta1.TargetChange target_change = 2;
+ case kTargetChange: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *response_type_.target_change_);
+ break;
+ }
+ // .google.firestore.v1beta1.DocumentChange document_change = 3;
+ case kDocumentChange: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *response_type_.document_change_);
+ break;
+ }
+ // .google.firestore.v1beta1.DocumentDelete document_delete = 4;
+ case kDocumentDelete: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *response_type_.document_delete_);
+ break;
+ }
+ // .google.firestore.v1beta1.DocumentRemove document_remove = 6;
+ case kDocumentRemove: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *response_type_.document_remove_);
+ break;
+ }
+ // .google.firestore.v1beta1.ExistenceFilter filter = 5;
+ case kFilter: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *response_type_.filter_);
+ break;
+ }
+ case RESPONSE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListenResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ListenResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListenResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListenResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ListenResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ListenResponse)
+ MergeFrom(*source);
+ }
+}
+
+void ListenResponse::MergeFrom(const ListenResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ListenResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.response_type_case()) {
+ case kTargetChange: {
+ mutable_target_change()->::google::firestore::v1beta1::TargetChange::MergeFrom(from.target_change());
+ break;
+ }
+ case kDocumentChange: {
+ mutable_document_change()->::google::firestore::v1beta1::DocumentChange::MergeFrom(from.document_change());
+ break;
+ }
+ case kDocumentDelete: {
+ mutable_document_delete()->::google::firestore::v1beta1::DocumentDelete::MergeFrom(from.document_delete());
+ break;
+ }
+ case kDocumentRemove: {
+ mutable_document_remove()->::google::firestore::v1beta1::DocumentRemove::MergeFrom(from.document_remove());
+ break;
+ }
+ case kFilter: {
+ mutable_filter()->::google::firestore::v1beta1::ExistenceFilter::MergeFrom(from.filter());
+ break;
+ }
+ case RESPONSE_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void ListenResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ListenResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListenResponse::CopyFrom(const ListenResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ListenResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListenResponse::IsInitialized() const {
+ return true;
+}
+
+void ListenResponse::Swap(ListenResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ListenResponse::InternalSwap(ListenResponse* other) {
+ using std::swap;
+ swap(response_type_, other->response_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListenResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Target_DocumentsTarget::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Target_DocumentsTarget::kDocumentsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Target_DocumentsTarget::Target_DocumentsTarget()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_DocumentsTarget();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Target.DocumentsTarget)
+}
+Target_DocumentsTarget::Target_DocumentsTarget(const Target_DocumentsTarget& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ documents_(from.documents_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Target.DocumentsTarget)
+}
+
+void Target_DocumentsTarget::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+Target_DocumentsTarget::~Target_DocumentsTarget() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Target.DocumentsTarget)
+ SharedDtor();
+}
+
+void Target_DocumentsTarget::SharedDtor() {
+}
+
+void Target_DocumentsTarget::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Target_DocumentsTarget::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Target_DocumentsTarget& Target_DocumentsTarget::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_DocumentsTarget();
+ return *internal_default_instance();
+}
+
+Target_DocumentsTarget* Target_DocumentsTarget::New(::google::protobuf::Arena* arena) const {
+ Target_DocumentsTarget* n = new Target_DocumentsTarget;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Target_DocumentsTarget::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ documents_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool Target_DocumentsTarget::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated string documents = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->add_documents()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->documents(this->documents_size() - 1).data(),
+ static_cast<int>(this->documents(this->documents_size() - 1).length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Target.DocumentsTarget.documents"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Target.DocumentsTarget)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Target.DocumentsTarget)
+ return false;
+#undef DO_
+}
+
+void Target_DocumentsTarget::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated string documents = 2;
+ for (int i = 0, n = this->documents_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->documents(i).data(), static_cast<int>(this->documents(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Target.DocumentsTarget.documents");
+ ::google::protobuf::internal::WireFormatLite::WriteString(
+ 2, this->documents(i), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Target.DocumentsTarget)
+}
+
+::google::protobuf::uint8* Target_DocumentsTarget::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated string documents = 2;
+ for (int i = 0, n = this->documents_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->documents(i).data(), static_cast<int>(this->documents(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Target.DocumentsTarget.documents");
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteStringToArray(2, this->documents(i), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Target.DocumentsTarget)
+ return target;
+}
+
+size_t Target_DocumentsTarget::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated string documents = 2;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->documents_size());
+ for (int i = 0, n = this->documents_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->documents(i));
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Target_DocumentsTarget::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Target_DocumentsTarget* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Target_DocumentsTarget>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Target.DocumentsTarget)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Target.DocumentsTarget)
+ MergeFrom(*source);
+ }
+}
+
+void Target_DocumentsTarget::MergeFrom(const Target_DocumentsTarget& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ documents_.MergeFrom(from.documents_);
+}
+
+void Target_DocumentsTarget::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Target_DocumentsTarget::CopyFrom(const Target_DocumentsTarget& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Target.DocumentsTarget)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Target_DocumentsTarget::IsInitialized() const {
+ return true;
+}
+
+void Target_DocumentsTarget::Swap(Target_DocumentsTarget* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Target_DocumentsTarget::InternalSwap(Target_DocumentsTarget* other) {
+ using std::swap;
+ documents_.InternalSwap(&other->documents_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Target_DocumentsTarget::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Target_QueryTarget::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_Target_QueryTarget_default_instance_.structured_query_ = const_cast< ::google::firestore::v1beta1::StructuredQuery*>(
+ ::google::firestore::v1beta1::StructuredQuery::internal_default_instance());
+}
+void Target_QueryTarget::set_allocated_structured_query(::google::firestore::v1beta1::StructuredQuery* structured_query) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_query_type();
+ if (structured_query) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ structured_query = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, structured_query, submessage_arena);
+ }
+ set_has_structured_query();
+ query_type_.structured_query_ = structured_query;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Target.QueryTarget.structured_query)
+}
+void Target_QueryTarget::clear_structured_query() {
+ if (has_structured_query()) {
+ delete query_type_.structured_query_;
+ clear_has_query_type();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Target_QueryTarget::kParentFieldNumber;
+const int Target_QueryTarget::kStructuredQueryFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Target_QueryTarget::Target_QueryTarget()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_QueryTarget();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Target.QueryTarget)
+}
+Target_QueryTarget::Target_QueryTarget(const Target_QueryTarget& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.parent().size() > 0) {
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ clear_has_query_type();
+ switch (from.query_type_case()) {
+ case kStructuredQuery: {
+ mutable_structured_query()->::google::firestore::v1beta1::StructuredQuery::MergeFrom(from.structured_query());
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Target.QueryTarget)
+}
+
+void Target_QueryTarget::SharedCtor() {
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_query_type();
+ _cached_size_ = 0;
+}
+
+Target_QueryTarget::~Target_QueryTarget() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Target.QueryTarget)
+ SharedDtor();
+}
+
+void Target_QueryTarget::SharedDtor() {
+ parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (has_query_type()) {
+ clear_query_type();
+ }
+}
+
+void Target_QueryTarget::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Target_QueryTarget::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Target_QueryTarget& Target_QueryTarget::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_QueryTarget();
+ return *internal_default_instance();
+}
+
+Target_QueryTarget* Target_QueryTarget::New(::google::protobuf::Arena* arena) const {
+ Target_QueryTarget* n = new Target_QueryTarget;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Target_QueryTarget::clear_query_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.Target.QueryTarget)
+ switch (query_type_case()) {
+ case kStructuredQuery: {
+ delete query_type_.structured_query_;
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = QUERY_TYPE_NOT_SET;
+}
+
+
+void Target_QueryTarget::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Target.QueryTarget)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_query_type();
+ _internal_metadata_.Clear();
+}
+
+bool Target_QueryTarget::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Target.QueryTarget)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string parent = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_parent()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Target.QueryTarget.parent"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_structured_query()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Target.QueryTarget)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Target.QueryTarget)
+ return false;
+#undef DO_
+}
+
+void Target_QueryTarget::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Target.QueryTarget)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Target.QueryTarget.parent");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->parent(), output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ if (has_structured_query()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *query_type_.structured_query_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Target.QueryTarget)
+}
+
+::google::protobuf::uint8* Target_QueryTarget::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Target.QueryTarget)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Target.QueryTarget.parent");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->parent(), target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ if (has_structured_query()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *query_type_.structured_query_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Target.QueryTarget)
+ return target;
+}
+
+size_t Target_QueryTarget::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Target.QueryTarget)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->parent());
+ }
+
+ switch (query_type_case()) {
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ case kStructuredQuery: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *query_type_.structured_query_);
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Target_QueryTarget::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Target.QueryTarget)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Target_QueryTarget* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Target_QueryTarget>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Target.QueryTarget)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Target.QueryTarget)
+ MergeFrom(*source);
+ }
+}
+
+void Target_QueryTarget::MergeFrom(const Target_QueryTarget& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Target.QueryTarget)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.parent().size() > 0) {
+
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ switch (from.query_type_case()) {
+ case kStructuredQuery: {
+ mutable_structured_query()->::google::firestore::v1beta1::StructuredQuery::MergeFrom(from.structured_query());
+ break;
+ }
+ case QUERY_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Target_QueryTarget::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Target.QueryTarget)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Target_QueryTarget::CopyFrom(const Target_QueryTarget& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Target.QueryTarget)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Target_QueryTarget::IsInitialized() const {
+ return true;
+}
+
+void Target_QueryTarget::Swap(Target_QueryTarget* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Target_QueryTarget::InternalSwap(Target_QueryTarget* other) {
+ using std::swap;
+ parent_.Swap(&other->parent_);
+ swap(query_type_, other->query_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Target_QueryTarget::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Target::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_Target_default_instance_.query_ = const_cast< ::google::firestore::v1beta1::Target_QueryTarget*>(
+ ::google::firestore::v1beta1::Target_QueryTarget::internal_default_instance());
+ ::google::firestore::v1beta1::_Target_default_instance_.documents_ = const_cast< ::google::firestore::v1beta1::Target_DocumentsTarget*>(
+ ::google::firestore::v1beta1::Target_DocumentsTarget::internal_default_instance());
+ ::google::firestore::v1beta1::_Target_default_instance_.resume_token_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_Target_default_instance_.read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void Target::set_allocated_query(::google::firestore::v1beta1::Target_QueryTarget* query) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_target_type();
+ if (query) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ query = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, query, submessage_arena);
+ }
+ set_has_query();
+ target_type_.query_ = query;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Target.query)
+}
+void Target::set_allocated_documents(::google::firestore::v1beta1::Target_DocumentsTarget* documents) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_target_type();
+ if (documents) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ documents = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, documents, submessage_arena);
+ }
+ set_has_documents();
+ target_type_.documents_ = documents;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Target.documents)
+}
+void Target::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_resume_type();
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+ set_has_read_time();
+ resume_type_.read_time_ = read_time;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Target.read_time)
+}
+void Target::clear_read_time() {
+ if (has_read_time()) {
+ delete resume_type_.read_time_;
+ clear_has_resume_type();
+ }
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Target::kQueryFieldNumber;
+const int Target::kDocumentsFieldNumber;
+const int Target::kResumeTokenFieldNumber;
+const int Target::kReadTimeFieldNumber;
+const int Target::kTargetIdFieldNumber;
+const int Target::kOnceFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Target::Target()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Target)
+}
+Target::Target(const Target& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&target_id_, &from.target_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&once_) -
+ reinterpret_cast<char*>(&target_id_)) + sizeof(once_));
+ clear_has_target_type();
+ switch (from.target_type_case()) {
+ case kQuery: {
+ mutable_query()->::google::firestore::v1beta1::Target_QueryTarget::MergeFrom(from.query());
+ break;
+ }
+ case kDocuments: {
+ mutable_documents()->::google::firestore::v1beta1::Target_DocumentsTarget::MergeFrom(from.documents());
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ clear_has_resume_type();
+ switch (from.resume_type_case()) {
+ case kResumeToken: {
+ set_resume_token(from.resume_token());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case RESUME_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Target)
+}
+
+void Target::SharedCtor() {
+ ::memset(&target_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&once_) -
+ reinterpret_cast<char*>(&target_id_)) + sizeof(once_));
+ clear_has_target_type();
+ clear_has_resume_type();
+ _cached_size_ = 0;
+}
+
+Target::~Target() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Target)
+ SharedDtor();
+}
+
+void Target::SharedDtor() {
+ if (has_target_type()) {
+ clear_target_type();
+ }
+ if (has_resume_type()) {
+ clear_resume_type();
+ }
+}
+
+void Target::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Target::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Target& Target::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget();
+ return *internal_default_instance();
+}
+
+Target* Target::New(::google::protobuf::Arena* arena) const {
+ Target* n = new Target;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Target::clear_target_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.Target)
+ switch (target_type_case()) {
+ case kQuery: {
+ delete target_type_.query_;
+ break;
+ }
+ case kDocuments: {
+ delete target_type_.documents_;
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = TARGET_TYPE_NOT_SET;
+}
+
+void Target::clear_resume_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.Target)
+ switch (resume_type_case()) {
+ case kResumeToken: {
+ resume_type_.resume_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kReadTime: {
+ delete resume_type_.read_time_;
+ break;
+ }
+ case RESUME_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[1] = RESUME_TYPE_NOT_SET;
+}
+
+
+void Target::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Target)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ ::memset(&target_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&once_) -
+ reinterpret_cast<char*>(&target_id_)) + sizeof(once_));
+ clear_target_type();
+ clear_resume_type();
+ _internal_metadata_.Clear();
+}
+
+bool Target::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Target)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.Target.QueryTarget query = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_query()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_documents()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes resume_token = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_resume_token()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 target_id = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &target_id_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bool once = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &once_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 11;
+ case 11: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Target)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Target)
+ return false;
+#undef DO_
+}
+
+void Target::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Target)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Target.QueryTarget query = 2;
+ if (has_query()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *target_type_.query_, output);
+ }
+
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
+ if (has_documents()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *target_type_.documents_, output);
+ }
+
+ // bytes resume_token = 4;
+ if (has_resume_token()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 4, this->resume_token(), output);
+ }
+
+ // int32 target_id = 5;
+ if (this->target_id() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->target_id(), output);
+ }
+
+ // bool once = 6;
+ if (this->once() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->once(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 11;
+ if (has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 11, *resume_type_.read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Target)
+}
+
+::google::protobuf::uint8* Target::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Target)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Target.QueryTarget query = 2;
+ if (has_query()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *target_type_.query_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
+ if (has_documents()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *target_type_.documents_, deterministic, target);
+ }
+
+ // bytes resume_token = 4;
+ if (has_resume_token()) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 4, this->resume_token(), target);
+ }
+
+ // int32 target_id = 5;
+ if (this->target_id() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->target_id(), target);
+ }
+
+ // bool once = 6;
+ if (this->once() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->once(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 11;
+ if (has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 11, *resume_type_.read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Target)
+ return target;
+}
+
+size_t Target::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Target)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // int32 target_id = 5;
+ if (this->target_id() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->target_id());
+ }
+
+ // bool once = 6;
+ if (this->once() != 0) {
+ total_size += 1 + 1;
+ }
+
+ switch (target_type_case()) {
+ // .google.firestore.v1beta1.Target.QueryTarget query = 2;
+ case kQuery: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *target_type_.query_);
+ break;
+ }
+ // .google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
+ case kDocuments: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *target_type_.documents_);
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ switch (resume_type_case()) {
+ // bytes resume_token = 4;
+ case kResumeToken: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->resume_token());
+ break;
+ }
+ // .google.protobuf.Timestamp read_time = 11;
+ case kReadTime: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *resume_type_.read_time_);
+ break;
+ }
+ case RESUME_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Target::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Target)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Target* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Target>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Target)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Target)
+ MergeFrom(*source);
+ }
+}
+
+void Target::MergeFrom(const Target& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Target)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.target_id() != 0) {
+ set_target_id(from.target_id());
+ }
+ if (from.once() != 0) {
+ set_once(from.once());
+ }
+ switch (from.target_type_case()) {
+ case kQuery: {
+ mutable_query()->::google::firestore::v1beta1::Target_QueryTarget::MergeFrom(from.query());
+ break;
+ }
+ case kDocuments: {
+ mutable_documents()->::google::firestore::v1beta1::Target_DocumentsTarget::MergeFrom(from.documents());
+ break;
+ }
+ case TARGET_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ switch (from.resume_type_case()) {
+ case kResumeToken: {
+ set_resume_token(from.resume_token());
+ break;
+ }
+ case kReadTime: {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ break;
+ }
+ case RESUME_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Target::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Target)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Target::CopyFrom(const Target& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Target)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Target::IsInitialized() const {
+ return true;
+}
+
+void Target::Swap(Target* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Target::InternalSwap(Target* other) {
+ using std::swap;
+ swap(target_id_, other->target_id_);
+ swap(once_, other->once_);
+ swap(target_type_, other->target_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ swap(resume_type_, other->resume_type_);
+ swap(_oneof_case_[1], other->_oneof_case_[1]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Target::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void TargetChange::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_TargetChange_default_instance_._instance.get_mutable()->cause_ = const_cast< ::google::rpc::Status*>(
+ ::google::rpc::Status::internal_default_instance());
+ ::google::firestore::v1beta1::_TargetChange_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void TargetChange::clear_cause() {
+ if (GetArenaNoVirtual() == NULL && cause_ != NULL) {
+ delete cause_;
+ }
+ cause_ = NULL;
+}
+void TargetChange::clear_read_time() {
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int TargetChange::kTargetChangeTypeFieldNumber;
+const int TargetChange::kTargetIdsFieldNumber;
+const int TargetChange::kCauseFieldNumber;
+const int TargetChange::kResumeTokenFieldNumber;
+const int TargetChange::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+TargetChange::TargetChange()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTargetChange();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.TargetChange)
+}
+TargetChange::TargetChange(const TargetChange& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ target_ids_(from.target_ids_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.resume_token().size() > 0) {
+ resume_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resume_token_);
+ }
+ if (from.has_cause()) {
+ cause_ = new ::google::rpc::Status(*from.cause_);
+ } else {
+ cause_ = NULL;
+ }
+ if (from.has_read_time()) {
+ read_time_ = new ::google::protobuf::Timestamp(*from.read_time_);
+ } else {
+ read_time_ = NULL;
+ }
+ target_change_type_ = from.target_change_type_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.TargetChange)
+}
+
+void TargetChange::SharedCtor() {
+ resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(&cause_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&target_change_type_) -
+ reinterpret_cast<char*>(&cause_)) + sizeof(target_change_type_));
+ _cached_size_ = 0;
+}
+
+TargetChange::~TargetChange() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.TargetChange)
+ SharedDtor();
+}
+
+void TargetChange::SharedDtor() {
+ resume_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete cause_;
+ if (this != internal_default_instance()) delete read_time_;
+}
+
+void TargetChange::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* TargetChange::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const TargetChange& TargetChange::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTargetChange();
+ return *internal_default_instance();
+}
+
+TargetChange* TargetChange::New(::google::protobuf::Arena* arena) const {
+ TargetChange* n = new TargetChange;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void TargetChange::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.TargetChange)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ target_ids_.Clear();
+ resume_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && cause_ != NULL) {
+ delete cause_;
+ }
+ cause_ = NULL;
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+ target_change_type_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool TargetChange::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.TargetChange)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_target_change_type(static_cast< ::google::firestore::v1beta1::TargetChange_TargetChangeType >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated int32 target_ids = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, this->mutable_target_ids())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ 1, 18u, input, this->mutable_target_ids())));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.rpc.Status cause = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_cause()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes resume_token = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_resume_token()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.TargetChange)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.TargetChange)
+ return false;
+#undef DO_
+}
+
+void TargetChange::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.TargetChange)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
+ if (this->target_change_type() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 1, this->target_change_type(), output);
+ }
+
+ // repeated int32 target_ids = 2;
+ if (this->target_ids_size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
+ _target_ids_cached_byte_size_));
+ }
+ for (int i = 0, n = this->target_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
+ this->target_ids(i), output);
+ }
+
+ // .google.rpc.Status cause = 3;
+ if (this->has_cause()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->cause_, output);
+ }
+
+ // bytes resume_token = 4;
+ if (this->resume_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 4, this->resume_token(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 6;
+ if (this->has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *this->read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.TargetChange)
+}
+
+::google::protobuf::uint8* TargetChange::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.TargetChange)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
+ if (this->target_change_type() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->target_change_type(), target);
+ }
+
+ // repeated int32 target_ids = 2;
+ if (this->target_ids_size() > 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
+ 2,
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
+ target);
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
+ static_cast< ::google::protobuf::int32>(
+ _target_ids_cached_byte_size_), target);
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32NoTagToArray(this->target_ids_, target);
+ }
+
+ // .google.rpc.Status cause = 3;
+ if (this->has_cause()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->cause_, deterministic, target);
+ }
+
+ // bytes resume_token = 4;
+ if (this->resume_token().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 4, this->resume_token(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 6;
+ if (this->has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *this->read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.TargetChange)
+ return target;
+}
+
+size_t TargetChange::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.TargetChange)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated int32 target_ids = 2;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->target_ids_);
+ if (data_size > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ static_cast< ::google::protobuf::int32>(data_size));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _target_ids_cached_byte_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ total_size += data_size;
+ }
+
+ // bytes resume_token = 4;
+ if (this->resume_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->resume_token());
+ }
+
+ // .google.rpc.Status cause = 3;
+ if (this->has_cause()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->cause_);
+ }
+
+ // .google.protobuf.Timestamp read_time = 6;
+ if (this->has_read_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->read_time_);
+ }
+
+ // .google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
+ if (this->target_change_type() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->target_change_type());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void TargetChange::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.TargetChange)
+ GOOGLE_DCHECK_NE(&from, this);
+ const TargetChange* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const TargetChange>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.TargetChange)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.TargetChange)
+ MergeFrom(*source);
+ }
+}
+
+void TargetChange::MergeFrom(const TargetChange& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.TargetChange)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ target_ids_.MergeFrom(from.target_ids_);
+ if (from.resume_token().size() > 0) {
+
+ resume_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resume_token_);
+ }
+ if (from.has_cause()) {
+ mutable_cause()->::google::rpc::Status::MergeFrom(from.cause());
+ }
+ if (from.has_read_time()) {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ }
+ if (from.target_change_type() != 0) {
+ set_target_change_type(from.target_change_type());
+ }
+}
+
+void TargetChange::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.TargetChange)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void TargetChange::CopyFrom(const TargetChange& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.TargetChange)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TargetChange::IsInitialized() const {
+ return true;
+}
+
+void TargetChange::Swap(TargetChange* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void TargetChange::InternalSwap(TargetChange* other) {
+ using std::swap;
+ target_ids_.InternalSwap(&other->target_ids_);
+ resume_token_.Swap(&other->resume_token_);
+ swap(cause_, other->cause_);
+ swap(read_time_, other->read_time_);
+ swap(target_change_type_, other->target_change_type_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata TargetChange::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ListCollectionIdsRequest::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListCollectionIdsRequest::kParentFieldNumber;
+const int ListCollectionIdsRequest::kPageSizeFieldNumber;
+const int ListCollectionIdsRequest::kPageTokenFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListCollectionIdsRequest::ListCollectionIdsRequest()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListCollectionIdsRequest();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ListCollectionIdsRequest)
+}
+ListCollectionIdsRequest::ListCollectionIdsRequest(const ListCollectionIdsRequest& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.parent().size() > 0) {
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.page_token().size() > 0) {
+ page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token_);
+ }
+ page_size_ = from.page_size_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ListCollectionIdsRequest)
+}
+
+void ListCollectionIdsRequest::SharedCtor() {
+ parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_size_ = 0;
+ _cached_size_ = 0;
+}
+
+ListCollectionIdsRequest::~ListCollectionIdsRequest() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ListCollectionIdsRequest)
+ SharedDtor();
+}
+
+void ListCollectionIdsRequest::SharedDtor() {
+ parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListCollectionIdsRequest::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListCollectionIdsRequest::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListCollectionIdsRequest& ListCollectionIdsRequest::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListCollectionIdsRequest();
+ return *internal_default_instance();
+}
+
+ListCollectionIdsRequest* ListCollectionIdsRequest::New(::google::protobuf::Arena* arena) const {
+ ListCollectionIdsRequest* n = new ListCollectionIdsRequest;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ListCollectionIdsRequest::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ page_size_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool ListCollectionIdsRequest::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string parent = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_parent()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListCollectionIdsRequest.parent"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 page_size = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &page_size_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string page_token = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_page_token()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->page_token().data(), static_cast<int>(this->page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListCollectionIdsRequest.page_token"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ListCollectionIdsRequest)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ListCollectionIdsRequest)
+ return false;
+#undef DO_
+}
+
+void ListCollectionIdsRequest::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsRequest.parent");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->parent(), output);
+ }
+
+ // int32 page_size = 2;
+ if (this->page_size() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->page_size(), output);
+ }
+
+ // string page_token = 3;
+ if (this->page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->page_token().data(), static_cast<int>(this->page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsRequest.page_token");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 3, this->page_token(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ListCollectionIdsRequest)
+}
+
+::google::protobuf::uint8* ListCollectionIdsRequest::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->parent().data(), static_cast<int>(this->parent().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsRequest.parent");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->parent(), target);
+ }
+
+ // int32 page_size = 2;
+ if (this->page_size() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->page_size(), target);
+ }
+
+ // string page_token = 3;
+ if (this->page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->page_token().data(), static_cast<int>(this->page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsRequest.page_token");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 3, this->page_token(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ListCollectionIdsRequest)
+ return target;
+}
+
+size_t ListCollectionIdsRequest::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string parent = 1;
+ if (this->parent().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->parent());
+ }
+
+ // string page_token = 3;
+ if (this->page_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->page_token());
+ }
+
+ // int32 page_size = 2;
+ if (this->page_size() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->page_size());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListCollectionIdsRequest::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListCollectionIdsRequest* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListCollectionIdsRequest>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ListCollectionIdsRequest)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ListCollectionIdsRequest)
+ MergeFrom(*source);
+ }
+}
+
+void ListCollectionIdsRequest::MergeFrom(const ListCollectionIdsRequest& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.parent().size() > 0) {
+
+ parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
+ }
+ if (from.page_token().size() > 0) {
+
+ page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.page_token_);
+ }
+ if (from.page_size() != 0) {
+ set_page_size(from.page_size());
+ }
+}
+
+void ListCollectionIdsRequest::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListCollectionIdsRequest::CopyFrom(const ListCollectionIdsRequest& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ListCollectionIdsRequest)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListCollectionIdsRequest::IsInitialized() const {
+ return true;
+}
+
+void ListCollectionIdsRequest::Swap(ListCollectionIdsRequest* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ListCollectionIdsRequest::InternalSwap(ListCollectionIdsRequest* other) {
+ using std::swap;
+ parent_.Swap(&other->parent_);
+ page_token_.Swap(&other->page_token_);
+ swap(page_size_, other->page_size_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListCollectionIdsRequest::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ListCollectionIdsResponse::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListCollectionIdsResponse::kCollectionIdsFieldNumber;
+const int ListCollectionIdsResponse::kNextPageTokenFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListCollectionIdsResponse::ListCollectionIdsResponse()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListCollectionIdsResponse();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ListCollectionIdsResponse)
+}
+ListCollectionIdsResponse::ListCollectionIdsResponse(const ListCollectionIdsResponse& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ collection_ids_(from.collection_ids_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.next_page_token().size() > 0) {
+ next_page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ListCollectionIdsResponse)
+}
+
+void ListCollectionIdsResponse::SharedCtor() {
+ next_page_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+ListCollectionIdsResponse::~ListCollectionIdsResponse() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ListCollectionIdsResponse)
+ SharedDtor();
+}
+
+void ListCollectionIdsResponse::SharedDtor() {
+ next_page_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void ListCollectionIdsResponse::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListCollectionIdsResponse::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListCollectionIdsResponse& ListCollectionIdsResponse::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListCollectionIdsResponse();
+ return *internal_default_instance();
+}
+
+ListCollectionIdsResponse* ListCollectionIdsResponse::New(::google::protobuf::Arena* arena) const {
+ ListCollectionIdsResponse* n = new ListCollectionIdsResponse;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ListCollectionIdsResponse::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ collection_ids_.Clear();
+ next_page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool ListCollectionIdsResponse::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated string collection_ids = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->add_collection_ids()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_ids(this->collection_ids_size() - 1).data(),
+ static_cast<int>(this->collection_ids(this->collection_ids_size() - 1).length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string next_page_token = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_next_page_token()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->next_page_token().data(), static_cast<int>(this->next_page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ListCollectionIdsResponse)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ListCollectionIdsResponse)
+ return false;
+#undef DO_
+}
+
+void ListCollectionIdsResponse::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated string collection_ids = 1;
+ for (int i = 0, n = this->collection_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_ids(i).data(), static_cast<int>(this->collection_ids(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids");
+ ::google::protobuf::internal::WireFormatLite::WriteString(
+ 1, this->collection_ids(i), output);
+ }
+
+ // string next_page_token = 2;
+ if (this->next_page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->next_page_token().data(), static_cast<int>(this->next_page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->next_page_token(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ListCollectionIdsResponse)
+}
+
+::google::protobuf::uint8* ListCollectionIdsResponse::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated string collection_ids = 1;
+ for (int i = 0, n = this->collection_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_ids(i).data(), static_cast<int>(this->collection_ids(i).length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids");
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteStringToArray(1, this->collection_ids(i), target);
+ }
+
+ // string next_page_token = 2;
+ if (this->next_page_token().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->next_page_token().data(), static_cast<int>(this->next_page_token().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->next_page_token(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ListCollectionIdsResponse)
+ return target;
+}
+
+size_t ListCollectionIdsResponse::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated string collection_ids = 1;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->collection_ids_size());
+ for (int i = 0, n = this->collection_ids_size(); i < n; i++) {
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->collection_ids(i));
+ }
+
+ // string next_page_token = 2;
+ if (this->next_page_token().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->next_page_token());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListCollectionIdsResponse::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListCollectionIdsResponse* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListCollectionIdsResponse>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ListCollectionIdsResponse)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ListCollectionIdsResponse)
+ MergeFrom(*source);
+ }
+}
+
+void ListCollectionIdsResponse::MergeFrom(const ListCollectionIdsResponse& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ collection_ids_.MergeFrom(from.collection_ids_);
+ if (from.next_page_token().size() > 0) {
+
+ next_page_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_page_token_);
+ }
+}
+
+void ListCollectionIdsResponse::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListCollectionIdsResponse::CopyFrom(const ListCollectionIdsResponse& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ListCollectionIdsResponse)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListCollectionIdsResponse::IsInitialized() const {
+ return true;
+}
+
+void ListCollectionIdsResponse::Swap(ListCollectionIdsResponse* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ListCollectionIdsResponse::InternalSwap(ListCollectionIdsResponse* other) {
+ using std::swap;
+ collection_ids_.InternalSwap(&other->collection_ids_);
+ next_page_token_.Swap(&other->next_page_token_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListCollectionIdsResponse::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.h b/Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.h
new file mode 100644
index 0000000..95dec2d
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/firestore.pb.h
@@ -0,0 +1,8488 @@
+/*
+ * 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: google/firestore/v1beta1/firestore.proto
+
+#ifndef PROTOBUF_google_2ffirestore_2fv1beta1_2ffirestore_2eproto__INCLUDED
+#define PROTOBUF_google_2ffirestore_2fv1beta1_2ffirestore_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/map.h> // IWYU pragma: export
+#include <google/protobuf/map_entry.h>
+#include <google/protobuf/map_field_inl.h>
+#include <google/protobuf/generated_enum_reflection.h>
+#include <google/protobuf/unknown_field_set.h>
+#include "google/api/annotations.pb.h"
+#include "google/firestore/v1beta1/common.pb.h"
+#include "google/firestore/v1beta1/document.pb.h"
+#include "google/firestore/v1beta1/query.pb.h"
+#include "google/firestore/v1beta1/write.pb.h"
+#include <google/protobuf/empty.pb.h>
+#include <google/protobuf/timestamp.pb.h>
+#include "google/rpc/status.pb.h"
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2ffirestore_2fv1beta1_2ffirestore_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[27];
+ 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 InitDefaultsGetDocumentRequestImpl();
+void InitDefaultsGetDocumentRequest();
+void InitDefaultsListDocumentsRequestImpl();
+void InitDefaultsListDocumentsRequest();
+void InitDefaultsListDocumentsResponseImpl();
+void InitDefaultsListDocumentsResponse();
+void InitDefaultsCreateDocumentRequestImpl();
+void InitDefaultsCreateDocumentRequest();
+void InitDefaultsUpdateDocumentRequestImpl();
+void InitDefaultsUpdateDocumentRequest();
+void InitDefaultsDeleteDocumentRequestImpl();
+void InitDefaultsDeleteDocumentRequest();
+void InitDefaultsBatchGetDocumentsRequestImpl();
+void InitDefaultsBatchGetDocumentsRequest();
+void InitDefaultsBatchGetDocumentsResponseImpl();
+void InitDefaultsBatchGetDocumentsResponse();
+void InitDefaultsBeginTransactionRequestImpl();
+void InitDefaultsBeginTransactionRequest();
+void InitDefaultsBeginTransactionResponseImpl();
+void InitDefaultsBeginTransactionResponse();
+void InitDefaultsCommitRequestImpl();
+void InitDefaultsCommitRequest();
+void InitDefaultsCommitResponseImpl();
+void InitDefaultsCommitResponse();
+void InitDefaultsRollbackRequestImpl();
+void InitDefaultsRollbackRequest();
+void InitDefaultsRunQueryRequestImpl();
+void InitDefaultsRunQueryRequest();
+void InitDefaultsRunQueryResponseImpl();
+void InitDefaultsRunQueryResponse();
+void InitDefaultsWriteRequest_LabelsEntry_DoNotUseImpl();
+void InitDefaultsWriteRequest_LabelsEntry_DoNotUse();
+void InitDefaultsWriteRequestImpl();
+void InitDefaultsWriteRequest();
+void InitDefaultsWriteResponseImpl();
+void InitDefaultsWriteResponse();
+void InitDefaultsListenRequest_LabelsEntry_DoNotUseImpl();
+void InitDefaultsListenRequest_LabelsEntry_DoNotUse();
+void InitDefaultsListenRequestImpl();
+void InitDefaultsListenRequest();
+void InitDefaultsListenResponseImpl();
+void InitDefaultsListenResponse();
+void InitDefaultsTarget_DocumentsTargetImpl();
+void InitDefaultsTarget_DocumentsTarget();
+void InitDefaultsTarget_QueryTargetImpl();
+void InitDefaultsTarget_QueryTarget();
+void InitDefaultsTargetImpl();
+void InitDefaultsTarget();
+void InitDefaultsTargetChangeImpl();
+void InitDefaultsTargetChange();
+void InitDefaultsListCollectionIdsRequestImpl();
+void InitDefaultsListCollectionIdsRequest();
+void InitDefaultsListCollectionIdsResponseImpl();
+void InitDefaultsListCollectionIdsResponse();
+inline void InitDefaults() {
+ InitDefaultsGetDocumentRequest();
+ InitDefaultsListDocumentsRequest();
+ InitDefaultsListDocumentsResponse();
+ InitDefaultsCreateDocumentRequest();
+ InitDefaultsUpdateDocumentRequest();
+ InitDefaultsDeleteDocumentRequest();
+ InitDefaultsBatchGetDocumentsRequest();
+ InitDefaultsBatchGetDocumentsResponse();
+ InitDefaultsBeginTransactionRequest();
+ InitDefaultsBeginTransactionResponse();
+ InitDefaultsCommitRequest();
+ InitDefaultsCommitResponse();
+ InitDefaultsRollbackRequest();
+ InitDefaultsRunQueryRequest();
+ InitDefaultsRunQueryResponse();
+ InitDefaultsWriteRequest_LabelsEntry_DoNotUse();
+ InitDefaultsWriteRequest();
+ InitDefaultsWriteResponse();
+ InitDefaultsListenRequest_LabelsEntry_DoNotUse();
+ InitDefaultsListenRequest();
+ InitDefaultsListenResponse();
+ InitDefaultsTarget_DocumentsTarget();
+ InitDefaultsTarget_QueryTarget();
+ InitDefaultsTarget();
+ InitDefaultsTargetChange();
+ InitDefaultsListCollectionIdsRequest();
+ InitDefaultsListCollectionIdsResponse();
+}
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class BatchGetDocumentsRequest;
+class BatchGetDocumentsRequestDefaultTypeInternal;
+extern BatchGetDocumentsRequestDefaultTypeInternal _BatchGetDocumentsRequest_default_instance_;
+class BatchGetDocumentsResponse;
+class BatchGetDocumentsResponseDefaultTypeInternal;
+extern BatchGetDocumentsResponseDefaultTypeInternal _BatchGetDocumentsResponse_default_instance_;
+class BeginTransactionRequest;
+class BeginTransactionRequestDefaultTypeInternal;
+extern BeginTransactionRequestDefaultTypeInternal _BeginTransactionRequest_default_instance_;
+class BeginTransactionResponse;
+class BeginTransactionResponseDefaultTypeInternal;
+extern BeginTransactionResponseDefaultTypeInternal _BeginTransactionResponse_default_instance_;
+class CommitRequest;
+class CommitRequestDefaultTypeInternal;
+extern CommitRequestDefaultTypeInternal _CommitRequest_default_instance_;
+class CommitResponse;
+class CommitResponseDefaultTypeInternal;
+extern CommitResponseDefaultTypeInternal _CommitResponse_default_instance_;
+class CreateDocumentRequest;
+class CreateDocumentRequestDefaultTypeInternal;
+extern CreateDocumentRequestDefaultTypeInternal _CreateDocumentRequest_default_instance_;
+class DeleteDocumentRequest;
+class DeleteDocumentRequestDefaultTypeInternal;
+extern DeleteDocumentRequestDefaultTypeInternal _DeleteDocumentRequest_default_instance_;
+class GetDocumentRequest;
+class GetDocumentRequestDefaultTypeInternal;
+extern GetDocumentRequestDefaultTypeInternal _GetDocumentRequest_default_instance_;
+class ListCollectionIdsRequest;
+class ListCollectionIdsRequestDefaultTypeInternal;
+extern ListCollectionIdsRequestDefaultTypeInternal _ListCollectionIdsRequest_default_instance_;
+class ListCollectionIdsResponse;
+class ListCollectionIdsResponseDefaultTypeInternal;
+extern ListCollectionIdsResponseDefaultTypeInternal _ListCollectionIdsResponse_default_instance_;
+class ListDocumentsRequest;
+class ListDocumentsRequestDefaultTypeInternal;
+extern ListDocumentsRequestDefaultTypeInternal _ListDocumentsRequest_default_instance_;
+class ListDocumentsResponse;
+class ListDocumentsResponseDefaultTypeInternal;
+extern ListDocumentsResponseDefaultTypeInternal _ListDocumentsResponse_default_instance_;
+class ListenRequest;
+class ListenRequestDefaultTypeInternal;
+extern ListenRequestDefaultTypeInternal _ListenRequest_default_instance_;
+class ListenRequest_LabelsEntry_DoNotUse;
+class ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
+extern ListenRequest_LabelsEntry_DoNotUseDefaultTypeInternal _ListenRequest_LabelsEntry_DoNotUse_default_instance_;
+class ListenResponse;
+class ListenResponseDefaultTypeInternal;
+extern ListenResponseDefaultTypeInternal _ListenResponse_default_instance_;
+class RollbackRequest;
+class RollbackRequestDefaultTypeInternal;
+extern RollbackRequestDefaultTypeInternal _RollbackRequest_default_instance_;
+class RunQueryRequest;
+class RunQueryRequestDefaultTypeInternal;
+extern RunQueryRequestDefaultTypeInternal _RunQueryRequest_default_instance_;
+class RunQueryResponse;
+class RunQueryResponseDefaultTypeInternal;
+extern RunQueryResponseDefaultTypeInternal _RunQueryResponse_default_instance_;
+class Target;
+class TargetDefaultTypeInternal;
+extern TargetDefaultTypeInternal _Target_default_instance_;
+class TargetChange;
+class TargetChangeDefaultTypeInternal;
+extern TargetChangeDefaultTypeInternal _TargetChange_default_instance_;
+class Target_DocumentsTarget;
+class Target_DocumentsTargetDefaultTypeInternal;
+extern Target_DocumentsTargetDefaultTypeInternal _Target_DocumentsTarget_default_instance_;
+class Target_QueryTarget;
+class Target_QueryTargetDefaultTypeInternal;
+extern Target_QueryTargetDefaultTypeInternal _Target_QueryTarget_default_instance_;
+class UpdateDocumentRequest;
+class UpdateDocumentRequestDefaultTypeInternal;
+extern UpdateDocumentRequestDefaultTypeInternal _UpdateDocumentRequest_default_instance_;
+class WriteRequest;
+class WriteRequestDefaultTypeInternal;
+extern WriteRequestDefaultTypeInternal _WriteRequest_default_instance_;
+class WriteRequest_LabelsEntry_DoNotUse;
+class WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal;
+extern WriteRequest_LabelsEntry_DoNotUseDefaultTypeInternal _WriteRequest_LabelsEntry_DoNotUse_default_instance_;
+class WriteResponse;
+class WriteResponseDefaultTypeInternal;
+extern WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+enum TargetChange_TargetChangeType {
+ TargetChange_TargetChangeType_NO_CHANGE = 0,
+ TargetChange_TargetChangeType_ADD = 1,
+ TargetChange_TargetChangeType_REMOVE = 2,
+ TargetChange_TargetChangeType_CURRENT = 3,
+ TargetChange_TargetChangeType_RESET = 4,
+ TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ TargetChange_TargetChangeType_TargetChange_TargetChangeType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool TargetChange_TargetChangeType_IsValid(int value);
+const TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MIN = TargetChange_TargetChangeType_NO_CHANGE;
+const TargetChange_TargetChangeType TargetChange_TargetChangeType_TargetChangeType_MAX = TargetChange_TargetChangeType_RESET;
+const int TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE = TargetChange_TargetChangeType_TargetChangeType_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* TargetChange_TargetChangeType_descriptor();
+inline const ::std::string& TargetChange_TargetChangeType_Name(TargetChange_TargetChangeType value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ TargetChange_TargetChangeType_descriptor(), value);
+}
+inline bool TargetChange_TargetChangeType_Parse(
+ const ::std::string& name, TargetChange_TargetChangeType* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<TargetChange_TargetChangeType>(
+ TargetChange_TargetChangeType_descriptor(), name, value);
+}
+// ===================================================================
+
+class GetDocumentRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.GetDocumentRequest) */ {
+ public:
+ GetDocumentRequest();
+ virtual ~GetDocumentRequest();
+
+ GetDocumentRequest(const GetDocumentRequest& from);
+
+ inline GetDocumentRequest& operator=(const GetDocumentRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ GetDocumentRequest(GetDocumentRequest&& from) noexcept
+ : GetDocumentRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline GetDocumentRequest& operator=(GetDocumentRequest&& 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 GetDocumentRequest& default_instance();
+
+ enum ConsistencySelectorCase {
+ kTransaction = 3,
+ kReadTime = 5,
+ CONSISTENCY_SELECTOR_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const GetDocumentRequest* internal_default_instance() {
+ return reinterpret_cast<const GetDocumentRequest*>(
+ &_GetDocumentRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(GetDocumentRequest* other);
+ friend void swap(GetDocumentRequest& a, GetDocumentRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline GetDocumentRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ GetDocumentRequest* 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 GetDocumentRequest& from);
+ void MergeFrom(const GetDocumentRequest& 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(GetDocumentRequest* 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 -------------------------------------------------------
+
+ // string name = 1;
+ void clear_name();
+ static const int kNameFieldNumber = 1;
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
+
+ // .google.firestore.v1beta1.DocumentMask mask = 2;
+ bool has_mask() const;
+ void clear_mask();
+ static const int kMaskFieldNumber = 2;
+ const ::google::firestore::v1beta1::DocumentMask& mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_mask();
+ void set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask);
+
+ // bytes transaction = 3;
+ private:
+ bool has_transaction() const;
+ public:
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 3;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // .google.protobuf.Timestamp read_time = 5;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 5;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ ConsistencySelectorCase consistency_selector_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.GetDocumentRequest)
+ private:
+ void set_has_transaction();
+ void set_has_read_time();
+
+ inline bool has_consistency_selector() const;
+ void clear_consistency_selector();
+ inline void clear_has_consistency_selector();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
+ ::google::firestore::v1beta1::DocumentMask* mask_;
+ union ConsistencySelectorUnion {
+ ConsistencySelectorUnion() {}
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ ::google::protobuf::Timestamp* read_time_;
+ } consistency_selector_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsGetDocumentRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class ListDocumentsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ListDocumentsRequest) */ {
+ public:
+ ListDocumentsRequest();
+ virtual ~ListDocumentsRequest();
+
+ ListDocumentsRequest(const ListDocumentsRequest& from);
+
+ inline ListDocumentsRequest& operator=(const ListDocumentsRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListDocumentsRequest(ListDocumentsRequest&& from) noexcept
+ : ListDocumentsRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline ListDocumentsRequest& operator=(ListDocumentsRequest&& 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 ListDocumentsRequest& default_instance();
+
+ enum ConsistencySelectorCase {
+ kTransaction = 8,
+ kReadTime = 10,
+ CONSISTENCY_SELECTOR_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListDocumentsRequest* internal_default_instance() {
+ return reinterpret_cast<const ListDocumentsRequest*>(
+ &_ListDocumentsRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(ListDocumentsRequest* other);
+ friend void swap(ListDocumentsRequest& a, ListDocumentsRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListDocumentsRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListDocumentsRequest* 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 ListDocumentsRequest& from);
+ void MergeFrom(const ListDocumentsRequest& 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(ListDocumentsRequest* 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 -------------------------------------------------------
+
+ // string parent = 1;
+ void clear_parent();
+ static const int kParentFieldNumber = 1;
+ const ::std::string& parent() const;
+ void set_parent(const ::std::string& value);
+ #if LANG_CXX11
+ void set_parent(::std::string&& value);
+ #endif
+ void set_parent(const char* value);
+ void set_parent(const char* value, size_t size);
+ ::std::string* mutable_parent();
+ ::std::string* release_parent();
+ void set_allocated_parent(::std::string* parent);
+
+ // string collection_id = 2;
+ void clear_collection_id();
+ static const int kCollectionIdFieldNumber = 2;
+ const ::std::string& collection_id() const;
+ void set_collection_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_collection_id(::std::string&& value);
+ #endif
+ void set_collection_id(const char* value);
+ void set_collection_id(const char* value, size_t size);
+ ::std::string* mutable_collection_id();
+ ::std::string* release_collection_id();
+ void set_allocated_collection_id(::std::string* collection_id);
+
+ // string page_token = 4;
+ void clear_page_token();
+ static const int kPageTokenFieldNumber = 4;
+ const ::std::string& page_token() const;
+ void set_page_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_page_token(::std::string&& value);
+ #endif
+ void set_page_token(const char* value);
+ void set_page_token(const char* value, size_t size);
+ ::std::string* mutable_page_token();
+ ::std::string* release_page_token();
+ void set_allocated_page_token(::std::string* page_token);
+
+ // string order_by = 6;
+ void clear_order_by();
+ static const int kOrderByFieldNumber = 6;
+ const ::std::string& order_by() const;
+ void set_order_by(const ::std::string& value);
+ #if LANG_CXX11
+ void set_order_by(::std::string&& value);
+ #endif
+ void set_order_by(const char* value);
+ void set_order_by(const char* value, size_t size);
+ ::std::string* mutable_order_by();
+ ::std::string* release_order_by();
+ void set_allocated_order_by(::std::string* order_by);
+
+ // .google.firestore.v1beta1.DocumentMask mask = 7;
+ bool has_mask() const;
+ void clear_mask();
+ static const int kMaskFieldNumber = 7;
+ const ::google::firestore::v1beta1::DocumentMask& mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_mask();
+ void set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask);
+
+ // int32 page_size = 3;
+ void clear_page_size();
+ static const int kPageSizeFieldNumber = 3;
+ ::google::protobuf::int32 page_size() const;
+ void set_page_size(::google::protobuf::int32 value);
+
+ // bool show_missing = 12;
+ void clear_show_missing();
+ static const int kShowMissingFieldNumber = 12;
+ bool show_missing() const;
+ void set_show_missing(bool value);
+
+ // bytes transaction = 8;
+ private:
+ bool has_transaction() const;
+ public:
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 8;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // .google.protobuf.Timestamp read_time = 10;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 10;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ ConsistencySelectorCase consistency_selector_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ListDocumentsRequest)
+ private:
+ void set_has_transaction();
+ void set_has_read_time();
+
+ inline bool has_consistency_selector() const;
+ void clear_consistency_selector();
+ inline void clear_has_consistency_selector();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr parent_;
+ ::google::protobuf::internal::ArenaStringPtr collection_id_;
+ ::google::protobuf::internal::ArenaStringPtr page_token_;
+ ::google::protobuf::internal::ArenaStringPtr order_by_;
+ ::google::firestore::v1beta1::DocumentMask* mask_;
+ ::google::protobuf::int32 page_size_;
+ bool show_missing_;
+ union ConsistencySelectorUnion {
+ ConsistencySelectorUnion() {}
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ ::google::protobuf::Timestamp* read_time_;
+ } consistency_selector_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListDocumentsRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class ListDocumentsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ListDocumentsResponse) */ {
+ public:
+ ListDocumentsResponse();
+ virtual ~ListDocumentsResponse();
+
+ ListDocumentsResponse(const ListDocumentsResponse& from);
+
+ inline ListDocumentsResponse& operator=(const ListDocumentsResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListDocumentsResponse(ListDocumentsResponse&& from) noexcept
+ : ListDocumentsResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline ListDocumentsResponse& operator=(ListDocumentsResponse&& 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 ListDocumentsResponse& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListDocumentsResponse* internal_default_instance() {
+ return reinterpret_cast<const ListDocumentsResponse*>(
+ &_ListDocumentsResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void Swap(ListDocumentsResponse* other);
+ friend void swap(ListDocumentsResponse& a, ListDocumentsResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListDocumentsResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListDocumentsResponse* 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 ListDocumentsResponse& from);
+ void MergeFrom(const ListDocumentsResponse& 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(ListDocumentsResponse* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Document documents = 1;
+ int documents_size() const;
+ void clear_documents();
+ static const int kDocumentsFieldNumber = 1;
+ const ::google::firestore::v1beta1::Document& documents(int index) const;
+ ::google::firestore::v1beta1::Document* mutable_documents(int index);
+ ::google::firestore::v1beta1::Document* add_documents();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Document >*
+ mutable_documents();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Document >&
+ documents() const;
+
+ // string next_page_token = 2;
+ void clear_next_page_token();
+ static const int kNextPageTokenFieldNumber = 2;
+ const ::std::string& next_page_token() const;
+ void set_next_page_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_next_page_token(::std::string&& value);
+ #endif
+ void set_next_page_token(const char* value);
+ void set_next_page_token(const char* value, size_t size);
+ ::std::string* mutable_next_page_token();
+ ::std::string* release_next_page_token();
+ void set_allocated_next_page_token(::std::string* next_page_token);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ListDocumentsResponse)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Document > documents_;
+ ::google::protobuf::internal::ArenaStringPtr next_page_token_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListDocumentsResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class CreateDocumentRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.CreateDocumentRequest) */ {
+ public:
+ CreateDocumentRequest();
+ virtual ~CreateDocumentRequest();
+
+ CreateDocumentRequest(const CreateDocumentRequest& from);
+
+ inline CreateDocumentRequest& operator=(const CreateDocumentRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ CreateDocumentRequest(CreateDocumentRequest&& from) noexcept
+ : CreateDocumentRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline CreateDocumentRequest& operator=(CreateDocumentRequest&& 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 CreateDocumentRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CreateDocumentRequest* internal_default_instance() {
+ return reinterpret_cast<const CreateDocumentRequest*>(
+ &_CreateDocumentRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void Swap(CreateDocumentRequest* other);
+ friend void swap(CreateDocumentRequest& a, CreateDocumentRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline CreateDocumentRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ CreateDocumentRequest* 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 CreateDocumentRequest& from);
+ void MergeFrom(const CreateDocumentRequest& 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(CreateDocumentRequest* 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 -------------------------------------------------------
+
+ // string parent = 1;
+ void clear_parent();
+ static const int kParentFieldNumber = 1;
+ const ::std::string& parent() const;
+ void set_parent(const ::std::string& value);
+ #if LANG_CXX11
+ void set_parent(::std::string&& value);
+ #endif
+ void set_parent(const char* value);
+ void set_parent(const char* value, size_t size);
+ ::std::string* mutable_parent();
+ ::std::string* release_parent();
+ void set_allocated_parent(::std::string* parent);
+
+ // string collection_id = 2;
+ void clear_collection_id();
+ static const int kCollectionIdFieldNumber = 2;
+ const ::std::string& collection_id() const;
+ void set_collection_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_collection_id(::std::string&& value);
+ #endif
+ void set_collection_id(const char* value);
+ void set_collection_id(const char* value, size_t size);
+ ::std::string* mutable_collection_id();
+ ::std::string* release_collection_id();
+ void set_allocated_collection_id(::std::string* collection_id);
+
+ // string document_id = 3;
+ void clear_document_id();
+ static const int kDocumentIdFieldNumber = 3;
+ const ::std::string& document_id() const;
+ void set_document_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_document_id(::std::string&& value);
+ #endif
+ void set_document_id(const char* value);
+ void set_document_id(const char* value, size_t size);
+ ::std::string* mutable_document_id();
+ ::std::string* release_document_id();
+ void set_allocated_document_id(::std::string* document_id);
+
+ // .google.firestore.v1beta1.Document document = 4;
+ bool has_document() const;
+ void clear_document();
+ static const int kDocumentFieldNumber = 4;
+ const ::google::firestore::v1beta1::Document& document() const;
+ ::google::firestore::v1beta1::Document* release_document();
+ ::google::firestore::v1beta1::Document* mutable_document();
+ void set_allocated_document(::google::firestore::v1beta1::Document* document);
+
+ // .google.firestore.v1beta1.DocumentMask mask = 5;
+ bool has_mask() const;
+ void clear_mask();
+ static const int kMaskFieldNumber = 5;
+ const ::google::firestore::v1beta1::DocumentMask& mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_mask();
+ void set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.CreateDocumentRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr parent_;
+ ::google::protobuf::internal::ArenaStringPtr collection_id_;
+ ::google::protobuf::internal::ArenaStringPtr document_id_;
+ ::google::firestore::v1beta1::Document* document_;
+ ::google::firestore::v1beta1::DocumentMask* mask_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCreateDocumentRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class UpdateDocumentRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.UpdateDocumentRequest) */ {
+ public:
+ UpdateDocumentRequest();
+ virtual ~UpdateDocumentRequest();
+
+ UpdateDocumentRequest(const UpdateDocumentRequest& from);
+
+ inline UpdateDocumentRequest& operator=(const UpdateDocumentRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ UpdateDocumentRequest(UpdateDocumentRequest&& from) noexcept
+ : UpdateDocumentRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline UpdateDocumentRequest& operator=(UpdateDocumentRequest&& 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 UpdateDocumentRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const UpdateDocumentRequest* internal_default_instance() {
+ return reinterpret_cast<const UpdateDocumentRequest*>(
+ &_UpdateDocumentRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 4;
+
+ void Swap(UpdateDocumentRequest* other);
+ friend void swap(UpdateDocumentRequest& a, UpdateDocumentRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline UpdateDocumentRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ UpdateDocumentRequest* 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 UpdateDocumentRequest& from);
+ void MergeFrom(const UpdateDocumentRequest& 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(UpdateDocumentRequest* 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.firestore.v1beta1.Document document = 1;
+ bool has_document() const;
+ void clear_document();
+ static const int kDocumentFieldNumber = 1;
+ const ::google::firestore::v1beta1::Document& document() const;
+ ::google::firestore::v1beta1::Document* release_document();
+ ::google::firestore::v1beta1::Document* mutable_document();
+ void set_allocated_document(::google::firestore::v1beta1::Document* document);
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 2;
+ bool has_update_mask() const;
+ void clear_update_mask();
+ static const int kUpdateMaskFieldNumber = 2;
+ const ::google::firestore::v1beta1::DocumentMask& update_mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_update_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_update_mask();
+ void set_allocated_update_mask(::google::firestore::v1beta1::DocumentMask* update_mask);
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ bool has_mask() const;
+ void clear_mask();
+ static const int kMaskFieldNumber = 3;
+ const ::google::firestore::v1beta1::DocumentMask& mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_mask();
+ void set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask);
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ bool has_current_document() const;
+ void clear_current_document();
+ static const int kCurrentDocumentFieldNumber = 4;
+ const ::google::firestore::v1beta1::Precondition& current_document() const;
+ ::google::firestore::v1beta1::Precondition* release_current_document();
+ ::google::firestore::v1beta1::Precondition* mutable_current_document();
+ void set_allocated_current_document(::google::firestore::v1beta1::Precondition* current_document);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.UpdateDocumentRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::firestore::v1beta1::Document* document_;
+ ::google::firestore::v1beta1::DocumentMask* update_mask_;
+ ::google::firestore::v1beta1::DocumentMask* mask_;
+ ::google::firestore::v1beta1::Precondition* current_document_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsUpdateDocumentRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class DeleteDocumentRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DeleteDocumentRequest) */ {
+ public:
+ DeleteDocumentRequest();
+ virtual ~DeleteDocumentRequest();
+
+ DeleteDocumentRequest(const DeleteDocumentRequest& from);
+
+ inline DeleteDocumentRequest& operator=(const DeleteDocumentRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DeleteDocumentRequest(DeleteDocumentRequest&& from) noexcept
+ : DeleteDocumentRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline DeleteDocumentRequest& operator=(DeleteDocumentRequest&& 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 DeleteDocumentRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DeleteDocumentRequest* internal_default_instance() {
+ return reinterpret_cast<const DeleteDocumentRequest*>(
+ &_DeleteDocumentRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 5;
+
+ void Swap(DeleteDocumentRequest* other);
+ friend void swap(DeleteDocumentRequest& a, DeleteDocumentRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DeleteDocumentRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DeleteDocumentRequest* 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 DeleteDocumentRequest& from);
+ void MergeFrom(const DeleteDocumentRequest& 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(DeleteDocumentRequest* 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 -------------------------------------------------------
+
+ // string name = 1;
+ void clear_name();
+ static const int kNameFieldNumber = 1;
+ const ::std::string& name() const;
+ void set_name(const ::std::string& value);
+ #if LANG_CXX11
+ void set_name(::std::string&& value);
+ #endif
+ void set_name(const char* value);
+ void set_name(const char* value, size_t size);
+ ::std::string* mutable_name();
+ ::std::string* release_name();
+ void set_allocated_name(::std::string* name);
+
+ // .google.firestore.v1beta1.Precondition current_document = 2;
+ bool has_current_document() const;
+ void clear_current_document();
+ static const int kCurrentDocumentFieldNumber = 2;
+ const ::google::firestore::v1beta1::Precondition& current_document() const;
+ ::google::firestore::v1beta1::Precondition* release_current_document();
+ ::google::firestore::v1beta1::Precondition* mutable_current_document();
+ void set_allocated_current_document(::google::firestore::v1beta1::Precondition* current_document);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DeleteDocumentRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr name_;
+ ::google::firestore::v1beta1::Precondition* current_document_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsDeleteDocumentRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class BatchGetDocumentsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.BatchGetDocumentsRequest) */ {
+ public:
+ BatchGetDocumentsRequest();
+ virtual ~BatchGetDocumentsRequest();
+
+ BatchGetDocumentsRequest(const BatchGetDocumentsRequest& from);
+
+ inline BatchGetDocumentsRequest& operator=(const BatchGetDocumentsRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ BatchGetDocumentsRequest(BatchGetDocumentsRequest&& from) noexcept
+ : BatchGetDocumentsRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline BatchGetDocumentsRequest& operator=(BatchGetDocumentsRequest&& 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 BatchGetDocumentsRequest& default_instance();
+
+ enum ConsistencySelectorCase {
+ kTransaction = 4,
+ kNewTransaction = 5,
+ kReadTime = 7,
+ CONSISTENCY_SELECTOR_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BatchGetDocumentsRequest* internal_default_instance() {
+ return reinterpret_cast<const BatchGetDocumentsRequest*>(
+ &_BatchGetDocumentsRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 6;
+
+ void Swap(BatchGetDocumentsRequest* other);
+ friend void swap(BatchGetDocumentsRequest& a, BatchGetDocumentsRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline BatchGetDocumentsRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ BatchGetDocumentsRequest* 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 BatchGetDocumentsRequest& from);
+ void MergeFrom(const BatchGetDocumentsRequest& 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(BatchGetDocumentsRequest* 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 -------------------------------------------------------
+
+ // repeated string documents = 2;
+ int documents_size() const;
+ void clear_documents();
+ static const int kDocumentsFieldNumber = 2;
+ const ::std::string& documents(int index) const;
+ ::std::string* mutable_documents(int index);
+ void set_documents(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_documents(int index, ::std::string&& value);
+ #endif
+ void set_documents(int index, const char* value);
+ void set_documents(int index, const char* value, size_t size);
+ ::std::string* add_documents();
+ void add_documents(const ::std::string& value);
+ #if LANG_CXX11
+ void add_documents(::std::string&& value);
+ #endif
+ void add_documents(const char* value);
+ void add_documents(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& documents() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_documents();
+
+ // string database = 1;
+ void clear_database();
+ static const int kDatabaseFieldNumber = 1;
+ const ::std::string& database() const;
+ void set_database(const ::std::string& value);
+ #if LANG_CXX11
+ void set_database(::std::string&& value);
+ #endif
+ void set_database(const char* value);
+ void set_database(const char* value, size_t size);
+ ::std::string* mutable_database();
+ ::std::string* release_database();
+ void set_allocated_database(::std::string* database);
+
+ // .google.firestore.v1beta1.DocumentMask mask = 3;
+ bool has_mask() const;
+ void clear_mask();
+ static const int kMaskFieldNumber = 3;
+ const ::google::firestore::v1beta1::DocumentMask& mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_mask();
+ void set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask);
+
+ // bytes transaction = 4;
+ private:
+ bool has_transaction() const;
+ public:
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 4;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 5;
+ bool has_new_transaction() const;
+ void clear_new_transaction();
+ static const int kNewTransactionFieldNumber = 5;
+ const ::google::firestore::v1beta1::TransactionOptions& new_transaction() const;
+ ::google::firestore::v1beta1::TransactionOptions* release_new_transaction();
+ ::google::firestore::v1beta1::TransactionOptions* mutable_new_transaction();
+ void set_allocated_new_transaction(::google::firestore::v1beta1::TransactionOptions* new_transaction);
+
+ // .google.protobuf.Timestamp read_time = 7;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 7;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ ConsistencySelectorCase consistency_selector_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.BatchGetDocumentsRequest)
+ private:
+ void set_has_transaction();
+ void set_has_new_transaction();
+ void set_has_read_time();
+
+ inline bool has_consistency_selector() const;
+ void clear_consistency_selector();
+ inline void clear_has_consistency_selector();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> documents_;
+ ::google::protobuf::internal::ArenaStringPtr database_;
+ ::google::firestore::v1beta1::DocumentMask* mask_;
+ union ConsistencySelectorUnion {
+ ConsistencySelectorUnion() {}
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ ::google::firestore::v1beta1::TransactionOptions* new_transaction_;
+ ::google::protobuf::Timestamp* read_time_;
+ } consistency_selector_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBatchGetDocumentsRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class BatchGetDocumentsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.BatchGetDocumentsResponse) */ {
+ public:
+ BatchGetDocumentsResponse();
+ virtual ~BatchGetDocumentsResponse();
+
+ BatchGetDocumentsResponse(const BatchGetDocumentsResponse& from);
+
+ inline BatchGetDocumentsResponse& operator=(const BatchGetDocumentsResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ BatchGetDocumentsResponse(BatchGetDocumentsResponse&& from) noexcept
+ : BatchGetDocumentsResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline BatchGetDocumentsResponse& operator=(BatchGetDocumentsResponse&& 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 BatchGetDocumentsResponse& default_instance();
+
+ enum ResultCase {
+ kFound = 1,
+ kMissing = 2,
+ RESULT_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BatchGetDocumentsResponse* internal_default_instance() {
+ return reinterpret_cast<const BatchGetDocumentsResponse*>(
+ &_BatchGetDocumentsResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 7;
+
+ void Swap(BatchGetDocumentsResponse* other);
+ friend void swap(BatchGetDocumentsResponse& a, BatchGetDocumentsResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline BatchGetDocumentsResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ BatchGetDocumentsResponse* 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 BatchGetDocumentsResponse& from);
+ void MergeFrom(const BatchGetDocumentsResponse& 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(BatchGetDocumentsResponse* 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 transaction = 3;
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 3;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // .google.protobuf.Timestamp read_time = 4;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 4;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ // .google.firestore.v1beta1.Document found = 1;
+ bool has_found() const;
+ void clear_found();
+ static const int kFoundFieldNumber = 1;
+ const ::google::firestore::v1beta1::Document& found() const;
+ ::google::firestore::v1beta1::Document* release_found();
+ ::google::firestore::v1beta1::Document* mutable_found();
+ void set_allocated_found(::google::firestore::v1beta1::Document* found);
+
+ // string missing = 2;
+ private:
+ bool has_missing() const;
+ public:
+ void clear_missing();
+ static const int kMissingFieldNumber = 2;
+ const ::std::string& missing() const;
+ void set_missing(const ::std::string& value);
+ #if LANG_CXX11
+ void set_missing(::std::string&& value);
+ #endif
+ void set_missing(const char* value);
+ void set_missing(const char* value, size_t size);
+ ::std::string* mutable_missing();
+ ::std::string* release_missing();
+ void set_allocated_missing(::std::string* missing);
+
+ ResultCase result_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.BatchGetDocumentsResponse)
+ private:
+ void set_has_found();
+ void set_has_missing();
+
+ inline bool has_result() const;
+ void clear_result();
+ inline void clear_has_result();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ ::google::protobuf::Timestamp* read_time_;
+ union ResultUnion {
+ ResultUnion() {}
+ ::google::firestore::v1beta1::Document* found_;
+ ::google::protobuf::internal::ArenaStringPtr missing_;
+ } result_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBatchGetDocumentsResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class BeginTransactionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.BeginTransactionRequest) */ {
+ public:
+ BeginTransactionRequest();
+ virtual ~BeginTransactionRequest();
+
+ BeginTransactionRequest(const BeginTransactionRequest& from);
+
+ inline BeginTransactionRequest& operator=(const BeginTransactionRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ BeginTransactionRequest(BeginTransactionRequest&& from) noexcept
+ : BeginTransactionRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline BeginTransactionRequest& operator=(BeginTransactionRequest&& 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 BeginTransactionRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BeginTransactionRequest* internal_default_instance() {
+ return reinterpret_cast<const BeginTransactionRequest*>(
+ &_BeginTransactionRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 8;
+
+ void Swap(BeginTransactionRequest* other);
+ friend void swap(BeginTransactionRequest& a, BeginTransactionRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline BeginTransactionRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ BeginTransactionRequest* 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 BeginTransactionRequest& from);
+ void MergeFrom(const BeginTransactionRequest& 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(BeginTransactionRequest* 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 -------------------------------------------------------
+
+ // string database = 1;
+ void clear_database();
+ static const int kDatabaseFieldNumber = 1;
+ const ::std::string& database() const;
+ void set_database(const ::std::string& value);
+ #if LANG_CXX11
+ void set_database(::std::string&& value);
+ #endif
+ void set_database(const char* value);
+ void set_database(const char* value, size_t size);
+ ::std::string* mutable_database();
+ ::std::string* release_database();
+ void set_allocated_database(::std::string* database);
+
+ // .google.firestore.v1beta1.TransactionOptions options = 2;
+ bool has_options() const;
+ void clear_options();
+ static const int kOptionsFieldNumber = 2;
+ const ::google::firestore::v1beta1::TransactionOptions& options() const;
+ ::google::firestore::v1beta1::TransactionOptions* release_options();
+ ::google::firestore::v1beta1::TransactionOptions* mutable_options();
+ void set_allocated_options(::google::firestore::v1beta1::TransactionOptions* options);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.BeginTransactionRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr database_;
+ ::google::firestore::v1beta1::TransactionOptions* options_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBeginTransactionRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class BeginTransactionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.BeginTransactionResponse) */ {
+ public:
+ BeginTransactionResponse();
+ virtual ~BeginTransactionResponse();
+
+ BeginTransactionResponse(const BeginTransactionResponse& from);
+
+ inline BeginTransactionResponse& operator=(const BeginTransactionResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ BeginTransactionResponse(BeginTransactionResponse&& from) noexcept
+ : BeginTransactionResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline BeginTransactionResponse& operator=(BeginTransactionResponse&& 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 BeginTransactionResponse& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BeginTransactionResponse* internal_default_instance() {
+ return reinterpret_cast<const BeginTransactionResponse*>(
+ &_BeginTransactionResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 9;
+
+ void Swap(BeginTransactionResponse* other);
+ friend void swap(BeginTransactionResponse& a, BeginTransactionResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline BeginTransactionResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ BeginTransactionResponse* 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 BeginTransactionResponse& from);
+ void MergeFrom(const BeginTransactionResponse& 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(BeginTransactionResponse* 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 transaction = 1;
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 1;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.BeginTransactionResponse)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsBeginTransactionResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class CommitRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.CommitRequest) */ {
+ public:
+ CommitRequest();
+ virtual ~CommitRequest();
+
+ CommitRequest(const CommitRequest& from);
+
+ inline CommitRequest& operator=(const CommitRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ CommitRequest(CommitRequest&& from) noexcept
+ : CommitRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline CommitRequest& operator=(CommitRequest&& 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 CommitRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CommitRequest* internal_default_instance() {
+ return reinterpret_cast<const CommitRequest*>(
+ &_CommitRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 10;
+
+ void Swap(CommitRequest* other);
+ friend void swap(CommitRequest& a, CommitRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline CommitRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ CommitRequest* 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 CommitRequest& from);
+ void MergeFrom(const CommitRequest& 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(CommitRequest* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Write writes = 2;
+ int writes_size() const;
+ void clear_writes();
+ static const int kWritesFieldNumber = 2;
+ const ::google::firestore::v1beta1::Write& writes(int index) const;
+ ::google::firestore::v1beta1::Write* mutable_writes(int index);
+ ::google::firestore::v1beta1::Write* add_writes();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >*
+ mutable_writes();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >&
+ writes() const;
+
+ // string database = 1;
+ void clear_database();
+ static const int kDatabaseFieldNumber = 1;
+ const ::std::string& database() const;
+ void set_database(const ::std::string& value);
+ #if LANG_CXX11
+ void set_database(::std::string&& value);
+ #endif
+ void set_database(const char* value);
+ void set_database(const char* value, size_t size);
+ ::std::string* mutable_database();
+ ::std::string* release_database();
+ void set_allocated_database(::std::string* database);
+
+ // bytes transaction = 3;
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 3;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.CommitRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write > writes_;
+ ::google::protobuf::internal::ArenaStringPtr database_;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCommitRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class CommitResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.CommitResponse) */ {
+ public:
+ CommitResponse();
+ virtual ~CommitResponse();
+
+ CommitResponse(const CommitResponse& from);
+
+ inline CommitResponse& operator=(const CommitResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ CommitResponse(CommitResponse&& from) noexcept
+ : CommitResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline CommitResponse& operator=(CommitResponse&& 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 CommitResponse& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CommitResponse* internal_default_instance() {
+ return reinterpret_cast<const CommitResponse*>(
+ &_CommitResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 11;
+
+ void Swap(CommitResponse* other);
+ friend void swap(CommitResponse& a, CommitResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline CommitResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ CommitResponse* 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 CommitResponse& from);
+ void MergeFrom(const CommitResponse& 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(CommitResponse* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 1;
+ int write_results_size() const;
+ void clear_write_results();
+ static const int kWriteResultsFieldNumber = 1;
+ const ::google::firestore::v1beta1::WriteResult& write_results(int index) const;
+ ::google::firestore::v1beta1::WriteResult* mutable_write_results(int index);
+ ::google::firestore::v1beta1::WriteResult* add_write_results();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >*
+ mutable_write_results();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >&
+ write_results() const;
+
+ // .google.protobuf.Timestamp commit_time = 2;
+ bool has_commit_time() const;
+ void clear_commit_time();
+ static const int kCommitTimeFieldNumber = 2;
+ const ::google::protobuf::Timestamp& commit_time() const;
+ ::google::protobuf::Timestamp* release_commit_time();
+ ::google::protobuf::Timestamp* mutable_commit_time();
+ void set_allocated_commit_time(::google::protobuf::Timestamp* commit_time);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.CommitResponse)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult > write_results_;
+ ::google::protobuf::Timestamp* commit_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsCommitResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class RollbackRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.RollbackRequest) */ {
+ public:
+ RollbackRequest();
+ virtual ~RollbackRequest();
+
+ RollbackRequest(const RollbackRequest& from);
+
+ inline RollbackRequest& operator=(const RollbackRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ RollbackRequest(RollbackRequest&& from) noexcept
+ : RollbackRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline RollbackRequest& operator=(RollbackRequest&& 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 RollbackRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RollbackRequest* internal_default_instance() {
+ return reinterpret_cast<const RollbackRequest*>(
+ &_RollbackRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 12;
+
+ void Swap(RollbackRequest* other);
+ friend void swap(RollbackRequest& a, RollbackRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline RollbackRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ RollbackRequest* 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 RollbackRequest& from);
+ void MergeFrom(const RollbackRequest& 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(RollbackRequest* 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 -------------------------------------------------------
+
+ // string database = 1;
+ void clear_database();
+ static const int kDatabaseFieldNumber = 1;
+ const ::std::string& database() const;
+ void set_database(const ::std::string& value);
+ #if LANG_CXX11
+ void set_database(::std::string&& value);
+ #endif
+ void set_database(const char* value);
+ void set_database(const char* value, size_t size);
+ ::std::string* mutable_database();
+ ::std::string* release_database();
+ void set_allocated_database(::std::string* database);
+
+ // bytes transaction = 2;
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 2;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.RollbackRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr database_;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRollbackRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class RunQueryRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.RunQueryRequest) */ {
+ public:
+ RunQueryRequest();
+ virtual ~RunQueryRequest();
+
+ RunQueryRequest(const RunQueryRequest& from);
+
+ inline RunQueryRequest& operator=(const RunQueryRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ RunQueryRequest(RunQueryRequest&& from) noexcept
+ : RunQueryRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline RunQueryRequest& operator=(RunQueryRequest&& 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 RunQueryRequest& default_instance();
+
+ enum QueryTypeCase {
+ kStructuredQuery = 2,
+ QUERY_TYPE_NOT_SET = 0,
+ };
+
+ enum ConsistencySelectorCase {
+ kTransaction = 5,
+ kNewTransaction = 6,
+ kReadTime = 7,
+ CONSISTENCY_SELECTOR_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RunQueryRequest* internal_default_instance() {
+ return reinterpret_cast<const RunQueryRequest*>(
+ &_RunQueryRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 13;
+
+ void Swap(RunQueryRequest* other);
+ friend void swap(RunQueryRequest& a, RunQueryRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline RunQueryRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ RunQueryRequest* 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 RunQueryRequest& from);
+ void MergeFrom(const RunQueryRequest& 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(RunQueryRequest* 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 -------------------------------------------------------
+
+ // string parent = 1;
+ void clear_parent();
+ static const int kParentFieldNumber = 1;
+ const ::std::string& parent() const;
+ void set_parent(const ::std::string& value);
+ #if LANG_CXX11
+ void set_parent(::std::string&& value);
+ #endif
+ void set_parent(const char* value);
+ void set_parent(const char* value, size_t size);
+ ::std::string* mutable_parent();
+ ::std::string* release_parent();
+ void set_allocated_parent(::std::string* parent);
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ bool has_structured_query() const;
+ void clear_structured_query();
+ static const int kStructuredQueryFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery& structured_query() const;
+ ::google::firestore::v1beta1::StructuredQuery* release_structured_query();
+ ::google::firestore::v1beta1::StructuredQuery* mutable_structured_query();
+ void set_allocated_structured_query(::google::firestore::v1beta1::StructuredQuery* structured_query);
+
+ // bytes transaction = 5;
+ private:
+ bool has_transaction() const;
+ public:
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 5;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // .google.firestore.v1beta1.TransactionOptions new_transaction = 6;
+ bool has_new_transaction() const;
+ void clear_new_transaction();
+ static const int kNewTransactionFieldNumber = 6;
+ const ::google::firestore::v1beta1::TransactionOptions& new_transaction() const;
+ ::google::firestore::v1beta1::TransactionOptions* release_new_transaction();
+ ::google::firestore::v1beta1::TransactionOptions* mutable_new_transaction();
+ void set_allocated_new_transaction(::google::firestore::v1beta1::TransactionOptions* new_transaction);
+
+ // .google.protobuf.Timestamp read_time = 7;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 7;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ QueryTypeCase query_type_case() const;
+ ConsistencySelectorCase consistency_selector_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.RunQueryRequest)
+ private:
+ void set_has_structured_query();
+ void set_has_transaction();
+ void set_has_new_transaction();
+ void set_has_read_time();
+
+ inline bool has_query_type() const;
+ void clear_query_type();
+ inline void clear_has_query_type();
+
+ inline bool has_consistency_selector() const;
+ void clear_consistency_selector();
+ inline void clear_has_consistency_selector();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr parent_;
+ union QueryTypeUnion {
+ QueryTypeUnion() {}
+ ::google::firestore::v1beta1::StructuredQuery* structured_query_;
+ } query_type_;
+ union ConsistencySelectorUnion {
+ ConsistencySelectorUnion() {}
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ ::google::firestore::v1beta1::TransactionOptions* new_transaction_;
+ ::google::protobuf::Timestamp* read_time_;
+ } consistency_selector_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[2];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRunQueryRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class RunQueryResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.RunQueryResponse) */ {
+ public:
+ RunQueryResponse();
+ virtual ~RunQueryResponse();
+
+ RunQueryResponse(const RunQueryResponse& from);
+
+ inline RunQueryResponse& operator=(const RunQueryResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ RunQueryResponse(RunQueryResponse&& from) noexcept
+ : RunQueryResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline RunQueryResponse& operator=(RunQueryResponse&& 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 RunQueryResponse& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const RunQueryResponse* internal_default_instance() {
+ return reinterpret_cast<const RunQueryResponse*>(
+ &_RunQueryResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 14;
+
+ void Swap(RunQueryResponse* other);
+ friend void swap(RunQueryResponse& a, RunQueryResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline RunQueryResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ RunQueryResponse* 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 RunQueryResponse& from);
+ void MergeFrom(const RunQueryResponse& 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(RunQueryResponse* 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 transaction = 2;
+ void clear_transaction();
+ static const int kTransactionFieldNumber = 2;
+ const ::std::string& transaction() const;
+ void set_transaction(const ::std::string& value);
+ #if LANG_CXX11
+ void set_transaction(::std::string&& value);
+ #endif
+ void set_transaction(const char* value);
+ void set_transaction(const void* value, size_t size);
+ ::std::string* mutable_transaction();
+ ::std::string* release_transaction();
+ void set_allocated_transaction(::std::string* transaction);
+
+ // .google.firestore.v1beta1.Document document = 1;
+ bool has_document() const;
+ void clear_document();
+ static const int kDocumentFieldNumber = 1;
+ const ::google::firestore::v1beta1::Document& document() const;
+ ::google::firestore::v1beta1::Document* release_document();
+ ::google::firestore::v1beta1::Document* mutable_document();
+ void set_allocated_document(::google::firestore::v1beta1::Document* document);
+
+ // .google.protobuf.Timestamp read_time = 3;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 3;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ // int32 skipped_results = 4;
+ void clear_skipped_results();
+ static const int kSkippedResultsFieldNumber = 4;
+ ::google::protobuf::int32 skipped_results() const;
+ void set_skipped_results(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.RunQueryResponse)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr transaction_;
+ ::google::firestore::v1beta1::Document* document_;
+ ::google::protobuf::Timestamp* read_time_;
+ ::google::protobuf::int32 skipped_results_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsRunQueryResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class WriteRequest_LabelsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 > {
+public:
+ typedef ::google::protobuf::internal::MapEntry<WriteRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 > SuperType;
+ WriteRequest_LabelsEntry_DoNotUse();
+ WriteRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena);
+ void MergeFrom(const WriteRequest_LabelsEntry_DoNotUse& other);
+ static const WriteRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const WriteRequest_LabelsEntry_DoNotUse*>(&_WriteRequest_LabelsEntry_DoNotUse_default_instance_); }
+ void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
+ ::google::protobuf::Metadata GetMetadata() const;
+};
+
+// -------------------------------------------------------------------
+
+class WriteRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.WriteRequest) */ {
+ public:
+ WriteRequest();
+ virtual ~WriteRequest();
+
+ WriteRequest(const WriteRequest& from);
+
+ inline WriteRequest& operator=(const WriteRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ WriteRequest(WriteRequest&& from) noexcept
+ : WriteRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline WriteRequest& operator=(WriteRequest&& 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 WriteRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const WriteRequest* internal_default_instance() {
+ return reinterpret_cast<const WriteRequest*>(
+ &_WriteRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 16;
+
+ void Swap(WriteRequest* other);
+ friend void swap(WriteRequest& a, WriteRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline WriteRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ WriteRequest* 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 WriteRequest& from);
+ void MergeFrom(const WriteRequest& 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(WriteRequest* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Write writes = 3;
+ int writes_size() const;
+ void clear_writes();
+ static const int kWritesFieldNumber = 3;
+ const ::google::firestore::v1beta1::Write& writes(int index) const;
+ ::google::firestore::v1beta1::Write* mutable_writes(int index);
+ ::google::firestore::v1beta1::Write* add_writes();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >*
+ mutable_writes();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >&
+ writes() const;
+
+ // map<string, string> labels = 5;
+ int labels_size() const;
+ void clear_labels();
+ static const int kLabelsFieldNumber = 5;
+ const ::google::protobuf::Map< ::std::string, ::std::string >&
+ labels() const;
+ ::google::protobuf::Map< ::std::string, ::std::string >*
+ mutable_labels();
+
+ // string database = 1;
+ void clear_database();
+ static const int kDatabaseFieldNumber = 1;
+ const ::std::string& database() const;
+ void set_database(const ::std::string& value);
+ #if LANG_CXX11
+ void set_database(::std::string&& value);
+ #endif
+ void set_database(const char* value);
+ void set_database(const char* value, size_t size);
+ ::std::string* mutable_database();
+ ::std::string* release_database();
+ void set_allocated_database(::std::string* database);
+
+ // string stream_id = 2;
+ void clear_stream_id();
+ static const int kStreamIdFieldNumber = 2;
+ const ::std::string& stream_id() const;
+ void set_stream_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_stream_id(::std::string&& value);
+ #endif
+ void set_stream_id(const char* value);
+ void set_stream_id(const char* value, size_t size);
+ ::std::string* mutable_stream_id();
+ ::std::string* release_stream_id();
+ void set_allocated_stream_id(::std::string* stream_id);
+
+ // bytes stream_token = 4;
+ void clear_stream_token();
+ static const int kStreamTokenFieldNumber = 4;
+ const ::std::string& stream_token() const;
+ void set_stream_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_stream_token(::std::string&& value);
+ #endif
+ void set_stream_token(const char* value);
+ void set_stream_token(const void* value, size_t size);
+ ::std::string* mutable_stream_token();
+ ::std::string* release_stream_token();
+ void set_allocated_stream_token(::std::string* stream_token);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.WriteRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write > writes_;
+ ::google::protobuf::internal::MapField<
+ WriteRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 > labels_;
+ ::google::protobuf::internal::ArenaStringPtr database_;
+ ::google::protobuf::internal::ArenaStringPtr stream_id_;
+ ::google::protobuf::internal::ArenaStringPtr stream_token_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class WriteResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.WriteResponse) */ {
+ public:
+ WriteResponse();
+ virtual ~WriteResponse();
+
+ WriteResponse(const WriteResponse& from);
+
+ inline WriteResponse& operator=(const WriteResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ WriteResponse(WriteResponse&& from) noexcept
+ : WriteResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline WriteResponse& operator=(WriteResponse&& 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 WriteResponse& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const WriteResponse* internal_default_instance() {
+ return reinterpret_cast<const WriteResponse*>(
+ &_WriteResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 17;
+
+ void Swap(WriteResponse* other);
+ friend void swap(WriteResponse& a, WriteResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline WriteResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ WriteResponse* 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 WriteResponse& from);
+ void MergeFrom(const WriteResponse& 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(WriteResponse* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.WriteResult write_results = 3;
+ int write_results_size() const;
+ void clear_write_results();
+ static const int kWriteResultsFieldNumber = 3;
+ const ::google::firestore::v1beta1::WriteResult& write_results(int index) const;
+ ::google::firestore::v1beta1::WriteResult* mutable_write_results(int index);
+ ::google::firestore::v1beta1::WriteResult* add_write_results();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >*
+ mutable_write_results();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >&
+ write_results() const;
+
+ // string stream_id = 1;
+ void clear_stream_id();
+ static const int kStreamIdFieldNumber = 1;
+ const ::std::string& stream_id() const;
+ void set_stream_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_stream_id(::std::string&& value);
+ #endif
+ void set_stream_id(const char* value);
+ void set_stream_id(const char* value, size_t size);
+ ::std::string* mutable_stream_id();
+ ::std::string* release_stream_id();
+ void set_allocated_stream_id(::std::string* stream_id);
+
+ // bytes stream_token = 2;
+ void clear_stream_token();
+ static const int kStreamTokenFieldNumber = 2;
+ const ::std::string& stream_token() const;
+ void set_stream_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_stream_token(::std::string&& value);
+ #endif
+ void set_stream_token(const char* value);
+ void set_stream_token(const void* value, size_t size);
+ ::std::string* mutable_stream_token();
+ ::std::string* release_stream_token();
+ void set_allocated_stream_token(::std::string* stream_token);
+
+ // .google.protobuf.Timestamp commit_time = 4;
+ bool has_commit_time() const;
+ void clear_commit_time();
+ static const int kCommitTimeFieldNumber = 4;
+ const ::google::protobuf::Timestamp& commit_time() const;
+ ::google::protobuf::Timestamp* release_commit_time();
+ ::google::protobuf::Timestamp* mutable_commit_time();
+ void set_allocated_commit_time(::google::protobuf::Timestamp* commit_time);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.WriteResponse)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult > write_results_;
+ ::google::protobuf::internal::ArenaStringPtr stream_id_;
+ ::google::protobuf::internal::ArenaStringPtr stream_token_;
+ ::google::protobuf::Timestamp* commit_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsWriteResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class ListenRequest_LabelsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 > {
+public:
+ typedef ::google::protobuf::internal::MapEntry<ListenRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 > SuperType;
+ ListenRequest_LabelsEntry_DoNotUse();
+ ListenRequest_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena);
+ void MergeFrom(const ListenRequest_LabelsEntry_DoNotUse& other);
+ static const ListenRequest_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const ListenRequest_LabelsEntry_DoNotUse*>(&_ListenRequest_LabelsEntry_DoNotUse_default_instance_); }
+ void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
+ ::google::protobuf::Metadata GetMetadata() const;
+};
+
+// -------------------------------------------------------------------
+
+class ListenRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ListenRequest) */ {
+ public:
+ ListenRequest();
+ virtual ~ListenRequest();
+
+ ListenRequest(const ListenRequest& from);
+
+ inline ListenRequest& operator=(const ListenRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListenRequest(ListenRequest&& from) noexcept
+ : ListenRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline ListenRequest& operator=(ListenRequest&& 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 ListenRequest& default_instance();
+
+ enum TargetChangeCase {
+ kAddTarget = 2,
+ kRemoveTarget = 3,
+ TARGET_CHANGE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListenRequest* internal_default_instance() {
+ return reinterpret_cast<const ListenRequest*>(
+ &_ListenRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 19;
+
+ void Swap(ListenRequest* other);
+ friend void swap(ListenRequest& a, ListenRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListenRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListenRequest* 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 ListenRequest& from);
+ void MergeFrom(const ListenRequest& 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(ListenRequest* 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 -------------------------------------------------------
+
+ // map<string, string> labels = 4;
+ int labels_size() const;
+ void clear_labels();
+ static const int kLabelsFieldNumber = 4;
+ const ::google::protobuf::Map< ::std::string, ::std::string >&
+ labels() const;
+ ::google::protobuf::Map< ::std::string, ::std::string >*
+ mutable_labels();
+
+ // string database = 1;
+ void clear_database();
+ static const int kDatabaseFieldNumber = 1;
+ const ::std::string& database() const;
+ void set_database(const ::std::string& value);
+ #if LANG_CXX11
+ void set_database(::std::string&& value);
+ #endif
+ void set_database(const char* value);
+ void set_database(const char* value, size_t size);
+ ::std::string* mutable_database();
+ ::std::string* release_database();
+ void set_allocated_database(::std::string* database);
+
+ // .google.firestore.v1beta1.Target add_target = 2;
+ bool has_add_target() const;
+ void clear_add_target();
+ static const int kAddTargetFieldNumber = 2;
+ const ::google::firestore::v1beta1::Target& add_target() const;
+ ::google::firestore::v1beta1::Target* release_add_target();
+ ::google::firestore::v1beta1::Target* mutable_add_target();
+ void set_allocated_add_target(::google::firestore::v1beta1::Target* add_target);
+
+ // int32 remove_target = 3;
+ private:
+ bool has_remove_target() const;
+ public:
+ void clear_remove_target();
+ static const int kRemoveTargetFieldNumber = 3;
+ ::google::protobuf::int32 remove_target() const;
+ void set_remove_target(::google::protobuf::int32 value);
+
+ TargetChangeCase target_change_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ListenRequest)
+ private:
+ void set_has_add_target();
+ void set_has_remove_target();
+
+ inline bool has_target_change() const;
+ void clear_target_change();
+ inline void clear_has_target_change();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::MapField<
+ ListenRequest_LabelsEntry_DoNotUse,
+ ::std::string, ::std::string,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ 0 > labels_;
+ ::google::protobuf::internal::ArenaStringPtr database_;
+ union TargetChangeUnion {
+ TargetChangeUnion() {}
+ ::google::firestore::v1beta1::Target* add_target_;
+ ::google::protobuf::int32 remove_target_;
+ } target_change_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class ListenResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ListenResponse) */ {
+ public:
+ ListenResponse();
+ virtual ~ListenResponse();
+
+ ListenResponse(const ListenResponse& from);
+
+ inline ListenResponse& operator=(const ListenResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListenResponse(ListenResponse&& from) noexcept
+ : ListenResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline ListenResponse& operator=(ListenResponse&& 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 ListenResponse& default_instance();
+
+ enum ResponseTypeCase {
+ kTargetChange = 2,
+ kDocumentChange = 3,
+ kDocumentDelete = 4,
+ kDocumentRemove = 6,
+ kFilter = 5,
+ RESPONSE_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListenResponse* internal_default_instance() {
+ return reinterpret_cast<const ListenResponse*>(
+ &_ListenResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 20;
+
+ void Swap(ListenResponse* other);
+ friend void swap(ListenResponse& a, ListenResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListenResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListenResponse* 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 ListenResponse& from);
+ void MergeFrom(const ListenResponse& 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(ListenResponse* 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.firestore.v1beta1.TargetChange target_change = 2;
+ bool has_target_change() const;
+ void clear_target_change();
+ static const int kTargetChangeFieldNumber = 2;
+ const ::google::firestore::v1beta1::TargetChange& target_change() const;
+ ::google::firestore::v1beta1::TargetChange* release_target_change();
+ ::google::firestore::v1beta1::TargetChange* mutable_target_change();
+ void set_allocated_target_change(::google::firestore::v1beta1::TargetChange* target_change);
+
+ // .google.firestore.v1beta1.DocumentChange document_change = 3;
+ bool has_document_change() const;
+ void clear_document_change();
+ static const int kDocumentChangeFieldNumber = 3;
+ const ::google::firestore::v1beta1::DocumentChange& document_change() const;
+ ::google::firestore::v1beta1::DocumentChange* release_document_change();
+ ::google::firestore::v1beta1::DocumentChange* mutable_document_change();
+ void set_allocated_document_change(::google::firestore::v1beta1::DocumentChange* document_change);
+
+ // .google.firestore.v1beta1.DocumentDelete document_delete = 4;
+ bool has_document_delete() const;
+ void clear_document_delete();
+ static const int kDocumentDeleteFieldNumber = 4;
+ const ::google::firestore::v1beta1::DocumentDelete& document_delete() const;
+ ::google::firestore::v1beta1::DocumentDelete* release_document_delete();
+ ::google::firestore::v1beta1::DocumentDelete* mutable_document_delete();
+ void set_allocated_document_delete(::google::firestore::v1beta1::DocumentDelete* document_delete);
+
+ // .google.firestore.v1beta1.DocumentRemove document_remove = 6;
+ bool has_document_remove() const;
+ void clear_document_remove();
+ static const int kDocumentRemoveFieldNumber = 6;
+ const ::google::firestore::v1beta1::DocumentRemove& document_remove() const;
+ ::google::firestore::v1beta1::DocumentRemove* release_document_remove();
+ ::google::firestore::v1beta1::DocumentRemove* mutable_document_remove();
+ void set_allocated_document_remove(::google::firestore::v1beta1::DocumentRemove* document_remove);
+
+ // .google.firestore.v1beta1.ExistenceFilter filter = 5;
+ bool has_filter() const;
+ void clear_filter();
+ static const int kFilterFieldNumber = 5;
+ const ::google::firestore::v1beta1::ExistenceFilter& filter() const;
+ ::google::firestore::v1beta1::ExistenceFilter* release_filter();
+ ::google::firestore::v1beta1::ExistenceFilter* mutable_filter();
+ void set_allocated_filter(::google::firestore::v1beta1::ExistenceFilter* filter);
+
+ ResponseTypeCase response_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ListenResponse)
+ private:
+ void set_has_target_change();
+ void set_has_document_change();
+ void set_has_document_delete();
+ void set_has_document_remove();
+ void set_has_filter();
+
+ inline bool has_response_type() const;
+ void clear_response_type();
+ inline void clear_has_response_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union ResponseTypeUnion {
+ ResponseTypeUnion() {}
+ ::google::firestore::v1beta1::TargetChange* target_change_;
+ ::google::firestore::v1beta1::DocumentChange* document_change_;
+ ::google::firestore::v1beta1::DocumentDelete* document_delete_;
+ ::google::firestore::v1beta1::DocumentRemove* document_remove_;
+ ::google::firestore::v1beta1::ExistenceFilter* filter_;
+ } response_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListenResponseImpl();
+};
+// -------------------------------------------------------------------
+
+class Target_DocumentsTarget : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Target.DocumentsTarget) */ {
+ public:
+ Target_DocumentsTarget();
+ virtual ~Target_DocumentsTarget();
+
+ Target_DocumentsTarget(const Target_DocumentsTarget& from);
+
+ inline Target_DocumentsTarget& operator=(const Target_DocumentsTarget& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Target_DocumentsTarget(Target_DocumentsTarget&& from) noexcept
+ : Target_DocumentsTarget() {
+ *this = ::std::move(from);
+ }
+
+ inline Target_DocumentsTarget& operator=(Target_DocumentsTarget&& 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_DocumentsTarget& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Target_DocumentsTarget* internal_default_instance() {
+ return reinterpret_cast<const Target_DocumentsTarget*>(
+ &_Target_DocumentsTarget_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 21;
+
+ void Swap(Target_DocumentsTarget* other);
+ friend void swap(Target_DocumentsTarget& a, Target_DocumentsTarget& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Target_DocumentsTarget* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Target_DocumentsTarget* 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_DocumentsTarget& from);
+ void MergeFrom(const Target_DocumentsTarget& 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_DocumentsTarget* 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 -------------------------------------------------------
+
+ // repeated string documents = 2;
+ int documents_size() const;
+ void clear_documents();
+ static const int kDocumentsFieldNumber = 2;
+ const ::std::string& documents(int index) const;
+ ::std::string* mutable_documents(int index);
+ void set_documents(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_documents(int index, ::std::string&& value);
+ #endif
+ void set_documents(int index, const char* value);
+ void set_documents(int index, const char* value, size_t size);
+ ::std::string* add_documents();
+ void add_documents(const ::std::string& value);
+ #if LANG_CXX11
+ void add_documents(::std::string&& value);
+ #endif
+ void add_documents(const char* value);
+ void add_documents(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& documents() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_documents();
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Target.DocumentsTarget)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> documents_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_DocumentsTargetImpl();
+};
+// -------------------------------------------------------------------
+
+class Target_QueryTarget : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Target.QueryTarget) */ {
+ public:
+ Target_QueryTarget();
+ virtual ~Target_QueryTarget();
+
+ Target_QueryTarget(const Target_QueryTarget& from);
+
+ inline Target_QueryTarget& operator=(const Target_QueryTarget& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Target_QueryTarget(Target_QueryTarget&& from) noexcept
+ : Target_QueryTarget() {
+ *this = ::std::move(from);
+ }
+
+ inline Target_QueryTarget& operator=(Target_QueryTarget&& 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_QueryTarget& default_instance();
+
+ enum QueryTypeCase {
+ kStructuredQuery = 2,
+ QUERY_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Target_QueryTarget* internal_default_instance() {
+ return reinterpret_cast<const Target_QueryTarget*>(
+ &_Target_QueryTarget_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 22;
+
+ void Swap(Target_QueryTarget* other);
+ friend void swap(Target_QueryTarget& a, Target_QueryTarget& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Target_QueryTarget* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Target_QueryTarget* 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_QueryTarget& from);
+ void MergeFrom(const Target_QueryTarget& 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_QueryTarget* 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 -------------------------------------------------------
+
+ // string parent = 1;
+ void clear_parent();
+ static const int kParentFieldNumber = 1;
+ const ::std::string& parent() const;
+ void set_parent(const ::std::string& value);
+ #if LANG_CXX11
+ void set_parent(::std::string&& value);
+ #endif
+ void set_parent(const char* value);
+ void set_parent(const char* value, size_t size);
+ ::std::string* mutable_parent();
+ ::std::string* release_parent();
+ void set_allocated_parent(::std::string* parent);
+
+ // .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+ bool has_structured_query() const;
+ void clear_structured_query();
+ static const int kStructuredQueryFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery& structured_query() const;
+ ::google::firestore::v1beta1::StructuredQuery* release_structured_query();
+ ::google::firestore::v1beta1::StructuredQuery* mutable_structured_query();
+ void set_allocated_structured_query(::google::firestore::v1beta1::StructuredQuery* structured_query);
+
+ QueryTypeCase query_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Target.QueryTarget)
+ private:
+ void set_has_structured_query();
+
+ inline bool has_query_type() const;
+ void clear_query_type();
+ inline void clear_has_query_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr parent_;
+ union QueryTypeUnion {
+ QueryTypeUnion() {}
+ ::google::firestore::v1beta1::StructuredQuery* structured_query_;
+ } query_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTarget_QueryTargetImpl();
+};
+// -------------------------------------------------------------------
+
+class Target : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.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 = 2,
+ kDocuments = 3,
+ TARGET_TYPE_NOT_SET = 0,
+ };
+
+ enum ResumeTypeCase {
+ kResumeToken = 4,
+ kReadTime = 11,
+ RESUME_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 =
+ 23;
+
+ 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 ----------------------------------------------------
+
+ typedef Target_DocumentsTarget DocumentsTarget;
+ typedef Target_QueryTarget QueryTarget;
+
+ // accessors -------------------------------------------------------
+
+ // int32 target_id = 5;
+ void clear_target_id();
+ static const int kTargetIdFieldNumber = 5;
+ ::google::protobuf::int32 target_id() const;
+ void set_target_id(::google::protobuf::int32 value);
+
+ // bool once = 6;
+ void clear_once();
+ static const int kOnceFieldNumber = 6;
+ bool once() const;
+ void set_once(bool value);
+
+ // .google.firestore.v1beta1.Target.QueryTarget query = 2;
+ bool has_query() const;
+ void clear_query();
+ static const int kQueryFieldNumber = 2;
+ 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 = 3;
+ bool has_documents() const;
+ void clear_documents();
+ static const int kDocumentsFieldNumber = 3;
+ 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);
+
+ // bytes resume_token = 4;
+ private:
+ bool has_resume_token() const;
+ public:
+ void clear_resume_token();
+ static const int kResumeTokenFieldNumber = 4;
+ 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 read_time = 11;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 11;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ TargetTypeCase target_type_case() const;
+ ResumeTypeCase resume_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Target)
+ private:
+ void set_has_query();
+ void set_has_documents();
+ void set_has_resume_token();
+ void set_has_read_time();
+
+ inline bool has_target_type() const;
+ void clear_target_type();
+ inline void clear_has_target_type();
+
+ inline bool has_resume_type() const;
+ void clear_resume_type();
+ inline void clear_has_resume_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::int32 target_id_;
+ bool once_;
+ union TargetTypeUnion {
+ TargetTypeUnion() {}
+ ::google::firestore::v1beta1::Target_QueryTarget* query_;
+ ::google::firestore::v1beta1::Target_DocumentsTarget* documents_;
+ } target_type_;
+ union ResumeTypeUnion {
+ ResumeTypeUnion() {}
+ ::google::protobuf::internal::ArenaStringPtr resume_token_;
+ ::google::protobuf::Timestamp* read_time_;
+ } resume_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[2];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTargetImpl();
+};
+// -------------------------------------------------------------------
+
+class TargetChange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TargetChange) */ {
+ public:
+ TargetChange();
+ virtual ~TargetChange();
+
+ TargetChange(const TargetChange& from);
+
+ inline TargetChange& operator=(const TargetChange& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ TargetChange(TargetChange&& from) noexcept
+ : TargetChange() {
+ *this = ::std::move(from);
+ }
+
+ inline TargetChange& operator=(TargetChange&& 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 TargetChange& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TargetChange* internal_default_instance() {
+ return reinterpret_cast<const TargetChange*>(
+ &_TargetChange_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 24;
+
+ void Swap(TargetChange* other);
+ friend void swap(TargetChange& a, TargetChange& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TargetChange* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ TargetChange* 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 TargetChange& from);
+ void MergeFrom(const TargetChange& 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(TargetChange* 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 ----------------------------------------------------
+
+ typedef TargetChange_TargetChangeType TargetChangeType;
+ static const TargetChangeType NO_CHANGE =
+ TargetChange_TargetChangeType_NO_CHANGE;
+ static const TargetChangeType ADD =
+ TargetChange_TargetChangeType_ADD;
+ static const TargetChangeType REMOVE =
+ TargetChange_TargetChangeType_REMOVE;
+ static const TargetChangeType CURRENT =
+ TargetChange_TargetChangeType_CURRENT;
+ static const TargetChangeType RESET =
+ TargetChange_TargetChangeType_RESET;
+ static inline bool TargetChangeType_IsValid(int value) {
+ return TargetChange_TargetChangeType_IsValid(value);
+ }
+ static const TargetChangeType TargetChangeType_MIN =
+ TargetChange_TargetChangeType_TargetChangeType_MIN;
+ static const TargetChangeType TargetChangeType_MAX =
+ TargetChange_TargetChangeType_TargetChangeType_MAX;
+ static const int TargetChangeType_ARRAYSIZE =
+ TargetChange_TargetChangeType_TargetChangeType_ARRAYSIZE;
+ static inline const ::google::protobuf::EnumDescriptor*
+ TargetChangeType_descriptor() {
+ return TargetChange_TargetChangeType_descriptor();
+ }
+ static inline const ::std::string& TargetChangeType_Name(TargetChangeType value) {
+ return TargetChange_TargetChangeType_Name(value);
+ }
+ static inline bool TargetChangeType_Parse(const ::std::string& name,
+ TargetChangeType* value) {
+ return TargetChange_TargetChangeType_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ // repeated int32 target_ids = 2;
+ int target_ids_size() const;
+ void clear_target_ids();
+ static const int kTargetIdsFieldNumber = 2;
+ ::google::protobuf::int32 target_ids(int index) const;
+ void set_target_ids(int index, ::google::protobuf::int32 value);
+ void add_target_ids(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ target_ids() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_target_ids();
+
+ // bytes resume_token = 4;
+ void clear_resume_token();
+ static const int kResumeTokenFieldNumber = 4;
+ 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.rpc.Status cause = 3;
+ bool has_cause() const;
+ void clear_cause();
+ static const int kCauseFieldNumber = 3;
+ const ::google::rpc::Status& cause() const;
+ ::google::rpc::Status* release_cause();
+ ::google::rpc::Status* mutable_cause();
+ void set_allocated_cause(::google::rpc::Status* cause);
+
+ // .google.protobuf.Timestamp read_time = 6;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 6;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ // .google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
+ void clear_target_change_type();
+ static const int kTargetChangeTypeFieldNumber = 1;
+ ::google::firestore::v1beta1::TargetChange_TargetChangeType target_change_type() const;
+ void set_target_change_type(::google::firestore::v1beta1::TargetChange_TargetChangeType value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TargetChange)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > target_ids_;
+ mutable int _target_ids_cached_byte_size_;
+ ::google::protobuf::internal::ArenaStringPtr resume_token_;
+ ::google::rpc::Status* cause_;
+ ::google::protobuf::Timestamp* read_time_;
+ int target_change_type_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsTargetChangeImpl();
+};
+// -------------------------------------------------------------------
+
+class ListCollectionIdsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ListCollectionIdsRequest) */ {
+ public:
+ ListCollectionIdsRequest();
+ virtual ~ListCollectionIdsRequest();
+
+ ListCollectionIdsRequest(const ListCollectionIdsRequest& from);
+
+ inline ListCollectionIdsRequest& operator=(const ListCollectionIdsRequest& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListCollectionIdsRequest(ListCollectionIdsRequest&& from) noexcept
+ : ListCollectionIdsRequest() {
+ *this = ::std::move(from);
+ }
+
+ inline ListCollectionIdsRequest& operator=(ListCollectionIdsRequest&& 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 ListCollectionIdsRequest& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListCollectionIdsRequest* internal_default_instance() {
+ return reinterpret_cast<const ListCollectionIdsRequest*>(
+ &_ListCollectionIdsRequest_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 25;
+
+ void Swap(ListCollectionIdsRequest* other);
+ friend void swap(ListCollectionIdsRequest& a, ListCollectionIdsRequest& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListCollectionIdsRequest* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListCollectionIdsRequest* 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 ListCollectionIdsRequest& from);
+ void MergeFrom(const ListCollectionIdsRequest& 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(ListCollectionIdsRequest* 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 -------------------------------------------------------
+
+ // string parent = 1;
+ void clear_parent();
+ static const int kParentFieldNumber = 1;
+ const ::std::string& parent() const;
+ void set_parent(const ::std::string& value);
+ #if LANG_CXX11
+ void set_parent(::std::string&& value);
+ #endif
+ void set_parent(const char* value);
+ void set_parent(const char* value, size_t size);
+ ::std::string* mutable_parent();
+ ::std::string* release_parent();
+ void set_allocated_parent(::std::string* parent);
+
+ // string page_token = 3;
+ void clear_page_token();
+ static const int kPageTokenFieldNumber = 3;
+ const ::std::string& page_token() const;
+ void set_page_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_page_token(::std::string&& value);
+ #endif
+ void set_page_token(const char* value);
+ void set_page_token(const char* value, size_t size);
+ ::std::string* mutable_page_token();
+ ::std::string* release_page_token();
+ void set_allocated_page_token(::std::string* page_token);
+
+ // int32 page_size = 2;
+ void clear_page_size();
+ static const int kPageSizeFieldNumber = 2;
+ ::google::protobuf::int32 page_size() const;
+ void set_page_size(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ListCollectionIdsRequest)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr parent_;
+ ::google::protobuf::internal::ArenaStringPtr page_token_;
+ ::google::protobuf::int32 page_size_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListCollectionIdsRequestImpl();
+};
+// -------------------------------------------------------------------
+
+class ListCollectionIdsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ListCollectionIdsResponse) */ {
+ public:
+ ListCollectionIdsResponse();
+ virtual ~ListCollectionIdsResponse();
+
+ ListCollectionIdsResponse(const ListCollectionIdsResponse& from);
+
+ inline ListCollectionIdsResponse& operator=(const ListCollectionIdsResponse& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListCollectionIdsResponse(ListCollectionIdsResponse&& from) noexcept
+ : ListCollectionIdsResponse() {
+ *this = ::std::move(from);
+ }
+
+ inline ListCollectionIdsResponse& operator=(ListCollectionIdsResponse&& 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 ListCollectionIdsResponse& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListCollectionIdsResponse* internal_default_instance() {
+ return reinterpret_cast<const ListCollectionIdsResponse*>(
+ &_ListCollectionIdsResponse_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 26;
+
+ void Swap(ListCollectionIdsResponse* other);
+ friend void swap(ListCollectionIdsResponse& a, ListCollectionIdsResponse& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListCollectionIdsResponse* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListCollectionIdsResponse* 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 ListCollectionIdsResponse& from);
+ void MergeFrom(const ListCollectionIdsResponse& 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(ListCollectionIdsResponse* 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 -------------------------------------------------------
+
+ // repeated string collection_ids = 1;
+ int collection_ids_size() const;
+ void clear_collection_ids();
+ static const int kCollectionIdsFieldNumber = 1;
+ const ::std::string& collection_ids(int index) const;
+ ::std::string* mutable_collection_ids(int index);
+ void set_collection_ids(int index, const ::std::string& value);
+ #if LANG_CXX11
+ void set_collection_ids(int index, ::std::string&& value);
+ #endif
+ void set_collection_ids(int index, const char* value);
+ void set_collection_ids(int index, const char* value, size_t size);
+ ::std::string* add_collection_ids();
+ void add_collection_ids(const ::std::string& value);
+ #if LANG_CXX11
+ void add_collection_ids(::std::string&& value);
+ #endif
+ void add_collection_ids(const char* value);
+ void add_collection_ids(const char* value, size_t size);
+ const ::google::protobuf::RepeatedPtrField< ::std::string>& collection_ids() const;
+ ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_collection_ids();
+
+ // string next_page_token = 2;
+ void clear_next_page_token();
+ static const int kNextPageTokenFieldNumber = 2;
+ const ::std::string& next_page_token() const;
+ void set_next_page_token(const ::std::string& value);
+ #if LANG_CXX11
+ void set_next_page_token(::std::string&& value);
+ #endif
+ void set_next_page_token(const char* value);
+ void set_next_page_token(const char* value, size_t size);
+ ::std::string* mutable_next_page_token();
+ ::std::string* release_next_page_token();
+ void set_allocated_next_page_token(::std::string* next_page_token);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ListCollectionIdsResponse)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::std::string> collection_ids_;
+ ::google::protobuf::internal::ArenaStringPtr next_page_token_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2ffirestore_2eproto::InitDefaultsListCollectionIdsResponseImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// GetDocumentRequest
+
+// string name = 1;
+inline void GetDocumentRequest::clear_name() {
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& GetDocumentRequest::name() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.GetDocumentRequest.name)
+ return name_.GetNoArena();
+}
+inline void GetDocumentRequest::set_name(const ::std::string& value) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.GetDocumentRequest.name)
+}
+#if LANG_CXX11
+inline void GetDocumentRequest::set_name(::std::string&& value) {
+
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.GetDocumentRequest.name)
+}
+#endif
+inline void GetDocumentRequest::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.GetDocumentRequest.name)
+}
+inline void GetDocumentRequest::set_name(const char* value, size_t size) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.GetDocumentRequest.name)
+}
+inline ::std::string* GetDocumentRequest::mutable_name() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.GetDocumentRequest.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* GetDocumentRequest::release_name() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.GetDocumentRequest.name)
+
+ return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void GetDocumentRequest::set_allocated_name(::std::string* name) {
+ if (name != NULL) {
+
+ } else {
+
+ }
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.GetDocumentRequest.name)
+}
+
+// .google.firestore.v1beta1.DocumentMask mask = 2;
+inline bool GetDocumentRequest::has_mask() const {
+ return this != internal_default_instance() && mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& GetDocumentRequest::mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.GetDocumentRequest.mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* GetDocumentRequest::release_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.GetDocumentRequest.mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = mask_;
+ mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* GetDocumentRequest::mutable_mask() {
+
+ if (mask_ == NULL) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.GetDocumentRequest.mask)
+ return mask_;
+}
+inline void GetDocumentRequest::set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(mask_);
+ }
+ if (mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ mask_ = mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.GetDocumentRequest.mask)
+}
+
+// bytes transaction = 3;
+inline bool GetDocumentRequest::has_transaction() const {
+ return consistency_selector_case() == kTransaction;
+}
+inline void GetDocumentRequest::set_has_transaction() {
+ _oneof_case_[0] = kTransaction;
+}
+inline void GetDocumentRequest::clear_transaction() {
+ if (has_transaction()) {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_consistency_selector();
+ }
+}
+inline const ::std::string& GetDocumentRequest::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.GetDocumentRequest.transaction)
+ if (has_transaction()) {
+ return consistency_selector_.transaction_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void GetDocumentRequest::set_transaction(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.GetDocumentRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.GetDocumentRequest.transaction)
+}
+#if LANG_CXX11
+inline void GetDocumentRequest::set_transaction(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.GetDocumentRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.GetDocumentRequest.transaction)
+}
+#endif
+inline void GetDocumentRequest::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.GetDocumentRequest.transaction)
+}
+inline void GetDocumentRequest::set_transaction(const void* value, size_t size) {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.GetDocumentRequest.transaction)
+}
+inline ::std::string* GetDocumentRequest::mutable_transaction() {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.GetDocumentRequest.transaction)
+ return consistency_selector_.transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* GetDocumentRequest::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.GetDocumentRequest.transaction)
+ if (has_transaction()) {
+ clear_has_consistency_selector();
+ return consistency_selector_.transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void GetDocumentRequest::set_allocated_transaction(::std::string* transaction) {
+ if (!has_transaction()) {
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_consistency_selector();
+ if (transaction != NULL) {
+ set_has_transaction();
+ consistency_selector_.transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ transaction);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.GetDocumentRequest.transaction)
+}
+
+// .google.protobuf.Timestamp read_time = 5;
+inline bool GetDocumentRequest::has_read_time() const {
+ return consistency_selector_case() == kReadTime;
+}
+inline void GetDocumentRequest::set_has_read_time() {
+ _oneof_case_[0] = kReadTime;
+}
+inline ::google::protobuf::Timestamp* GetDocumentRequest::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.GetDocumentRequest.read_time)
+ if (has_read_time()) {
+ clear_has_consistency_selector();
+ ::google::protobuf::Timestamp* temp = consistency_selector_.read_time_;
+ consistency_selector_.read_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& GetDocumentRequest::read_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.GetDocumentRequest.read_time)
+ return has_read_time()
+ ? *consistency_selector_.read_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* GetDocumentRequest::mutable_read_time() {
+ if (!has_read_time()) {
+ clear_consistency_selector();
+ set_has_read_time();
+ consistency_selector_.read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.GetDocumentRequest.read_time)
+ return consistency_selector_.read_time_;
+}
+
+inline bool GetDocumentRequest::has_consistency_selector() const {
+ return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline void GetDocumentRequest::clear_has_consistency_selector() {
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline GetDocumentRequest::ConsistencySelectorCase GetDocumentRequest::consistency_selector_case() const {
+ return GetDocumentRequest::ConsistencySelectorCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// ListDocumentsRequest
+
+// string parent = 1;
+inline void ListDocumentsRequest::clear_parent() {
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListDocumentsRequest::parent() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.parent)
+ return parent_.GetNoArena();
+}
+inline void ListDocumentsRequest::set_parent(const ::std::string& value) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.parent)
+}
+#if LANG_CXX11
+inline void ListDocumentsRequest::set_parent(::std::string&& value) {
+
+ parent_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListDocumentsRequest.parent)
+}
+#endif
+inline void ListDocumentsRequest::set_parent(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListDocumentsRequest.parent)
+}
+inline void ListDocumentsRequest::set_parent(const char* value, size_t size) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListDocumentsRequest.parent)
+}
+inline ::std::string* ListDocumentsRequest::mutable_parent() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.parent)
+ return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListDocumentsRequest::release_parent() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.parent)
+
+ return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListDocumentsRequest::set_allocated_parent(::std::string* parent) {
+ if (parent != NULL) {
+
+ } else {
+
+ }
+ parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.parent)
+}
+
+// string collection_id = 2;
+inline void ListDocumentsRequest::clear_collection_id() {
+ collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListDocumentsRequest::collection_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+ return collection_id_.GetNoArena();
+}
+inline void ListDocumentsRequest::set_collection_id(const ::std::string& value) {
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+}
+#if LANG_CXX11
+inline void ListDocumentsRequest::set_collection_id(::std::string&& value) {
+
+ collection_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+}
+#endif
+inline void ListDocumentsRequest::set_collection_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+}
+inline void ListDocumentsRequest::set_collection_id(const char* value, size_t size) {
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+}
+inline ::std::string* ListDocumentsRequest::mutable_collection_id() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+ return collection_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListDocumentsRequest::release_collection_id() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+
+ return collection_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListDocumentsRequest::set_allocated_collection_id(::std::string* collection_id) {
+ if (collection_id != NULL) {
+
+ } else {
+
+ }
+ collection_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_id);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.collection_id)
+}
+
+// int32 page_size = 3;
+inline void ListDocumentsRequest::clear_page_size() {
+ page_size_ = 0;
+}
+inline ::google::protobuf::int32 ListDocumentsRequest::page_size() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.page_size)
+ return page_size_;
+}
+inline void ListDocumentsRequest::set_page_size(::google::protobuf::int32 value) {
+
+ page_size_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.page_size)
+}
+
+// string page_token = 4;
+inline void ListDocumentsRequest::clear_page_token() {
+ page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListDocumentsRequest::page_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+ return page_token_.GetNoArena();
+}
+inline void ListDocumentsRequest::set_page_token(const ::std::string& value) {
+
+ page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+}
+#if LANG_CXX11
+inline void ListDocumentsRequest::set_page_token(::std::string&& value) {
+
+ page_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+}
+#endif
+inline void ListDocumentsRequest::set_page_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+}
+inline void ListDocumentsRequest::set_page_token(const char* value, size_t size) {
+
+ page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+}
+inline ::std::string* ListDocumentsRequest::mutable_page_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+ return page_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListDocumentsRequest::release_page_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+
+ return page_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListDocumentsRequest::set_allocated_page_token(::std::string* page_token) {
+ if (page_token != NULL) {
+
+ } else {
+
+ }
+ page_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.page_token)
+}
+
+// string order_by = 6;
+inline void ListDocumentsRequest::clear_order_by() {
+ order_by_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListDocumentsRequest::order_by() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+ return order_by_.GetNoArena();
+}
+inline void ListDocumentsRequest::set_order_by(const ::std::string& value) {
+
+ order_by_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+}
+#if LANG_CXX11
+inline void ListDocumentsRequest::set_order_by(::std::string&& value) {
+
+ order_by_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+}
+#endif
+inline void ListDocumentsRequest::set_order_by(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ order_by_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+}
+inline void ListDocumentsRequest::set_order_by(const char* value, size_t size) {
+
+ order_by_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+}
+inline ::std::string* ListDocumentsRequest::mutable_order_by() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+ return order_by_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListDocumentsRequest::release_order_by() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+
+ return order_by_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListDocumentsRequest::set_allocated_order_by(::std::string* order_by) {
+ if (order_by != NULL) {
+
+ } else {
+
+ }
+ order_by_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), order_by);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.order_by)
+}
+
+// .google.firestore.v1beta1.DocumentMask mask = 7;
+inline bool ListDocumentsRequest::has_mask() const {
+ return this != internal_default_instance() && mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& ListDocumentsRequest::mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* ListDocumentsRequest::release_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = mask_;
+ mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* ListDocumentsRequest::mutable_mask() {
+
+ if (mask_ == NULL) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.mask)
+ return mask_;
+}
+inline void ListDocumentsRequest::set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(mask_);
+ }
+ if (mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ mask_ = mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.mask)
+}
+
+// bytes transaction = 8;
+inline bool ListDocumentsRequest::has_transaction() const {
+ return consistency_selector_case() == kTransaction;
+}
+inline void ListDocumentsRequest::set_has_transaction() {
+ _oneof_case_[0] = kTransaction;
+}
+inline void ListDocumentsRequest::clear_transaction() {
+ if (has_transaction()) {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_consistency_selector();
+ }
+}
+inline const ::std::string& ListDocumentsRequest::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+ if (has_transaction()) {
+ return consistency_selector_.transaction_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void ListDocumentsRequest::set_transaction(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+}
+#if LANG_CXX11
+inline void ListDocumentsRequest::set_transaction(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+}
+#endif
+inline void ListDocumentsRequest::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+}
+inline void ListDocumentsRequest::set_transaction(const void* value, size_t size) {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+}
+inline ::std::string* ListDocumentsRequest::mutable_transaction() {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+ return consistency_selector_.transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListDocumentsRequest::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+ if (has_transaction()) {
+ clear_has_consistency_selector();
+ return consistency_selector_.transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void ListDocumentsRequest::set_allocated_transaction(::std::string* transaction) {
+ if (!has_transaction()) {
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_consistency_selector();
+ if (transaction != NULL) {
+ set_has_transaction();
+ consistency_selector_.transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ transaction);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsRequest.transaction)
+}
+
+// .google.protobuf.Timestamp read_time = 10;
+inline bool ListDocumentsRequest::has_read_time() const {
+ return consistency_selector_case() == kReadTime;
+}
+inline void ListDocumentsRequest::set_has_read_time() {
+ _oneof_case_[0] = kReadTime;
+}
+inline ::google::protobuf::Timestamp* ListDocumentsRequest::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsRequest.read_time)
+ if (has_read_time()) {
+ clear_has_consistency_selector();
+ ::google::protobuf::Timestamp* temp = consistency_selector_.read_time_;
+ consistency_selector_.read_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& ListDocumentsRequest::read_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.read_time)
+ return has_read_time()
+ ? *consistency_selector_.read_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* ListDocumentsRequest::mutable_read_time() {
+ if (!has_read_time()) {
+ clear_consistency_selector();
+ set_has_read_time();
+ consistency_selector_.read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsRequest.read_time)
+ return consistency_selector_.read_time_;
+}
+
+// bool show_missing = 12;
+inline void ListDocumentsRequest::clear_show_missing() {
+ show_missing_ = false;
+}
+inline bool ListDocumentsRequest::show_missing() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsRequest.show_missing)
+ return show_missing_;
+}
+inline void ListDocumentsRequest::set_show_missing(bool value) {
+
+ show_missing_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsRequest.show_missing)
+}
+
+inline bool ListDocumentsRequest::has_consistency_selector() const {
+ return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline void ListDocumentsRequest::clear_has_consistency_selector() {
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline ListDocumentsRequest::ConsistencySelectorCase ListDocumentsRequest::consistency_selector_case() const {
+ return ListDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// ListDocumentsResponse
+
+// repeated .google.firestore.v1beta1.Document documents = 1;
+inline int ListDocumentsResponse::documents_size() const {
+ return documents_.size();
+}
+inline const ::google::firestore::v1beta1::Document& ListDocumentsResponse::documents(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsResponse.documents)
+ return documents_.Get(index);
+}
+inline ::google::firestore::v1beta1::Document* ListDocumentsResponse::mutable_documents(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsResponse.documents)
+ return documents_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Document* ListDocumentsResponse::add_documents() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.ListDocumentsResponse.documents)
+ return documents_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Document >*
+ListDocumentsResponse::mutable_documents() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.ListDocumentsResponse.documents)
+ return &documents_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Document >&
+ListDocumentsResponse::documents() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.ListDocumentsResponse.documents)
+ return documents_;
+}
+
+// string next_page_token = 2;
+inline void ListDocumentsResponse::clear_next_page_token() {
+ next_page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListDocumentsResponse::next_page_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+ return next_page_token_.GetNoArena();
+}
+inline void ListDocumentsResponse::set_next_page_token(const ::std::string& value) {
+
+ next_page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+}
+#if LANG_CXX11
+inline void ListDocumentsResponse::set_next_page_token(::std::string&& value) {
+
+ next_page_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+}
+#endif
+inline void ListDocumentsResponse::set_next_page_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ next_page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+}
+inline void ListDocumentsResponse::set_next_page_token(const char* value, size_t size) {
+
+ next_page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+}
+inline ::std::string* ListDocumentsResponse::mutable_next_page_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+ return next_page_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListDocumentsResponse::release_next_page_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+
+ return next_page_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListDocumentsResponse::set_allocated_next_page_token(::std::string* next_page_token) {
+ if (next_page_token != NULL) {
+
+ } else {
+
+ }
+ next_page_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListDocumentsResponse.next_page_token)
+}
+
+// -------------------------------------------------------------------
+
+// CreateDocumentRequest
+
+// string parent = 1;
+inline void CreateDocumentRequest::clear_parent() {
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& CreateDocumentRequest::parent() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CreateDocumentRequest.parent)
+ return parent_.GetNoArena();
+}
+inline void CreateDocumentRequest::set_parent(const ::std::string& value) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.CreateDocumentRequest.parent)
+}
+#if LANG_CXX11
+inline void CreateDocumentRequest::set_parent(::std::string&& value) {
+
+ parent_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.CreateDocumentRequest.parent)
+}
+#endif
+inline void CreateDocumentRequest::set_parent(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.CreateDocumentRequest.parent)
+}
+inline void CreateDocumentRequest::set_parent(const char* value, size_t size) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.CreateDocumentRequest.parent)
+}
+inline ::std::string* CreateDocumentRequest::mutable_parent() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CreateDocumentRequest.parent)
+ return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* CreateDocumentRequest::release_parent() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CreateDocumentRequest.parent)
+
+ return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void CreateDocumentRequest::set_allocated_parent(::std::string* parent) {
+ if (parent != NULL) {
+
+ } else {
+
+ }
+ parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CreateDocumentRequest.parent)
+}
+
+// string collection_id = 2;
+inline void CreateDocumentRequest::clear_collection_id() {
+ collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& CreateDocumentRequest::collection_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+ return collection_id_.GetNoArena();
+}
+inline void CreateDocumentRequest::set_collection_id(const ::std::string& value) {
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+}
+#if LANG_CXX11
+inline void CreateDocumentRequest::set_collection_id(::std::string&& value) {
+
+ collection_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+}
+#endif
+inline void CreateDocumentRequest::set_collection_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+}
+inline void CreateDocumentRequest::set_collection_id(const char* value, size_t size) {
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+}
+inline ::std::string* CreateDocumentRequest::mutable_collection_id() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+ return collection_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* CreateDocumentRequest::release_collection_id() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+
+ return collection_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void CreateDocumentRequest::set_allocated_collection_id(::std::string* collection_id) {
+ if (collection_id != NULL) {
+
+ } else {
+
+ }
+ collection_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_id);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CreateDocumentRequest.collection_id)
+}
+
+// string document_id = 3;
+inline void CreateDocumentRequest::clear_document_id() {
+ document_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& CreateDocumentRequest::document_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+ return document_id_.GetNoArena();
+}
+inline void CreateDocumentRequest::set_document_id(const ::std::string& value) {
+
+ document_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+}
+#if LANG_CXX11
+inline void CreateDocumentRequest::set_document_id(::std::string&& value) {
+
+ document_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+}
+#endif
+inline void CreateDocumentRequest::set_document_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ document_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+}
+inline void CreateDocumentRequest::set_document_id(const char* value, size_t size) {
+
+ document_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+}
+inline ::std::string* CreateDocumentRequest::mutable_document_id() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+ return document_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* CreateDocumentRequest::release_document_id() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+
+ return document_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void CreateDocumentRequest::set_allocated_document_id(::std::string* document_id) {
+ if (document_id != NULL) {
+
+ } else {
+
+ }
+ document_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), document_id);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CreateDocumentRequest.document_id)
+}
+
+// .google.firestore.v1beta1.Document document = 4;
+inline bool CreateDocumentRequest::has_document() const {
+ return this != internal_default_instance() && document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Document& CreateDocumentRequest::document() const {
+ const ::google::firestore::v1beta1::Document* p = document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CreateDocumentRequest.document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Document*>(
+ &::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* CreateDocumentRequest::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CreateDocumentRequest.document)
+
+ ::google::firestore::v1beta1::Document* temp = document_;
+ document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Document* CreateDocumentRequest::mutable_document() {
+
+ if (document_ == NULL) {
+ document_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CreateDocumentRequest.document)
+ return document_;
+}
+inline void CreateDocumentRequest::set_allocated_document(::google::firestore::v1beta1::Document* document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(document_);
+ }
+ if (document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ document_ = document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CreateDocumentRequest.document)
+}
+
+// .google.firestore.v1beta1.DocumentMask mask = 5;
+inline bool CreateDocumentRequest::has_mask() const {
+ return this != internal_default_instance() && mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& CreateDocumentRequest::mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CreateDocumentRequest.mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* CreateDocumentRequest::release_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CreateDocumentRequest.mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = mask_;
+ mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* CreateDocumentRequest::mutable_mask() {
+
+ if (mask_ == NULL) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CreateDocumentRequest.mask)
+ return mask_;
+}
+inline void CreateDocumentRequest::set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(mask_);
+ }
+ if (mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ mask_ = mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CreateDocumentRequest.mask)
+}
+
+// -------------------------------------------------------------------
+
+// UpdateDocumentRequest
+
+// .google.firestore.v1beta1.Document document = 1;
+inline bool UpdateDocumentRequest::has_document() const {
+ return this != internal_default_instance() && document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Document& UpdateDocumentRequest::document() const {
+ const ::google::firestore::v1beta1::Document* p = document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.UpdateDocumentRequest.document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Document*>(
+ &::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* UpdateDocumentRequest::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.UpdateDocumentRequest.document)
+
+ ::google::firestore::v1beta1::Document* temp = document_;
+ document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Document* UpdateDocumentRequest::mutable_document() {
+
+ if (document_ == NULL) {
+ document_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.UpdateDocumentRequest.document)
+ return document_;
+}
+inline void UpdateDocumentRequest::set_allocated_document(::google::firestore::v1beta1::Document* document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(document_);
+ }
+ if (document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ document_ = document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.UpdateDocumentRequest.document)
+}
+
+// .google.firestore.v1beta1.DocumentMask update_mask = 2;
+inline bool UpdateDocumentRequest::has_update_mask() const {
+ return this != internal_default_instance() && update_mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& UpdateDocumentRequest::update_mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = update_mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.UpdateDocumentRequest.update_mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* UpdateDocumentRequest::release_update_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.UpdateDocumentRequest.update_mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = update_mask_;
+ update_mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* UpdateDocumentRequest::mutable_update_mask() {
+
+ if (update_mask_ == NULL) {
+ update_mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.UpdateDocumentRequest.update_mask)
+ return update_mask_;
+}
+inline void UpdateDocumentRequest::set_allocated_update_mask(::google::firestore::v1beta1::DocumentMask* update_mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(update_mask_);
+ }
+ if (update_mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ update_mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, update_mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ update_mask_ = update_mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.UpdateDocumentRequest.update_mask)
+}
+
+// .google.firestore.v1beta1.DocumentMask mask = 3;
+inline bool UpdateDocumentRequest::has_mask() const {
+ return this != internal_default_instance() && mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& UpdateDocumentRequest::mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.UpdateDocumentRequest.mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* UpdateDocumentRequest::release_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.UpdateDocumentRequest.mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = mask_;
+ mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* UpdateDocumentRequest::mutable_mask() {
+
+ if (mask_ == NULL) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.UpdateDocumentRequest.mask)
+ return mask_;
+}
+inline void UpdateDocumentRequest::set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(mask_);
+ }
+ if (mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ mask_ = mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.UpdateDocumentRequest.mask)
+}
+
+// .google.firestore.v1beta1.Precondition current_document = 4;
+inline bool UpdateDocumentRequest::has_current_document() const {
+ return this != internal_default_instance() && current_document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Precondition& UpdateDocumentRequest::current_document() const {
+ const ::google::firestore::v1beta1::Precondition* p = current_document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.UpdateDocumentRequest.current_document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Precondition*>(
+ &::google::firestore::v1beta1::_Precondition_default_instance_);
+}
+inline ::google::firestore::v1beta1::Precondition* UpdateDocumentRequest::release_current_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.UpdateDocumentRequest.current_document)
+
+ ::google::firestore::v1beta1::Precondition* temp = current_document_;
+ current_document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Precondition* UpdateDocumentRequest::mutable_current_document() {
+
+ if (current_document_ == NULL) {
+ current_document_ = new ::google::firestore::v1beta1::Precondition;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.UpdateDocumentRequest.current_document)
+ return current_document_;
+}
+inline void UpdateDocumentRequest::set_allocated_current_document(::google::firestore::v1beta1::Precondition* current_document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(current_document_);
+ }
+ if (current_document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ current_document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, current_document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ current_document_ = current_document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.UpdateDocumentRequest.current_document)
+}
+
+// -------------------------------------------------------------------
+
+// DeleteDocumentRequest
+
+// string name = 1;
+inline void DeleteDocumentRequest::clear_name() {
+ name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& DeleteDocumentRequest::name() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DeleteDocumentRequest.name)
+ return name_.GetNoArena();
+}
+inline void DeleteDocumentRequest::set_name(const ::std::string& value) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DeleteDocumentRequest.name)
+}
+#if LANG_CXX11
+inline void DeleteDocumentRequest::set_name(::std::string&& value) {
+
+ name_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.DeleteDocumentRequest.name)
+}
+#endif
+inline void DeleteDocumentRequest::set_name(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DeleteDocumentRequest.name)
+}
+inline void DeleteDocumentRequest::set_name(const char* value, size_t size) {
+
+ name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DeleteDocumentRequest.name)
+}
+inline ::std::string* DeleteDocumentRequest::mutable_name() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DeleteDocumentRequest.name)
+ return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* DeleteDocumentRequest::release_name() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DeleteDocumentRequest.name)
+
+ return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void DeleteDocumentRequest::set_allocated_name(::std::string* name) {
+ if (name != NULL) {
+
+ } else {
+
+ }
+ name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DeleteDocumentRequest.name)
+}
+
+// .google.firestore.v1beta1.Precondition current_document = 2;
+inline bool DeleteDocumentRequest::has_current_document() const {
+ return this != internal_default_instance() && current_document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Precondition& DeleteDocumentRequest::current_document() const {
+ const ::google::firestore::v1beta1::Precondition* p = current_document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DeleteDocumentRequest.current_document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Precondition*>(
+ &::google::firestore::v1beta1::_Precondition_default_instance_);
+}
+inline ::google::firestore::v1beta1::Precondition* DeleteDocumentRequest::release_current_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DeleteDocumentRequest.current_document)
+
+ ::google::firestore::v1beta1::Precondition* temp = current_document_;
+ current_document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Precondition* DeleteDocumentRequest::mutable_current_document() {
+
+ if (current_document_ == NULL) {
+ current_document_ = new ::google::firestore::v1beta1::Precondition;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DeleteDocumentRequest.current_document)
+ return current_document_;
+}
+inline void DeleteDocumentRequest::set_allocated_current_document(::google::firestore::v1beta1::Precondition* current_document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(current_document_);
+ }
+ if (current_document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ current_document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, current_document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ current_document_ = current_document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DeleteDocumentRequest.current_document)
+}
+
+// -------------------------------------------------------------------
+
+// BatchGetDocumentsRequest
+
+// string database = 1;
+inline void BatchGetDocumentsRequest::clear_database() {
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& BatchGetDocumentsRequest::database() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+ return database_.GetNoArena();
+}
+inline void BatchGetDocumentsRequest::set_database(const ::std::string& value) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+}
+#if LANG_CXX11
+inline void BatchGetDocumentsRequest::set_database(::std::string&& value) {
+
+ database_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+}
+#endif
+inline void BatchGetDocumentsRequest::set_database(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+}
+inline void BatchGetDocumentsRequest::set_database(const char* value, size_t size) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+}
+inline ::std::string* BatchGetDocumentsRequest::mutable_database() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+ return database_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* BatchGetDocumentsRequest::release_database() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+
+ return database_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void BatchGetDocumentsRequest::set_allocated_database(::std::string* database) {
+ if (database != NULL) {
+
+ } else {
+
+ }
+ database_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), database);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsRequest.database)
+}
+
+// repeated string documents = 2;
+inline int BatchGetDocumentsRequest::documents_size() const {
+ return documents_.size();
+}
+inline void BatchGetDocumentsRequest::clear_documents() {
+ documents_.Clear();
+}
+inline const ::std::string& BatchGetDocumentsRequest::documents(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ return documents_.Get(index);
+}
+inline ::std::string* BatchGetDocumentsRequest::mutable_documents(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ return documents_.Mutable(index);
+}
+inline void BatchGetDocumentsRequest::set_documents(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ documents_.Mutable(index)->assign(value);
+}
+#if LANG_CXX11
+inline void BatchGetDocumentsRequest::set_documents(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ documents_.Mutable(index)->assign(std::move(value));
+}
+#endif
+inline void BatchGetDocumentsRequest::set_documents(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ documents_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+}
+inline void BatchGetDocumentsRequest::set_documents(int index, const char* value, size_t size) {
+ documents_.Mutable(index)->assign(
+ reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+}
+inline ::std::string* BatchGetDocumentsRequest::add_documents() {
+ // @@protoc_insertion_point(field_add_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ return documents_.Add();
+}
+inline void BatchGetDocumentsRequest::add_documents(const ::std::string& value) {
+ documents_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+}
+#if LANG_CXX11
+inline void BatchGetDocumentsRequest::add_documents(::std::string&& value) {
+ documents_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+}
+#endif
+inline void BatchGetDocumentsRequest::add_documents(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ documents_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+}
+inline void BatchGetDocumentsRequest::add_documents(const char* value, size_t size) {
+ documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+}
+inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
+BatchGetDocumentsRequest::documents() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ return documents_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::std::string>*
+BatchGetDocumentsRequest::mutable_documents() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.BatchGetDocumentsRequest.documents)
+ return &documents_;
+}
+
+// .google.firestore.v1beta1.DocumentMask mask = 3;
+inline bool BatchGetDocumentsRequest::has_mask() const {
+ return this != internal_default_instance() && mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& BatchGetDocumentsRequest::mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsRequest.mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* BatchGetDocumentsRequest::release_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsRequest.mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = mask_;
+ mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* BatchGetDocumentsRequest::mutable_mask() {
+
+ if (mask_ == NULL) {
+ mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.mask)
+ return mask_;
+}
+inline void BatchGetDocumentsRequest::set_allocated_mask(::google::firestore::v1beta1::DocumentMask* mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(mask_);
+ }
+ if (mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ mask_ = mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsRequest.mask)
+}
+
+// bytes transaction = 4;
+inline bool BatchGetDocumentsRequest::has_transaction() const {
+ return consistency_selector_case() == kTransaction;
+}
+inline void BatchGetDocumentsRequest::set_has_transaction() {
+ _oneof_case_[0] = kTransaction;
+}
+inline void BatchGetDocumentsRequest::clear_transaction() {
+ if (has_transaction()) {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_consistency_selector();
+ }
+}
+inline const ::std::string& BatchGetDocumentsRequest::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+ if (has_transaction()) {
+ return consistency_selector_.transaction_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void BatchGetDocumentsRequest::set_transaction(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+}
+#if LANG_CXX11
+inline void BatchGetDocumentsRequest::set_transaction(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+}
+#endif
+inline void BatchGetDocumentsRequest::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+}
+inline void BatchGetDocumentsRequest::set_transaction(const void* value, size_t size) {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+}
+inline ::std::string* BatchGetDocumentsRequest::mutable_transaction() {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+ return consistency_selector_.transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* BatchGetDocumentsRequest::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+ if (has_transaction()) {
+ clear_has_consistency_selector();
+ return consistency_selector_.transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void BatchGetDocumentsRequest::set_allocated_transaction(::std::string* transaction) {
+ if (!has_transaction()) {
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_consistency_selector();
+ if (transaction != NULL) {
+ set_has_transaction();
+ consistency_selector_.transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ transaction);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsRequest.transaction)
+}
+
+// .google.firestore.v1beta1.TransactionOptions new_transaction = 5;
+inline bool BatchGetDocumentsRequest::has_new_transaction() const {
+ return consistency_selector_case() == kNewTransaction;
+}
+inline void BatchGetDocumentsRequest::set_has_new_transaction() {
+ _oneof_case_[0] = kNewTransaction;
+}
+inline ::google::firestore::v1beta1::TransactionOptions* BatchGetDocumentsRequest::release_new_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction)
+ if (has_new_transaction()) {
+ clear_has_consistency_selector();
+ ::google::firestore::v1beta1::TransactionOptions* temp = consistency_selector_.new_transaction_;
+ consistency_selector_.new_transaction_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::TransactionOptions& BatchGetDocumentsRequest::new_transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction)
+ return has_new_transaction()
+ ? *consistency_selector_.new_transaction_
+ : *reinterpret_cast< ::google::firestore::v1beta1::TransactionOptions*>(&::google::firestore::v1beta1::_TransactionOptions_default_instance_);
+}
+inline ::google::firestore::v1beta1::TransactionOptions* BatchGetDocumentsRequest::mutable_new_transaction() {
+ if (!has_new_transaction()) {
+ clear_consistency_selector();
+ set_has_new_transaction();
+ consistency_selector_.new_transaction_ = new ::google::firestore::v1beta1::TransactionOptions;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.new_transaction)
+ return consistency_selector_.new_transaction_;
+}
+
+// .google.protobuf.Timestamp read_time = 7;
+inline bool BatchGetDocumentsRequest::has_read_time() const {
+ return consistency_selector_case() == kReadTime;
+}
+inline void BatchGetDocumentsRequest::set_has_read_time() {
+ _oneof_case_[0] = kReadTime;
+}
+inline ::google::protobuf::Timestamp* BatchGetDocumentsRequest::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsRequest.read_time)
+ if (has_read_time()) {
+ clear_has_consistency_selector();
+ ::google::protobuf::Timestamp* temp = consistency_selector_.read_time_;
+ consistency_selector_.read_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& BatchGetDocumentsRequest::read_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsRequest.read_time)
+ return has_read_time()
+ ? *consistency_selector_.read_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* BatchGetDocumentsRequest::mutable_read_time() {
+ if (!has_read_time()) {
+ clear_consistency_selector();
+ set_has_read_time();
+ consistency_selector_.read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsRequest.read_time)
+ return consistency_selector_.read_time_;
+}
+
+inline bool BatchGetDocumentsRequest::has_consistency_selector() const {
+ return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline void BatchGetDocumentsRequest::clear_has_consistency_selector() {
+ _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline BatchGetDocumentsRequest::ConsistencySelectorCase BatchGetDocumentsRequest::consistency_selector_case() const {
+ return BatchGetDocumentsRequest::ConsistencySelectorCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// BatchGetDocumentsResponse
+
+// .google.firestore.v1beta1.Document found = 1;
+inline bool BatchGetDocumentsResponse::has_found() const {
+ return result_case() == kFound;
+}
+inline void BatchGetDocumentsResponse::set_has_found() {
+ _oneof_case_[0] = kFound;
+}
+inline ::google::firestore::v1beta1::Document* BatchGetDocumentsResponse::release_found() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsResponse.found)
+ if (has_found()) {
+ clear_has_result();
+ ::google::firestore::v1beta1::Document* temp = result_.found_;
+ result_.found_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::Document& BatchGetDocumentsResponse::found() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsResponse.found)
+ return has_found()
+ ? *result_.found_
+ : *reinterpret_cast< ::google::firestore::v1beta1::Document*>(&::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* BatchGetDocumentsResponse::mutable_found() {
+ if (!has_found()) {
+ clear_result();
+ set_has_found();
+ result_.found_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsResponse.found)
+ return result_.found_;
+}
+
+// string missing = 2;
+inline bool BatchGetDocumentsResponse::has_missing() const {
+ return result_case() == kMissing;
+}
+inline void BatchGetDocumentsResponse::set_has_missing() {
+ _oneof_case_[0] = kMissing;
+}
+inline void BatchGetDocumentsResponse::clear_missing() {
+ if (has_missing()) {
+ result_.missing_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_result();
+ }
+}
+inline const ::std::string& BatchGetDocumentsResponse::missing() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+ if (has_missing()) {
+ return result_.missing_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void BatchGetDocumentsResponse::set_missing(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+ if (!has_missing()) {
+ clear_result();
+ set_has_missing();
+ result_.missing_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ result_.missing_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+}
+#if LANG_CXX11
+inline void BatchGetDocumentsResponse::set_missing(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+ if (!has_missing()) {
+ clear_result();
+ set_has_missing();
+ result_.missing_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ result_.missing_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+}
+#endif
+inline void BatchGetDocumentsResponse::set_missing(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_missing()) {
+ clear_result();
+ set_has_missing();
+ result_.missing_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ result_.missing_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+}
+inline void BatchGetDocumentsResponse::set_missing(const char* value, size_t size) {
+ if (!has_missing()) {
+ clear_result();
+ set_has_missing();
+ result_.missing_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ result_.missing_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+}
+inline ::std::string* BatchGetDocumentsResponse::mutable_missing() {
+ if (!has_missing()) {
+ clear_result();
+ set_has_missing();
+ result_.missing_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+ return result_.missing_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* BatchGetDocumentsResponse::release_missing() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+ if (has_missing()) {
+ clear_has_result();
+ return result_.missing_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void BatchGetDocumentsResponse::set_allocated_missing(::std::string* missing) {
+ if (!has_missing()) {
+ result_.missing_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_result();
+ if (missing != NULL) {
+ set_has_missing();
+ result_.missing_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ missing);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsResponse.missing)
+}
+
+// bytes transaction = 3;
+inline void BatchGetDocumentsResponse::clear_transaction() {
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& BatchGetDocumentsResponse::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+ return transaction_.GetNoArena();
+}
+inline void BatchGetDocumentsResponse::set_transaction(const ::std::string& value) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+}
+#if LANG_CXX11
+inline void BatchGetDocumentsResponse::set_transaction(::std::string&& value) {
+
+ transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+}
+#endif
+inline void BatchGetDocumentsResponse::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+}
+inline void BatchGetDocumentsResponse::set_transaction(const void* value, size_t size) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+}
+inline ::std::string* BatchGetDocumentsResponse::mutable_transaction() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+ return transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* BatchGetDocumentsResponse::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+
+ return transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void BatchGetDocumentsResponse::set_allocated_transaction(::std::string* transaction) {
+ if (transaction != NULL) {
+
+ } else {
+
+ }
+ transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsResponse.transaction)
+}
+
+// .google.protobuf.Timestamp read_time = 4;
+inline bool BatchGetDocumentsResponse::has_read_time() const {
+ return this != internal_default_instance() && read_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& BatchGetDocumentsResponse::read_time() const {
+ const ::google::protobuf::Timestamp* p = read_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BatchGetDocumentsResponse.read_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* BatchGetDocumentsResponse::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BatchGetDocumentsResponse.read_time)
+
+ ::google::protobuf::Timestamp* temp = read_time_;
+ read_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* BatchGetDocumentsResponse::mutable_read_time() {
+
+ if (read_time_ == NULL) {
+ read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BatchGetDocumentsResponse.read_time)
+ return read_time_;
+}
+inline void BatchGetDocumentsResponse::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_time_);
+ }
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ read_time_ = read_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BatchGetDocumentsResponse.read_time)
+}
+
+inline bool BatchGetDocumentsResponse::has_result() const {
+ return result_case() != RESULT_NOT_SET;
+}
+inline void BatchGetDocumentsResponse::clear_has_result() {
+ _oneof_case_[0] = RESULT_NOT_SET;
+}
+inline BatchGetDocumentsResponse::ResultCase BatchGetDocumentsResponse::result_case() const {
+ return BatchGetDocumentsResponse::ResultCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// BeginTransactionRequest
+
+// string database = 1;
+inline void BeginTransactionRequest::clear_database() {
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& BeginTransactionRequest::database() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BeginTransactionRequest.database)
+ return database_.GetNoArena();
+}
+inline void BeginTransactionRequest::set_database(const ::std::string& value) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BeginTransactionRequest.database)
+}
+#if LANG_CXX11
+inline void BeginTransactionRequest::set_database(::std::string&& value) {
+
+ database_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.BeginTransactionRequest.database)
+}
+#endif
+inline void BeginTransactionRequest::set_database(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BeginTransactionRequest.database)
+}
+inline void BeginTransactionRequest::set_database(const char* value, size_t size) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BeginTransactionRequest.database)
+}
+inline ::std::string* BeginTransactionRequest::mutable_database() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BeginTransactionRequest.database)
+ return database_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* BeginTransactionRequest::release_database() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BeginTransactionRequest.database)
+
+ return database_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void BeginTransactionRequest::set_allocated_database(::std::string* database) {
+ if (database != NULL) {
+
+ } else {
+
+ }
+ database_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), database);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BeginTransactionRequest.database)
+}
+
+// .google.firestore.v1beta1.TransactionOptions options = 2;
+inline bool BeginTransactionRequest::has_options() const {
+ return this != internal_default_instance() && options_ != NULL;
+}
+inline const ::google::firestore::v1beta1::TransactionOptions& BeginTransactionRequest::options() const {
+ const ::google::firestore::v1beta1::TransactionOptions* p = options_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BeginTransactionRequest.options)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::TransactionOptions*>(
+ &::google::firestore::v1beta1::_TransactionOptions_default_instance_);
+}
+inline ::google::firestore::v1beta1::TransactionOptions* BeginTransactionRequest::release_options() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BeginTransactionRequest.options)
+
+ ::google::firestore::v1beta1::TransactionOptions* temp = options_;
+ options_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::TransactionOptions* BeginTransactionRequest::mutable_options() {
+
+ if (options_ == NULL) {
+ options_ = new ::google::firestore::v1beta1::TransactionOptions;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BeginTransactionRequest.options)
+ return options_;
+}
+inline void BeginTransactionRequest::set_allocated_options(::google::firestore::v1beta1::TransactionOptions* options) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(options_);
+ }
+ if (options) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ options = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, options, submessage_arena);
+ }
+
+ } else {
+
+ }
+ options_ = options;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BeginTransactionRequest.options)
+}
+
+// -------------------------------------------------------------------
+
+// BeginTransactionResponse
+
+// bytes transaction = 1;
+inline void BeginTransactionResponse::clear_transaction() {
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& BeginTransactionResponse::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+ return transaction_.GetNoArena();
+}
+inline void BeginTransactionResponse::set_transaction(const ::std::string& value) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+}
+#if LANG_CXX11
+inline void BeginTransactionResponse::set_transaction(::std::string&& value) {
+
+ transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+}
+#endif
+inline void BeginTransactionResponse::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+}
+inline void BeginTransactionResponse::set_transaction(const void* value, size_t size) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+}
+inline ::std::string* BeginTransactionResponse::mutable_transaction() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+ return transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* BeginTransactionResponse::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+
+ return transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void BeginTransactionResponse::set_allocated_transaction(::std::string* transaction) {
+ if (transaction != NULL) {
+
+ } else {
+
+ }
+ transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.BeginTransactionResponse.transaction)
+}
+
+// -------------------------------------------------------------------
+
+// CommitRequest
+
+// string database = 1;
+inline void CommitRequest::clear_database() {
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& CommitRequest::database() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CommitRequest.database)
+ return database_.GetNoArena();
+}
+inline void CommitRequest::set_database(const ::std::string& value) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.CommitRequest.database)
+}
+#if LANG_CXX11
+inline void CommitRequest::set_database(::std::string&& value) {
+
+ database_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.CommitRequest.database)
+}
+#endif
+inline void CommitRequest::set_database(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.CommitRequest.database)
+}
+inline void CommitRequest::set_database(const char* value, size_t size) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.CommitRequest.database)
+}
+inline ::std::string* CommitRequest::mutable_database() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CommitRequest.database)
+ return database_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* CommitRequest::release_database() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CommitRequest.database)
+
+ return database_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void CommitRequest::set_allocated_database(::std::string* database) {
+ if (database != NULL) {
+
+ } else {
+
+ }
+ database_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), database);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CommitRequest.database)
+}
+
+// repeated .google.firestore.v1beta1.Write writes = 2;
+inline int CommitRequest::writes_size() const {
+ return writes_.size();
+}
+inline const ::google::firestore::v1beta1::Write& CommitRequest::writes(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CommitRequest.writes)
+ return writes_.Get(index);
+}
+inline ::google::firestore::v1beta1::Write* CommitRequest::mutable_writes(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CommitRequest.writes)
+ return writes_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Write* CommitRequest::add_writes() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.CommitRequest.writes)
+ return writes_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >*
+CommitRequest::mutable_writes() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.CommitRequest.writes)
+ return &writes_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >&
+CommitRequest::writes() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.CommitRequest.writes)
+ return writes_;
+}
+
+// bytes transaction = 3;
+inline void CommitRequest::clear_transaction() {
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& CommitRequest::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CommitRequest.transaction)
+ return transaction_.GetNoArena();
+}
+inline void CommitRequest::set_transaction(const ::std::string& value) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.CommitRequest.transaction)
+}
+#if LANG_CXX11
+inline void CommitRequest::set_transaction(::std::string&& value) {
+
+ transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.CommitRequest.transaction)
+}
+#endif
+inline void CommitRequest::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.CommitRequest.transaction)
+}
+inline void CommitRequest::set_transaction(const void* value, size_t size) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.CommitRequest.transaction)
+}
+inline ::std::string* CommitRequest::mutable_transaction() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CommitRequest.transaction)
+ return transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* CommitRequest::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CommitRequest.transaction)
+
+ return transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void CommitRequest::set_allocated_transaction(::std::string* transaction) {
+ if (transaction != NULL) {
+
+ } else {
+
+ }
+ transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CommitRequest.transaction)
+}
+
+// -------------------------------------------------------------------
+
+// CommitResponse
+
+// repeated .google.firestore.v1beta1.WriteResult write_results = 1;
+inline int CommitResponse::write_results_size() const {
+ return write_results_.size();
+}
+inline const ::google::firestore::v1beta1::WriteResult& CommitResponse::write_results(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CommitResponse.write_results)
+ return write_results_.Get(index);
+}
+inline ::google::firestore::v1beta1::WriteResult* CommitResponse::mutable_write_results(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CommitResponse.write_results)
+ return write_results_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::WriteResult* CommitResponse::add_write_results() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.CommitResponse.write_results)
+ return write_results_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >*
+CommitResponse::mutable_write_results() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.CommitResponse.write_results)
+ return &write_results_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >&
+CommitResponse::write_results() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.CommitResponse.write_results)
+ return write_results_;
+}
+
+// .google.protobuf.Timestamp commit_time = 2;
+inline bool CommitResponse::has_commit_time() const {
+ return this != internal_default_instance() && commit_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& CommitResponse::commit_time() const {
+ const ::google::protobuf::Timestamp* p = commit_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.CommitResponse.commit_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* CommitResponse::release_commit_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.CommitResponse.commit_time)
+
+ ::google::protobuf::Timestamp* temp = commit_time_;
+ commit_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* CommitResponse::mutable_commit_time() {
+
+ if (commit_time_ == NULL) {
+ commit_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.CommitResponse.commit_time)
+ return commit_time_;
+}
+inline void CommitResponse::set_allocated_commit_time(::google::protobuf::Timestamp* commit_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(commit_time_);
+ }
+ if (commit_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(commit_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ commit_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, commit_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ commit_time_ = commit_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.CommitResponse.commit_time)
+}
+
+// -------------------------------------------------------------------
+
+// RollbackRequest
+
+// string database = 1;
+inline void RollbackRequest::clear_database() {
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& RollbackRequest::database() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RollbackRequest.database)
+ return database_.GetNoArena();
+}
+inline void RollbackRequest::set_database(const ::std::string& value) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RollbackRequest.database)
+}
+#if LANG_CXX11
+inline void RollbackRequest::set_database(::std::string&& value) {
+
+ database_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.RollbackRequest.database)
+}
+#endif
+inline void RollbackRequest::set_database(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.RollbackRequest.database)
+}
+inline void RollbackRequest::set_database(const char* value, size_t size) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.RollbackRequest.database)
+}
+inline ::std::string* RollbackRequest::mutable_database() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RollbackRequest.database)
+ return database_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* RollbackRequest::release_database() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RollbackRequest.database)
+
+ return database_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void RollbackRequest::set_allocated_database(::std::string* database) {
+ if (database != NULL) {
+
+ } else {
+
+ }
+ database_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), database);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RollbackRequest.database)
+}
+
+// bytes transaction = 2;
+inline void RollbackRequest::clear_transaction() {
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& RollbackRequest::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RollbackRequest.transaction)
+ return transaction_.GetNoArena();
+}
+inline void RollbackRequest::set_transaction(const ::std::string& value) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RollbackRequest.transaction)
+}
+#if LANG_CXX11
+inline void RollbackRequest::set_transaction(::std::string&& value) {
+
+ transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.RollbackRequest.transaction)
+}
+#endif
+inline void RollbackRequest::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.RollbackRequest.transaction)
+}
+inline void RollbackRequest::set_transaction(const void* value, size_t size) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.RollbackRequest.transaction)
+}
+inline ::std::string* RollbackRequest::mutable_transaction() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RollbackRequest.transaction)
+ return transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* RollbackRequest::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RollbackRequest.transaction)
+
+ return transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void RollbackRequest::set_allocated_transaction(::std::string* transaction) {
+ if (transaction != NULL) {
+
+ } else {
+
+ }
+ transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RollbackRequest.transaction)
+}
+
+// -------------------------------------------------------------------
+
+// RunQueryRequest
+
+// string parent = 1;
+inline void RunQueryRequest::clear_parent() {
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& RunQueryRequest::parent() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryRequest.parent)
+ return parent_.GetNoArena();
+}
+inline void RunQueryRequest::set_parent(const ::std::string& value) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RunQueryRequest.parent)
+}
+#if LANG_CXX11
+inline void RunQueryRequest::set_parent(::std::string&& value) {
+
+ parent_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.RunQueryRequest.parent)
+}
+#endif
+inline void RunQueryRequest::set_parent(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.RunQueryRequest.parent)
+}
+inline void RunQueryRequest::set_parent(const char* value, size_t size) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.RunQueryRequest.parent)
+}
+inline ::std::string* RunQueryRequest::mutable_parent() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryRequest.parent)
+ return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* RunQueryRequest::release_parent() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryRequest.parent)
+
+ return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void RunQueryRequest::set_allocated_parent(::std::string* parent) {
+ if (parent != NULL) {
+
+ } else {
+
+ }
+ parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryRequest.parent)
+}
+
+// .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+inline bool RunQueryRequest::has_structured_query() const {
+ return query_type_case() == kStructuredQuery;
+}
+inline void RunQueryRequest::set_has_structured_query() {
+ _oneof_case_[0] = kStructuredQuery;
+}
+inline ::google::firestore::v1beta1::StructuredQuery* RunQueryRequest::release_structured_query() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryRequest.structured_query)
+ if (has_structured_query()) {
+ clear_has_query_type();
+ ::google::firestore::v1beta1::StructuredQuery* temp = query_type_.structured_query_;
+ query_type_.structured_query_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::StructuredQuery& RunQueryRequest::structured_query() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryRequest.structured_query)
+ return has_structured_query()
+ ? *query_type_.structured_query_
+ : *reinterpret_cast< ::google::firestore::v1beta1::StructuredQuery*>(&::google::firestore::v1beta1::_StructuredQuery_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery* RunQueryRequest::mutable_structured_query() {
+ if (!has_structured_query()) {
+ clear_query_type();
+ set_has_structured_query();
+ query_type_.structured_query_ = new ::google::firestore::v1beta1::StructuredQuery;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryRequest.structured_query)
+ return query_type_.structured_query_;
+}
+
+// bytes transaction = 5;
+inline bool RunQueryRequest::has_transaction() const {
+ return consistency_selector_case() == kTransaction;
+}
+inline void RunQueryRequest::set_has_transaction() {
+ _oneof_case_[1] = kTransaction;
+}
+inline void RunQueryRequest::clear_transaction() {
+ if (has_transaction()) {
+ consistency_selector_.transaction_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_consistency_selector();
+ }
+}
+inline const ::std::string& RunQueryRequest::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryRequest.transaction)
+ if (has_transaction()) {
+ return consistency_selector_.transaction_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void RunQueryRequest::set_transaction(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RunQueryRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RunQueryRequest.transaction)
+}
+#if LANG_CXX11
+inline void RunQueryRequest::set_transaction(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RunQueryRequest.transaction)
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.RunQueryRequest.transaction)
+}
+#endif
+inline void RunQueryRequest::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.RunQueryRequest.transaction)
+}
+inline void RunQueryRequest::set_transaction(const void* value, size_t size) {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ consistency_selector_.transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.RunQueryRequest.transaction)
+}
+inline ::std::string* RunQueryRequest::mutable_transaction() {
+ if (!has_transaction()) {
+ clear_consistency_selector();
+ set_has_transaction();
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryRequest.transaction)
+ return consistency_selector_.transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* RunQueryRequest::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryRequest.transaction)
+ if (has_transaction()) {
+ clear_has_consistency_selector();
+ return consistency_selector_.transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void RunQueryRequest::set_allocated_transaction(::std::string* transaction) {
+ if (!has_transaction()) {
+ consistency_selector_.transaction_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_consistency_selector();
+ if (transaction != NULL) {
+ set_has_transaction();
+ consistency_selector_.transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ transaction);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryRequest.transaction)
+}
+
+// .google.firestore.v1beta1.TransactionOptions new_transaction = 6;
+inline bool RunQueryRequest::has_new_transaction() const {
+ return consistency_selector_case() == kNewTransaction;
+}
+inline void RunQueryRequest::set_has_new_transaction() {
+ _oneof_case_[1] = kNewTransaction;
+}
+inline ::google::firestore::v1beta1::TransactionOptions* RunQueryRequest::release_new_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryRequest.new_transaction)
+ if (has_new_transaction()) {
+ clear_has_consistency_selector();
+ ::google::firestore::v1beta1::TransactionOptions* temp = consistency_selector_.new_transaction_;
+ consistency_selector_.new_transaction_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::TransactionOptions& RunQueryRequest::new_transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryRequest.new_transaction)
+ return has_new_transaction()
+ ? *consistency_selector_.new_transaction_
+ : *reinterpret_cast< ::google::firestore::v1beta1::TransactionOptions*>(&::google::firestore::v1beta1::_TransactionOptions_default_instance_);
+}
+inline ::google::firestore::v1beta1::TransactionOptions* RunQueryRequest::mutable_new_transaction() {
+ if (!has_new_transaction()) {
+ clear_consistency_selector();
+ set_has_new_transaction();
+ consistency_selector_.new_transaction_ = new ::google::firestore::v1beta1::TransactionOptions;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryRequest.new_transaction)
+ return consistency_selector_.new_transaction_;
+}
+
+// .google.protobuf.Timestamp read_time = 7;
+inline bool RunQueryRequest::has_read_time() const {
+ return consistency_selector_case() == kReadTime;
+}
+inline void RunQueryRequest::set_has_read_time() {
+ _oneof_case_[1] = kReadTime;
+}
+inline ::google::protobuf::Timestamp* RunQueryRequest::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryRequest.read_time)
+ if (has_read_time()) {
+ clear_has_consistency_selector();
+ ::google::protobuf::Timestamp* temp = consistency_selector_.read_time_;
+ consistency_selector_.read_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& RunQueryRequest::read_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryRequest.read_time)
+ return has_read_time()
+ ? *consistency_selector_.read_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* RunQueryRequest::mutable_read_time() {
+ if (!has_read_time()) {
+ clear_consistency_selector();
+ set_has_read_time();
+ consistency_selector_.read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryRequest.read_time)
+ return consistency_selector_.read_time_;
+}
+
+inline bool RunQueryRequest::has_query_type() const {
+ return query_type_case() != QUERY_TYPE_NOT_SET;
+}
+inline void RunQueryRequest::clear_has_query_type() {
+ _oneof_case_[0] = QUERY_TYPE_NOT_SET;
+}
+inline bool RunQueryRequest::has_consistency_selector() const {
+ return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline void RunQueryRequest::clear_has_consistency_selector() {
+ _oneof_case_[1] = CONSISTENCY_SELECTOR_NOT_SET;
+}
+inline RunQueryRequest::QueryTypeCase RunQueryRequest::query_type_case() const {
+ return RunQueryRequest::QueryTypeCase(_oneof_case_[0]);
+}
+inline RunQueryRequest::ConsistencySelectorCase RunQueryRequest::consistency_selector_case() const {
+ return RunQueryRequest::ConsistencySelectorCase(_oneof_case_[1]);
+}
+// -------------------------------------------------------------------
+
+// RunQueryResponse
+
+// bytes transaction = 2;
+inline void RunQueryResponse::clear_transaction() {
+ transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& RunQueryResponse::transaction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryResponse.transaction)
+ return transaction_.GetNoArena();
+}
+inline void RunQueryResponse::set_transaction(const ::std::string& value) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RunQueryResponse.transaction)
+}
+#if LANG_CXX11
+inline void RunQueryResponse::set_transaction(::std::string&& value) {
+
+ transaction_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.RunQueryResponse.transaction)
+}
+#endif
+inline void RunQueryResponse::set_transaction(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.RunQueryResponse.transaction)
+}
+inline void RunQueryResponse::set_transaction(const void* value, size_t size) {
+
+ transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.RunQueryResponse.transaction)
+}
+inline ::std::string* RunQueryResponse::mutable_transaction() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryResponse.transaction)
+ return transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* RunQueryResponse::release_transaction() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryResponse.transaction)
+
+ return transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void RunQueryResponse::set_allocated_transaction(::std::string* transaction) {
+ if (transaction != NULL) {
+
+ } else {
+
+ }
+ transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryResponse.transaction)
+}
+
+// .google.firestore.v1beta1.Document document = 1;
+inline bool RunQueryResponse::has_document() const {
+ return this != internal_default_instance() && document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Document& RunQueryResponse::document() const {
+ const ::google::firestore::v1beta1::Document* p = document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryResponse.document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Document*>(
+ &::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* RunQueryResponse::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryResponse.document)
+
+ ::google::firestore::v1beta1::Document* temp = document_;
+ document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Document* RunQueryResponse::mutable_document() {
+
+ if (document_ == NULL) {
+ document_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryResponse.document)
+ return document_;
+}
+inline void RunQueryResponse::set_allocated_document(::google::firestore::v1beta1::Document* document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(document_);
+ }
+ if (document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ document_ = document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryResponse.document)
+}
+
+// .google.protobuf.Timestamp read_time = 3;
+inline bool RunQueryResponse::has_read_time() const {
+ return this != internal_default_instance() && read_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& RunQueryResponse::read_time() const {
+ const ::google::protobuf::Timestamp* p = read_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryResponse.read_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* RunQueryResponse::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.RunQueryResponse.read_time)
+
+ ::google::protobuf::Timestamp* temp = read_time_;
+ read_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* RunQueryResponse::mutable_read_time() {
+
+ if (read_time_ == NULL) {
+ read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.RunQueryResponse.read_time)
+ return read_time_;
+}
+inline void RunQueryResponse::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_time_);
+ }
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ read_time_ = read_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.RunQueryResponse.read_time)
+}
+
+// int32 skipped_results = 4;
+inline void RunQueryResponse::clear_skipped_results() {
+ skipped_results_ = 0;
+}
+inline ::google::protobuf::int32 RunQueryResponse::skipped_results() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.RunQueryResponse.skipped_results)
+ return skipped_results_;
+}
+inline void RunQueryResponse::set_skipped_results(::google::protobuf::int32 value) {
+
+ skipped_results_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.RunQueryResponse.skipped_results)
+}
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// WriteRequest
+
+// string database = 1;
+inline void WriteRequest::clear_database() {
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& WriteRequest::database() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteRequest.database)
+ return database_.GetNoArena();
+}
+inline void WriteRequest::set_database(const ::std::string& value) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.WriteRequest.database)
+}
+#if LANG_CXX11
+inline void WriteRequest::set_database(::std::string&& value) {
+
+ database_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.WriteRequest.database)
+}
+#endif
+inline void WriteRequest::set_database(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.WriteRequest.database)
+}
+inline void WriteRequest::set_database(const char* value, size_t size) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.WriteRequest.database)
+}
+inline ::std::string* WriteRequest::mutable_database() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteRequest.database)
+ return database_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* WriteRequest::release_database() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteRequest.database)
+
+ return database_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void WriteRequest::set_allocated_database(::std::string* database) {
+ if (database != NULL) {
+
+ } else {
+
+ }
+ database_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), database);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteRequest.database)
+}
+
+// string stream_id = 2;
+inline void WriteRequest::clear_stream_id() {
+ stream_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& WriteRequest::stream_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteRequest.stream_id)
+ return stream_id_.GetNoArena();
+}
+inline void WriteRequest::set_stream_id(const ::std::string& value) {
+
+ stream_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.WriteRequest.stream_id)
+}
+#if LANG_CXX11
+inline void WriteRequest::set_stream_id(::std::string&& value) {
+
+ stream_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.WriteRequest.stream_id)
+}
+#endif
+inline void WriteRequest::set_stream_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ stream_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.WriteRequest.stream_id)
+}
+inline void WriteRequest::set_stream_id(const char* value, size_t size) {
+
+ stream_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.WriteRequest.stream_id)
+}
+inline ::std::string* WriteRequest::mutable_stream_id() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteRequest.stream_id)
+ return stream_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* WriteRequest::release_stream_id() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteRequest.stream_id)
+
+ return stream_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void WriteRequest::set_allocated_stream_id(::std::string* stream_id) {
+ if (stream_id != NULL) {
+
+ } else {
+
+ }
+ stream_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stream_id);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteRequest.stream_id)
+}
+
+// repeated .google.firestore.v1beta1.Write writes = 3;
+inline int WriteRequest::writes_size() const {
+ return writes_.size();
+}
+inline const ::google::firestore::v1beta1::Write& WriteRequest::writes(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteRequest.writes)
+ return writes_.Get(index);
+}
+inline ::google::firestore::v1beta1::Write* WriteRequest::mutable_writes(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteRequest.writes)
+ return writes_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Write* WriteRequest::add_writes() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.WriteRequest.writes)
+ return writes_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >*
+WriteRequest::mutable_writes() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.WriteRequest.writes)
+ return &writes_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Write >&
+WriteRequest::writes() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.WriteRequest.writes)
+ return writes_;
+}
+
+// bytes stream_token = 4;
+inline void WriteRequest::clear_stream_token() {
+ stream_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& WriteRequest::stream_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteRequest.stream_token)
+ return stream_token_.GetNoArena();
+}
+inline void WriteRequest::set_stream_token(const ::std::string& value) {
+
+ stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.WriteRequest.stream_token)
+}
+#if LANG_CXX11
+inline void WriteRequest::set_stream_token(::std::string&& value) {
+
+ stream_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.WriteRequest.stream_token)
+}
+#endif
+inline void WriteRequest::set_stream_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.WriteRequest.stream_token)
+}
+inline void WriteRequest::set_stream_token(const void* value, size_t size) {
+
+ stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.WriteRequest.stream_token)
+}
+inline ::std::string* WriteRequest::mutable_stream_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteRequest.stream_token)
+ return stream_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* WriteRequest::release_stream_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteRequest.stream_token)
+
+ return stream_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void WriteRequest::set_allocated_stream_token(::std::string* stream_token) {
+ if (stream_token != NULL) {
+
+ } else {
+
+ }
+ stream_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stream_token);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteRequest.stream_token)
+}
+
+// map<string, string> labels = 5;
+inline int WriteRequest::labels_size() const {
+ return labels_.size();
+}
+inline void WriteRequest::clear_labels() {
+ labels_.Clear();
+}
+inline const ::google::protobuf::Map< ::std::string, ::std::string >&
+WriteRequest::labels() const {
+ // @@protoc_insertion_point(field_map:google.firestore.v1beta1.WriteRequest.labels)
+ return labels_.GetMap();
+}
+inline ::google::protobuf::Map< ::std::string, ::std::string >*
+WriteRequest::mutable_labels() {
+ // @@protoc_insertion_point(field_mutable_map:google.firestore.v1beta1.WriteRequest.labels)
+ return labels_.MutableMap();
+}
+
+// -------------------------------------------------------------------
+
+// WriteResponse
+
+// string stream_id = 1;
+inline void WriteResponse::clear_stream_id() {
+ stream_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& WriteResponse::stream_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteResponse.stream_id)
+ return stream_id_.GetNoArena();
+}
+inline void WriteResponse::set_stream_id(const ::std::string& value) {
+
+ stream_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.WriteResponse.stream_id)
+}
+#if LANG_CXX11
+inline void WriteResponse::set_stream_id(::std::string&& value) {
+
+ stream_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.WriteResponse.stream_id)
+}
+#endif
+inline void WriteResponse::set_stream_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ stream_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.WriteResponse.stream_id)
+}
+inline void WriteResponse::set_stream_id(const char* value, size_t size) {
+
+ stream_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.WriteResponse.stream_id)
+}
+inline ::std::string* WriteResponse::mutable_stream_id() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteResponse.stream_id)
+ return stream_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* WriteResponse::release_stream_id() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteResponse.stream_id)
+
+ return stream_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void WriteResponse::set_allocated_stream_id(::std::string* stream_id) {
+ if (stream_id != NULL) {
+
+ } else {
+
+ }
+ stream_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stream_id);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteResponse.stream_id)
+}
+
+// bytes stream_token = 2;
+inline void WriteResponse::clear_stream_token() {
+ stream_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& WriteResponse::stream_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteResponse.stream_token)
+ return stream_token_.GetNoArena();
+}
+inline void WriteResponse::set_stream_token(const ::std::string& value) {
+
+ stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.WriteResponse.stream_token)
+}
+#if LANG_CXX11
+inline void WriteResponse::set_stream_token(::std::string&& value) {
+
+ stream_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.WriteResponse.stream_token)
+}
+#endif
+inline void WriteResponse::set_stream_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.WriteResponse.stream_token)
+}
+inline void WriteResponse::set_stream_token(const void* value, size_t size) {
+
+ stream_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.WriteResponse.stream_token)
+}
+inline ::std::string* WriteResponse::mutable_stream_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteResponse.stream_token)
+ return stream_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* WriteResponse::release_stream_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteResponse.stream_token)
+
+ return stream_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void WriteResponse::set_allocated_stream_token(::std::string* stream_token) {
+ if (stream_token != NULL) {
+
+ } else {
+
+ }
+ stream_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stream_token);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteResponse.stream_token)
+}
+
+// repeated .google.firestore.v1beta1.WriteResult write_results = 3;
+inline int WriteResponse::write_results_size() const {
+ return write_results_.size();
+}
+inline const ::google::firestore::v1beta1::WriteResult& WriteResponse::write_results(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteResponse.write_results)
+ return write_results_.Get(index);
+}
+inline ::google::firestore::v1beta1::WriteResult* WriteResponse::mutable_write_results(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteResponse.write_results)
+ return write_results_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::WriteResult* WriteResponse::add_write_results() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.WriteResponse.write_results)
+ return write_results_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >*
+WriteResponse::mutable_write_results() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.WriteResponse.write_results)
+ return &write_results_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::WriteResult >&
+WriteResponse::write_results() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.WriteResponse.write_results)
+ return write_results_;
+}
+
+// .google.protobuf.Timestamp commit_time = 4;
+inline bool WriteResponse::has_commit_time() const {
+ return this != internal_default_instance() && commit_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& WriteResponse::commit_time() const {
+ const ::google::protobuf::Timestamp* p = commit_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteResponse.commit_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* WriteResponse::release_commit_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteResponse.commit_time)
+
+ ::google::protobuf::Timestamp* temp = commit_time_;
+ commit_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* WriteResponse::mutable_commit_time() {
+
+ if (commit_time_ == NULL) {
+ commit_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteResponse.commit_time)
+ return commit_time_;
+}
+inline void WriteResponse::set_allocated_commit_time(::google::protobuf::Timestamp* commit_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(commit_time_);
+ }
+ if (commit_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(commit_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ commit_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, commit_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ commit_time_ = commit_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteResponse.commit_time)
+}
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// ListenRequest
+
+// string database = 1;
+inline void ListenRequest::clear_database() {
+ database_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListenRequest::database() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenRequest.database)
+ return database_.GetNoArena();
+}
+inline void ListenRequest::set_database(const ::std::string& value) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListenRequest.database)
+}
+#if LANG_CXX11
+inline void ListenRequest::set_database(::std::string&& value) {
+
+ database_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListenRequest.database)
+}
+#endif
+inline void ListenRequest::set_database(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListenRequest.database)
+}
+inline void ListenRequest::set_database(const char* value, size_t size) {
+
+ database_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListenRequest.database)
+}
+inline ::std::string* ListenRequest::mutable_database() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenRequest.database)
+ return database_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListenRequest::release_database() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenRequest.database)
+
+ return database_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListenRequest::set_allocated_database(::std::string* database) {
+ if (database != NULL) {
+
+ } else {
+
+ }
+ database_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), database);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListenRequest.database)
+}
+
+// .google.firestore.v1beta1.Target add_target = 2;
+inline bool ListenRequest::has_add_target() const {
+ return target_change_case() == kAddTarget;
+}
+inline void ListenRequest::set_has_add_target() {
+ _oneof_case_[0] = kAddTarget;
+}
+inline void ListenRequest::clear_add_target() {
+ if (has_add_target()) {
+ delete target_change_.add_target_;
+ clear_has_target_change();
+ }
+}
+inline ::google::firestore::v1beta1::Target* ListenRequest::release_add_target() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenRequest.add_target)
+ if (has_add_target()) {
+ clear_has_target_change();
+ ::google::firestore::v1beta1::Target* temp = target_change_.add_target_;
+ target_change_.add_target_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::Target& ListenRequest::add_target() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenRequest.add_target)
+ return has_add_target()
+ ? *target_change_.add_target_
+ : *reinterpret_cast< ::google::firestore::v1beta1::Target*>(&::google::firestore::v1beta1::_Target_default_instance_);
+}
+inline ::google::firestore::v1beta1::Target* ListenRequest::mutable_add_target() {
+ if (!has_add_target()) {
+ clear_target_change();
+ set_has_add_target();
+ target_change_.add_target_ = new ::google::firestore::v1beta1::Target;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenRequest.add_target)
+ return target_change_.add_target_;
+}
+
+// int32 remove_target = 3;
+inline bool ListenRequest::has_remove_target() const {
+ return target_change_case() == kRemoveTarget;
+}
+inline void ListenRequest::set_has_remove_target() {
+ _oneof_case_[0] = kRemoveTarget;
+}
+inline void ListenRequest::clear_remove_target() {
+ if (has_remove_target()) {
+ target_change_.remove_target_ = 0;
+ clear_has_target_change();
+ }
+}
+inline ::google::protobuf::int32 ListenRequest::remove_target() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenRequest.remove_target)
+ if (has_remove_target()) {
+ return target_change_.remove_target_;
+ }
+ return 0;
+}
+inline void ListenRequest::set_remove_target(::google::protobuf::int32 value) {
+ if (!has_remove_target()) {
+ clear_target_change();
+ set_has_remove_target();
+ }
+ target_change_.remove_target_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListenRequest.remove_target)
+}
+
+// map<string, string> labels = 4;
+inline int ListenRequest::labels_size() const {
+ return labels_.size();
+}
+inline void ListenRequest::clear_labels() {
+ labels_.Clear();
+}
+inline const ::google::protobuf::Map< ::std::string, ::std::string >&
+ListenRequest::labels() const {
+ // @@protoc_insertion_point(field_map:google.firestore.v1beta1.ListenRequest.labels)
+ return labels_.GetMap();
+}
+inline ::google::protobuf::Map< ::std::string, ::std::string >*
+ListenRequest::mutable_labels() {
+ // @@protoc_insertion_point(field_mutable_map:google.firestore.v1beta1.ListenRequest.labels)
+ return labels_.MutableMap();
+}
+
+inline bool ListenRequest::has_target_change() const {
+ return target_change_case() != TARGET_CHANGE_NOT_SET;
+}
+inline void ListenRequest::clear_has_target_change() {
+ _oneof_case_[0] = TARGET_CHANGE_NOT_SET;
+}
+inline ListenRequest::TargetChangeCase ListenRequest::target_change_case() const {
+ return ListenRequest::TargetChangeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// ListenResponse
+
+// .google.firestore.v1beta1.TargetChange target_change = 2;
+inline bool ListenResponse::has_target_change() const {
+ return response_type_case() == kTargetChange;
+}
+inline void ListenResponse::set_has_target_change() {
+ _oneof_case_[0] = kTargetChange;
+}
+inline void ListenResponse::clear_target_change() {
+ if (has_target_change()) {
+ delete response_type_.target_change_;
+ clear_has_response_type();
+ }
+}
+inline ::google::firestore::v1beta1::TargetChange* ListenResponse::release_target_change() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenResponse.target_change)
+ if (has_target_change()) {
+ clear_has_response_type();
+ ::google::firestore::v1beta1::TargetChange* temp = response_type_.target_change_;
+ response_type_.target_change_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::TargetChange& ListenResponse::target_change() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenResponse.target_change)
+ return has_target_change()
+ ? *response_type_.target_change_
+ : *reinterpret_cast< ::google::firestore::v1beta1::TargetChange*>(&::google::firestore::v1beta1::_TargetChange_default_instance_);
+}
+inline ::google::firestore::v1beta1::TargetChange* ListenResponse::mutable_target_change() {
+ if (!has_target_change()) {
+ clear_response_type();
+ set_has_target_change();
+ response_type_.target_change_ = new ::google::firestore::v1beta1::TargetChange;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenResponse.target_change)
+ return response_type_.target_change_;
+}
+
+// .google.firestore.v1beta1.DocumentChange document_change = 3;
+inline bool ListenResponse::has_document_change() const {
+ return response_type_case() == kDocumentChange;
+}
+inline void ListenResponse::set_has_document_change() {
+ _oneof_case_[0] = kDocumentChange;
+}
+inline ::google::firestore::v1beta1::DocumentChange* ListenResponse::release_document_change() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenResponse.document_change)
+ if (has_document_change()) {
+ clear_has_response_type();
+ ::google::firestore::v1beta1::DocumentChange* temp = response_type_.document_change_;
+ response_type_.document_change_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::DocumentChange& ListenResponse::document_change() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenResponse.document_change)
+ return has_document_change()
+ ? *response_type_.document_change_
+ : *reinterpret_cast< ::google::firestore::v1beta1::DocumentChange*>(&::google::firestore::v1beta1::_DocumentChange_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentChange* ListenResponse::mutable_document_change() {
+ if (!has_document_change()) {
+ clear_response_type();
+ set_has_document_change();
+ response_type_.document_change_ = new ::google::firestore::v1beta1::DocumentChange;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenResponse.document_change)
+ return response_type_.document_change_;
+}
+
+// .google.firestore.v1beta1.DocumentDelete document_delete = 4;
+inline bool ListenResponse::has_document_delete() const {
+ return response_type_case() == kDocumentDelete;
+}
+inline void ListenResponse::set_has_document_delete() {
+ _oneof_case_[0] = kDocumentDelete;
+}
+inline ::google::firestore::v1beta1::DocumentDelete* ListenResponse::release_document_delete() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenResponse.document_delete)
+ if (has_document_delete()) {
+ clear_has_response_type();
+ ::google::firestore::v1beta1::DocumentDelete* temp = response_type_.document_delete_;
+ response_type_.document_delete_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::DocumentDelete& ListenResponse::document_delete() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenResponse.document_delete)
+ return has_document_delete()
+ ? *response_type_.document_delete_
+ : *reinterpret_cast< ::google::firestore::v1beta1::DocumentDelete*>(&::google::firestore::v1beta1::_DocumentDelete_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentDelete* ListenResponse::mutable_document_delete() {
+ if (!has_document_delete()) {
+ clear_response_type();
+ set_has_document_delete();
+ response_type_.document_delete_ = new ::google::firestore::v1beta1::DocumentDelete;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenResponse.document_delete)
+ return response_type_.document_delete_;
+}
+
+// .google.firestore.v1beta1.DocumentRemove document_remove = 6;
+inline bool ListenResponse::has_document_remove() const {
+ return response_type_case() == kDocumentRemove;
+}
+inline void ListenResponse::set_has_document_remove() {
+ _oneof_case_[0] = kDocumentRemove;
+}
+inline ::google::firestore::v1beta1::DocumentRemove* ListenResponse::release_document_remove() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenResponse.document_remove)
+ if (has_document_remove()) {
+ clear_has_response_type();
+ ::google::firestore::v1beta1::DocumentRemove* temp = response_type_.document_remove_;
+ response_type_.document_remove_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::DocumentRemove& ListenResponse::document_remove() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenResponse.document_remove)
+ return has_document_remove()
+ ? *response_type_.document_remove_
+ : *reinterpret_cast< ::google::firestore::v1beta1::DocumentRemove*>(&::google::firestore::v1beta1::_DocumentRemove_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentRemove* ListenResponse::mutable_document_remove() {
+ if (!has_document_remove()) {
+ clear_response_type();
+ set_has_document_remove();
+ response_type_.document_remove_ = new ::google::firestore::v1beta1::DocumentRemove;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenResponse.document_remove)
+ return response_type_.document_remove_;
+}
+
+// .google.firestore.v1beta1.ExistenceFilter filter = 5;
+inline bool ListenResponse::has_filter() const {
+ return response_type_case() == kFilter;
+}
+inline void ListenResponse::set_has_filter() {
+ _oneof_case_[0] = kFilter;
+}
+inline ::google::firestore::v1beta1::ExistenceFilter* ListenResponse::release_filter() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListenResponse.filter)
+ if (has_filter()) {
+ clear_has_response_type();
+ ::google::firestore::v1beta1::ExistenceFilter* temp = response_type_.filter_;
+ response_type_.filter_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::ExistenceFilter& ListenResponse::filter() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListenResponse.filter)
+ return has_filter()
+ ? *response_type_.filter_
+ : *reinterpret_cast< ::google::firestore::v1beta1::ExistenceFilter*>(&::google::firestore::v1beta1::_ExistenceFilter_default_instance_);
+}
+inline ::google::firestore::v1beta1::ExistenceFilter* ListenResponse::mutable_filter() {
+ if (!has_filter()) {
+ clear_response_type();
+ set_has_filter();
+ response_type_.filter_ = new ::google::firestore::v1beta1::ExistenceFilter;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListenResponse.filter)
+ return response_type_.filter_;
+}
+
+inline bool ListenResponse::has_response_type() const {
+ return response_type_case() != RESPONSE_TYPE_NOT_SET;
+}
+inline void ListenResponse::clear_has_response_type() {
+ _oneof_case_[0] = RESPONSE_TYPE_NOT_SET;
+}
+inline ListenResponse::ResponseTypeCase ListenResponse::response_type_case() const {
+ return ListenResponse::ResponseTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// Target_DocumentsTarget
+
+// repeated string documents = 2;
+inline int Target_DocumentsTarget::documents_size() const {
+ return documents_.size();
+}
+inline void Target_DocumentsTarget::clear_documents() {
+ documents_.Clear();
+}
+inline const ::std::string& Target_DocumentsTarget::documents(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ return documents_.Get(index);
+}
+inline ::std::string* Target_DocumentsTarget::mutable_documents(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ return documents_.Mutable(index);
+}
+inline void Target_DocumentsTarget::set_documents(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ documents_.Mutable(index)->assign(value);
+}
+#if LANG_CXX11
+inline void Target_DocumentsTarget::set_documents(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ documents_.Mutable(index)->assign(std::move(value));
+}
+#endif
+inline void Target_DocumentsTarget::set_documents(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ documents_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+}
+inline void Target_DocumentsTarget::set_documents(int index, const char* value, size_t size) {
+ documents_.Mutable(index)->assign(
+ reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+}
+inline ::std::string* Target_DocumentsTarget::add_documents() {
+ // @@protoc_insertion_point(field_add_mutable:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ return documents_.Add();
+}
+inline void Target_DocumentsTarget::add_documents(const ::std::string& value) {
+ documents_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+}
+#if LANG_CXX11
+inline void Target_DocumentsTarget::add_documents(::std::string&& value) {
+ documents_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+}
+#endif
+inline void Target_DocumentsTarget::add_documents(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ documents_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+}
+inline void Target_DocumentsTarget::add_documents(const char* value, size_t size) {
+ documents_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+}
+inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
+Target_DocumentsTarget::documents() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ return documents_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::std::string>*
+Target_DocumentsTarget::mutable_documents() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.Target.DocumentsTarget.documents)
+ return &documents_;
+}
+
+// -------------------------------------------------------------------
+
+// Target_QueryTarget
+
+// string parent = 1;
+inline void Target_QueryTarget::clear_parent() {
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& Target_QueryTarget::parent() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.QueryTarget.parent)
+ return parent_.GetNoArena();
+}
+inline void Target_QueryTarget::set_parent(const ::std::string& value) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.QueryTarget.parent)
+}
+#if LANG_CXX11
+inline void Target_QueryTarget::set_parent(::std::string&& value) {
+
+ parent_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Target.QueryTarget.parent)
+}
+#endif
+inline void Target_QueryTarget::set_parent(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Target.QueryTarget.parent)
+}
+inline void Target_QueryTarget::set_parent(const char* value, size_t size) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Target.QueryTarget.parent)
+}
+inline ::std::string* Target_QueryTarget::mutable_parent() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Target.QueryTarget.parent)
+ return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Target_QueryTarget::release_parent() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Target.QueryTarget.parent)
+
+ return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void Target_QueryTarget::set_allocated_parent(::std::string* parent) {
+ if (parent != NULL) {
+
+ } else {
+
+ }
+ parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Target.QueryTarget.parent)
+}
+
+// .google.firestore.v1beta1.StructuredQuery structured_query = 2;
+inline bool Target_QueryTarget::has_structured_query() const {
+ return query_type_case() == kStructuredQuery;
+}
+inline void Target_QueryTarget::set_has_structured_query() {
+ _oneof_case_[0] = kStructuredQuery;
+}
+inline ::google::firestore::v1beta1::StructuredQuery* Target_QueryTarget::release_structured_query() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Target.QueryTarget.structured_query)
+ if (has_structured_query()) {
+ clear_has_query_type();
+ ::google::firestore::v1beta1::StructuredQuery* temp = query_type_.structured_query_;
+ query_type_.structured_query_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::StructuredQuery& Target_QueryTarget::structured_query() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.QueryTarget.structured_query)
+ return has_structured_query()
+ ? *query_type_.structured_query_
+ : *reinterpret_cast< ::google::firestore::v1beta1::StructuredQuery*>(&::google::firestore::v1beta1::_StructuredQuery_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery* Target_QueryTarget::mutable_structured_query() {
+ if (!has_structured_query()) {
+ clear_query_type();
+ set_has_structured_query();
+ query_type_.structured_query_ = new ::google::firestore::v1beta1::StructuredQuery;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Target.QueryTarget.structured_query)
+ return query_type_.structured_query_;
+}
+
+inline bool Target_QueryTarget::has_query_type() const {
+ return query_type_case() != QUERY_TYPE_NOT_SET;
+}
+inline void Target_QueryTarget::clear_has_query_type() {
+ _oneof_case_[0] = QUERY_TYPE_NOT_SET;
+}
+inline Target_QueryTarget::QueryTypeCase Target_QueryTarget::query_type_case() const {
+ return Target_QueryTarget::QueryTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// Target
+
+// .google.firestore.v1beta1.Target.QueryTarget query = 2;
+inline bool Target::has_query() const {
+ return target_type_case() == kQuery;
+}
+inline void Target::set_has_query() {
+ _oneof_case_[0] = kQuery;
+}
+inline void Target::clear_query() {
+ if (has_query()) {
+ delete target_type_.query_;
+ clear_has_target_type();
+ }
+}
+inline ::google::firestore::v1beta1::Target_QueryTarget* Target::release_query() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.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:google.firestore.v1beta1.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:google.firestore.v1beta1.Target.query)
+ return target_type_.query_;
+}
+
+// .google.firestore.v1beta1.Target.DocumentsTarget documents = 3;
+inline bool Target::has_documents() const {
+ return target_type_case() == kDocuments;
+}
+inline void Target::set_has_documents() {
+ _oneof_case_[0] = kDocuments;
+}
+inline void Target::clear_documents() {
+ if (has_documents()) {
+ delete target_type_.documents_;
+ clear_has_target_type();
+ }
+}
+inline ::google::firestore::v1beta1::Target_DocumentsTarget* Target::release_documents() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.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:google.firestore.v1beta1.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:google.firestore.v1beta1.Target.documents)
+ return target_type_.documents_;
+}
+
+// bytes resume_token = 4;
+inline bool Target::has_resume_token() const {
+ return resume_type_case() == kResumeToken;
+}
+inline void Target::set_has_resume_token() {
+ _oneof_case_[1] = kResumeToken;
+}
+inline void Target::clear_resume_token() {
+ if (has_resume_token()) {
+ resume_type_.resume_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_resume_type();
+ }
+}
+inline const ::std::string& Target::resume_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.resume_token)
+ if (has_resume_token()) {
+ return resume_type_.resume_token_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Target::set_resume_token(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.resume_token)
+ if (!has_resume_token()) {
+ clear_resume_type();
+ set_has_resume_token();
+ resume_type_.resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ resume_type_.resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.resume_token)
+}
+#if LANG_CXX11
+inline void Target::set_resume_token(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.resume_token)
+ if (!has_resume_token()) {
+ clear_resume_type();
+ set_has_resume_token();
+ resume_type_.resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ resume_type_.resume_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Target.resume_token)
+}
+#endif
+inline void Target::set_resume_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_resume_token()) {
+ clear_resume_type();
+ set_has_resume_token();
+ resume_type_.resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ resume_type_.resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Target.resume_token)
+}
+inline void Target::set_resume_token(const void* value, size_t size) {
+ if (!has_resume_token()) {
+ clear_resume_type();
+ set_has_resume_token();
+ resume_type_.resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ resume_type_.resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Target.resume_token)
+}
+inline ::std::string* Target::mutable_resume_token() {
+ if (!has_resume_token()) {
+ clear_resume_type();
+ set_has_resume_token();
+ resume_type_.resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Target.resume_token)
+ return resume_type_.resume_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Target::release_resume_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Target.resume_token)
+ if (has_resume_token()) {
+ clear_has_resume_type();
+ return resume_type_.resume_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void Target::set_allocated_resume_token(::std::string* resume_token) {
+ if (!has_resume_token()) {
+ resume_type_.resume_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_resume_type();
+ if (resume_token != NULL) {
+ set_has_resume_token();
+ resume_type_.resume_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ resume_token);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Target.resume_token)
+}
+
+// .google.protobuf.Timestamp read_time = 11;
+inline bool Target::has_read_time() const {
+ return resume_type_case() == kReadTime;
+}
+inline void Target::set_has_read_time() {
+ _oneof_case_[1] = kReadTime;
+}
+inline ::google::protobuf::Timestamp* Target::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Target.read_time)
+ if (has_read_time()) {
+ clear_has_resume_type();
+ ::google::protobuf::Timestamp* temp = resume_type_.read_time_;
+ resume_type_.read_time_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Timestamp& Target::read_time() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.read_time)
+ return has_read_time()
+ ? *resume_type_.read_time_
+ : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* Target::mutable_read_time() {
+ if (!has_read_time()) {
+ clear_resume_type();
+ set_has_read_time();
+ resume_type_.read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Target.read_time)
+ return resume_type_.read_time_;
+}
+
+// int32 target_id = 5;
+inline void Target::clear_target_id() {
+ target_id_ = 0;
+}
+inline ::google::protobuf::int32 Target::target_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.target_id)
+ return target_id_;
+}
+inline void Target::set_target_id(::google::protobuf::int32 value) {
+
+ target_id_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.target_id)
+}
+
+// bool once = 6;
+inline void Target::clear_once() {
+ once_ = false;
+}
+inline bool Target::once() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Target.once)
+ return once_;
+}
+inline void Target::set_once(bool value) {
+
+ once_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Target.once)
+}
+
+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 bool Target::has_resume_type() const {
+ return resume_type_case() != RESUME_TYPE_NOT_SET;
+}
+inline void Target::clear_has_resume_type() {
+ _oneof_case_[1] = RESUME_TYPE_NOT_SET;
+}
+inline Target::TargetTypeCase Target::target_type_case() const {
+ return Target::TargetTypeCase(_oneof_case_[0]);
+}
+inline Target::ResumeTypeCase Target::resume_type_case() const {
+ return Target::ResumeTypeCase(_oneof_case_[1]);
+}
+// -------------------------------------------------------------------
+
+// TargetChange
+
+// .google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
+inline void TargetChange::clear_target_change_type() {
+ target_change_type_ = 0;
+}
+inline ::google::firestore::v1beta1::TargetChange_TargetChangeType TargetChange::target_change_type() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TargetChange.target_change_type)
+ return static_cast< ::google::firestore::v1beta1::TargetChange_TargetChangeType >(target_change_type_);
+}
+inline void TargetChange::set_target_change_type(::google::firestore::v1beta1::TargetChange_TargetChangeType value) {
+
+ target_change_type_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.TargetChange.target_change_type)
+}
+
+// repeated int32 target_ids = 2;
+inline int TargetChange::target_ids_size() const {
+ return target_ids_.size();
+}
+inline void TargetChange::clear_target_ids() {
+ target_ids_.Clear();
+}
+inline ::google::protobuf::int32 TargetChange::target_ids(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TargetChange.target_ids)
+ return target_ids_.Get(index);
+}
+inline void TargetChange::set_target_ids(int index, ::google::protobuf::int32 value) {
+ target_ids_.Set(index, value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.TargetChange.target_ids)
+}
+inline void TargetChange::add_target_ids(::google::protobuf::int32 value) {
+ target_ids_.Add(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.TargetChange.target_ids)
+}
+inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+TargetChange::target_ids() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.TargetChange.target_ids)
+ return target_ids_;
+}
+inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+TargetChange::mutable_target_ids() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.TargetChange.target_ids)
+ return &target_ids_;
+}
+
+// .google.rpc.Status cause = 3;
+inline bool TargetChange::has_cause() const {
+ return this != internal_default_instance() && cause_ != NULL;
+}
+inline const ::google::rpc::Status& TargetChange::cause() const {
+ const ::google::rpc::Status* p = cause_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TargetChange.cause)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::rpc::Status*>(
+ &::google::rpc::_Status_default_instance_);
+}
+inline ::google::rpc::Status* TargetChange::release_cause() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TargetChange.cause)
+
+ ::google::rpc::Status* temp = cause_;
+ cause_ = NULL;
+ return temp;
+}
+inline ::google::rpc::Status* TargetChange::mutable_cause() {
+
+ if (cause_ == NULL) {
+ cause_ = new ::google::rpc::Status;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TargetChange.cause)
+ return cause_;
+}
+inline void TargetChange::set_allocated_cause(::google::rpc::Status* cause) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(cause_);
+ }
+ if (cause) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ cause = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, cause, submessage_arena);
+ }
+
+ } else {
+
+ }
+ cause_ = cause;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TargetChange.cause)
+}
+
+// bytes resume_token = 4;
+inline void TargetChange::clear_resume_token() {
+ resume_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& TargetChange::resume_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TargetChange.resume_token)
+ return resume_token_.GetNoArena();
+}
+inline void TargetChange::set_resume_token(const ::std::string& value) {
+
+ resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.TargetChange.resume_token)
+}
+#if LANG_CXX11
+inline void TargetChange::set_resume_token(::std::string&& value) {
+
+ resume_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.TargetChange.resume_token)
+}
+#endif
+inline void TargetChange::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:google.firestore.v1beta1.TargetChange.resume_token)
+}
+inline void TargetChange::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:google.firestore.v1beta1.TargetChange.resume_token)
+}
+inline ::std::string* TargetChange::mutable_resume_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TargetChange.resume_token)
+ return resume_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* TargetChange::release_resume_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TargetChange.resume_token)
+
+ return resume_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void TargetChange::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:google.firestore.v1beta1.TargetChange.resume_token)
+}
+
+// .google.protobuf.Timestamp read_time = 6;
+inline bool TargetChange::has_read_time() const {
+ return this != internal_default_instance() && read_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& TargetChange::read_time() const {
+ const ::google::protobuf::Timestamp* p = read_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TargetChange.read_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* TargetChange::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TargetChange.read_time)
+
+ ::google::protobuf::Timestamp* temp = read_time_;
+ read_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* TargetChange::mutable_read_time() {
+
+ if (read_time_ == NULL) {
+ read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TargetChange.read_time)
+ return read_time_;
+}
+inline void TargetChange::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_time_);
+ }
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ read_time_ = read_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TargetChange.read_time)
+}
+
+// -------------------------------------------------------------------
+
+// ListCollectionIdsRequest
+
+// string parent = 1;
+inline void ListCollectionIdsRequest::clear_parent() {
+ parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListCollectionIdsRequest::parent() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+ return parent_.GetNoArena();
+}
+inline void ListCollectionIdsRequest::set_parent(const ::std::string& value) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+}
+#if LANG_CXX11
+inline void ListCollectionIdsRequest::set_parent(::std::string&& value) {
+
+ parent_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+}
+#endif
+inline void ListCollectionIdsRequest::set_parent(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+}
+inline void ListCollectionIdsRequest::set_parent(const char* value, size_t size) {
+
+ parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+}
+inline ::std::string* ListCollectionIdsRequest::mutable_parent() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+ return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListCollectionIdsRequest::release_parent() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+
+ return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListCollectionIdsRequest::set_allocated_parent(::std::string* parent) {
+ if (parent != NULL) {
+
+ } else {
+
+ }
+ parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListCollectionIdsRequest.parent)
+}
+
+// int32 page_size = 2;
+inline void ListCollectionIdsRequest::clear_page_size() {
+ page_size_ = 0;
+}
+inline ::google::protobuf::int32 ListCollectionIdsRequest::page_size() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListCollectionIdsRequest.page_size)
+ return page_size_;
+}
+inline void ListCollectionIdsRequest::set_page_size(::google::protobuf::int32 value) {
+
+ page_size_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListCollectionIdsRequest.page_size)
+}
+
+// string page_token = 3;
+inline void ListCollectionIdsRequest::clear_page_token() {
+ page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListCollectionIdsRequest::page_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+ return page_token_.GetNoArena();
+}
+inline void ListCollectionIdsRequest::set_page_token(const ::std::string& value) {
+
+ page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+}
+#if LANG_CXX11
+inline void ListCollectionIdsRequest::set_page_token(::std::string&& value) {
+
+ page_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+}
+#endif
+inline void ListCollectionIdsRequest::set_page_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+}
+inline void ListCollectionIdsRequest::set_page_token(const char* value, size_t size) {
+
+ page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+}
+inline ::std::string* ListCollectionIdsRequest::mutable_page_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+ return page_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListCollectionIdsRequest::release_page_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+
+ return page_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListCollectionIdsRequest::set_allocated_page_token(::std::string* page_token) {
+ if (page_token != NULL) {
+
+ } else {
+
+ }
+ page_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), page_token);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListCollectionIdsRequest.page_token)
+}
+
+// -------------------------------------------------------------------
+
+// ListCollectionIdsResponse
+
+// repeated string collection_ids = 1;
+inline int ListCollectionIdsResponse::collection_ids_size() const {
+ return collection_ids_.size();
+}
+inline void ListCollectionIdsResponse::clear_collection_ids() {
+ collection_ids_.Clear();
+}
+inline const ::std::string& ListCollectionIdsResponse::collection_ids(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ return collection_ids_.Get(index);
+}
+inline ::std::string* ListCollectionIdsResponse::mutable_collection_ids(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ return collection_ids_.Mutable(index);
+}
+inline void ListCollectionIdsResponse::set_collection_ids(int index, const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ collection_ids_.Mutable(index)->assign(value);
+}
+#if LANG_CXX11
+inline void ListCollectionIdsResponse::set_collection_ids(int index, ::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ collection_ids_.Mutable(index)->assign(std::move(value));
+}
+#endif
+inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ collection_ids_.Mutable(index)->assign(value);
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+}
+inline void ListCollectionIdsResponse::set_collection_ids(int index, const char* value, size_t size) {
+ collection_ids_.Mutable(index)->assign(
+ reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+}
+inline ::std::string* ListCollectionIdsResponse::add_collection_ids() {
+ // @@protoc_insertion_point(field_add_mutable:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ return collection_ids_.Add();
+}
+inline void ListCollectionIdsResponse::add_collection_ids(const ::std::string& value) {
+ collection_ids_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+}
+#if LANG_CXX11
+inline void ListCollectionIdsResponse::add_collection_ids(::std::string&& value) {
+ collection_ids_.Add(std::move(value));
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+}
+#endif
+inline void ListCollectionIdsResponse::add_collection_ids(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ collection_ids_.Add()->assign(value);
+ // @@protoc_insertion_point(field_add_char:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+}
+inline void ListCollectionIdsResponse::add_collection_ids(const char* value, size_t size) {
+ collection_ids_.Add()->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_add_pointer:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+}
+inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
+ListCollectionIdsResponse::collection_ids() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ return collection_ids_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::std::string>*
+ListCollectionIdsResponse::mutable_collection_ids() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.ListCollectionIdsResponse.collection_ids)
+ return &collection_ids_;
+}
+
+// string next_page_token = 2;
+inline void ListCollectionIdsResponse::clear_next_page_token() {
+ next_page_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& ListCollectionIdsResponse::next_page_token() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+ return next_page_token_.GetNoArena();
+}
+inline void ListCollectionIdsResponse::set_next_page_token(const ::std::string& value) {
+
+ next_page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+}
+#if LANG_CXX11
+inline void ListCollectionIdsResponse::set_next_page_token(::std::string&& value) {
+
+ next_page_token_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+}
+#endif
+inline void ListCollectionIdsResponse::set_next_page_token(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ next_page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+}
+inline void ListCollectionIdsResponse::set_next_page_token(const char* value, size_t size) {
+
+ next_page_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+}
+inline ::std::string* ListCollectionIdsResponse::mutable_next_page_token() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+ return next_page_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* ListCollectionIdsResponse::release_next_page_token() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+
+ return next_page_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void ListCollectionIdsResponse::set_allocated_next_page_token(::std::string* next_page_token) {
+ if (next_page_token != NULL) {
+
+ } else {
+
+ }
+ next_page_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_page_token);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.ListCollectionIdsResponse.next_page_token)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+namespace google {
+namespace protobuf {
+
+template <> struct is_proto_enum< ::google::firestore::v1beta1::TargetChange_TargetChangeType> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1beta1::TargetChange_TargetChangeType>() {
+ return ::google::firestore::v1beta1::TargetChange_TargetChangeType_descriptor();
+}
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2ffirestore_2fv1beta1_2ffirestore_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.cc b/Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.cc
new file mode 100644
index 0000000..5dc7a72
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.cc
@@ -0,0 +1,3941 @@
+/*
+ * 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: google/firestore/v1beta1/query.proto
+
+#include "google/firestore/v1beta1/query.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class StructuredQuery_CollectionSelectorDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_CollectionSelector>
+ _instance;
+} _StructuredQuery_CollectionSelector_default_instance_;
+class StructuredQuery_FilterDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_Filter>
+ _instance;
+ const ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* composite_filter_;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldFilter* field_filter_;
+ const ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* unary_filter_;
+} _StructuredQuery_Filter_default_instance_;
+class StructuredQuery_CompositeFilterDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_CompositeFilter>
+ _instance;
+} _StructuredQuery_CompositeFilter_default_instance_;
+class StructuredQuery_FieldFilterDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_FieldFilter>
+ _instance;
+} _StructuredQuery_FieldFilter_default_instance_;
+class StructuredQuery_UnaryFilterDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_UnaryFilter>
+ _instance;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference* field_;
+} _StructuredQuery_UnaryFilter_default_instance_;
+class StructuredQuery_OrderDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_Order>
+ _instance;
+} _StructuredQuery_Order_default_instance_;
+class StructuredQuery_FieldReferenceDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_FieldReference>
+ _instance;
+} _StructuredQuery_FieldReference_default_instance_;
+class StructuredQuery_ProjectionDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery_Projection>
+ _instance;
+} _StructuredQuery_Projection_default_instance_;
+class StructuredQueryDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StructuredQuery>
+ _instance;
+} _StructuredQuery_default_instance_;
+class CursorDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Cursor>
+ _instance;
+} _Cursor_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto {
+void InitDefaultsStructuredQuery_CollectionSelectorImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_CollectionSelector_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_CollectionSelector();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_CollectionSelector::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_CollectionSelector() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_CollectionSelectorImpl);
+}
+
+void InitDefaultsStructuredQuery_CompositeFilterImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldFilter();
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_UnaryFilter();
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_Filter_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_Filter();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_CompositeFilter_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_CompositeFilter();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_Filter::InitAsDefaultInstance();
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_CompositeFilter() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_CompositeFilterImpl);
+}
+
+void InitDefaultsStructuredQuery_FieldFilterImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReference();
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_FieldFilter_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_FieldFilter();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_FieldFilter() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_FieldFilterImpl);
+}
+
+void InitDefaultsStructuredQuery_UnaryFilterImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReference();
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_UnaryFilter_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_UnaryFilter();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_UnaryFilter() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_UnaryFilterImpl);
+}
+
+void InitDefaultsStructuredQuery_OrderImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReference();
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_Order_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_Order();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_Order::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_Order() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_OrderImpl);
+}
+
+void InitDefaultsStructuredQuery_FieldReferenceImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_FieldReference_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_FieldReference();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_FieldReference() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_FieldReferenceImpl);
+}
+
+void InitDefaultsStructuredQuery_ProjectionImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReference();
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_Projection_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery_Projection();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery_Projection::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery_Projection() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQuery_ProjectionImpl);
+}
+
+void InitDefaultsStructuredQueryImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_Projection();
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CollectionSelector();
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilter();
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_Order();
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsCursor();
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt32Value();
+ {
+ void* ptr = &::google::firestore::v1beta1::_StructuredQuery_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::StructuredQuery();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::StructuredQuery::InitAsDefaultInstance();
+}
+
+void InitDefaultsStructuredQuery() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStructuredQueryImpl);
+}
+
+void InitDefaultsCursorImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Cursor_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Cursor();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Cursor::InitAsDefaultInstance();
+}
+
+void InitDefaultsCursor() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCursorImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[10];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_CollectionSelector, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_CollectionSelector, collection_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_CollectionSelector, all_descendants_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Filter, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Filter, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::StructuredQuery_FilterDefaultTypeInternal, composite_filter_),
+ offsetof(::google::firestore::v1beta1::StructuredQuery_FilterDefaultTypeInternal, field_filter_),
+ offsetof(::google::firestore::v1beta1::StructuredQuery_FilterDefaultTypeInternal, unary_filter_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Filter, filter_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_CompositeFilter, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_CompositeFilter, op_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_CompositeFilter, filters_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_FieldFilter, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_FieldFilter, field_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_FieldFilter, op_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_FieldFilter, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_UnaryFilter, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_UnaryFilter, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_UnaryFilter, op_),
+ offsetof(::google::firestore::v1beta1::StructuredQuery_UnaryFilterDefaultTypeInternal, field_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_UnaryFilter, operand_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Order, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Order, field_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Order, direction_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_FieldReference, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_FieldReference, field_path_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Projection, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery_Projection, fields_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, select_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, from_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, where_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, order_by_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, start_at_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, end_at_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, offset_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::StructuredQuery, limit_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Cursor, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Cursor, values_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Cursor, before_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_CollectionSelector)},
+ { 7, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_Filter)},
+ { 16, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_CompositeFilter)},
+ { 23, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_FieldFilter)},
+ { 31, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_UnaryFilter)},
+ { 39, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_Order)},
+ { 46, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_FieldReference)},
+ { 52, -1, sizeof(::google::firestore::v1beta1::StructuredQuery_Projection)},
+ { 58, -1, sizeof(::google::firestore::v1beta1::StructuredQuery)},
+ { 71, -1, sizeof(::google::firestore::v1beta1::Cursor)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_CollectionSelector_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_Filter_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_CompositeFilter_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_FieldFilter_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_UnaryFilter_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_Order_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_FieldReference_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_Projection_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_StructuredQuery_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Cursor_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/firestore/v1beta1/query.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n$google/firestore/v1beta1/query.proto\022\030"
+ "google.firestore.v1beta1\032\034google/api/ann"
+ "otations.proto\032\'google/firestore/v1beta1"
+ "/document.proto\032\036google/protobuf/wrapper"
+ "s.proto\"\245\017\n\017StructuredQuery\022D\n\006select\030\001 "
+ "\001(\01324.google.firestore.v1beta1.Structure"
+ "dQuery.Projection\022J\n\004from\030\002 \003(\0132<.google"
+ ".firestore.v1beta1.StructuredQuery.Colle"
+ "ctionSelector\022\?\n\005where\030\003 \001(\01320.google.fi"
+ "restore.v1beta1.StructuredQuery.Filter\022A"
+ "\n\010order_by\030\004 \003(\0132/.google.firestore.v1be"
+ "ta1.StructuredQuery.Order\0222\n\010start_at\030\007 "
+ "\001(\0132 .google.firestore.v1beta1.Cursor\0220\n"
+ "\006end_at\030\010 \001(\0132 .google.firestore.v1beta1"
+ ".Cursor\022\016\n\006offset\030\006 \001(\005\022*\n\005limit\030\005 \001(\0132\033"
+ ".google.protobuf.Int32Value\032D\n\022Collectio"
+ "nSelector\022\025\n\rcollection_id\030\002 \001(\t\022\027\n\017all_"
+ "descendants\030\003 \001(\010\032\214\002\n\006Filter\022U\n\020composit"
+ "e_filter\030\001 \001(\01329.google.firestore.v1beta"
+ "1.StructuredQuery.CompositeFilterH\000\022M\n\014f"
+ "ield_filter\030\002 \001(\01325.google.firestore.v1b"
+ "eta1.StructuredQuery.FieldFilterH\000\022M\n\014un"
+ "ary_filter\030\003 \001(\01325.google.firestore.v1be"
+ "ta1.StructuredQuery.UnaryFilterH\000B\r\n\013fil"
+ "ter_type\032\323\001\n\017CompositeFilter\022N\n\002op\030\001 \001(\016"
+ "2B.google.firestore.v1beta1.StructuredQu"
+ "ery.CompositeFilter.Operator\022A\n\007filters\030"
+ "\002 \003(\01320.google.firestore.v1beta1.Structu"
+ "redQuery.Filter\"-\n\010Operator\022\030\n\024OPERATOR_"
+ "UNSPECIFIED\020\000\022\007\n\003AND\020\001\032\330\002\n\013FieldFilter\022G"
+ "\n\005field\030\001 \001(\01328.google.firestore.v1beta1"
+ ".StructuredQuery.FieldReference\022J\n\002op\030\002 "
+ "\001(\0162>.google.firestore.v1beta1.Structure"
+ "dQuery.FieldFilter.Operator\022.\n\005value\030\003 \001"
+ "(\0132\037.google.firestore.v1beta1.Value\"\203\001\n\010"
+ "Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\r\n\tLE"
+ "SS_THAN\020\001\022\026\n\022LESS_THAN_OR_EQUAL\020\002\022\020\n\014GRE"
+ "ATER_THAN\020\003\022\031\n\025GREATER_THAN_OR_EQUAL\020\004\022\t"
+ "\n\005EQUAL\020\005\032\363\001\n\013UnaryFilter\022J\n\002op\030\001 \001(\0162>."
+ "google.firestore.v1beta1.StructuredQuery"
+ ".UnaryFilter.Operator\022I\n\005field\030\002 \001(\01328.g"
+ "oogle.firestore.v1beta1.StructuredQuery."
+ "FieldReferenceH\000\"=\n\010Operator\022\030\n\024OPERATOR"
+ "_UNSPECIFIED\020\000\022\n\n\006IS_NAN\020\002\022\013\n\007IS_NULL\020\003B"
+ "\016\n\014operand_type\032\230\001\n\005Order\022G\n\005field\030\001 \001(\013"
+ "28.google.firestore.v1beta1.StructuredQu"
+ "ery.FieldReference\022F\n\tdirection\030\002 \001(\01623."
+ "google.firestore.v1beta1.StructuredQuery"
+ ".Direction\032$\n\016FieldReference\022\022\n\nfield_pa"
+ "th\030\002 \001(\t\032V\n\nProjection\022H\n\006fields\030\002 \003(\01328"
+ ".google.firestore.v1beta1.StructuredQuer"
+ "y.FieldReference\"E\n\tDirection\022\031\n\025DIRECTI"
+ "ON_UNSPECIFIED\020\000\022\r\n\tASCENDING\020\001\022\016\n\nDESCE"
+ "NDING\020\002\"I\n\006Cursor\022/\n\006values\030\001 \003(\0132\037.goog"
+ "le.firestore.v1beta1.Value\022\016\n\006before\030\002 \001"
+ "(\010B\227\001\n\034com.google.firestore.v1beta1B\nQue"
+ "ryProtoP\001ZAgoogle.golang.org/genproto/go"
+ "ogleapis/firestore/v1beta1;firestore\242\002\004G"
+ "CFS\252\002\036Google.Cloud.Firestore.V1Beta1b\006pr"
+ "oto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 2364);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/firestore/v1beta1/query.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+const ::google::protobuf::EnumDescriptor* StructuredQuery_CompositeFilter_Operator_descriptor() {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_enum_descriptors[0];
+}
+bool StructuredQuery_CompositeFilter_Operator_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::OPERATOR_UNSPECIFIED;
+const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::AND;
+const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::Operator_MIN;
+const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::Operator_MAX;
+const int StructuredQuery_CompositeFilter::Operator_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* StructuredQuery_FieldFilter_Operator_descriptor() {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_enum_descriptors[1];
+}
+bool StructuredQuery_FieldFilter_Operator_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::OPERATOR_UNSPECIFIED;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::LESS_THAN;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::LESS_THAN_OR_EQUAL;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::GREATER_THAN;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::GREATER_THAN_OR_EQUAL;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::EQUAL;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::Operator_MIN;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::Operator_MAX;
+const int StructuredQuery_FieldFilter::Operator_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* StructuredQuery_UnaryFilter_Operator_descriptor() {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_enum_descriptors[2];
+}
+bool StructuredQuery_UnaryFilter_Operator_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 2:
+ case 3:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::OPERATOR_UNSPECIFIED;
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NAN;
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::IS_NULL;
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::Operator_MIN;
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::Operator_MAX;
+const int StructuredQuery_UnaryFilter::Operator_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+const ::google::protobuf::EnumDescriptor* StructuredQuery_Direction_descriptor() {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_enum_descriptors[3];
+}
+bool StructuredQuery_Direction_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const StructuredQuery_Direction StructuredQuery::DIRECTION_UNSPECIFIED;
+const StructuredQuery_Direction StructuredQuery::ASCENDING;
+const StructuredQuery_Direction StructuredQuery::DESCENDING;
+const StructuredQuery_Direction StructuredQuery::Direction_MIN;
+const StructuredQuery_Direction StructuredQuery::Direction_MAX;
+const int StructuredQuery::Direction_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+// ===================================================================
+
+void StructuredQuery_CollectionSelector::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_CollectionSelector::kCollectionIdFieldNumber;
+const int StructuredQuery_CollectionSelector::kAllDescendantsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CollectionSelector();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+}
+StructuredQuery_CollectionSelector::StructuredQuery_CollectionSelector(const StructuredQuery_CollectionSelector& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ collection_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.collection_id().size() > 0) {
+ collection_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_id_);
+ }
+ all_descendants_ = from.all_descendants_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+}
+
+void StructuredQuery_CollectionSelector::SharedCtor() {
+ collection_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ all_descendants_ = false;
+ _cached_size_ = 0;
+}
+
+StructuredQuery_CollectionSelector::~StructuredQuery_CollectionSelector() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ SharedDtor();
+}
+
+void StructuredQuery_CollectionSelector::SharedDtor() {
+ collection_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void StructuredQuery_CollectionSelector::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_CollectionSelector::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_CollectionSelector& StructuredQuery_CollectionSelector::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CollectionSelector();
+ return *internal_default_instance();
+}
+
+StructuredQuery_CollectionSelector* StructuredQuery_CollectionSelector::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_CollectionSelector* n = new StructuredQuery_CollectionSelector;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_CollectionSelector::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ all_descendants_ = false;
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_CollectionSelector::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string collection_id = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_collection_id()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bool all_descendants = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &all_descendants_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_CollectionSelector::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->collection_id(), output);
+ }
+
+ // bool all_descendants = 3;
+ if (this->all_descendants() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->all_descendants(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+}
+
+::google::protobuf::uint8* StructuredQuery_CollectionSelector::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->collection_id().data(), static_cast<int>(this->collection_id().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->collection_id(), target);
+ }
+
+ // bool all_descendants = 3;
+ if (this->all_descendants() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->all_descendants(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ return target;
+}
+
+size_t StructuredQuery_CollectionSelector::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string collection_id = 2;
+ if (this->collection_id().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->collection_id());
+ }
+
+ // bool all_descendants = 3;
+ if (this->all_descendants() != 0) {
+ total_size += 1 + 1;
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_CollectionSelector::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_CollectionSelector* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_CollectionSelector>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_CollectionSelector::MergeFrom(const StructuredQuery_CollectionSelector& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.collection_id().size() > 0) {
+
+ collection_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.collection_id_);
+ }
+ if (from.all_descendants() != 0) {
+ set_all_descendants(from.all_descendants());
+ }
+}
+
+void StructuredQuery_CollectionSelector::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_CollectionSelector::CopyFrom(const StructuredQuery_CollectionSelector& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_CollectionSelector::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_CollectionSelector::Swap(StructuredQuery_CollectionSelector* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_CollectionSelector::InternalSwap(StructuredQuery_CollectionSelector* other) {
+ using std::swap;
+ collection_id_.Swap(&other->collection_id_);
+ swap(all_descendants_, other->all_descendants_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_CollectionSelector::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_Filter::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_StructuredQuery_Filter_default_instance_.composite_filter_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_CompositeFilter*>(
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_Filter_default_instance_.field_filter_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_FieldFilter*>(
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_Filter_default_instance_.unary_filter_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_UnaryFilter*>(
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter::internal_default_instance());
+}
+void StructuredQuery_Filter::set_allocated_composite_filter(::google::firestore::v1beta1::StructuredQuery_CompositeFilter* composite_filter) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_filter_type();
+ if (composite_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ composite_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, composite_filter, submessage_arena);
+ }
+ set_has_composite_filter();
+ filter_type_.composite_filter_ = composite_filter;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.Filter.composite_filter)
+}
+void StructuredQuery_Filter::set_allocated_field_filter(::google::firestore::v1beta1::StructuredQuery_FieldFilter* field_filter) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_filter_type();
+ if (field_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ field_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, field_filter, submessage_arena);
+ }
+ set_has_field_filter();
+ filter_type_.field_filter_ = field_filter;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.Filter.field_filter)
+}
+void StructuredQuery_Filter::set_allocated_unary_filter(::google::firestore::v1beta1::StructuredQuery_UnaryFilter* unary_filter) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_filter_type();
+ if (unary_filter) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ unary_filter = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, unary_filter, submessage_arena);
+ }
+ set_has_unary_filter();
+ filter_type_.unary_filter_ = unary_filter;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.Filter.unary_filter)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_Filter::kCompositeFilterFieldNumber;
+const int StructuredQuery_Filter::kFieldFilterFieldNumber;
+const int StructuredQuery_Filter::kUnaryFilterFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_Filter::StructuredQuery_Filter()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilter();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.Filter)
+}
+StructuredQuery_Filter::StructuredQuery_Filter(const StructuredQuery_Filter& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_filter_type();
+ switch (from.filter_type_case()) {
+ case kCompositeFilter: {
+ mutable_composite_filter()->::google::firestore::v1beta1::StructuredQuery_CompositeFilter::MergeFrom(from.composite_filter());
+ break;
+ }
+ case kFieldFilter: {
+ mutable_field_filter()->::google::firestore::v1beta1::StructuredQuery_FieldFilter::MergeFrom(from.field_filter());
+ break;
+ }
+ case kUnaryFilter: {
+ mutable_unary_filter()->::google::firestore::v1beta1::StructuredQuery_UnaryFilter::MergeFrom(from.unary_filter());
+ break;
+ }
+ case FILTER_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.Filter)
+}
+
+void StructuredQuery_Filter::SharedCtor() {
+ clear_has_filter_type();
+ _cached_size_ = 0;
+}
+
+StructuredQuery_Filter::~StructuredQuery_Filter() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.Filter)
+ SharedDtor();
+}
+
+void StructuredQuery_Filter::SharedDtor() {
+ if (has_filter_type()) {
+ clear_filter_type();
+ }
+}
+
+void StructuredQuery_Filter::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_Filter::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_Filter& StructuredQuery_Filter::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilter();
+ return *internal_default_instance();
+}
+
+StructuredQuery_Filter* StructuredQuery_Filter::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_Filter* n = new StructuredQuery_Filter;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_Filter::clear_filter_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ switch (filter_type_case()) {
+ case kCompositeFilter: {
+ delete filter_type_.composite_filter_;
+ break;
+ }
+ case kFieldFilter: {
+ delete filter_type_.field_filter_;
+ break;
+ }
+ case kUnaryFilter: {
+ delete filter_type_.unary_filter_;
+ break;
+ }
+ case FILTER_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = FILTER_TYPE_NOT_SET;
+}
+
+
+void StructuredQuery_Filter::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_filter_type();
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_Filter::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter composite_filter = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_composite_filter()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter field_filter = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_field_filter()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter unary_filter = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_unary_filter()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.Filter)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.Filter)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_Filter::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter composite_filter = 1;
+ if (has_composite_filter()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *filter_type_.composite_filter_, output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter field_filter = 2;
+ if (has_field_filter()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *filter_type_.field_filter_, output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter unary_filter = 3;
+ if (has_unary_filter()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *filter_type_.unary_filter_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.Filter)
+}
+
+::google::protobuf::uint8* StructuredQuery_Filter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter composite_filter = 1;
+ if (has_composite_filter()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *filter_type_.composite_filter_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter field_filter = 2;
+ if (has_field_filter()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *filter_type_.field_filter_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter unary_filter = 3;
+ if (has_unary_filter()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *filter_type_.unary_filter_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.Filter)
+ return target;
+}
+
+size_t StructuredQuery_Filter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (filter_type_case()) {
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter composite_filter = 1;
+ case kCompositeFilter: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *filter_type_.composite_filter_);
+ break;
+ }
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter field_filter = 2;
+ case kFieldFilter: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *filter_type_.field_filter_);
+ break;
+ }
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter unary_filter = 3;
+ case kUnaryFilter: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *filter_type_.unary_filter_);
+ break;
+ }
+ case FILTER_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_Filter::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_Filter* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_Filter>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.Filter)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.Filter)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_Filter::MergeFrom(const StructuredQuery_Filter& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.filter_type_case()) {
+ case kCompositeFilter: {
+ mutable_composite_filter()->::google::firestore::v1beta1::StructuredQuery_CompositeFilter::MergeFrom(from.composite_filter());
+ break;
+ }
+ case kFieldFilter: {
+ mutable_field_filter()->::google::firestore::v1beta1::StructuredQuery_FieldFilter::MergeFrom(from.field_filter());
+ break;
+ }
+ case kUnaryFilter: {
+ mutable_unary_filter()->::google::firestore::v1beta1::StructuredQuery_UnaryFilter::MergeFrom(from.unary_filter());
+ break;
+ }
+ case FILTER_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void StructuredQuery_Filter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_Filter::CopyFrom(const StructuredQuery_Filter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.Filter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_Filter::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_Filter::Swap(StructuredQuery_Filter* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_Filter::InternalSwap(StructuredQuery_Filter* other) {
+ using std::swap;
+ swap(filter_type_, other->filter_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_Filter::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_CompositeFilter::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_CompositeFilter::kOpFieldNumber;
+const int StructuredQuery_CompositeFilter::kFiltersFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilter();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+}
+StructuredQuery_CompositeFilter::StructuredQuery_CompositeFilter(const StructuredQuery_CompositeFilter& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ filters_(from.filters_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ op_ = from.op_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+}
+
+void StructuredQuery_CompositeFilter::SharedCtor() {
+ op_ = 0;
+ _cached_size_ = 0;
+}
+
+StructuredQuery_CompositeFilter::~StructuredQuery_CompositeFilter() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ SharedDtor();
+}
+
+void StructuredQuery_CompositeFilter::SharedDtor() {
+}
+
+void StructuredQuery_CompositeFilter::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_CompositeFilter::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_CompositeFilter& StructuredQuery_CompositeFilter::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilter();
+ return *internal_default_instance();
+}
+
+StructuredQuery_CompositeFilter* StructuredQuery_CompositeFilter::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_CompositeFilter* n = new StructuredQuery_CompositeFilter;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_CompositeFilter::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ filters_.Clear();
+ op_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_CompositeFilter::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator op = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_op(static_cast< ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Filter filters = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_filters()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_CompositeFilter::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator op = 1;
+ if (this->op() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 1, this->op(), output);
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Filter filters = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->filters_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->filters(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+}
+
+::google::protobuf::uint8* StructuredQuery_CompositeFilter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator op = 1;
+ if (this->op() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->op(), target);
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Filter filters = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->filters_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->filters(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ return target;
+}
+
+size_t StructuredQuery_CompositeFilter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.StructuredQuery.Filter filters = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->filters_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->filters(static_cast<int>(i)));
+ }
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator op = 1;
+ if (this->op() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_CompositeFilter::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_CompositeFilter* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_CompositeFilter>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_CompositeFilter::MergeFrom(const StructuredQuery_CompositeFilter& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ filters_.MergeFrom(from.filters_);
+ if (from.op() != 0) {
+ set_op(from.op());
+ }
+}
+
+void StructuredQuery_CompositeFilter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_CompositeFilter::CopyFrom(const StructuredQuery_CompositeFilter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_CompositeFilter::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_CompositeFilter::Swap(StructuredQuery_CompositeFilter* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_CompositeFilter::InternalSwap(StructuredQuery_CompositeFilter* other) {
+ using std::swap;
+ filters_.InternalSwap(&other->filters_);
+ swap(op_, other->op_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_CompositeFilter::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_FieldFilter::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_StructuredQuery_FieldFilter_default_instance_._instance.get_mutable()->field_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_FieldReference*>(
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_FieldFilter_default_instance_._instance.get_mutable()->value_ = const_cast< ::google::firestore::v1beta1::Value*>(
+ ::google::firestore::v1beta1::Value::internal_default_instance());
+}
+void StructuredQuery_FieldFilter::clear_value() {
+ if (GetArenaNoVirtual() == NULL && value_ != NULL) {
+ delete value_;
+ }
+ value_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_FieldFilter::kFieldFieldNumber;
+const int StructuredQuery_FieldFilter::kOpFieldNumber;
+const int StructuredQuery_FieldFilter::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_FieldFilter::StructuredQuery_FieldFilter()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldFilter();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+}
+StructuredQuery_FieldFilter::StructuredQuery_FieldFilter(const StructuredQuery_FieldFilter& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_field()) {
+ field_ = new ::google::firestore::v1beta1::StructuredQuery_FieldReference(*from.field_);
+ } else {
+ field_ = NULL;
+ }
+ if (from.has_value()) {
+ value_ = new ::google::firestore::v1beta1::Value(*from.value_);
+ } else {
+ value_ = NULL;
+ }
+ op_ = from.op_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+}
+
+void StructuredQuery_FieldFilter::SharedCtor() {
+ ::memset(&field_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&op_) -
+ reinterpret_cast<char*>(&field_)) + sizeof(op_));
+ _cached_size_ = 0;
+}
+
+StructuredQuery_FieldFilter::~StructuredQuery_FieldFilter() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ SharedDtor();
+}
+
+void StructuredQuery_FieldFilter::SharedDtor() {
+ if (this != internal_default_instance()) delete field_;
+ if (this != internal_default_instance()) delete value_;
+}
+
+void StructuredQuery_FieldFilter::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_FieldFilter::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_FieldFilter& StructuredQuery_FieldFilter::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldFilter();
+ return *internal_default_instance();
+}
+
+StructuredQuery_FieldFilter* StructuredQuery_FieldFilter::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_FieldFilter* n = new StructuredQuery_FieldFilter;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_FieldFilter::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (GetArenaNoVirtual() == NULL && field_ != NULL) {
+ delete field_;
+ }
+ field_ = NULL;
+ if (GetArenaNoVirtual() == NULL && value_ != NULL) {
+ delete value_;
+ }
+ value_ = NULL;
+ op_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_FieldFilter::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_field()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator op = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_op(static_cast< ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Value value = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_FieldFilter::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ if (this->has_field()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->field_, output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator op = 2;
+ if (this->op() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 2, this->op(), output);
+ }
+
+ // .google.firestore.v1beta1.Value value = 3;
+ if (this->has_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->value_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+}
+
+::google::protobuf::uint8* StructuredQuery_FieldFilter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ if (this->has_field()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->field_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator op = 2;
+ if (this->op() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 2, this->op(), target);
+ }
+
+ // .google.firestore.v1beta1.Value value = 3;
+ if (this->has_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->value_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ return target;
+}
+
+size_t StructuredQuery_FieldFilter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ if (this->has_field()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->field_);
+ }
+
+ // .google.firestore.v1beta1.Value value = 3;
+ if (this->has_value()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->value_);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator op = 2;
+ if (this->op() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_FieldFilter::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_FieldFilter* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_FieldFilter>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_FieldFilter::MergeFrom(const StructuredQuery_FieldFilter& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_field()) {
+ mutable_field()->::google::firestore::v1beta1::StructuredQuery_FieldReference::MergeFrom(from.field());
+ }
+ if (from.has_value()) {
+ mutable_value()->::google::firestore::v1beta1::Value::MergeFrom(from.value());
+ }
+ if (from.op() != 0) {
+ set_op(from.op());
+ }
+}
+
+void StructuredQuery_FieldFilter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_FieldFilter::CopyFrom(const StructuredQuery_FieldFilter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_FieldFilter::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_FieldFilter::Swap(StructuredQuery_FieldFilter* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_FieldFilter::InternalSwap(StructuredQuery_FieldFilter* other) {
+ using std::swap;
+ swap(field_, other->field_);
+ swap(value_, other->value_);
+ swap(op_, other->op_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_FieldFilter::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_UnaryFilter::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_StructuredQuery_UnaryFilter_default_instance_.field_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_FieldReference*>(
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference::internal_default_instance());
+}
+void StructuredQuery_UnaryFilter::set_allocated_field(::google::firestore::v1beta1::StructuredQuery_FieldReference* field) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_operand_type();
+ if (field) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ field = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, field, submessage_arena);
+ }
+ set_has_field();
+ operand_type_.field_ = field;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.UnaryFilter.field)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_UnaryFilter::kOpFieldNumber;
+const int StructuredQuery_UnaryFilter::kFieldFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_UnaryFilter();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+}
+StructuredQuery_UnaryFilter::StructuredQuery_UnaryFilter(const StructuredQuery_UnaryFilter& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ op_ = from.op_;
+ clear_has_operand_type();
+ switch (from.operand_type_case()) {
+ case kField: {
+ mutable_field()->::google::firestore::v1beta1::StructuredQuery_FieldReference::MergeFrom(from.field());
+ break;
+ }
+ case OPERAND_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+}
+
+void StructuredQuery_UnaryFilter::SharedCtor() {
+ op_ = 0;
+ clear_has_operand_type();
+ _cached_size_ = 0;
+}
+
+StructuredQuery_UnaryFilter::~StructuredQuery_UnaryFilter() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ SharedDtor();
+}
+
+void StructuredQuery_UnaryFilter::SharedDtor() {
+ if (has_operand_type()) {
+ clear_operand_type();
+ }
+}
+
+void StructuredQuery_UnaryFilter::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_UnaryFilter::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_UnaryFilter& StructuredQuery_UnaryFilter::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_UnaryFilter();
+ return *internal_default_instance();
+}
+
+StructuredQuery_UnaryFilter* StructuredQuery_UnaryFilter::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_UnaryFilter* n = new StructuredQuery_UnaryFilter;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_UnaryFilter::clear_operand_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ switch (operand_type_case()) {
+ case kField: {
+ delete operand_type_.field_;
+ break;
+ }
+ case OPERAND_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = OPERAND_TYPE_NOT_SET;
+}
+
+
+void StructuredQuery_UnaryFilter::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ op_ = 0;
+ clear_operand_type();
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_UnaryFilter::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_op(static_cast< ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_field()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_UnaryFilter::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1;
+ if (this->op() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 1, this->op(), output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2;
+ if (has_field()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, *operand_type_.field_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+}
+
+::google::protobuf::uint8* StructuredQuery_UnaryFilter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1;
+ if (this->op() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->op(), target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2;
+ if (has_field()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, *operand_type_.field_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ return target;
+}
+
+size_t StructuredQuery_UnaryFilter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1;
+ if (this->op() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
+ }
+
+ switch (operand_type_case()) {
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2;
+ case kField: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *operand_type_.field_);
+ break;
+ }
+ case OPERAND_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_UnaryFilter::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_UnaryFilter* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_UnaryFilter>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_UnaryFilter::MergeFrom(const StructuredQuery_UnaryFilter& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.op() != 0) {
+ set_op(from.op());
+ }
+ switch (from.operand_type_case()) {
+ case kField: {
+ mutable_field()->::google::firestore::v1beta1::StructuredQuery_FieldReference::MergeFrom(from.field());
+ break;
+ }
+ case OPERAND_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void StructuredQuery_UnaryFilter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_UnaryFilter::CopyFrom(const StructuredQuery_UnaryFilter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_UnaryFilter::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_UnaryFilter::Swap(StructuredQuery_UnaryFilter* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_UnaryFilter::InternalSwap(StructuredQuery_UnaryFilter* other) {
+ using std::swap;
+ swap(op_, other->op_);
+ swap(operand_type_, other->operand_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_UnaryFilter::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_Order::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_StructuredQuery_Order_default_instance_._instance.get_mutable()->field_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_FieldReference*>(
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference::internal_default_instance());
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_Order::kFieldFieldNumber;
+const int StructuredQuery_Order::kDirectionFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_Order::StructuredQuery_Order()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_Order();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.Order)
+}
+StructuredQuery_Order::StructuredQuery_Order(const StructuredQuery_Order& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_field()) {
+ field_ = new ::google::firestore::v1beta1::StructuredQuery_FieldReference(*from.field_);
+ } else {
+ field_ = NULL;
+ }
+ direction_ = from.direction_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.Order)
+}
+
+void StructuredQuery_Order::SharedCtor() {
+ ::memset(&field_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&direction_) -
+ reinterpret_cast<char*>(&field_)) + sizeof(direction_));
+ _cached_size_ = 0;
+}
+
+StructuredQuery_Order::~StructuredQuery_Order() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.Order)
+ SharedDtor();
+}
+
+void StructuredQuery_Order::SharedDtor() {
+ if (this != internal_default_instance()) delete field_;
+}
+
+void StructuredQuery_Order::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_Order::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_Order& StructuredQuery_Order::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_Order();
+ return *internal_default_instance();
+}
+
+StructuredQuery_Order* StructuredQuery_Order::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_Order* n = new StructuredQuery_Order;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_Order::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.Order)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (GetArenaNoVirtual() == NULL && field_ != NULL) {
+ delete field_;
+ }
+ field_ = NULL;
+ direction_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_Order::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.Order)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_field()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Direction direction = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_direction(static_cast< ::google::firestore::v1beta1::StructuredQuery_Direction >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.Order)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.Order)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_Order::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.Order)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ if (this->has_field()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->field_, output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Direction direction = 2;
+ if (this->direction() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 2, this->direction(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.Order)
+}
+
+::google::protobuf::uint8* StructuredQuery_Order::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.Order)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ if (this->has_field()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->field_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Direction direction = 2;
+ if (this->direction() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 2, this->direction(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.Order)
+ return target;
+}
+
+size_t StructuredQuery_Order::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.Order)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ if (this->has_field()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->field_);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Direction direction = 2;
+ if (this->direction() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_Order::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.Order)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_Order* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_Order>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.Order)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.Order)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_Order::MergeFrom(const StructuredQuery_Order& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.Order)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_field()) {
+ mutable_field()->::google::firestore::v1beta1::StructuredQuery_FieldReference::MergeFrom(from.field());
+ }
+ if (from.direction() != 0) {
+ set_direction(from.direction());
+ }
+}
+
+void StructuredQuery_Order::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.Order)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_Order::CopyFrom(const StructuredQuery_Order& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.Order)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_Order::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_Order::Swap(StructuredQuery_Order* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_Order::InternalSwap(StructuredQuery_Order* other) {
+ using std::swap;
+ swap(field_, other->field_);
+ swap(direction_, other->direction_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_Order::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_FieldReference::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_FieldReference::kFieldPathFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_FieldReference::StructuredQuery_FieldReference()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReference();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.FieldReference)
+}
+StructuredQuery_FieldReference::StructuredQuery_FieldReference(const StructuredQuery_FieldReference& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ field_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.field_path().size() > 0) {
+ field_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_path_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.FieldReference)
+}
+
+void StructuredQuery_FieldReference::SharedCtor() {
+ field_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+StructuredQuery_FieldReference::~StructuredQuery_FieldReference() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ SharedDtor();
+}
+
+void StructuredQuery_FieldReference::SharedDtor() {
+ field_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void StructuredQuery_FieldReference::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_FieldReference::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_FieldReference& StructuredQuery_FieldReference::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReference();
+ return *internal_default_instance();
+}
+
+StructuredQuery_FieldReference* StructuredQuery_FieldReference::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_FieldReference* n = new StructuredQuery_FieldReference;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_FieldReference::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ field_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_FieldReference::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string field_path = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_field_path()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_path().data(), static_cast<int>(this->field_path().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.StructuredQuery.FieldReference.field_path"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_FieldReference::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string field_path = 2;
+ if (this->field_path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_path().data(), static_cast<int>(this->field_path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.StructuredQuery.FieldReference.field_path");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->field_path(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.FieldReference)
+}
+
+::google::protobuf::uint8* StructuredQuery_FieldReference::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string field_path = 2;
+ if (this->field_path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_path().data(), static_cast<int>(this->field_path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.StructuredQuery.FieldReference.field_path");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->field_path(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ return target;
+}
+
+size_t StructuredQuery_FieldReference::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string field_path = 2;
+ if (this->field_path().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->field_path());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_FieldReference::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_FieldReference* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_FieldReference>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_FieldReference::MergeFrom(const StructuredQuery_FieldReference& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.field_path().size() > 0) {
+
+ field_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_path_);
+ }
+}
+
+void StructuredQuery_FieldReference::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_FieldReference::CopyFrom(const StructuredQuery_FieldReference& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_FieldReference::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_FieldReference::Swap(StructuredQuery_FieldReference* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_FieldReference::InternalSwap(StructuredQuery_FieldReference* other) {
+ using std::swap;
+ field_path_.Swap(&other->field_path_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_FieldReference::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery_Projection::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery_Projection::kFieldsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery_Projection::StructuredQuery_Projection()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_Projection();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery.Projection)
+}
+StructuredQuery_Projection::StructuredQuery_Projection(const StructuredQuery_Projection& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ fields_(from.fields_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery.Projection)
+}
+
+void StructuredQuery_Projection::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+StructuredQuery_Projection::~StructuredQuery_Projection() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery.Projection)
+ SharedDtor();
+}
+
+void StructuredQuery_Projection::SharedDtor() {
+}
+
+void StructuredQuery_Projection::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery_Projection::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery_Projection& StructuredQuery_Projection::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_Projection();
+ return *internal_default_instance();
+}
+
+StructuredQuery_Projection* StructuredQuery_Projection::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery_Projection* n = new StructuredQuery_Projection;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery_Projection::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fields_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery_Projection::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_fields()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery.Projection)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery.Projection)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery_Projection::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fields_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->fields(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery.Projection)
+}
+
+::google::protobuf::uint8* StructuredQuery_Projection::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->fields_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->fields(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery.Projection)
+ return target;
+}
+
+size_t StructuredQuery_Projection::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->fields_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->fields(static_cast<int>(i)));
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery_Projection::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery_Projection* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery_Projection>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery.Projection)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery.Projection)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery_Projection::MergeFrom(const StructuredQuery_Projection& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ fields_.MergeFrom(from.fields_);
+}
+
+void StructuredQuery_Projection::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery_Projection::CopyFrom(const StructuredQuery_Projection& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery.Projection)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery_Projection::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery_Projection::Swap(StructuredQuery_Projection* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery_Projection::InternalSwap(StructuredQuery_Projection* other) {
+ using std::swap;
+ fields_.InternalSwap(&other->fields_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery_Projection::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StructuredQuery::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_StructuredQuery_default_instance_._instance.get_mutable()->select_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_Projection*>(
+ ::google::firestore::v1beta1::StructuredQuery_Projection::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_default_instance_._instance.get_mutable()->where_ = const_cast< ::google::firestore::v1beta1::StructuredQuery_Filter*>(
+ ::google::firestore::v1beta1::StructuredQuery_Filter::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_default_instance_._instance.get_mutable()->start_at_ = const_cast< ::google::firestore::v1beta1::Cursor*>(
+ ::google::firestore::v1beta1::Cursor::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_default_instance_._instance.get_mutable()->end_at_ = const_cast< ::google::firestore::v1beta1::Cursor*>(
+ ::google::firestore::v1beta1::Cursor::internal_default_instance());
+ ::google::firestore::v1beta1::_StructuredQuery_default_instance_._instance.get_mutable()->limit_ = const_cast< ::google::protobuf::Int32Value*>(
+ ::google::protobuf::Int32Value::internal_default_instance());
+}
+void StructuredQuery::clear_limit() {
+ if (GetArenaNoVirtual() == NULL && limit_ != NULL) {
+ delete limit_;
+ }
+ limit_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StructuredQuery::kSelectFieldNumber;
+const int StructuredQuery::kFromFieldNumber;
+const int StructuredQuery::kWhereFieldNumber;
+const int StructuredQuery::kOrderByFieldNumber;
+const int StructuredQuery::kStartAtFieldNumber;
+const int StructuredQuery::kEndAtFieldNumber;
+const int StructuredQuery::kOffsetFieldNumber;
+const int StructuredQuery::kLimitFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StructuredQuery::StructuredQuery()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.StructuredQuery)
+}
+StructuredQuery::StructuredQuery(const StructuredQuery& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ from_(from.from_),
+ order_by_(from.order_by_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_select()) {
+ select_ = new ::google::firestore::v1beta1::StructuredQuery_Projection(*from.select_);
+ } else {
+ select_ = NULL;
+ }
+ if (from.has_where()) {
+ where_ = new ::google::firestore::v1beta1::StructuredQuery_Filter(*from.where_);
+ } else {
+ where_ = NULL;
+ }
+ if (from.has_limit()) {
+ limit_ = new ::google::protobuf::Int32Value(*from.limit_);
+ } else {
+ limit_ = NULL;
+ }
+ if (from.has_start_at()) {
+ start_at_ = new ::google::firestore::v1beta1::Cursor(*from.start_at_);
+ } else {
+ start_at_ = NULL;
+ }
+ if (from.has_end_at()) {
+ end_at_ = new ::google::firestore::v1beta1::Cursor(*from.end_at_);
+ } else {
+ end_at_ = NULL;
+ }
+ offset_ = from.offset_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.StructuredQuery)
+}
+
+void StructuredQuery::SharedCtor() {
+ ::memset(&select_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&offset_) -
+ reinterpret_cast<char*>(&select_)) + sizeof(offset_));
+ _cached_size_ = 0;
+}
+
+StructuredQuery::~StructuredQuery() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.StructuredQuery)
+ SharedDtor();
+}
+
+void StructuredQuery::SharedDtor() {
+ if (this != internal_default_instance()) delete select_;
+ if (this != internal_default_instance()) delete where_;
+ if (this != internal_default_instance()) delete limit_;
+ if (this != internal_default_instance()) delete start_at_;
+ if (this != internal_default_instance()) delete end_at_;
+}
+
+void StructuredQuery::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StructuredQuery::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StructuredQuery& StructuredQuery::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery();
+ return *internal_default_instance();
+}
+
+StructuredQuery* StructuredQuery::New(::google::protobuf::Arena* arena) const {
+ StructuredQuery* n = new StructuredQuery;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void StructuredQuery::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.StructuredQuery)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ from_.Clear();
+ order_by_.Clear();
+ if (GetArenaNoVirtual() == NULL && select_ != NULL) {
+ delete select_;
+ }
+ select_ = NULL;
+ if (GetArenaNoVirtual() == NULL && where_ != NULL) {
+ delete where_;
+ }
+ where_ = NULL;
+ if (GetArenaNoVirtual() == NULL && limit_ != NULL) {
+ delete limit_;
+ }
+ limit_ = NULL;
+ if (GetArenaNoVirtual() == NULL && start_at_ != NULL) {
+ delete start_at_;
+ }
+ start_at_ = NULL;
+ if (GetArenaNoVirtual() == NULL && end_at_ != NULL) {
+ delete end_at_;
+ }
+ end_at_ = NULL;
+ offset_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool StructuredQuery::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.StructuredQuery)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.StructuredQuery.Projection select = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_select()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_from()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Filter where = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_where()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Order order_by = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_order_by()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Int32Value limit = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_limit()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 offset = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &offset_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Cursor start_at = 7;
+ case 7: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_start_at()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Cursor end_at = 8;
+ case 8: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_end_at()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.StructuredQuery)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.StructuredQuery)
+ return false;
+#undef DO_
+}
+
+void StructuredQuery::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.StructuredQuery)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.Projection select = 1;
+ if (this->has_select()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->select_, output);
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->from_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->from(static_cast<int>(i)), output);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Filter where = 3;
+ if (this->has_where()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->where_, output);
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Order order_by = 4;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->order_by_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, this->order_by(static_cast<int>(i)), output);
+ }
+
+ // .google.protobuf.Int32Value limit = 5;
+ if (this->has_limit()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *this->limit_, output);
+ }
+
+ // int32 offset = 6;
+ if (this->offset() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->offset(), output);
+ }
+
+ // .google.firestore.v1beta1.Cursor start_at = 7;
+ if (this->has_start_at()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 7, *this->start_at_, output);
+ }
+
+ // .google.firestore.v1beta1.Cursor end_at = 8;
+ if (this->has_end_at()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 8, *this->end_at_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.StructuredQuery)
+}
+
+::google::protobuf::uint8* StructuredQuery::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.StructuredQuery)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.StructuredQuery.Projection select = 1;
+ if (this->has_select()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->select_, deterministic, target);
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->from_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->from(static_cast<int>(i)), deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Filter where = 3;
+ if (this->has_where()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->where_, deterministic, target);
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Order order_by = 4;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->order_by_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, this->order_by(static_cast<int>(i)), deterministic, target);
+ }
+
+ // .google.protobuf.Int32Value limit = 5;
+ if (this->has_limit()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *this->limit_, deterministic, target);
+ }
+
+ // int32 offset = 6;
+ if (this->offset() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->offset(), target);
+ }
+
+ // .google.firestore.v1beta1.Cursor start_at = 7;
+ if (this->has_start_at()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 7, *this->start_at_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.Cursor end_at = 8;
+ if (this->has_end_at()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 8, *this->end_at_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.StructuredQuery)
+ return target;
+}
+
+size_t StructuredQuery::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.StructuredQuery)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->from_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->from(static_cast<int>(i)));
+ }
+ }
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Order order_by = 4;
+ {
+ unsigned int count = static_cast<unsigned int>(this->order_by_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->order_by(static_cast<int>(i)));
+ }
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Projection select = 1;
+ if (this->has_select()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->select_);
+ }
+
+ // .google.firestore.v1beta1.StructuredQuery.Filter where = 3;
+ if (this->has_where()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->where_);
+ }
+
+ // .google.protobuf.Int32Value limit = 5;
+ if (this->has_limit()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->limit_);
+ }
+
+ // .google.firestore.v1beta1.Cursor start_at = 7;
+ if (this->has_start_at()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->start_at_);
+ }
+
+ // .google.firestore.v1beta1.Cursor end_at = 8;
+ if (this->has_end_at()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->end_at_);
+ }
+
+ // int32 offset = 6;
+ if (this->offset() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->offset());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StructuredQuery::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.StructuredQuery)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StructuredQuery* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StructuredQuery>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.StructuredQuery)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.StructuredQuery)
+ MergeFrom(*source);
+ }
+}
+
+void StructuredQuery::MergeFrom(const StructuredQuery& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.StructuredQuery)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ from_.MergeFrom(from.from_);
+ order_by_.MergeFrom(from.order_by_);
+ if (from.has_select()) {
+ mutable_select()->::google::firestore::v1beta1::StructuredQuery_Projection::MergeFrom(from.select());
+ }
+ if (from.has_where()) {
+ mutable_where()->::google::firestore::v1beta1::StructuredQuery_Filter::MergeFrom(from.where());
+ }
+ if (from.has_limit()) {
+ mutable_limit()->::google::protobuf::Int32Value::MergeFrom(from.limit());
+ }
+ if (from.has_start_at()) {
+ mutable_start_at()->::google::firestore::v1beta1::Cursor::MergeFrom(from.start_at());
+ }
+ if (from.has_end_at()) {
+ mutable_end_at()->::google::firestore::v1beta1::Cursor::MergeFrom(from.end_at());
+ }
+ if (from.offset() != 0) {
+ set_offset(from.offset());
+ }
+}
+
+void StructuredQuery::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.StructuredQuery)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StructuredQuery::CopyFrom(const StructuredQuery& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.StructuredQuery)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StructuredQuery::IsInitialized() const {
+ return true;
+}
+
+void StructuredQuery::Swap(StructuredQuery* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void StructuredQuery::InternalSwap(StructuredQuery* other) {
+ using std::swap;
+ from_.InternalSwap(&other->from_);
+ order_by_.InternalSwap(&other->order_by_);
+ swap(select_, other->select_);
+ swap(where_, other->where_);
+ swap(limit_, other->limit_);
+ swap(start_at_, other->start_at_);
+ swap(end_at_, other->end_at_);
+ swap(offset_, other->offset_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StructuredQuery::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Cursor::InitAsDefaultInstance() {
+}
+void Cursor::clear_values() {
+ values_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Cursor::kValuesFieldNumber;
+const int Cursor::kBeforeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Cursor::Cursor()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsCursor();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Cursor)
+}
+Cursor::Cursor(const Cursor& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ values_(from.values_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ before_ = from.before_;
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Cursor)
+}
+
+void Cursor::SharedCtor() {
+ before_ = false;
+ _cached_size_ = 0;
+}
+
+Cursor::~Cursor() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Cursor)
+ SharedDtor();
+}
+
+void Cursor::SharedDtor() {
+}
+
+void Cursor::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Cursor::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Cursor& Cursor::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsCursor();
+ return *internal_default_instance();
+}
+
+Cursor* Cursor::New(::google::protobuf::Arena* arena) const {
+ Cursor* n = new Cursor;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Cursor::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Cursor)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ values_.Clear();
+ before_ = false;
+ _internal_metadata_.Clear();
+}
+
+bool Cursor::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Cursor)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_values()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bool before = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &before_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Cursor)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Cursor)
+ return false;
+#undef DO_
+}
+
+void Cursor::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Cursor)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->values(static_cast<int>(i)), output);
+ }
+
+ // bool before = 2;
+ if (this->before() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->before(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Cursor)
+}
+
+::google::protobuf::uint8* Cursor::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Cursor)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->values(static_cast<int>(i)), deterministic, target);
+ }
+
+ // bool before = 2;
+ if (this->before() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->before(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Cursor)
+ return target;
+}
+
+size_t Cursor::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Cursor)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->values_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->values(static_cast<int>(i)));
+ }
+ }
+
+ // bool before = 2;
+ if (this->before() != 0) {
+ total_size += 1 + 1;
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Cursor::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Cursor)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Cursor* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Cursor>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Cursor)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Cursor)
+ MergeFrom(*source);
+ }
+}
+
+void Cursor::MergeFrom(const Cursor& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Cursor)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ values_.MergeFrom(from.values_);
+ if (from.before() != 0) {
+ set_before(from.before());
+ }
+}
+
+void Cursor::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Cursor)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Cursor::CopyFrom(const Cursor& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Cursor)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Cursor::IsInitialized() const {
+ return true;
+}
+
+void Cursor::Swap(Cursor* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Cursor::InternalSwap(Cursor* other) {
+ using std::swap;
+ values_.InternalSwap(&other->values_);
+ swap(before_, other->before_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Cursor::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.h b/Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.h
new file mode 100644
index 0000000..c86fc1d
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/query.pb.h
@@ -0,0 +1,2592 @@
+/*
+ * 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: google/firestore/v1beta1/query.proto
+
+#ifndef PROTOBUF_google_2ffirestore_2fv1beta1_2fquery_2eproto__INCLUDED
+#define PROTOBUF_google_2ffirestore_2fv1beta1_2fquery_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/generated_enum_reflection.h>
+#include <google/protobuf/unknown_field_set.h>
+#include "google/api/annotations.pb.h"
+#include "google/firestore/v1beta1/document.pb.h"
+#include <google/protobuf/wrappers.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2ffirestore_2fv1beta1_2fquery_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[10];
+ 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 InitDefaultsStructuredQuery_CollectionSelectorImpl();
+void InitDefaultsStructuredQuery_CollectionSelector();
+void InitDefaultsStructuredQuery_CompositeFilterImpl();
+void InitDefaultsStructuredQuery_CompositeFilter();
+void InitDefaultsStructuredQuery_FieldFilterImpl();
+void InitDefaultsStructuredQuery_FieldFilter();
+void InitDefaultsStructuredQuery_UnaryFilterImpl();
+void InitDefaultsStructuredQuery_UnaryFilter();
+void InitDefaultsStructuredQuery_OrderImpl();
+void InitDefaultsStructuredQuery_Order();
+void InitDefaultsStructuredQuery_FieldReferenceImpl();
+void InitDefaultsStructuredQuery_FieldReference();
+void InitDefaultsStructuredQuery_ProjectionImpl();
+void InitDefaultsStructuredQuery_Projection();
+void InitDefaultsStructuredQueryImpl();
+void InitDefaultsStructuredQuery();
+void InitDefaultsCursorImpl();
+void InitDefaultsCursor();
+inline void InitDefaults() {
+ InitDefaultsStructuredQuery_CollectionSelector();
+ InitDefaultsStructuredQuery_CompositeFilter();
+ InitDefaultsStructuredQuery_FieldFilter();
+ InitDefaultsStructuredQuery_UnaryFilter();
+ InitDefaultsStructuredQuery_Order();
+ InitDefaultsStructuredQuery_FieldReference();
+ InitDefaultsStructuredQuery_Projection();
+ InitDefaultsStructuredQuery();
+ InitDefaultsCursor();
+}
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class Cursor;
+class CursorDefaultTypeInternal;
+extern CursorDefaultTypeInternal _Cursor_default_instance_;
+class StructuredQuery;
+class StructuredQueryDefaultTypeInternal;
+extern StructuredQueryDefaultTypeInternal _StructuredQuery_default_instance_;
+class StructuredQuery_CollectionSelector;
+class StructuredQuery_CollectionSelectorDefaultTypeInternal;
+extern StructuredQuery_CollectionSelectorDefaultTypeInternal _StructuredQuery_CollectionSelector_default_instance_;
+class StructuredQuery_CompositeFilter;
+class StructuredQuery_CompositeFilterDefaultTypeInternal;
+extern StructuredQuery_CompositeFilterDefaultTypeInternal _StructuredQuery_CompositeFilter_default_instance_;
+class StructuredQuery_FieldFilter;
+class StructuredQuery_FieldFilterDefaultTypeInternal;
+extern StructuredQuery_FieldFilterDefaultTypeInternal _StructuredQuery_FieldFilter_default_instance_;
+class StructuredQuery_FieldReference;
+class StructuredQuery_FieldReferenceDefaultTypeInternal;
+extern StructuredQuery_FieldReferenceDefaultTypeInternal _StructuredQuery_FieldReference_default_instance_;
+class StructuredQuery_Filter;
+class StructuredQuery_FilterDefaultTypeInternal;
+extern StructuredQuery_FilterDefaultTypeInternal _StructuredQuery_Filter_default_instance_;
+class StructuredQuery_Order;
+class StructuredQuery_OrderDefaultTypeInternal;
+extern StructuredQuery_OrderDefaultTypeInternal _StructuredQuery_Order_default_instance_;
+class StructuredQuery_Projection;
+class StructuredQuery_ProjectionDefaultTypeInternal;
+extern StructuredQuery_ProjectionDefaultTypeInternal _StructuredQuery_Projection_default_instance_;
+class StructuredQuery_UnaryFilter;
+class StructuredQuery_UnaryFilterDefaultTypeInternal;
+extern StructuredQuery_UnaryFilterDefaultTypeInternal _StructuredQuery_UnaryFilter_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+enum StructuredQuery_CompositeFilter_Operator {
+ StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED = 0,
+ StructuredQuery_CompositeFilter_Operator_AND = 1,
+ StructuredQuery_CompositeFilter_Operator_StructuredQuery_CompositeFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ StructuredQuery_CompositeFilter_Operator_StructuredQuery_CompositeFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool StructuredQuery_CompositeFilter_Operator_IsValid(int value);
+const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter_Operator_Operator_MIN = StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED;
+const StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter_Operator_Operator_MAX = StructuredQuery_CompositeFilter_Operator_AND;
+const int StructuredQuery_CompositeFilter_Operator_Operator_ARRAYSIZE = StructuredQuery_CompositeFilter_Operator_Operator_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* StructuredQuery_CompositeFilter_Operator_descriptor();
+inline const ::std::string& StructuredQuery_CompositeFilter_Operator_Name(StructuredQuery_CompositeFilter_Operator value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ StructuredQuery_CompositeFilter_Operator_descriptor(), value);
+}
+inline bool StructuredQuery_CompositeFilter_Operator_Parse(
+ const ::std::string& name, StructuredQuery_CompositeFilter_Operator* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_CompositeFilter_Operator>(
+ StructuredQuery_CompositeFilter_Operator_descriptor(), name, value);
+}
+enum StructuredQuery_FieldFilter_Operator {
+ StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED = 0,
+ StructuredQuery_FieldFilter_Operator_LESS_THAN = 1,
+ StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL = 2,
+ StructuredQuery_FieldFilter_Operator_GREATER_THAN = 3,
+ StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL = 4,
+ StructuredQuery_FieldFilter_Operator_EQUAL = 5,
+ StructuredQuery_FieldFilter_Operator_StructuredQuery_FieldFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ StructuredQuery_FieldFilter_Operator_StructuredQuery_FieldFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool StructuredQuery_FieldFilter_Operator_IsValid(int value);
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter_Operator_Operator_MIN = StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED;
+const StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter_Operator_Operator_MAX = StructuredQuery_FieldFilter_Operator_EQUAL;
+const int StructuredQuery_FieldFilter_Operator_Operator_ARRAYSIZE = StructuredQuery_FieldFilter_Operator_Operator_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* StructuredQuery_FieldFilter_Operator_descriptor();
+inline const ::std::string& StructuredQuery_FieldFilter_Operator_Name(StructuredQuery_FieldFilter_Operator value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ StructuredQuery_FieldFilter_Operator_descriptor(), value);
+}
+inline bool StructuredQuery_FieldFilter_Operator_Parse(
+ const ::std::string& name, StructuredQuery_FieldFilter_Operator* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_FieldFilter_Operator>(
+ StructuredQuery_FieldFilter_Operator_descriptor(), name, value);
+}
+enum StructuredQuery_UnaryFilter_Operator {
+ StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED = 0,
+ StructuredQuery_UnaryFilter_Operator_IS_NAN = 2,
+ StructuredQuery_UnaryFilter_Operator_IS_NULL = 3,
+ StructuredQuery_UnaryFilter_Operator_StructuredQuery_UnaryFilter_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ StructuredQuery_UnaryFilter_Operator_StructuredQuery_UnaryFilter_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool StructuredQuery_UnaryFilter_Operator_IsValid(int value);
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter_Operator_Operator_MIN = StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED;
+const StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter_Operator_Operator_MAX = StructuredQuery_UnaryFilter_Operator_IS_NULL;
+const int StructuredQuery_UnaryFilter_Operator_Operator_ARRAYSIZE = StructuredQuery_UnaryFilter_Operator_Operator_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* StructuredQuery_UnaryFilter_Operator_descriptor();
+inline const ::std::string& StructuredQuery_UnaryFilter_Operator_Name(StructuredQuery_UnaryFilter_Operator value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ StructuredQuery_UnaryFilter_Operator_descriptor(), value);
+}
+inline bool StructuredQuery_UnaryFilter_Operator_Parse(
+ const ::std::string& name, StructuredQuery_UnaryFilter_Operator* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_UnaryFilter_Operator>(
+ StructuredQuery_UnaryFilter_Operator_descriptor(), name, value);
+}
+enum StructuredQuery_Direction {
+ StructuredQuery_Direction_DIRECTION_UNSPECIFIED = 0,
+ StructuredQuery_Direction_ASCENDING = 1,
+ StructuredQuery_Direction_DESCENDING = 2,
+ StructuredQuery_Direction_StructuredQuery_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ StructuredQuery_Direction_StructuredQuery_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool StructuredQuery_Direction_IsValid(int value);
+const StructuredQuery_Direction StructuredQuery_Direction_Direction_MIN = StructuredQuery_Direction_DIRECTION_UNSPECIFIED;
+const StructuredQuery_Direction StructuredQuery_Direction_Direction_MAX = StructuredQuery_Direction_DESCENDING;
+const int StructuredQuery_Direction_Direction_ARRAYSIZE = StructuredQuery_Direction_Direction_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* StructuredQuery_Direction_descriptor();
+inline const ::std::string& StructuredQuery_Direction_Name(StructuredQuery_Direction value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ StructuredQuery_Direction_descriptor(), value);
+}
+inline bool StructuredQuery_Direction_Parse(
+ const ::std::string& name, StructuredQuery_Direction* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<StructuredQuery_Direction>(
+ StructuredQuery_Direction_descriptor(), name, value);
+}
+// ===================================================================
+
+class StructuredQuery_CollectionSelector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.CollectionSelector) */ {
+ public:
+ StructuredQuery_CollectionSelector();
+ virtual ~StructuredQuery_CollectionSelector();
+
+ StructuredQuery_CollectionSelector(const StructuredQuery_CollectionSelector& from);
+
+ inline StructuredQuery_CollectionSelector& operator=(const StructuredQuery_CollectionSelector& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_CollectionSelector(StructuredQuery_CollectionSelector&& from) noexcept
+ : StructuredQuery_CollectionSelector() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_CollectionSelector& operator=(StructuredQuery_CollectionSelector&& 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 StructuredQuery_CollectionSelector& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_CollectionSelector* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_CollectionSelector*>(
+ &_StructuredQuery_CollectionSelector_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(StructuredQuery_CollectionSelector* other);
+ friend void swap(StructuredQuery_CollectionSelector& a, StructuredQuery_CollectionSelector& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_CollectionSelector* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_CollectionSelector* 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 StructuredQuery_CollectionSelector& from);
+ void MergeFrom(const StructuredQuery_CollectionSelector& 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(StructuredQuery_CollectionSelector* 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 -------------------------------------------------------
+
+ // string collection_id = 2;
+ void clear_collection_id();
+ static const int kCollectionIdFieldNumber = 2;
+ const ::std::string& collection_id() const;
+ void set_collection_id(const ::std::string& value);
+ #if LANG_CXX11
+ void set_collection_id(::std::string&& value);
+ #endif
+ void set_collection_id(const char* value);
+ void set_collection_id(const char* value, size_t size);
+ ::std::string* mutable_collection_id();
+ ::std::string* release_collection_id();
+ void set_allocated_collection_id(::std::string* collection_id);
+
+ // bool all_descendants = 3;
+ void clear_all_descendants();
+ static const int kAllDescendantsFieldNumber = 3;
+ bool all_descendants() const;
+ void set_all_descendants(bool value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.CollectionSelector)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr collection_id_;
+ bool all_descendants_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CollectionSelectorImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_Filter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.Filter) */ {
+ public:
+ StructuredQuery_Filter();
+ virtual ~StructuredQuery_Filter();
+
+ StructuredQuery_Filter(const StructuredQuery_Filter& from);
+
+ inline StructuredQuery_Filter& operator=(const StructuredQuery_Filter& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_Filter(StructuredQuery_Filter&& from) noexcept
+ : StructuredQuery_Filter() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_Filter& operator=(StructuredQuery_Filter&& 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 StructuredQuery_Filter& default_instance();
+
+ enum FilterTypeCase {
+ kCompositeFilter = 1,
+ kFieldFilter = 2,
+ kUnaryFilter = 3,
+ FILTER_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_Filter* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_Filter*>(
+ &_StructuredQuery_Filter_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(StructuredQuery_Filter* other);
+ friend void swap(StructuredQuery_Filter& a, StructuredQuery_Filter& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_Filter* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_Filter* 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 StructuredQuery_Filter& from);
+ void MergeFrom(const StructuredQuery_Filter& 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(StructuredQuery_Filter* 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.firestore.v1beta1.StructuredQuery.CompositeFilter composite_filter = 1;
+ bool has_composite_filter() const;
+ void clear_composite_filter();
+ static const int kCompositeFilterFieldNumber = 1;
+ const ::google::firestore::v1beta1::StructuredQuery_CompositeFilter& composite_filter() const;
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* release_composite_filter();
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* mutable_composite_filter();
+ void set_allocated_composite_filter(::google::firestore::v1beta1::StructuredQuery_CompositeFilter* composite_filter);
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter field_filter = 2;
+ bool has_field_filter() const;
+ void clear_field_filter();
+ static const int kFieldFilterFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldFilter& field_filter() const;
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter* release_field_filter();
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter* mutable_field_filter();
+ void set_allocated_field_filter(::google::firestore::v1beta1::StructuredQuery_FieldFilter* field_filter);
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter unary_filter = 3;
+ bool has_unary_filter() const;
+ void clear_unary_filter();
+ static const int kUnaryFilterFieldNumber = 3;
+ const ::google::firestore::v1beta1::StructuredQuery_UnaryFilter& unary_filter() const;
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* release_unary_filter();
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* mutable_unary_filter();
+ void set_allocated_unary_filter(::google::firestore::v1beta1::StructuredQuery_UnaryFilter* unary_filter);
+
+ FilterTypeCase filter_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Filter)
+ private:
+ void set_has_composite_filter();
+ void set_has_field_filter();
+ void set_has_unary_filter();
+
+ inline bool has_filter_type() const;
+ void clear_filter_type();
+ inline void clear_has_filter_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ union FilterTypeUnion {
+ FilterTypeUnion() {}
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* composite_filter_;
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter* field_filter_;
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* unary_filter_;
+ } filter_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilterImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_CompositeFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.CompositeFilter) */ {
+ public:
+ StructuredQuery_CompositeFilter();
+ virtual ~StructuredQuery_CompositeFilter();
+
+ StructuredQuery_CompositeFilter(const StructuredQuery_CompositeFilter& from);
+
+ inline StructuredQuery_CompositeFilter& operator=(const StructuredQuery_CompositeFilter& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_CompositeFilter(StructuredQuery_CompositeFilter&& from) noexcept
+ : StructuredQuery_CompositeFilter() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_CompositeFilter& operator=(StructuredQuery_CompositeFilter&& 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 StructuredQuery_CompositeFilter& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_CompositeFilter* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_CompositeFilter*>(
+ &_StructuredQuery_CompositeFilter_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void Swap(StructuredQuery_CompositeFilter* other);
+ friend void swap(StructuredQuery_CompositeFilter& a, StructuredQuery_CompositeFilter& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_CompositeFilter* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_CompositeFilter* 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 StructuredQuery_CompositeFilter& from);
+ void MergeFrom(const StructuredQuery_CompositeFilter& 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(StructuredQuery_CompositeFilter* 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 ----------------------------------------------------
+
+ typedef StructuredQuery_CompositeFilter_Operator Operator;
+ static const Operator OPERATOR_UNSPECIFIED =
+ StructuredQuery_CompositeFilter_Operator_OPERATOR_UNSPECIFIED;
+ static const Operator AND =
+ StructuredQuery_CompositeFilter_Operator_AND;
+ static inline bool Operator_IsValid(int value) {
+ return StructuredQuery_CompositeFilter_Operator_IsValid(value);
+ }
+ static const Operator Operator_MIN =
+ StructuredQuery_CompositeFilter_Operator_Operator_MIN;
+ static const Operator Operator_MAX =
+ StructuredQuery_CompositeFilter_Operator_Operator_MAX;
+ static const int Operator_ARRAYSIZE =
+ StructuredQuery_CompositeFilter_Operator_Operator_ARRAYSIZE;
+ static inline const ::google::protobuf::EnumDescriptor*
+ Operator_descriptor() {
+ return StructuredQuery_CompositeFilter_Operator_descriptor();
+ }
+ static inline const ::std::string& Operator_Name(Operator value) {
+ return StructuredQuery_CompositeFilter_Operator_Name(value);
+ }
+ static inline bool Operator_Parse(const ::std::string& name,
+ Operator* value) {
+ return StructuredQuery_CompositeFilter_Operator_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Filter filters = 2;
+ int filters_size() const;
+ void clear_filters();
+ static const int kFiltersFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery_Filter& filters(int index) const;
+ ::google::firestore::v1beta1::StructuredQuery_Filter* mutable_filters(int index);
+ ::google::firestore::v1beta1::StructuredQuery_Filter* add_filters();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Filter >*
+ mutable_filters();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Filter >&
+ filters() const;
+
+ // .google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator op = 1;
+ void clear_op();
+ static const int kOpFieldNumber = 1;
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator op() const;
+ void set_op(::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.CompositeFilter)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Filter > filters_;
+ int op_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_CompositeFilterImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_FieldFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.FieldFilter) */ {
+ public:
+ StructuredQuery_FieldFilter();
+ virtual ~StructuredQuery_FieldFilter();
+
+ StructuredQuery_FieldFilter(const StructuredQuery_FieldFilter& from);
+
+ inline StructuredQuery_FieldFilter& operator=(const StructuredQuery_FieldFilter& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_FieldFilter(StructuredQuery_FieldFilter&& from) noexcept
+ : StructuredQuery_FieldFilter() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_FieldFilter& operator=(StructuredQuery_FieldFilter&& 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 StructuredQuery_FieldFilter& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_FieldFilter* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_FieldFilter*>(
+ &_StructuredQuery_FieldFilter_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void Swap(StructuredQuery_FieldFilter* other);
+ friend void swap(StructuredQuery_FieldFilter& a, StructuredQuery_FieldFilter& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_FieldFilter* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_FieldFilter* 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 StructuredQuery_FieldFilter& from);
+ void MergeFrom(const StructuredQuery_FieldFilter& 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(StructuredQuery_FieldFilter* 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 ----------------------------------------------------
+
+ typedef StructuredQuery_FieldFilter_Operator Operator;
+ static const Operator OPERATOR_UNSPECIFIED =
+ StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED;
+ static const Operator LESS_THAN =
+ StructuredQuery_FieldFilter_Operator_LESS_THAN;
+ static const Operator LESS_THAN_OR_EQUAL =
+ StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL;
+ static const Operator GREATER_THAN =
+ StructuredQuery_FieldFilter_Operator_GREATER_THAN;
+ static const Operator GREATER_THAN_OR_EQUAL =
+ StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL;
+ static const Operator EQUAL =
+ StructuredQuery_FieldFilter_Operator_EQUAL;
+ static inline bool Operator_IsValid(int value) {
+ return StructuredQuery_FieldFilter_Operator_IsValid(value);
+ }
+ static const Operator Operator_MIN =
+ StructuredQuery_FieldFilter_Operator_Operator_MIN;
+ static const Operator Operator_MAX =
+ StructuredQuery_FieldFilter_Operator_Operator_MAX;
+ static const int Operator_ARRAYSIZE =
+ StructuredQuery_FieldFilter_Operator_Operator_ARRAYSIZE;
+ static inline const ::google::protobuf::EnumDescriptor*
+ Operator_descriptor() {
+ return StructuredQuery_FieldFilter_Operator_descriptor();
+ }
+ static inline const ::std::string& Operator_Name(Operator value) {
+ return StructuredQuery_FieldFilter_Operator_Name(value);
+ }
+ static inline bool Operator_Parse(const ::std::string& name,
+ Operator* value) {
+ return StructuredQuery_FieldFilter_Operator_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ bool has_field() const;
+ void clear_field();
+ static const int kFieldFieldNumber = 1;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference& field() const;
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* release_field();
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* mutable_field();
+ void set_allocated_field(::google::firestore::v1beta1::StructuredQuery_FieldReference* field);
+
+ // .google.firestore.v1beta1.Value value = 3;
+ bool has_value() const;
+ void clear_value();
+ static const int kValueFieldNumber = 3;
+ const ::google::firestore::v1beta1::Value& value() const;
+ ::google::firestore::v1beta1::Value* release_value();
+ ::google::firestore::v1beta1::Value* mutable_value();
+ void set_allocated_value(::google::firestore::v1beta1::Value* value);
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator op = 2;
+ void clear_op();
+ static const int kOpFieldNumber = 2;
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator op() const;
+ void set_op(::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.FieldFilter)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* field_;
+ ::google::firestore::v1beta1::Value* value_;
+ int op_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldFilterImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_UnaryFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.UnaryFilter) */ {
+ public:
+ StructuredQuery_UnaryFilter();
+ virtual ~StructuredQuery_UnaryFilter();
+
+ StructuredQuery_UnaryFilter(const StructuredQuery_UnaryFilter& from);
+
+ inline StructuredQuery_UnaryFilter& operator=(const StructuredQuery_UnaryFilter& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_UnaryFilter(StructuredQuery_UnaryFilter&& from) noexcept
+ : StructuredQuery_UnaryFilter() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_UnaryFilter& operator=(StructuredQuery_UnaryFilter&& 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 StructuredQuery_UnaryFilter& default_instance();
+
+ enum OperandTypeCase {
+ kField = 2,
+ OPERAND_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_UnaryFilter* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_UnaryFilter*>(
+ &_StructuredQuery_UnaryFilter_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 4;
+
+ void Swap(StructuredQuery_UnaryFilter* other);
+ friend void swap(StructuredQuery_UnaryFilter& a, StructuredQuery_UnaryFilter& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_UnaryFilter* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_UnaryFilter* 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 StructuredQuery_UnaryFilter& from);
+ void MergeFrom(const StructuredQuery_UnaryFilter& 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(StructuredQuery_UnaryFilter* 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 ----------------------------------------------------
+
+ typedef StructuredQuery_UnaryFilter_Operator Operator;
+ static const Operator OPERATOR_UNSPECIFIED =
+ StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED;
+ static const Operator IS_NAN =
+ StructuredQuery_UnaryFilter_Operator_IS_NAN;
+ static const Operator IS_NULL =
+ StructuredQuery_UnaryFilter_Operator_IS_NULL;
+ static inline bool Operator_IsValid(int value) {
+ return StructuredQuery_UnaryFilter_Operator_IsValid(value);
+ }
+ static const Operator Operator_MIN =
+ StructuredQuery_UnaryFilter_Operator_Operator_MIN;
+ static const Operator Operator_MAX =
+ StructuredQuery_UnaryFilter_Operator_Operator_MAX;
+ static const int Operator_ARRAYSIZE =
+ StructuredQuery_UnaryFilter_Operator_Operator_ARRAYSIZE;
+ static inline const ::google::protobuf::EnumDescriptor*
+ Operator_descriptor() {
+ return StructuredQuery_UnaryFilter_Operator_descriptor();
+ }
+ static inline const ::std::string& Operator_Name(Operator value) {
+ return StructuredQuery_UnaryFilter_Operator_Name(value);
+ }
+ static inline bool Operator_Parse(const ::std::string& name,
+ Operator* value) {
+ return StructuredQuery_UnaryFilter_Operator_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ // .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1;
+ void clear_op();
+ static const int kOpFieldNumber = 1;
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator op() const;
+ void set_op(::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator value);
+
+ // .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2;
+ bool has_field() const;
+ void clear_field();
+ static const int kFieldFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference& field() const;
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* release_field();
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* mutable_field();
+ void set_allocated_field(::google::firestore::v1beta1::StructuredQuery_FieldReference* field);
+
+ OperandTypeCase operand_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.UnaryFilter)
+ private:
+ void set_has_field();
+
+ inline bool has_operand_type() const;
+ void clear_operand_type();
+ inline void clear_has_operand_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ int op_;
+ union OperandTypeUnion {
+ OperandTypeUnion() {}
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* field_;
+ } operand_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_UnaryFilterImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_Order : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.Order) */ {
+ public:
+ StructuredQuery_Order();
+ virtual ~StructuredQuery_Order();
+
+ StructuredQuery_Order(const StructuredQuery_Order& from);
+
+ inline StructuredQuery_Order& operator=(const StructuredQuery_Order& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_Order(StructuredQuery_Order&& from) noexcept
+ : StructuredQuery_Order() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_Order& operator=(StructuredQuery_Order&& 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 StructuredQuery_Order& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_Order* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_Order*>(
+ &_StructuredQuery_Order_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 5;
+
+ void Swap(StructuredQuery_Order* other);
+ friend void swap(StructuredQuery_Order& a, StructuredQuery_Order& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_Order* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_Order* 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 StructuredQuery_Order& from);
+ void MergeFrom(const StructuredQuery_Order& 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(StructuredQuery_Order* 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.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+ bool has_field() const;
+ void clear_field();
+ static const int kFieldFieldNumber = 1;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference& field() const;
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* release_field();
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* mutable_field();
+ void set_allocated_field(::google::firestore::v1beta1::StructuredQuery_FieldReference* field);
+
+ // .google.firestore.v1beta1.StructuredQuery.Direction direction = 2;
+ void clear_direction();
+ static const int kDirectionFieldNumber = 2;
+ ::google::firestore::v1beta1::StructuredQuery_Direction direction() const;
+ void set_direction(::google::firestore::v1beta1::StructuredQuery_Direction value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Order)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* field_;
+ int direction_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_OrderImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_FieldReference : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.FieldReference) */ {
+ public:
+ StructuredQuery_FieldReference();
+ virtual ~StructuredQuery_FieldReference();
+
+ StructuredQuery_FieldReference(const StructuredQuery_FieldReference& from);
+
+ inline StructuredQuery_FieldReference& operator=(const StructuredQuery_FieldReference& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_FieldReference(StructuredQuery_FieldReference&& from) noexcept
+ : StructuredQuery_FieldReference() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_FieldReference& operator=(StructuredQuery_FieldReference&& 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 StructuredQuery_FieldReference& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_FieldReference* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_FieldReference*>(
+ &_StructuredQuery_FieldReference_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 6;
+
+ void Swap(StructuredQuery_FieldReference* other);
+ friend void swap(StructuredQuery_FieldReference& a, StructuredQuery_FieldReference& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_FieldReference* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_FieldReference* 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 StructuredQuery_FieldReference& from);
+ void MergeFrom(const StructuredQuery_FieldReference& 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(StructuredQuery_FieldReference* 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 -------------------------------------------------------
+
+ // string field_path = 2;
+ void clear_field_path();
+ static const int kFieldPathFieldNumber = 2;
+ const ::std::string& field_path() const;
+ void set_field_path(const ::std::string& value);
+ #if LANG_CXX11
+ void set_field_path(::std::string&& value);
+ #endif
+ void set_field_path(const char* value);
+ void set_field_path(const char* value, size_t size);
+ ::std::string* mutable_field_path();
+ ::std::string* release_field_path();
+ void set_allocated_field_path(::std::string* field_path);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.FieldReference)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr field_path_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_FieldReferenceImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery_Projection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery.Projection) */ {
+ public:
+ StructuredQuery_Projection();
+ virtual ~StructuredQuery_Projection();
+
+ StructuredQuery_Projection(const StructuredQuery_Projection& from);
+
+ inline StructuredQuery_Projection& operator=(const StructuredQuery_Projection& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery_Projection(StructuredQuery_Projection&& from) noexcept
+ : StructuredQuery_Projection() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery_Projection& operator=(StructuredQuery_Projection&& 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 StructuredQuery_Projection& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery_Projection* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery_Projection*>(
+ &_StructuredQuery_Projection_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 7;
+
+ void Swap(StructuredQuery_Projection* other);
+ friend void swap(StructuredQuery_Projection& a, StructuredQuery_Projection& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery_Projection* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery_Projection* 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 StructuredQuery_Projection& from);
+ void MergeFrom(const StructuredQuery_Projection& 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(StructuredQuery_Projection* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2;
+ int fields_size() const;
+ void clear_fields();
+ static const int kFieldsFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference& fields(int index) const;
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* mutable_fields(int index);
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* add_fields();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_FieldReference >*
+ mutable_fields();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_FieldReference >&
+ fields() const;
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery.Projection)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_FieldReference > fields_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQuery_ProjectionImpl();
+};
+// -------------------------------------------------------------------
+
+class StructuredQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.StructuredQuery) */ {
+ public:
+ StructuredQuery();
+ virtual ~StructuredQuery();
+
+ StructuredQuery(const StructuredQuery& from);
+
+ inline StructuredQuery& operator=(const StructuredQuery& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StructuredQuery(StructuredQuery&& from) noexcept
+ : StructuredQuery() {
+ *this = ::std::move(from);
+ }
+
+ inline StructuredQuery& operator=(StructuredQuery&& 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 StructuredQuery& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StructuredQuery* internal_default_instance() {
+ return reinterpret_cast<const StructuredQuery*>(
+ &_StructuredQuery_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 8;
+
+ void Swap(StructuredQuery* other);
+ friend void swap(StructuredQuery& a, StructuredQuery& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StructuredQuery* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StructuredQuery* 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 StructuredQuery& from);
+ void MergeFrom(const StructuredQuery& 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(StructuredQuery* 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 ----------------------------------------------------
+
+ typedef StructuredQuery_CollectionSelector CollectionSelector;
+ typedef StructuredQuery_Filter Filter;
+ typedef StructuredQuery_CompositeFilter CompositeFilter;
+ typedef StructuredQuery_FieldFilter FieldFilter;
+ typedef StructuredQuery_UnaryFilter UnaryFilter;
+ typedef StructuredQuery_Order Order;
+ typedef StructuredQuery_FieldReference FieldReference;
+ typedef StructuredQuery_Projection Projection;
+
+ typedef StructuredQuery_Direction Direction;
+ static const Direction DIRECTION_UNSPECIFIED =
+ StructuredQuery_Direction_DIRECTION_UNSPECIFIED;
+ static const Direction ASCENDING =
+ StructuredQuery_Direction_ASCENDING;
+ static const Direction DESCENDING =
+ StructuredQuery_Direction_DESCENDING;
+ static inline bool Direction_IsValid(int value) {
+ return StructuredQuery_Direction_IsValid(value);
+ }
+ static const Direction Direction_MIN =
+ StructuredQuery_Direction_Direction_MIN;
+ static const Direction Direction_MAX =
+ StructuredQuery_Direction_Direction_MAX;
+ static const int Direction_ARRAYSIZE =
+ StructuredQuery_Direction_Direction_ARRAYSIZE;
+ static inline const ::google::protobuf::EnumDescriptor*
+ Direction_descriptor() {
+ return StructuredQuery_Direction_descriptor();
+ }
+ static inline const ::std::string& Direction_Name(Direction value) {
+ return StructuredQuery_Direction_Name(value);
+ }
+ static inline bool Direction_Parse(const ::std::string& name,
+ Direction* value) {
+ return StructuredQuery_Direction_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;
+ int from_size() const;
+ void clear_from();
+ static const int kFromFieldNumber = 2;
+ const ::google::firestore::v1beta1::StructuredQuery_CollectionSelector& from(int index) const;
+ ::google::firestore::v1beta1::StructuredQuery_CollectionSelector* mutable_from(int index);
+ ::google::firestore::v1beta1::StructuredQuery_CollectionSelector* add_from();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_CollectionSelector >*
+ mutable_from();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_CollectionSelector >&
+ from() const;
+
+ // repeated .google.firestore.v1beta1.StructuredQuery.Order order_by = 4;
+ int order_by_size() const;
+ void clear_order_by();
+ static const int kOrderByFieldNumber = 4;
+ const ::google::firestore::v1beta1::StructuredQuery_Order& order_by(int index) const;
+ ::google::firestore::v1beta1::StructuredQuery_Order* mutable_order_by(int index);
+ ::google::firestore::v1beta1::StructuredQuery_Order* add_order_by();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Order >*
+ mutable_order_by();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Order >&
+ order_by() const;
+
+ // .google.firestore.v1beta1.StructuredQuery.Projection select = 1;
+ bool has_select() const;
+ void clear_select();
+ static const int kSelectFieldNumber = 1;
+ const ::google::firestore::v1beta1::StructuredQuery_Projection& select() const;
+ ::google::firestore::v1beta1::StructuredQuery_Projection* release_select();
+ ::google::firestore::v1beta1::StructuredQuery_Projection* mutable_select();
+ void set_allocated_select(::google::firestore::v1beta1::StructuredQuery_Projection* select);
+
+ // .google.firestore.v1beta1.StructuredQuery.Filter where = 3;
+ bool has_where() const;
+ void clear_where();
+ static const int kWhereFieldNumber = 3;
+ const ::google::firestore::v1beta1::StructuredQuery_Filter& where() const;
+ ::google::firestore::v1beta1::StructuredQuery_Filter* release_where();
+ ::google::firestore::v1beta1::StructuredQuery_Filter* mutable_where();
+ void set_allocated_where(::google::firestore::v1beta1::StructuredQuery_Filter* where);
+
+ // .google.protobuf.Int32Value limit = 5;
+ bool has_limit() const;
+ void clear_limit();
+ static const int kLimitFieldNumber = 5;
+ const ::google::protobuf::Int32Value& limit() const;
+ ::google::protobuf::Int32Value* release_limit();
+ ::google::protobuf::Int32Value* mutable_limit();
+ void set_allocated_limit(::google::protobuf::Int32Value* limit);
+
+ // .google.firestore.v1beta1.Cursor start_at = 7;
+ bool has_start_at() const;
+ void clear_start_at();
+ static const int kStartAtFieldNumber = 7;
+ const ::google::firestore::v1beta1::Cursor& start_at() const;
+ ::google::firestore::v1beta1::Cursor* release_start_at();
+ ::google::firestore::v1beta1::Cursor* mutable_start_at();
+ void set_allocated_start_at(::google::firestore::v1beta1::Cursor* start_at);
+
+ // .google.firestore.v1beta1.Cursor end_at = 8;
+ bool has_end_at() const;
+ void clear_end_at();
+ static const int kEndAtFieldNumber = 8;
+ const ::google::firestore::v1beta1::Cursor& end_at() const;
+ ::google::firestore::v1beta1::Cursor* release_end_at();
+ ::google::firestore::v1beta1::Cursor* mutable_end_at();
+ void set_allocated_end_at(::google::firestore::v1beta1::Cursor* end_at);
+
+ // int32 offset = 6;
+ void clear_offset();
+ static const int kOffsetFieldNumber = 6;
+ ::google::protobuf::int32 offset() const;
+ void set_offset(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.StructuredQuery)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_CollectionSelector > from_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Order > order_by_;
+ ::google::firestore::v1beta1::StructuredQuery_Projection* select_;
+ ::google::firestore::v1beta1::StructuredQuery_Filter* where_;
+ ::google::protobuf::Int32Value* limit_;
+ ::google::firestore::v1beta1::Cursor* start_at_;
+ ::google::firestore::v1beta1::Cursor* end_at_;
+ ::google::protobuf::int32 offset_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsStructuredQueryImpl();
+};
+// -------------------------------------------------------------------
+
+class Cursor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Cursor) */ {
+ public:
+ Cursor();
+ virtual ~Cursor();
+
+ Cursor(const Cursor& from);
+
+ inline Cursor& operator=(const Cursor& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Cursor(Cursor&& from) noexcept
+ : Cursor() {
+ *this = ::std::move(from);
+ }
+
+ inline Cursor& operator=(Cursor&& 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 Cursor& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Cursor* internal_default_instance() {
+ return reinterpret_cast<const Cursor*>(
+ &_Cursor_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 9;
+
+ void Swap(Cursor* other);
+ friend void swap(Cursor& a, Cursor& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Cursor* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Cursor* 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 Cursor& from);
+ void MergeFrom(const Cursor& 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(Cursor* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Value values = 1;
+ int values_size() const;
+ void clear_values();
+ static const int kValuesFieldNumber = 1;
+ const ::google::firestore::v1beta1::Value& values(int index) const;
+ ::google::firestore::v1beta1::Value* mutable_values(int index);
+ ::google::firestore::v1beta1::Value* add_values();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >*
+ mutable_values();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >&
+ values() const;
+
+ // bool before = 2;
+ void clear_before();
+ static const int kBeforeFieldNumber = 2;
+ bool before() const;
+ void set_before(bool value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Cursor)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value > values_;
+ bool before_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fquery_2eproto::InitDefaultsCursorImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// StructuredQuery_CollectionSelector
+
+// string collection_id = 2;
+inline void StructuredQuery_CollectionSelector::clear_collection_id() {
+ collection_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& StructuredQuery_CollectionSelector::collection_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+ return collection_id_.GetNoArena();
+}
+inline void StructuredQuery_CollectionSelector::set_collection_id(const ::std::string& value) {
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+}
+#if LANG_CXX11
+inline void StructuredQuery_CollectionSelector::set_collection_id(::std::string&& value) {
+
+ collection_id_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+}
+#endif
+inline void StructuredQuery_CollectionSelector::set_collection_id(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+}
+inline void StructuredQuery_CollectionSelector::set_collection_id(const char* value, size_t size) {
+
+ collection_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+}
+inline ::std::string* StructuredQuery_CollectionSelector::mutable_collection_id() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+ return collection_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* StructuredQuery_CollectionSelector::release_collection_id() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+
+ return collection_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void StructuredQuery_CollectionSelector::set_allocated_collection_id(::std::string* collection_id) {
+ if (collection_id != NULL) {
+
+ } else {
+
+ }
+ collection_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collection_id);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.CollectionSelector.collection_id)
+}
+
+// bool all_descendants = 3;
+inline void StructuredQuery_CollectionSelector::clear_all_descendants() {
+ all_descendants_ = false;
+}
+inline bool StructuredQuery_CollectionSelector::all_descendants() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.CollectionSelector.all_descendants)
+ return all_descendants_;
+}
+inline void StructuredQuery_CollectionSelector::set_all_descendants(bool value) {
+
+ all_descendants_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.CollectionSelector.all_descendants)
+}
+
+// -------------------------------------------------------------------
+
+// StructuredQuery_Filter
+
+// .google.firestore.v1beta1.StructuredQuery.CompositeFilter composite_filter = 1;
+inline bool StructuredQuery_Filter::has_composite_filter() const {
+ return filter_type_case() == kCompositeFilter;
+}
+inline void StructuredQuery_Filter::set_has_composite_filter() {
+ _oneof_case_[0] = kCompositeFilter;
+}
+inline void StructuredQuery_Filter::clear_composite_filter() {
+ if (has_composite_filter()) {
+ delete filter_type_.composite_filter_;
+ clear_has_filter_type();
+ }
+}
+inline ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::release_composite_filter() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.Filter.composite_filter)
+ if (has_composite_filter()) {
+ clear_has_filter_type();
+ ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* temp = filter_type_.composite_filter_;
+ filter_type_.composite_filter_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_CompositeFilter& StructuredQuery_Filter::composite_filter() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.Filter.composite_filter)
+ return has_composite_filter()
+ ? *filter_type_.composite_filter_
+ : *reinterpret_cast< ::google::firestore::v1beta1::StructuredQuery_CompositeFilter*>(&::google::firestore::v1beta1::_StructuredQuery_CompositeFilter_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_CompositeFilter* StructuredQuery_Filter::mutable_composite_filter() {
+ if (!has_composite_filter()) {
+ clear_filter_type();
+ set_has_composite_filter();
+ filter_type_.composite_filter_ = new ::google::firestore::v1beta1::StructuredQuery_CompositeFilter;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.Filter.composite_filter)
+ return filter_type_.composite_filter_;
+}
+
+// .google.firestore.v1beta1.StructuredQuery.FieldFilter field_filter = 2;
+inline bool StructuredQuery_Filter::has_field_filter() const {
+ return filter_type_case() == kFieldFilter;
+}
+inline void StructuredQuery_Filter::set_has_field_filter() {
+ _oneof_case_[0] = kFieldFilter;
+}
+inline void StructuredQuery_Filter::clear_field_filter() {
+ if (has_field_filter()) {
+ delete filter_type_.field_filter_;
+ clear_has_filter_type();
+ }
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldFilter* StructuredQuery_Filter::release_field_filter() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.Filter.field_filter)
+ if (has_field_filter()) {
+ clear_has_filter_type();
+ ::google::firestore::v1beta1::StructuredQuery_FieldFilter* temp = filter_type_.field_filter_;
+ filter_type_.field_filter_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_FieldFilter& StructuredQuery_Filter::field_filter() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.Filter.field_filter)
+ return has_field_filter()
+ ? *filter_type_.field_filter_
+ : *reinterpret_cast< ::google::firestore::v1beta1::StructuredQuery_FieldFilter*>(&::google::firestore::v1beta1::_StructuredQuery_FieldFilter_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldFilter* StructuredQuery_Filter::mutable_field_filter() {
+ if (!has_field_filter()) {
+ clear_filter_type();
+ set_has_field_filter();
+ filter_type_.field_filter_ = new ::google::firestore::v1beta1::StructuredQuery_FieldFilter;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.Filter.field_filter)
+ return filter_type_.field_filter_;
+}
+
+// .google.firestore.v1beta1.StructuredQuery.UnaryFilter unary_filter = 3;
+inline bool StructuredQuery_Filter::has_unary_filter() const {
+ return filter_type_case() == kUnaryFilter;
+}
+inline void StructuredQuery_Filter::set_has_unary_filter() {
+ _oneof_case_[0] = kUnaryFilter;
+}
+inline void StructuredQuery_Filter::clear_unary_filter() {
+ if (has_unary_filter()) {
+ delete filter_type_.unary_filter_;
+ clear_has_filter_type();
+ }
+}
+inline ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::release_unary_filter() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.Filter.unary_filter)
+ if (has_unary_filter()) {
+ clear_has_filter_type();
+ ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* temp = filter_type_.unary_filter_;
+ filter_type_.unary_filter_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_UnaryFilter& StructuredQuery_Filter::unary_filter() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.Filter.unary_filter)
+ return has_unary_filter()
+ ? *filter_type_.unary_filter_
+ : *reinterpret_cast< ::google::firestore::v1beta1::StructuredQuery_UnaryFilter*>(&::google::firestore::v1beta1::_StructuredQuery_UnaryFilter_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_UnaryFilter* StructuredQuery_Filter::mutable_unary_filter() {
+ if (!has_unary_filter()) {
+ clear_filter_type();
+ set_has_unary_filter();
+ filter_type_.unary_filter_ = new ::google::firestore::v1beta1::StructuredQuery_UnaryFilter;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.Filter.unary_filter)
+ return filter_type_.unary_filter_;
+}
+
+inline bool StructuredQuery_Filter::has_filter_type() const {
+ return filter_type_case() != FILTER_TYPE_NOT_SET;
+}
+inline void StructuredQuery_Filter::clear_has_filter_type() {
+ _oneof_case_[0] = FILTER_TYPE_NOT_SET;
+}
+inline StructuredQuery_Filter::FilterTypeCase StructuredQuery_Filter::filter_type_case() const {
+ return StructuredQuery_Filter::FilterTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// StructuredQuery_CompositeFilter
+
+// .google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator op = 1;
+inline void StructuredQuery_CompositeFilter::clear_op() {
+ op_ = 0;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator StructuredQuery_CompositeFilter::op() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.CompositeFilter.op)
+ return static_cast< ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator >(op_);
+}
+inline void StructuredQuery_CompositeFilter::set_op(::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator value) {
+
+ op_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.CompositeFilter.op)
+}
+
+// repeated .google.firestore.v1beta1.StructuredQuery.Filter filters = 2;
+inline int StructuredQuery_CompositeFilter::filters_size() const {
+ return filters_.size();
+}
+inline void StructuredQuery_CompositeFilter::clear_filters() {
+ filters_.Clear();
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_Filter& StructuredQuery_CompositeFilter::filters(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.CompositeFilter.filters)
+ return filters_.Get(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Filter* StructuredQuery_CompositeFilter::mutable_filters(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.CompositeFilter.filters)
+ return filters_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Filter* StructuredQuery_CompositeFilter::add_filters() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.StructuredQuery.CompositeFilter.filters)
+ return filters_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Filter >*
+StructuredQuery_CompositeFilter::mutable_filters() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.StructuredQuery.CompositeFilter.filters)
+ return &filters_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Filter >&
+StructuredQuery_CompositeFilter::filters() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.StructuredQuery.CompositeFilter.filters)
+ return filters_;
+}
+
+// -------------------------------------------------------------------
+
+// StructuredQuery_FieldFilter
+
+// .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+inline bool StructuredQuery_FieldFilter::has_field() const {
+ return this != internal_default_instance() && field_ != NULL;
+}
+inline void StructuredQuery_FieldFilter::clear_field() {
+ if (GetArenaNoVirtual() == NULL && field_ != NULL) {
+ delete field_;
+ }
+ field_ = NULL;
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_FieldReference& StructuredQuery_FieldFilter::field() const {
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference* p = field_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.FieldFilter.field)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::StructuredQuery_FieldReference*>(
+ &::google::firestore::v1beta1::_StructuredQuery_FieldReference_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::release_field() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.FieldFilter.field)
+
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* temp = field_;
+ field_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_FieldFilter::mutable_field() {
+
+ if (field_ == NULL) {
+ field_ = new ::google::firestore::v1beta1::StructuredQuery_FieldReference;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.FieldFilter.field)
+ return field_;
+}
+inline void StructuredQuery_FieldFilter::set_allocated_field(::google::firestore::v1beta1::StructuredQuery_FieldReference* field) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete field_;
+ }
+ if (field) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ field = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, field, submessage_arena);
+ }
+
+ } else {
+
+ }
+ field_ = field;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.FieldFilter.field)
+}
+
+// .google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator op = 2;
+inline void StructuredQuery_FieldFilter::clear_op() {
+ op_ = 0;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator StructuredQuery_FieldFilter::op() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.FieldFilter.op)
+ return static_cast< ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator >(op_);
+}
+inline void StructuredQuery_FieldFilter::set_op(::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator value) {
+
+ op_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.FieldFilter.op)
+}
+
+// .google.firestore.v1beta1.Value value = 3;
+inline bool StructuredQuery_FieldFilter::has_value() const {
+ return this != internal_default_instance() && value_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Value& StructuredQuery_FieldFilter::value() const {
+ const ::google::firestore::v1beta1::Value* p = value_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.FieldFilter.value)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Value*>(
+ &::google::firestore::v1beta1::_Value_default_instance_);
+}
+inline ::google::firestore::v1beta1::Value* StructuredQuery_FieldFilter::release_value() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.FieldFilter.value)
+
+ ::google::firestore::v1beta1::Value* temp = value_;
+ value_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Value* StructuredQuery_FieldFilter::mutable_value() {
+
+ if (value_ == NULL) {
+ value_ = new ::google::firestore::v1beta1::Value;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.FieldFilter.value)
+ return value_;
+}
+inline void StructuredQuery_FieldFilter::set_allocated_value(::google::firestore::v1beta1::Value* value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_);
+ }
+ if (value) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, value, submessage_arena);
+ }
+
+ } else {
+
+ }
+ value_ = value;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.FieldFilter.value)
+}
+
+// -------------------------------------------------------------------
+
+// StructuredQuery_UnaryFilter
+
+// .google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator op = 1;
+inline void StructuredQuery_UnaryFilter::clear_op() {
+ op_ = 0;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator StructuredQuery_UnaryFilter::op() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.UnaryFilter.op)
+ return static_cast< ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator >(op_);
+}
+inline void StructuredQuery_UnaryFilter::set_op(::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator value) {
+
+ op_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.UnaryFilter.op)
+}
+
+// .google.firestore.v1beta1.StructuredQuery.FieldReference field = 2;
+inline bool StructuredQuery_UnaryFilter::has_field() const {
+ return operand_type_case() == kField;
+}
+inline void StructuredQuery_UnaryFilter::set_has_field() {
+ _oneof_case_[0] = kField;
+}
+inline void StructuredQuery_UnaryFilter::clear_field() {
+ if (has_field()) {
+ delete operand_type_.field_;
+ clear_has_operand_type();
+ }
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::release_field() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.UnaryFilter.field)
+ if (has_field()) {
+ clear_has_operand_type();
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* temp = operand_type_.field_;
+ operand_type_.field_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_FieldReference& StructuredQuery_UnaryFilter::field() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.UnaryFilter.field)
+ return has_field()
+ ? *operand_type_.field_
+ : *reinterpret_cast< ::google::firestore::v1beta1::StructuredQuery_FieldReference*>(&::google::firestore::v1beta1::_StructuredQuery_FieldReference_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_UnaryFilter::mutable_field() {
+ if (!has_field()) {
+ clear_operand_type();
+ set_has_field();
+ operand_type_.field_ = new ::google::firestore::v1beta1::StructuredQuery_FieldReference;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.UnaryFilter.field)
+ return operand_type_.field_;
+}
+
+inline bool StructuredQuery_UnaryFilter::has_operand_type() const {
+ return operand_type_case() != OPERAND_TYPE_NOT_SET;
+}
+inline void StructuredQuery_UnaryFilter::clear_has_operand_type() {
+ _oneof_case_[0] = OPERAND_TYPE_NOT_SET;
+}
+inline StructuredQuery_UnaryFilter::OperandTypeCase StructuredQuery_UnaryFilter::operand_type_case() const {
+ return StructuredQuery_UnaryFilter::OperandTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// StructuredQuery_Order
+
+// .google.firestore.v1beta1.StructuredQuery.FieldReference field = 1;
+inline bool StructuredQuery_Order::has_field() const {
+ return this != internal_default_instance() && field_ != NULL;
+}
+inline void StructuredQuery_Order::clear_field() {
+ if (GetArenaNoVirtual() == NULL && field_ != NULL) {
+ delete field_;
+ }
+ field_ = NULL;
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_FieldReference& StructuredQuery_Order::field() const {
+ const ::google::firestore::v1beta1::StructuredQuery_FieldReference* p = field_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.Order.field)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::StructuredQuery_FieldReference*>(
+ &::google::firestore::v1beta1::_StructuredQuery_FieldReference_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_Order::release_field() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.Order.field)
+
+ ::google::firestore::v1beta1::StructuredQuery_FieldReference* temp = field_;
+ field_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_Order::mutable_field() {
+
+ if (field_ == NULL) {
+ field_ = new ::google::firestore::v1beta1::StructuredQuery_FieldReference;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.Order.field)
+ return field_;
+}
+inline void StructuredQuery_Order::set_allocated_field(::google::firestore::v1beta1::StructuredQuery_FieldReference* field) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete field_;
+ }
+ if (field) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ field = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, field, submessage_arena);
+ }
+
+ } else {
+
+ }
+ field_ = field;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.Order.field)
+}
+
+// .google.firestore.v1beta1.StructuredQuery.Direction direction = 2;
+inline void StructuredQuery_Order::clear_direction() {
+ direction_ = 0;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Direction StructuredQuery_Order::direction() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.Order.direction)
+ return static_cast< ::google::firestore::v1beta1::StructuredQuery_Direction >(direction_);
+}
+inline void StructuredQuery_Order::set_direction(::google::firestore::v1beta1::StructuredQuery_Direction value) {
+
+ direction_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.Order.direction)
+}
+
+// -------------------------------------------------------------------
+
+// StructuredQuery_FieldReference
+
+// string field_path = 2;
+inline void StructuredQuery_FieldReference::clear_field_path() {
+ field_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& StructuredQuery_FieldReference::field_path() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+ return field_path_.GetNoArena();
+}
+inline void StructuredQuery_FieldReference::set_field_path(const ::std::string& value) {
+
+ field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+}
+#if LANG_CXX11
+inline void StructuredQuery_FieldReference::set_field_path(::std::string&& value) {
+
+ field_path_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+}
+#endif
+inline void StructuredQuery_FieldReference::set_field_path(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+}
+inline void StructuredQuery_FieldReference::set_field_path(const char* value, size_t size) {
+
+ field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+}
+inline ::std::string* StructuredQuery_FieldReference::mutable_field_path() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+ return field_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* StructuredQuery_FieldReference::release_field_path() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+
+ return field_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void StructuredQuery_FieldReference::set_allocated_field_path(::std::string* field_path) {
+ if (field_path != NULL) {
+
+ } else {
+
+ }
+ field_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_path);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.FieldReference.field_path)
+}
+
+// -------------------------------------------------------------------
+
+// StructuredQuery_Projection
+
+// repeated .google.firestore.v1beta1.StructuredQuery.FieldReference fields = 2;
+inline int StructuredQuery_Projection::fields_size() const {
+ return fields_.size();
+}
+inline void StructuredQuery_Projection::clear_fields() {
+ fields_.Clear();
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_FieldReference& StructuredQuery_Projection::fields(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.Projection.fields)
+ return fields_.Get(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_Projection::mutable_fields(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.Projection.fields)
+ return fields_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_FieldReference* StructuredQuery_Projection::add_fields() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.StructuredQuery.Projection.fields)
+ return fields_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_FieldReference >*
+StructuredQuery_Projection::mutable_fields() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.StructuredQuery.Projection.fields)
+ return &fields_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_FieldReference >&
+StructuredQuery_Projection::fields() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.StructuredQuery.Projection.fields)
+ return fields_;
+}
+
+// -------------------------------------------------------------------
+
+// StructuredQuery
+
+// .google.firestore.v1beta1.StructuredQuery.Projection select = 1;
+inline bool StructuredQuery::has_select() const {
+ return this != internal_default_instance() && select_ != NULL;
+}
+inline void StructuredQuery::clear_select() {
+ if (GetArenaNoVirtual() == NULL && select_ != NULL) {
+ delete select_;
+ }
+ select_ = NULL;
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_Projection& StructuredQuery::select() const {
+ const ::google::firestore::v1beta1::StructuredQuery_Projection* p = select_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.select)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::StructuredQuery_Projection*>(
+ &::google::firestore::v1beta1::_StructuredQuery_Projection_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Projection* StructuredQuery::release_select() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.select)
+
+ ::google::firestore::v1beta1::StructuredQuery_Projection* temp = select_;
+ select_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Projection* StructuredQuery::mutable_select() {
+
+ if (select_ == NULL) {
+ select_ = new ::google::firestore::v1beta1::StructuredQuery_Projection;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.select)
+ return select_;
+}
+inline void StructuredQuery::set_allocated_select(::google::firestore::v1beta1::StructuredQuery_Projection* select) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete select_;
+ }
+ if (select) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ select = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, select, submessage_arena);
+ }
+
+ } else {
+
+ }
+ select_ = select;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.select)
+}
+
+// repeated .google.firestore.v1beta1.StructuredQuery.CollectionSelector from = 2;
+inline int StructuredQuery::from_size() const {
+ return from_.size();
+}
+inline void StructuredQuery::clear_from() {
+ from_.Clear();
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_CollectionSelector& StructuredQuery::from(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.from)
+ return from_.Get(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_CollectionSelector* StructuredQuery::mutable_from(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.from)
+ return from_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_CollectionSelector* StructuredQuery::add_from() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.StructuredQuery.from)
+ return from_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_CollectionSelector >*
+StructuredQuery::mutable_from() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.StructuredQuery.from)
+ return &from_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_CollectionSelector >&
+StructuredQuery::from() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.StructuredQuery.from)
+ return from_;
+}
+
+// .google.firestore.v1beta1.StructuredQuery.Filter where = 3;
+inline bool StructuredQuery::has_where() const {
+ return this != internal_default_instance() && where_ != NULL;
+}
+inline void StructuredQuery::clear_where() {
+ if (GetArenaNoVirtual() == NULL && where_ != NULL) {
+ delete where_;
+ }
+ where_ = NULL;
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_Filter& StructuredQuery::where() const {
+ const ::google::firestore::v1beta1::StructuredQuery_Filter* p = where_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.where)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::StructuredQuery_Filter*>(
+ &::google::firestore::v1beta1::_StructuredQuery_Filter_default_instance_);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Filter* StructuredQuery::release_where() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.where)
+
+ ::google::firestore::v1beta1::StructuredQuery_Filter* temp = where_;
+ where_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Filter* StructuredQuery::mutable_where() {
+
+ if (where_ == NULL) {
+ where_ = new ::google::firestore::v1beta1::StructuredQuery_Filter;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.where)
+ return where_;
+}
+inline void StructuredQuery::set_allocated_where(::google::firestore::v1beta1::StructuredQuery_Filter* where) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete where_;
+ }
+ if (where) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ where = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, where, submessage_arena);
+ }
+
+ } else {
+
+ }
+ where_ = where;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.where)
+}
+
+// repeated .google.firestore.v1beta1.StructuredQuery.Order order_by = 4;
+inline int StructuredQuery::order_by_size() const {
+ return order_by_.size();
+}
+inline void StructuredQuery::clear_order_by() {
+ order_by_.Clear();
+}
+inline const ::google::firestore::v1beta1::StructuredQuery_Order& StructuredQuery::order_by(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.order_by)
+ return order_by_.Get(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Order* StructuredQuery::mutable_order_by(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.order_by)
+ return order_by_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::StructuredQuery_Order* StructuredQuery::add_order_by() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.StructuredQuery.order_by)
+ return order_by_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Order >*
+StructuredQuery::mutable_order_by() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.StructuredQuery.order_by)
+ return &order_by_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::StructuredQuery_Order >&
+StructuredQuery::order_by() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.StructuredQuery.order_by)
+ return order_by_;
+}
+
+// .google.firestore.v1beta1.Cursor start_at = 7;
+inline bool StructuredQuery::has_start_at() const {
+ return this != internal_default_instance() && start_at_ != NULL;
+}
+inline void StructuredQuery::clear_start_at() {
+ if (GetArenaNoVirtual() == NULL && start_at_ != NULL) {
+ delete start_at_;
+ }
+ start_at_ = NULL;
+}
+inline const ::google::firestore::v1beta1::Cursor& StructuredQuery::start_at() const {
+ const ::google::firestore::v1beta1::Cursor* p = start_at_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.start_at)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Cursor*>(
+ &::google::firestore::v1beta1::_Cursor_default_instance_);
+}
+inline ::google::firestore::v1beta1::Cursor* StructuredQuery::release_start_at() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.start_at)
+
+ ::google::firestore::v1beta1::Cursor* temp = start_at_;
+ start_at_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Cursor* StructuredQuery::mutable_start_at() {
+
+ if (start_at_ == NULL) {
+ start_at_ = new ::google::firestore::v1beta1::Cursor;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.start_at)
+ return start_at_;
+}
+inline void StructuredQuery::set_allocated_start_at(::google::firestore::v1beta1::Cursor* start_at) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete start_at_;
+ }
+ if (start_at) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ start_at = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, start_at, submessage_arena);
+ }
+
+ } else {
+
+ }
+ start_at_ = start_at;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.start_at)
+}
+
+// .google.firestore.v1beta1.Cursor end_at = 8;
+inline bool StructuredQuery::has_end_at() const {
+ return this != internal_default_instance() && end_at_ != NULL;
+}
+inline void StructuredQuery::clear_end_at() {
+ if (GetArenaNoVirtual() == NULL && end_at_ != NULL) {
+ delete end_at_;
+ }
+ end_at_ = NULL;
+}
+inline const ::google::firestore::v1beta1::Cursor& StructuredQuery::end_at() const {
+ const ::google::firestore::v1beta1::Cursor* p = end_at_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.end_at)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Cursor*>(
+ &::google::firestore::v1beta1::_Cursor_default_instance_);
+}
+inline ::google::firestore::v1beta1::Cursor* StructuredQuery::release_end_at() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.end_at)
+
+ ::google::firestore::v1beta1::Cursor* temp = end_at_;
+ end_at_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Cursor* StructuredQuery::mutable_end_at() {
+
+ if (end_at_ == NULL) {
+ end_at_ = new ::google::firestore::v1beta1::Cursor;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.end_at)
+ return end_at_;
+}
+inline void StructuredQuery::set_allocated_end_at(::google::firestore::v1beta1::Cursor* end_at) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete end_at_;
+ }
+ if (end_at) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ end_at = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, end_at, submessage_arena);
+ }
+
+ } else {
+
+ }
+ end_at_ = end_at;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.end_at)
+}
+
+// int32 offset = 6;
+inline void StructuredQuery::clear_offset() {
+ offset_ = 0;
+}
+inline ::google::protobuf::int32 StructuredQuery::offset() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.offset)
+ return offset_;
+}
+inline void StructuredQuery::set_offset(::google::protobuf::int32 value) {
+
+ offset_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.StructuredQuery.offset)
+}
+
+// .google.protobuf.Int32Value limit = 5;
+inline bool StructuredQuery::has_limit() const {
+ return this != internal_default_instance() && limit_ != NULL;
+}
+inline const ::google::protobuf::Int32Value& StructuredQuery::limit() const {
+ const ::google::protobuf::Int32Value* p = limit_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.StructuredQuery.limit)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Int32Value*>(
+ &::google::protobuf::_Int32Value_default_instance_);
+}
+inline ::google::protobuf::Int32Value* StructuredQuery::release_limit() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.StructuredQuery.limit)
+
+ ::google::protobuf::Int32Value* temp = limit_;
+ limit_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Int32Value* StructuredQuery::mutable_limit() {
+
+ if (limit_ == NULL) {
+ limit_ = new ::google::protobuf::Int32Value;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.StructuredQuery.limit)
+ return limit_;
+}
+inline void StructuredQuery::set_allocated_limit(::google::protobuf::Int32Value* limit) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(limit_);
+ }
+ if (limit) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(limit)->GetArena();
+ if (message_arena != submessage_arena) {
+ limit = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, limit, submessage_arena);
+ }
+
+ } else {
+
+ }
+ limit_ = limit;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.StructuredQuery.limit)
+}
+
+// -------------------------------------------------------------------
+
+// Cursor
+
+// repeated .google.firestore.v1beta1.Value values = 1;
+inline int Cursor::values_size() const {
+ return values_.size();
+}
+inline const ::google::firestore::v1beta1::Value& Cursor::values(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Cursor.values)
+ return values_.Get(index);
+}
+inline ::google::firestore::v1beta1::Value* Cursor::mutable_values(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Cursor.values)
+ return values_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Value* Cursor::add_values() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.Cursor.values)
+ return values_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >*
+Cursor::mutable_values() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.Cursor.values)
+ return &values_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >&
+Cursor::values() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.Cursor.values)
+ return values_;
+}
+
+// bool before = 2;
+inline void Cursor::clear_before() {
+ before_ = false;
+}
+inline bool Cursor::before() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Cursor.before)
+ return before_;
+}
+inline void Cursor::set_before(bool value) {
+
+ before_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Cursor.before)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+namespace google {
+namespace protobuf {
+
+template <> struct is_proto_enum< ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator>() {
+ return ::google::firestore::v1beta1::StructuredQuery_CompositeFilter_Operator_descriptor();
+}
+template <> struct is_proto_enum< ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator>() {
+ return ::google::firestore::v1beta1::StructuredQuery_FieldFilter_Operator_descriptor();
+}
+template <> struct is_proto_enum< ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator>() {
+ return ::google::firestore::v1beta1::StructuredQuery_UnaryFilter_Operator_descriptor();
+}
+template <> struct is_proto_enum< ::google::firestore::v1beta1::StructuredQuery_Direction> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1beta1::StructuredQuery_Direction>() {
+ return ::google::firestore::v1beta1::StructuredQuery_Direction_descriptor();
+}
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2ffirestore_2fv1beta1_2fquery_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.cc b/Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.cc
new file mode 100644
index 0000000..33aef0b
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.cc
@@ -0,0 +1,3415 @@
+/*
+ * 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: google/firestore/v1beta1/write.proto
+
+#include "google/firestore/v1beta1/write.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class WriteDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Write>
+ _instance;
+ const ::google::firestore::v1beta1::Document* update_;
+ ::google::protobuf::internal::ArenaStringPtr delete__;
+ ::google::protobuf::internal::ArenaStringPtr verify_;
+ const ::google::firestore::v1beta1::DocumentTransform* transform_;
+} _Write_default_instance_;
+class DocumentTransform_FieldTransformDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DocumentTransform_FieldTransform>
+ _instance;
+ int set_to_server_value_;
+} _DocumentTransform_FieldTransform_default_instance_;
+class DocumentTransformDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DocumentTransform>
+ _instance;
+} _DocumentTransform_default_instance_;
+class WriteResultDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<WriteResult>
+ _instance;
+} _WriteResult_default_instance_;
+class DocumentChangeDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DocumentChange>
+ _instance;
+} _DocumentChange_default_instance_;
+class DocumentDeleteDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DocumentDelete>
+ _instance;
+} _DocumentDelete_default_instance_;
+class DocumentRemoveDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DocumentRemove>
+ _instance;
+} _DocumentRemove_default_instance_;
+class ExistenceFilterDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ExistenceFilter>
+ _instance;
+} _ExistenceFilter_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto {
+void InitDefaultsWriteImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMask();
+ protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPrecondition();
+ {
+ void* ptr = &::google::firestore::v1beta1::_Write_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::Write();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::Write::InitAsDefaultInstance();
+}
+
+void InitDefaultsWrite() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteImpl);
+}
+
+void InitDefaultsDocumentTransform_FieldTransformImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_DocumentTransform_FieldTransform_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DocumentTransform_FieldTransform();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DocumentTransform_FieldTransform::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocumentTransform_FieldTransform() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentTransform_FieldTransformImpl);
+}
+
+void InitDefaultsDocumentTransformImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform_FieldTransform();
+ {
+ void* ptr = &::google::firestore::v1beta1::_DocumentTransform_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DocumentTransform();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DocumentTransform::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocumentTransform() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentTransformImpl);
+}
+
+void InitDefaultsWriteResultImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsArrayValue();
+ {
+ void* ptr = &::google::firestore::v1beta1::_WriteResult_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::WriteResult();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::WriteResult::InitAsDefaultInstance();
+}
+
+void InitDefaultsWriteResult() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWriteResultImpl);
+}
+
+void InitDefaultsDocumentChangeImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::InitDefaultsDocument();
+ {
+ void* ptr = &::google::firestore::v1beta1::_DocumentChange_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DocumentChange();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DocumentChange::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocumentChange() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentChangeImpl);
+}
+
+void InitDefaultsDocumentDeleteImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_DocumentDelete_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DocumentDelete();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DocumentDelete::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocumentDelete() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentDeleteImpl);
+}
+
+void InitDefaultsDocumentRemoveImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ {
+ void* ptr = &::google::firestore::v1beta1::_DocumentRemove_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::DocumentRemove();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::DocumentRemove::InitAsDefaultInstance();
+}
+
+void InitDefaultsDocumentRemove() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDocumentRemoveImpl);
+}
+
+void InitDefaultsExistenceFilterImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::firestore::v1beta1::_ExistenceFilter_default_instance_;
+ new (ptr) ::google::firestore::v1beta1::ExistenceFilter();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::firestore::v1beta1::ExistenceFilter::InitAsDefaultInstance();
+}
+
+void InitDefaultsExistenceFilter() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExistenceFilterImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[8];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Write, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Write, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::firestore::v1beta1::WriteDefaultTypeInternal, update_),
+ offsetof(::google::firestore::v1beta1::WriteDefaultTypeInternal, delete__),
+ offsetof(::google::firestore::v1beta1::WriteDefaultTypeInternal, verify_),
+ offsetof(::google::firestore::v1beta1::WriteDefaultTypeInternal, transform_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Write, update_mask_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Write, current_document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::Write, operation_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform_FieldTransform, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform_FieldTransform, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform_FieldTransform, field_path_),
+ offsetof(::google::firestore::v1beta1::DocumentTransform_FieldTransformDefaultTypeInternal, set_to_server_value_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform_FieldTransform, transform_type_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentTransform, field_transforms_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResult, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResult, update_time_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::WriteResult, transform_results_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentChange, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentChange, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentChange, target_ids_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentChange, removed_target_ids_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentDelete, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentDelete, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentDelete, removed_target_ids_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentDelete, read_time_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentRemove, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentRemove, document_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentRemove, removed_target_ids_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::DocumentRemove, read_time_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ExistenceFilter, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ExistenceFilter, target_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::firestore::v1beta1::ExistenceFilter, count_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::firestore::v1beta1::Write)},
+ { 12, -1, sizeof(::google::firestore::v1beta1::DocumentTransform_FieldTransform)},
+ { 20, -1, sizeof(::google::firestore::v1beta1::DocumentTransform)},
+ { 27, -1, sizeof(::google::firestore::v1beta1::WriteResult)},
+ { 34, -1, sizeof(::google::firestore::v1beta1::DocumentChange)},
+ { 42, -1, sizeof(::google::firestore::v1beta1::DocumentDelete)},
+ { 50, -1, sizeof(::google::firestore::v1beta1::DocumentRemove)},
+ { 58, -1, sizeof(::google::firestore::v1beta1::ExistenceFilter)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_Write_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DocumentTransform_FieldTransform_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DocumentTransform_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_WriteResult_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DocumentChange_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DocumentDelete_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_DocumentRemove_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::firestore::v1beta1::_ExistenceFilter_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/firestore/v1beta1/write.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n$google/firestore/v1beta1/write.proto\022\030"
+ "google.firestore.v1beta1\032\034google/api/ann"
+ "otations.proto\032%google/firestore/v1beta1"
+ "/common.proto\032\'google/firestore/v1beta1/"
+ "document.proto\032\037google/protobuf/timestam"
+ "p.proto\"\257\002\n\005Write\0224\n\006update\030\001 \001(\0132\".goog"
+ "le.firestore.v1beta1.DocumentH\000\022\020\n\006delet"
+ "e\030\002 \001(\tH\000\022\020\n\006verify\030\005 \001(\tH\000\022@\n\ttransform"
+ "\030\006 \001(\0132+.google.firestore.v1beta1.Docume"
+ "ntTransformH\000\022;\n\013update_mask\030\003 \001(\0132&.goo"
+ "gle.firestore.v1beta1.DocumentMask\022@\n\020cu"
+ "rrent_document\030\004 \001(\0132&.google.firestore."
+ "v1beta1.PreconditionB\013\n\toperation\"\332\002\n\021Do"
+ "cumentTransform\022\020\n\010document\030\001 \001(\t\022T\n\020fie"
+ "ld_transforms\030\002 \003(\0132:.google.firestore.v"
+ "1beta1.DocumentTransform.FieldTransform\032"
+ "\334\001\n\016FieldTransform\022\022\n\nfield_path\030\001 \001(\t\022e"
+ "\n\023set_to_server_value\030\002 \001(\0162F.google.fir"
+ "estore.v1beta1.DocumentTransform.FieldTr"
+ "ansform.ServerValueH\000\"=\n\013ServerValue\022\034\n\030"
+ "SERVER_VALUE_UNSPECIFIED\020\000\022\020\n\014REQUEST_TI"
+ "ME\020\001B\020\n\016transform_type\"z\n\013WriteResult\022/\n"
+ "\013update_time\030\001 \001(\0132\032.google.protobuf.Tim"
+ "estamp\022:\n\021transform_results\030\002 \003(\0132\037.goog"
+ "le.firestore.v1beta1.Value\"v\n\016DocumentCh"
+ "ange\0224\n\010document\030\001 \001(\0132\".google.firestor"
+ "e.v1beta1.Document\022\022\n\ntarget_ids\030\005 \003(\005\022\032"
+ "\n\022removed_target_ids\030\006 \003(\005\"m\n\016DocumentDe"
+ "lete\022\020\n\010document\030\001 \001(\t\022\032\n\022removed_target"
+ "_ids\030\006 \003(\005\022-\n\tread_time\030\004 \001(\0132\032.google.p"
+ "rotobuf.Timestamp\"m\n\016DocumentRemove\022\020\n\010d"
+ "ocument\030\001 \001(\t\022\032\n\022removed_target_ids\030\002 \003("
+ "\005\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf.T"
+ "imestamp\"3\n\017ExistenceFilter\022\021\n\ttarget_id"
+ "\030\001 \001(\005\022\r\n\005count\030\002 \001(\005B\227\001\n\034com.google.fir"
+ "estore.v1beta1B\nWriteProtoP\001ZAgoogle.gol"
+ "ang.org/genproto/googleapis/firestore/v1"
+ "beta1;firestore\242\002\004GCFS\252\002\036Google.Cloud.Fi"
+ "restore.V1Beta1b\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 1543);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/firestore/v1beta1/write.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::AddDescriptors();
+ ::protobuf_google_2ffirestore_2fv1beta1_2fdocument_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+const ::google::protobuf::EnumDescriptor* DocumentTransform_FieldTransform_ServerValue_descriptor() {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_enum_descriptors[0];
+}
+bool DocumentTransform_FieldTransform_ServerValue_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ return true;
+ default:
+ return false;
+ }
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::SERVER_VALUE_UNSPECIFIED;
+const DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::REQUEST_TIME;
+const DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::ServerValue_MIN;
+const DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::ServerValue_MAX;
+const int DocumentTransform_FieldTransform::ServerValue_ARRAYSIZE;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+// ===================================================================
+
+void Write::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_Write_default_instance_.update_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+ ::google::firestore::v1beta1::_Write_default_instance_.delete__.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_Write_default_instance_.verify_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::firestore::v1beta1::_Write_default_instance_.transform_ = const_cast< ::google::firestore::v1beta1::DocumentTransform*>(
+ ::google::firestore::v1beta1::DocumentTransform::internal_default_instance());
+ ::google::firestore::v1beta1::_Write_default_instance_._instance.get_mutable()->update_mask_ = const_cast< ::google::firestore::v1beta1::DocumentMask*>(
+ ::google::firestore::v1beta1::DocumentMask::internal_default_instance());
+ ::google::firestore::v1beta1::_Write_default_instance_._instance.get_mutable()->current_document_ = const_cast< ::google::firestore::v1beta1::Precondition*>(
+ ::google::firestore::v1beta1::Precondition::internal_default_instance());
+}
+void Write::set_allocated_update(::google::firestore::v1beta1::Document* update) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_operation();
+ if (update) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ update = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, update, submessage_arena);
+ }
+ set_has_update();
+ operation_.update_ = update;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Write.update)
+}
+void Write::clear_update() {
+ if (has_update()) {
+ delete operation_.update_;
+ clear_has_operation();
+ }
+}
+void Write::set_allocated_transform(::google::firestore::v1beta1::DocumentTransform* transform) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_operation();
+ if (transform) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ transform = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, transform, submessage_arena);
+ }
+ set_has_transform();
+ operation_.transform_ = transform;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Write.transform)
+}
+void Write::clear_update_mask() {
+ if (GetArenaNoVirtual() == NULL && update_mask_ != NULL) {
+ delete update_mask_;
+ }
+ update_mask_ = NULL;
+}
+void Write::clear_current_document() {
+ if (GetArenaNoVirtual() == NULL && current_document_ != NULL) {
+ delete current_document_;
+ }
+ current_document_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Write::kUpdateFieldNumber;
+const int Write::kDeleteFieldNumber;
+const int Write::kVerifyFieldNumber;
+const int Write::kTransformFieldNumber;
+const int Write::kUpdateMaskFieldNumber;
+const int Write::kCurrentDocumentFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Write::Write()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWrite();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.Write)
+}
+Write::Write(const Write& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_update_mask()) {
+ update_mask_ = new ::google::firestore::v1beta1::DocumentMask(*from.update_mask_);
+ } else {
+ update_mask_ = NULL;
+ }
+ if (from.has_current_document()) {
+ current_document_ = new ::google::firestore::v1beta1::Precondition(*from.current_document_);
+ } else {
+ current_document_ = NULL;
+ }
+ clear_has_operation();
+ switch (from.operation_case()) {
+ case kUpdate: {
+ mutable_update()->::google::firestore::v1beta1::Document::MergeFrom(from.update());
+ break;
+ }
+ case kDelete: {
+ set_delete_(from.delete_());
+ break;
+ }
+ case kVerify: {
+ set_verify(from.verify());
+ break;
+ }
+ case kTransform: {
+ mutable_transform()->::google::firestore::v1beta1::DocumentTransform::MergeFrom(from.transform());
+ break;
+ }
+ case OPERATION_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.Write)
+}
+
+void Write::SharedCtor() {
+ ::memset(&update_mask_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&current_document_) -
+ reinterpret_cast<char*>(&update_mask_)) + sizeof(current_document_));
+ clear_has_operation();
+ _cached_size_ = 0;
+}
+
+Write::~Write() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.Write)
+ SharedDtor();
+}
+
+void Write::SharedDtor() {
+ if (this != internal_default_instance()) delete update_mask_;
+ if (this != internal_default_instance()) delete current_document_;
+ if (has_operation()) {
+ clear_operation();
+ }
+}
+
+void Write::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Write::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Write& Write::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWrite();
+ return *internal_default_instance();
+}
+
+Write* Write::New(::google::protobuf::Arena* arena) const {
+ Write* n = new Write;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Write::clear_operation() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.Write)
+ switch (operation_case()) {
+ case kUpdate: {
+ delete operation_.update_;
+ break;
+ }
+ case kDelete: {
+ operation_.delete__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kVerify: {
+ operation_.verify_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ break;
+ }
+ case kTransform: {
+ delete operation_.transform_;
+ break;
+ }
+ case OPERATION_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = OPERATION_NOT_SET;
+}
+
+
+void Write::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.Write)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (GetArenaNoVirtual() == NULL && update_mask_ != NULL) {
+ delete update_mask_;
+ }
+ update_mask_ = NULL;
+ if (GetArenaNoVirtual() == NULL && current_document_ != NULL) {
+ delete current_document_;
+ }
+ current_document_ = NULL;
+ clear_operation();
+ _internal_metadata_.Clear();
+}
+
+bool Write::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.Write)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.Document update = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_update()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string delete = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_delete_()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Write.delete"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_update_mask()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_current_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string verify = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_verify()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->verify().data(), static_cast<int>(this->verify().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.Write.verify"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentTransform transform = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_transform()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.Write)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.Write)
+ return false;
+#undef DO_
+}
+
+void Write::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.Write)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document update = 1;
+ if (has_update()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *operation_.update_, output);
+ }
+
+ // string delete = 2;
+ if (has_delete_()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Write.delete");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->delete_(), output);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 3;
+ if (this->has_update_mask()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, *this->update_mask_, output);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ if (this->has_current_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->current_document_, output);
+ }
+
+ // string verify = 5;
+ if (has_verify()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->verify().data(), static_cast<int>(this->verify().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Write.verify");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 5, this->verify(), output);
+ }
+
+ // .google.firestore.v1beta1.DocumentTransform transform = 6;
+ if (has_transform()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *operation_.transform_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.Write)
+}
+
+::google::protobuf::uint8* Write::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.Write)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document update = 1;
+ if (has_update()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *operation_.update_, deterministic, target);
+ }
+
+ // string delete = 2;
+ if (has_delete_()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Write.delete");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->delete_(), target);
+ }
+
+ // .google.firestore.v1beta1.DocumentMask update_mask = 3;
+ if (this->has_update_mask()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, *this->update_mask_, deterministic, target);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ if (this->has_current_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->current_document_, deterministic, target);
+ }
+
+ // string verify = 5;
+ if (has_verify()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->verify().data(), static_cast<int>(this->verify().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.Write.verify");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 5, this->verify(), target);
+ }
+
+ // .google.firestore.v1beta1.DocumentTransform transform = 6;
+ if (has_transform()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *operation_.transform_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.Write)
+ return target;
+}
+
+size_t Write::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.Write)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // .google.firestore.v1beta1.DocumentMask update_mask = 3;
+ if (this->has_update_mask()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->update_mask_);
+ }
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ if (this->has_current_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->current_document_);
+ }
+
+ switch (operation_case()) {
+ // .google.firestore.v1beta1.Document update = 1;
+ case kUpdate: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *operation_.update_);
+ break;
+ }
+ // string delete = 2;
+ case kDelete: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->delete_());
+ break;
+ }
+ // string verify = 5;
+ case kVerify: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->verify());
+ break;
+ }
+ // .google.firestore.v1beta1.DocumentTransform transform = 6;
+ case kTransform: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *operation_.transform_);
+ break;
+ }
+ case OPERATION_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Write::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.Write)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Write* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Write>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.Write)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.Write)
+ MergeFrom(*source);
+ }
+}
+
+void Write::MergeFrom(const Write& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.Write)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.has_update_mask()) {
+ mutable_update_mask()->::google::firestore::v1beta1::DocumentMask::MergeFrom(from.update_mask());
+ }
+ if (from.has_current_document()) {
+ mutable_current_document()->::google::firestore::v1beta1::Precondition::MergeFrom(from.current_document());
+ }
+ switch (from.operation_case()) {
+ case kUpdate: {
+ mutable_update()->::google::firestore::v1beta1::Document::MergeFrom(from.update());
+ break;
+ }
+ case kDelete: {
+ set_delete_(from.delete_());
+ break;
+ }
+ case kVerify: {
+ set_verify(from.verify());
+ break;
+ }
+ case kTransform: {
+ mutable_transform()->::google::firestore::v1beta1::DocumentTransform::MergeFrom(from.transform());
+ break;
+ }
+ case OPERATION_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Write::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.Write)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Write::CopyFrom(const Write& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.Write)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Write::IsInitialized() const {
+ return true;
+}
+
+void Write::Swap(Write* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Write::InternalSwap(Write* other) {
+ using std::swap;
+ swap(update_mask_, other->update_mask_);
+ swap(current_document_, other->current_document_);
+ swap(operation_, other->operation_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Write::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void DocumentTransform_FieldTransform::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_DocumentTransform_FieldTransform_default_instance_.set_to_server_value_ = 0;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DocumentTransform_FieldTransform::kFieldPathFieldNumber;
+const int DocumentTransform_FieldTransform::kSetToServerValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DocumentTransform_FieldTransform::DocumentTransform_FieldTransform()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform_FieldTransform();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+}
+DocumentTransform_FieldTransform::DocumentTransform_FieldTransform(const DocumentTransform_FieldTransform& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ field_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.field_path().size() > 0) {
+ field_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_path_);
+ }
+ clear_has_transform_type();
+ switch (from.transform_type_case()) {
+ case kSetToServerValue: {
+ set_set_to_server_value(from.set_to_server_value());
+ break;
+ }
+ case TRANSFORM_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+}
+
+void DocumentTransform_FieldTransform::SharedCtor() {
+ field_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_transform_type();
+ _cached_size_ = 0;
+}
+
+DocumentTransform_FieldTransform::~DocumentTransform_FieldTransform() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ SharedDtor();
+}
+
+void DocumentTransform_FieldTransform::SharedDtor() {
+ field_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (has_transform_type()) {
+ clear_transform_type();
+ }
+}
+
+void DocumentTransform_FieldTransform::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DocumentTransform_FieldTransform::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DocumentTransform_FieldTransform& DocumentTransform_FieldTransform::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform_FieldTransform();
+ return *internal_default_instance();
+}
+
+DocumentTransform_FieldTransform* DocumentTransform_FieldTransform::New(::google::protobuf::Arena* arena) const {
+ DocumentTransform_FieldTransform* n = new DocumentTransform_FieldTransform;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DocumentTransform_FieldTransform::clear_transform_type() {
+// @@protoc_insertion_point(one_of_clear_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ switch (transform_type_case()) {
+ case kSetToServerValue: {
+ // No need to clear
+ break;
+ }
+ case TRANSFORM_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = TRANSFORM_TYPE_NOT_SET;
+}
+
+
+void DocumentTransform_FieldTransform::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ field_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_transform_type();
+ _internal_metadata_.Clear();
+}
+
+bool DocumentTransform_FieldTransform::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string field_path = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_field_path()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_path().data(), static_cast<int>(this->field_path().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_set_to_server_value(static_cast< ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ return false;
+#undef DO_
+}
+
+void DocumentTransform_FieldTransform::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string field_path = 1;
+ if (this->field_path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_path().data(), static_cast<int>(this->field_path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->field_path(), output);
+ }
+
+ // .google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
+ if (has_set_to_server_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 2, this->set_to_server_value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+}
+
+::google::protobuf::uint8* DocumentTransform_FieldTransform::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string field_path = 1;
+ if (this->field_path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->field_path().data(), static_cast<int>(this->field_path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->field_path(), target);
+ }
+
+ // .google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
+ if (has_set_to_server_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 2, this->set_to_server_value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ return target;
+}
+
+size_t DocumentTransform_FieldTransform::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string field_path = 1;
+ if (this->field_path().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->field_path());
+ }
+
+ switch (transform_type_case()) {
+ // .google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
+ case kSetToServerValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->set_to_server_value());
+ break;
+ }
+ case TRANSFORM_TYPE_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DocumentTransform_FieldTransform::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DocumentTransform_FieldTransform* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DocumentTransform_FieldTransform>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ MergeFrom(*source);
+ }
+}
+
+void DocumentTransform_FieldTransform::MergeFrom(const DocumentTransform_FieldTransform& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.field_path().size() > 0) {
+
+ field_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.field_path_);
+ }
+ switch (from.transform_type_case()) {
+ case kSetToServerValue: {
+ set_set_to_server_value(from.set_to_server_value());
+ break;
+ }
+ case TRANSFORM_TYPE_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void DocumentTransform_FieldTransform::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DocumentTransform_FieldTransform::CopyFrom(const DocumentTransform_FieldTransform& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DocumentTransform_FieldTransform::IsInitialized() const {
+ return true;
+}
+
+void DocumentTransform_FieldTransform::Swap(DocumentTransform_FieldTransform* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DocumentTransform_FieldTransform::InternalSwap(DocumentTransform_FieldTransform* other) {
+ using std::swap;
+ field_path_.Swap(&other->field_path_);
+ swap(transform_type_, other->transform_type_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DocumentTransform_FieldTransform::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void DocumentTransform::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DocumentTransform::kDocumentFieldNumber;
+const int DocumentTransform::kFieldTransformsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DocumentTransform::DocumentTransform()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DocumentTransform)
+}
+DocumentTransform::DocumentTransform(const DocumentTransform& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ field_transforms_(from.field_transforms_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ document_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.document().size() > 0) {
+ document_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DocumentTransform)
+}
+
+void DocumentTransform::SharedCtor() {
+ document_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+DocumentTransform::~DocumentTransform() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DocumentTransform)
+ SharedDtor();
+}
+
+void DocumentTransform::SharedDtor() {
+ document_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void DocumentTransform::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DocumentTransform::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DocumentTransform& DocumentTransform::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform();
+ return *internal_default_instance();
+}
+
+DocumentTransform* DocumentTransform::New(::google::protobuf::Arena* arena) const {
+ DocumentTransform* n = new DocumentTransform;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DocumentTransform::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DocumentTransform)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ field_transforms_.Clear();
+ document_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool DocumentTransform::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DocumentTransform)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_document()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.DocumentTransform.document"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.DocumentTransform.FieldTransform field_transforms = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_field_transforms()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DocumentTransform)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DocumentTransform)
+ return false;
+#undef DO_
+}
+
+void DocumentTransform::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DocumentTransform)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentTransform.document");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->document(), output);
+ }
+
+ // repeated .google.firestore.v1beta1.DocumentTransform.FieldTransform field_transforms = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->field_transforms_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->field_transforms(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DocumentTransform)
+}
+
+::google::protobuf::uint8* DocumentTransform::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DocumentTransform)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentTransform.document");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->document(), target);
+ }
+
+ // repeated .google.firestore.v1beta1.DocumentTransform.FieldTransform field_transforms = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->field_transforms_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->field_transforms(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DocumentTransform)
+ return target;
+}
+
+size_t DocumentTransform::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DocumentTransform)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.DocumentTransform.FieldTransform field_transforms = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->field_transforms_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->field_transforms(static_cast<int>(i)));
+ }
+ }
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->document());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DocumentTransform::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DocumentTransform)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DocumentTransform* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DocumentTransform>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DocumentTransform)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DocumentTransform)
+ MergeFrom(*source);
+ }
+}
+
+void DocumentTransform::MergeFrom(const DocumentTransform& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DocumentTransform)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ field_transforms_.MergeFrom(from.field_transforms_);
+ if (from.document().size() > 0) {
+
+ document_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_);
+ }
+}
+
+void DocumentTransform::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DocumentTransform)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DocumentTransform::CopyFrom(const DocumentTransform& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DocumentTransform)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DocumentTransform::IsInitialized() const {
+ return true;
+}
+
+void DocumentTransform::Swap(DocumentTransform* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DocumentTransform::InternalSwap(DocumentTransform* other) {
+ using std::swap;
+ field_transforms_.InternalSwap(&other->field_transforms_);
+ document_.Swap(&other->document_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DocumentTransform::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void WriteResult::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_WriteResult_default_instance_._instance.get_mutable()->update_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void WriteResult::clear_update_time() {
+ if (GetArenaNoVirtual() == NULL && update_time_ != NULL) {
+ delete update_time_;
+ }
+ update_time_ = NULL;
+}
+void WriteResult::clear_transform_results() {
+ transform_results_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int WriteResult::kUpdateTimeFieldNumber;
+const int WriteResult::kTransformResultsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+WriteResult::WriteResult()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWriteResult();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.WriteResult)
+}
+WriteResult::WriteResult(const WriteResult& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ transform_results_(from.transform_results_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_update_time()) {
+ update_time_ = new ::google::protobuf::Timestamp(*from.update_time_);
+ } else {
+ update_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.WriteResult)
+}
+
+void WriteResult::SharedCtor() {
+ update_time_ = NULL;
+ _cached_size_ = 0;
+}
+
+WriteResult::~WriteResult() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.WriteResult)
+ SharedDtor();
+}
+
+void WriteResult::SharedDtor() {
+ if (this != internal_default_instance()) delete update_time_;
+}
+
+void WriteResult::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* WriteResult::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const WriteResult& WriteResult::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWriteResult();
+ return *internal_default_instance();
+}
+
+WriteResult* WriteResult::New(::google::protobuf::Arena* arena) const {
+ WriteResult* n = new WriteResult;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void WriteResult::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.WriteResult)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ transform_results_.Clear();
+ if (GetArenaNoVirtual() == NULL && update_time_ != NULL) {
+ delete update_time_;
+ }
+ update_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool WriteResult::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.WriteResult)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.protobuf.Timestamp update_time = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_update_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.firestore.v1beta1.Value transform_results = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_transform_results()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.WriteResult)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.WriteResult)
+ return false;
+#undef DO_
+}
+
+void WriteResult::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.WriteResult)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.protobuf.Timestamp update_time = 1;
+ if (this->has_update_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->update_time_, output);
+ }
+
+ // repeated .google.firestore.v1beta1.Value transform_results = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->transform_results_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 2, this->transform_results(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.WriteResult)
+}
+
+::google::protobuf::uint8* WriteResult::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.WriteResult)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.protobuf.Timestamp update_time = 1;
+ if (this->has_update_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->update_time_, deterministic, target);
+ }
+
+ // repeated .google.firestore.v1beta1.Value transform_results = 2;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->transform_results_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 2, this->transform_results(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.WriteResult)
+ return target;
+}
+
+size_t WriteResult::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.WriteResult)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.firestore.v1beta1.Value transform_results = 2;
+ {
+ unsigned int count = static_cast<unsigned int>(this->transform_results_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->transform_results(static_cast<int>(i)));
+ }
+ }
+
+ // .google.protobuf.Timestamp update_time = 1;
+ if (this->has_update_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->update_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void WriteResult::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.WriteResult)
+ GOOGLE_DCHECK_NE(&from, this);
+ const WriteResult* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const WriteResult>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.WriteResult)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.WriteResult)
+ MergeFrom(*source);
+ }
+}
+
+void WriteResult::MergeFrom(const WriteResult& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.WriteResult)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ transform_results_.MergeFrom(from.transform_results_);
+ if (from.has_update_time()) {
+ mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(from.update_time());
+ }
+}
+
+void WriteResult::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.WriteResult)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void WriteResult::CopyFrom(const WriteResult& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.WriteResult)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool WriteResult::IsInitialized() const {
+ return true;
+}
+
+void WriteResult::Swap(WriteResult* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void WriteResult::InternalSwap(WriteResult* other) {
+ using std::swap;
+ transform_results_.InternalSwap(&other->transform_results_);
+ swap(update_time_, other->update_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata WriteResult::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void DocumentChange::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_DocumentChange_default_instance_._instance.get_mutable()->document_ = const_cast< ::google::firestore::v1beta1::Document*>(
+ ::google::firestore::v1beta1::Document::internal_default_instance());
+}
+void DocumentChange::clear_document() {
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DocumentChange::kDocumentFieldNumber;
+const int DocumentChange::kTargetIdsFieldNumber;
+const int DocumentChange::kRemovedTargetIdsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DocumentChange::DocumentChange()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentChange();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DocumentChange)
+}
+DocumentChange::DocumentChange(const DocumentChange& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ target_ids_(from.target_ids_),
+ removed_target_ids_(from.removed_target_ids_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from.has_document()) {
+ document_ = new ::google::firestore::v1beta1::Document(*from.document_);
+ } else {
+ document_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DocumentChange)
+}
+
+void DocumentChange::SharedCtor() {
+ document_ = NULL;
+ _cached_size_ = 0;
+}
+
+DocumentChange::~DocumentChange() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DocumentChange)
+ SharedDtor();
+}
+
+void DocumentChange::SharedDtor() {
+ if (this != internal_default_instance()) delete document_;
+}
+
+void DocumentChange::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DocumentChange::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DocumentChange& DocumentChange::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentChange();
+ return *internal_default_instance();
+}
+
+DocumentChange* DocumentChange::New(::google::protobuf::Arena* arena) const {
+ DocumentChange* n = new DocumentChange;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DocumentChange::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DocumentChange)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ target_ids_.Clear();
+ removed_target_ids_.Clear();
+ if (GetArenaNoVirtual() == NULL && document_ != NULL) {
+ delete document_;
+ }
+ document_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool DocumentChange::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DocumentChange)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.firestore.v1beta1.Document document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_document()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated int32 target_ids = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, this->mutable_target_ids())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ 1, 42u, input, this->mutable_target_ids())));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, this->mutable_removed_target_ids())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ 1, 50u, input, this->mutable_removed_target_ids())));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DocumentChange)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DocumentChange)
+ return false;
+#undef DO_
+}
+
+void DocumentChange::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DocumentChange)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *this->document_, output);
+ }
+
+ // repeated int32 target_ids = 5;
+ if (this->target_ids_size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
+ _target_ids_cached_byte_size_));
+ }
+ for (int i = 0, n = this->target_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
+ this->target_ids(i), output);
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ if (this->removed_target_ids_size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
+ _removed_target_ids_cached_byte_size_));
+ }
+ for (int i = 0, n = this->removed_target_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
+ this->removed_target_ids(i), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DocumentChange)
+}
+
+::google::protobuf::uint8* DocumentChange::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DocumentChange)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, *this->document_, deterministic, target);
+ }
+
+ // repeated int32 target_ids = 5;
+ if (this->target_ids_size() > 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
+ 5,
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
+ target);
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
+ static_cast< ::google::protobuf::int32>(
+ _target_ids_cached_byte_size_), target);
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32NoTagToArray(this->target_ids_, target);
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ if (this->removed_target_ids_size() > 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
+ 6,
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
+ target);
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
+ static_cast< ::google::protobuf::int32>(
+ _removed_target_ids_cached_byte_size_), target);
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32NoTagToArray(this->removed_target_ids_, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DocumentChange)
+ return target;
+}
+
+size_t DocumentChange::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DocumentChange)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated int32 target_ids = 5;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->target_ids_);
+ if (data_size > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ static_cast< ::google::protobuf::int32>(data_size));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _target_ids_cached_byte_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ total_size += data_size;
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->removed_target_ids_);
+ if (data_size > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ static_cast< ::google::protobuf::int32>(data_size));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _removed_target_ids_cached_byte_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ total_size += data_size;
+ }
+
+ // .google.firestore.v1beta1.Document document = 1;
+ if (this->has_document()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->document_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DocumentChange::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DocumentChange)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DocumentChange* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DocumentChange>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DocumentChange)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DocumentChange)
+ MergeFrom(*source);
+ }
+}
+
+void DocumentChange::MergeFrom(const DocumentChange& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DocumentChange)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ target_ids_.MergeFrom(from.target_ids_);
+ removed_target_ids_.MergeFrom(from.removed_target_ids_);
+ if (from.has_document()) {
+ mutable_document()->::google::firestore::v1beta1::Document::MergeFrom(from.document());
+ }
+}
+
+void DocumentChange::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DocumentChange)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DocumentChange::CopyFrom(const DocumentChange& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DocumentChange)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DocumentChange::IsInitialized() const {
+ return true;
+}
+
+void DocumentChange::Swap(DocumentChange* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DocumentChange::InternalSwap(DocumentChange* other) {
+ using std::swap;
+ target_ids_.InternalSwap(&other->target_ids_);
+ removed_target_ids_.InternalSwap(&other->removed_target_ids_);
+ swap(document_, other->document_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DocumentChange::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void DocumentDelete::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_DocumentDelete_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void DocumentDelete::clear_read_time() {
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DocumentDelete::kDocumentFieldNumber;
+const int DocumentDelete::kRemovedTargetIdsFieldNumber;
+const int DocumentDelete::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DocumentDelete::DocumentDelete()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentDelete();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DocumentDelete)
+}
+DocumentDelete::DocumentDelete(const DocumentDelete& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ removed_target_ids_(from.removed_target_ids_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ document_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.document().size() > 0) {
+ document_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_);
+ }
+ if (from.has_read_time()) {
+ read_time_ = new ::google::protobuf::Timestamp(*from.read_time_);
+ } else {
+ read_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DocumentDelete)
+}
+
+void DocumentDelete::SharedCtor() {
+ document_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ read_time_ = NULL;
+ _cached_size_ = 0;
+}
+
+DocumentDelete::~DocumentDelete() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DocumentDelete)
+ SharedDtor();
+}
+
+void DocumentDelete::SharedDtor() {
+ document_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete read_time_;
+}
+
+void DocumentDelete::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DocumentDelete::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DocumentDelete& DocumentDelete::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentDelete();
+ return *internal_default_instance();
+}
+
+DocumentDelete* DocumentDelete::New(::google::protobuf::Arena* arena) const {
+ DocumentDelete* n = new DocumentDelete;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DocumentDelete::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DocumentDelete)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ removed_target_ids_.Clear();
+ document_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool DocumentDelete::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DocumentDelete)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_document()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.DocumentDelete.document"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, this->mutable_removed_target_ids())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ 1, 50u, input, this->mutable_removed_target_ids())));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DocumentDelete)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DocumentDelete)
+ return false;
+#undef DO_
+}
+
+void DocumentDelete::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DocumentDelete)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentDelete.document");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->document(), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->read_time_, output);
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ if (this->removed_target_ids_size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
+ _removed_target_ids_cached_byte_size_));
+ }
+ for (int i = 0, n = this->removed_target_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
+ this->removed_target_ids(i), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DocumentDelete)
+}
+
+::google::protobuf::uint8* DocumentDelete::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DocumentDelete)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentDelete.document");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->document(), target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->read_time_, deterministic, target);
+ }
+
+ // repeated int32 removed_target_ids = 6;
+ if (this->removed_target_ids_size() > 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
+ 6,
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
+ target);
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
+ static_cast< ::google::protobuf::int32>(
+ _removed_target_ids_cached_byte_size_), target);
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32NoTagToArray(this->removed_target_ids_, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DocumentDelete)
+ return target;
+}
+
+size_t DocumentDelete::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DocumentDelete)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated int32 removed_target_ids = 6;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->removed_target_ids_);
+ if (data_size > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ static_cast< ::google::protobuf::int32>(data_size));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _removed_target_ids_cached_byte_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ total_size += data_size;
+ }
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->document());
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->read_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DocumentDelete::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DocumentDelete)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DocumentDelete* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DocumentDelete>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DocumentDelete)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DocumentDelete)
+ MergeFrom(*source);
+ }
+}
+
+void DocumentDelete::MergeFrom(const DocumentDelete& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DocumentDelete)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ removed_target_ids_.MergeFrom(from.removed_target_ids_);
+ if (from.document().size() > 0) {
+
+ document_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_);
+ }
+ if (from.has_read_time()) {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ }
+}
+
+void DocumentDelete::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DocumentDelete)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DocumentDelete::CopyFrom(const DocumentDelete& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DocumentDelete)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DocumentDelete::IsInitialized() const {
+ return true;
+}
+
+void DocumentDelete::Swap(DocumentDelete* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DocumentDelete::InternalSwap(DocumentDelete* other) {
+ using std::swap;
+ removed_target_ids_.InternalSwap(&other->removed_target_ids_);
+ document_.Swap(&other->document_);
+ swap(read_time_, other->read_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DocumentDelete::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void DocumentRemove::InitAsDefaultInstance() {
+ ::google::firestore::v1beta1::_DocumentRemove_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::google::protobuf::Timestamp*>(
+ ::google::protobuf::Timestamp::internal_default_instance());
+}
+void DocumentRemove::clear_read_time() {
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DocumentRemove::kDocumentFieldNumber;
+const int DocumentRemove::kRemovedTargetIdsFieldNumber;
+const int DocumentRemove::kReadTimeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DocumentRemove::DocumentRemove()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentRemove();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.DocumentRemove)
+}
+DocumentRemove::DocumentRemove(const DocumentRemove& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ removed_target_ids_(from.removed_target_ids_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ document_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.document().size() > 0) {
+ document_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_);
+ }
+ if (from.has_read_time()) {
+ read_time_ = new ::google::protobuf::Timestamp(*from.read_time_);
+ } else {
+ read_time_ = NULL;
+ }
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.DocumentRemove)
+}
+
+void DocumentRemove::SharedCtor() {
+ document_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ read_time_ = NULL;
+ _cached_size_ = 0;
+}
+
+DocumentRemove::~DocumentRemove() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.DocumentRemove)
+ SharedDtor();
+}
+
+void DocumentRemove::SharedDtor() {
+ document_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete read_time_;
+}
+
+void DocumentRemove::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DocumentRemove::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DocumentRemove& DocumentRemove::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentRemove();
+ return *internal_default_instance();
+}
+
+DocumentRemove* DocumentRemove::New(::google::protobuf::Arena* arena) const {
+ DocumentRemove* n = new DocumentRemove;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void DocumentRemove::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.DocumentRemove)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ removed_target_ids_.Clear();
+ document_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (GetArenaNoVirtual() == NULL && read_time_ != NULL) {
+ delete read_time_;
+ }
+ read_time_ = NULL;
+ _internal_metadata_.Clear();
+}
+
+bool DocumentRemove::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.DocumentRemove)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string document = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_document()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.firestore.v1beta1.DocumentRemove.document"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated int32 removed_target_ids = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, this->mutable_removed_target_ids())));
+ } else if (
+ static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ 1, 18u, input, this->mutable_removed_target_ids())));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_read_time()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.DocumentRemove)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.DocumentRemove)
+ return false;
+#undef DO_
+}
+
+void DocumentRemove::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.DocumentRemove)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentRemove.document");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->document(), output);
+ }
+
+ // repeated int32 removed_target_ids = 2;
+ if (this->removed_target_ids_size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
+ _removed_target_ids_cached_byte_size_));
+ }
+ for (int i = 0, n = this->removed_target_ids_size(); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
+ this->removed_target_ids(i), output);
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 4, *this->read_time_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.DocumentRemove)
+}
+
+::google::protobuf::uint8* DocumentRemove::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.DocumentRemove)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->document().data(), static_cast<int>(this->document().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.firestore.v1beta1.DocumentRemove.document");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->document(), target);
+ }
+
+ // repeated int32 removed_target_ids = 2;
+ if (this->removed_target_ids_size() > 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
+ 2,
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
+ target);
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
+ static_cast< ::google::protobuf::int32>(
+ _removed_target_ids_cached_byte_size_), target);
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteInt32NoTagToArray(this->removed_target_ids_, target);
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 4, *this->read_time_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.DocumentRemove)
+ return target;
+}
+
+size_t DocumentRemove::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.DocumentRemove)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated int32 removed_target_ids = 2;
+ {
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
+ Int32Size(this->removed_target_ids_);
+ if (data_size > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ static_cast< ::google::protobuf::int32>(data_size));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _removed_target_ids_cached_byte_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ total_size += data_size;
+ }
+
+ // string document = 1;
+ if (this->document().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->document());
+ }
+
+ // .google.protobuf.Timestamp read_time = 4;
+ if (this->has_read_time()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *this->read_time_);
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DocumentRemove::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.DocumentRemove)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DocumentRemove* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DocumentRemove>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.DocumentRemove)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.DocumentRemove)
+ MergeFrom(*source);
+ }
+}
+
+void DocumentRemove::MergeFrom(const DocumentRemove& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.DocumentRemove)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ removed_target_ids_.MergeFrom(from.removed_target_ids_);
+ if (from.document().size() > 0) {
+
+ document_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.document_);
+ }
+ if (from.has_read_time()) {
+ mutable_read_time()->::google::protobuf::Timestamp::MergeFrom(from.read_time());
+ }
+}
+
+void DocumentRemove::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.DocumentRemove)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DocumentRemove::CopyFrom(const DocumentRemove& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.DocumentRemove)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DocumentRemove::IsInitialized() const {
+ return true;
+}
+
+void DocumentRemove::Swap(DocumentRemove* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void DocumentRemove::InternalSwap(DocumentRemove* other) {
+ using std::swap;
+ removed_target_ids_.InternalSwap(&other->removed_target_ids_);
+ document_.Swap(&other->document_);
+ swap(read_time_, other->read_time_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DocumentRemove::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ExistenceFilter::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ExistenceFilter::kTargetIdFieldNumber;
+const int ExistenceFilter::kCountFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ExistenceFilter::ExistenceFilter()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsExistenceFilter();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.firestore.v1beta1.ExistenceFilter)
+}
+ExistenceFilter::ExistenceFilter(const ExistenceFilter& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&target_id_, &from.target_id_,
+ static_cast<size_t>(reinterpret_cast<char*>(&count_) -
+ reinterpret_cast<char*>(&target_id_)) + sizeof(count_));
+ // @@protoc_insertion_point(copy_constructor:google.firestore.v1beta1.ExistenceFilter)
+}
+
+void ExistenceFilter::SharedCtor() {
+ ::memset(&target_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&count_) -
+ reinterpret_cast<char*>(&target_id_)) + sizeof(count_));
+ _cached_size_ = 0;
+}
+
+ExistenceFilter::~ExistenceFilter() {
+ // @@protoc_insertion_point(destructor:google.firestore.v1beta1.ExistenceFilter)
+ SharedDtor();
+}
+
+void ExistenceFilter::SharedDtor() {
+}
+
+void ExistenceFilter::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ExistenceFilter::descriptor() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ExistenceFilter& ExistenceFilter::default_instance() {
+ ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsExistenceFilter();
+ return *internal_default_instance();
+}
+
+ExistenceFilter* ExistenceFilter::New(::google::protobuf::Arena* arena) const {
+ ExistenceFilter* n = new ExistenceFilter;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ExistenceFilter::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.firestore.v1beta1.ExistenceFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ ::memset(&target_id_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&count_) -
+ reinterpret_cast<char*>(&target_id_)) + sizeof(count_));
+ _internal_metadata_.Clear();
+}
+
+bool ExistenceFilter::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.firestore.v1beta1.ExistenceFilter)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 target_id = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &target_id_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 count = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &count_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.firestore.v1beta1.ExistenceFilter)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.firestore.v1beta1.ExistenceFilter)
+ return false;
+#undef DO_
+}
+
+void ExistenceFilter::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.firestore.v1beta1.ExistenceFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 target_id = 1;
+ if (this->target_id() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->target_id(), output);
+ }
+
+ // int32 count = 2;
+ if (this->count() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->count(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.firestore.v1beta1.ExistenceFilter)
+}
+
+::google::protobuf::uint8* ExistenceFilter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1beta1.ExistenceFilter)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 target_id = 1;
+ if (this->target_id() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->target_id(), target);
+ }
+
+ // int32 count = 2;
+ if (this->count() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->count(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1beta1.ExistenceFilter)
+ return target;
+}
+
+size_t ExistenceFilter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.firestore.v1beta1.ExistenceFilter)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // int32 target_id = 1;
+ if (this->target_id() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->target_id());
+ }
+
+ // int32 count = 2;
+ if (this->count() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->count());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ExistenceFilter::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1beta1.ExistenceFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ExistenceFilter* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ExistenceFilter>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1beta1.ExistenceFilter)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1beta1.ExistenceFilter)
+ MergeFrom(*source);
+ }
+}
+
+void ExistenceFilter::MergeFrom(const ExistenceFilter& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1beta1.ExistenceFilter)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.target_id() != 0) {
+ set_target_id(from.target_id());
+ }
+ if (from.count() != 0) {
+ set_count(from.count());
+ }
+}
+
+void ExistenceFilter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1beta1.ExistenceFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ExistenceFilter::CopyFrom(const ExistenceFilter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1beta1.ExistenceFilter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ExistenceFilter::IsInitialized() const {
+ return true;
+}
+
+void ExistenceFilter::Swap(ExistenceFilter* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ExistenceFilter::InternalSwap(ExistenceFilter* other) {
+ using std::swap;
+ swap(target_id_, other->target_id_);
+ swap(count_, other->count_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ExistenceFilter::GetMetadata() const {
+ protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.h b/Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.h
new file mode 100644
index 0000000..87599df
--- /dev/null
+++ b/Firestore/Protos/cpp/google/firestore/v1beta1/write.pb.h
@@ -0,0 +1,2304 @@
+/*
+ * 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: google/firestore/v1beta1/write.proto
+
+#ifndef PROTOBUF_google_2ffirestore_2fv1beta1_2fwrite_2eproto__INCLUDED
+#define PROTOBUF_google_2ffirestore_2fv1beta1_2fwrite_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/generated_enum_reflection.h>
+#include <google/protobuf/unknown_field_set.h>
+#include "google/api/annotations.pb.h"
+#include "google/firestore/v1beta1/common.pb.h"
+#include "google/firestore/v1beta1/document.pb.h"
+#include <google/protobuf/timestamp.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2ffirestore_2fv1beta1_2fwrite_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[8];
+ 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 InitDefaultsWriteImpl();
+void InitDefaultsWrite();
+void InitDefaultsDocumentTransform_FieldTransformImpl();
+void InitDefaultsDocumentTransform_FieldTransform();
+void InitDefaultsDocumentTransformImpl();
+void InitDefaultsDocumentTransform();
+void InitDefaultsWriteResultImpl();
+void InitDefaultsWriteResult();
+void InitDefaultsDocumentChangeImpl();
+void InitDefaultsDocumentChange();
+void InitDefaultsDocumentDeleteImpl();
+void InitDefaultsDocumentDelete();
+void InitDefaultsDocumentRemoveImpl();
+void InitDefaultsDocumentRemove();
+void InitDefaultsExistenceFilterImpl();
+void InitDefaultsExistenceFilter();
+inline void InitDefaults() {
+ InitDefaultsWrite();
+ InitDefaultsDocumentTransform_FieldTransform();
+ InitDefaultsDocumentTransform();
+ InitDefaultsWriteResult();
+ InitDefaultsDocumentChange();
+ InitDefaultsDocumentDelete();
+ InitDefaultsDocumentRemove();
+ InitDefaultsExistenceFilter();
+}
+} // namespace protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+class DocumentChange;
+class DocumentChangeDefaultTypeInternal;
+extern DocumentChangeDefaultTypeInternal _DocumentChange_default_instance_;
+class DocumentDelete;
+class DocumentDeleteDefaultTypeInternal;
+extern DocumentDeleteDefaultTypeInternal _DocumentDelete_default_instance_;
+class DocumentRemove;
+class DocumentRemoveDefaultTypeInternal;
+extern DocumentRemoveDefaultTypeInternal _DocumentRemove_default_instance_;
+class DocumentTransform;
+class DocumentTransformDefaultTypeInternal;
+extern DocumentTransformDefaultTypeInternal _DocumentTransform_default_instance_;
+class DocumentTransform_FieldTransform;
+class DocumentTransform_FieldTransformDefaultTypeInternal;
+extern DocumentTransform_FieldTransformDefaultTypeInternal _DocumentTransform_FieldTransform_default_instance_;
+class ExistenceFilter;
+class ExistenceFilterDefaultTypeInternal;
+extern ExistenceFilterDefaultTypeInternal _ExistenceFilter_default_instance_;
+class Write;
+class WriteDefaultTypeInternal;
+extern WriteDefaultTypeInternal _Write_default_instance_;
+class WriteResult;
+class WriteResultDefaultTypeInternal;
+extern WriteResultDefaultTypeInternal _WriteResult_default_instance_;
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+namespace google {
+namespace firestore {
+namespace v1beta1 {
+
+enum DocumentTransform_FieldTransform_ServerValue {
+ DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED = 0,
+ DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME = 1,
+ DocumentTransform_FieldTransform_ServerValue_DocumentTransform_FieldTransform_ServerValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ DocumentTransform_FieldTransform_ServerValue_DocumentTransform_FieldTransform_ServerValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool DocumentTransform_FieldTransform_ServerValue_IsValid(int value);
+const DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform_ServerValue_ServerValue_MIN = DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED;
+const DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX = DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME;
+const int DocumentTransform_FieldTransform_ServerValue_ServerValue_ARRAYSIZE = DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* DocumentTransform_FieldTransform_ServerValue_descriptor();
+inline const ::std::string& DocumentTransform_FieldTransform_ServerValue_Name(DocumentTransform_FieldTransform_ServerValue value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ DocumentTransform_FieldTransform_ServerValue_descriptor(), value);
+}
+inline bool DocumentTransform_FieldTransform_ServerValue_Parse(
+ const ::std::string& name, DocumentTransform_FieldTransform_ServerValue* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<DocumentTransform_FieldTransform_ServerValue>(
+ DocumentTransform_FieldTransform_ServerValue_descriptor(), name, value);
+}
+// ===================================================================
+
+class Write : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Write) */ {
+ public:
+ Write();
+ virtual ~Write();
+
+ Write(const Write& from);
+
+ inline Write& operator=(const Write& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Write(Write&& from) noexcept
+ : Write() {
+ *this = ::std::move(from);
+ }
+
+ inline Write& operator=(Write&& 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 Write& default_instance();
+
+ enum OperationCase {
+ kUpdate = 1,
+ kDelete = 2,
+ kVerify = 5,
+ kTransform = 6,
+ OPERATION_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Write* internal_default_instance() {
+ return reinterpret_cast<const Write*>(
+ &_Write_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(Write* other);
+ friend void swap(Write& a, Write& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Write* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Write* 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 Write& from);
+ void MergeFrom(const Write& 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(Write* 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.firestore.v1beta1.DocumentMask update_mask = 3;
+ bool has_update_mask() const;
+ void clear_update_mask();
+ static const int kUpdateMaskFieldNumber = 3;
+ const ::google::firestore::v1beta1::DocumentMask& update_mask() const;
+ ::google::firestore::v1beta1::DocumentMask* release_update_mask();
+ ::google::firestore::v1beta1::DocumentMask* mutable_update_mask();
+ void set_allocated_update_mask(::google::firestore::v1beta1::DocumentMask* update_mask);
+
+ // .google.firestore.v1beta1.Precondition current_document = 4;
+ bool has_current_document() const;
+ void clear_current_document();
+ static const int kCurrentDocumentFieldNumber = 4;
+ const ::google::firestore::v1beta1::Precondition& current_document() const;
+ ::google::firestore::v1beta1::Precondition* release_current_document();
+ ::google::firestore::v1beta1::Precondition* mutable_current_document();
+ void set_allocated_current_document(::google::firestore::v1beta1::Precondition* current_document);
+
+ // .google.firestore.v1beta1.Document update = 1;
+ bool has_update() const;
+ void clear_update();
+ static const int kUpdateFieldNumber = 1;
+ const ::google::firestore::v1beta1::Document& update() const;
+ ::google::firestore::v1beta1::Document* release_update();
+ ::google::firestore::v1beta1::Document* mutable_update();
+ void set_allocated_update(::google::firestore::v1beta1::Document* update);
+
+ // string delete = 2;
+ private:
+ bool has_delete_() const;
+ public:
+ void clear_delete_();
+ static const int kDeleteFieldNumber = 2;
+ const ::std::string& delete_() const;
+ void set_delete_(const ::std::string& value);
+ #if LANG_CXX11
+ void set_delete_(::std::string&& value);
+ #endif
+ void set_delete_(const char* value);
+ void set_delete_(const char* value, size_t size);
+ ::std::string* mutable_delete_();
+ ::std::string* release_delete_();
+ void set_allocated_delete_(::std::string* delete_);
+
+ // string verify = 5;
+ private:
+ bool has_verify() const;
+ public:
+ void clear_verify();
+ static const int kVerifyFieldNumber = 5;
+ const ::std::string& verify() const;
+ void set_verify(const ::std::string& value);
+ #if LANG_CXX11
+ void set_verify(::std::string&& value);
+ #endif
+ void set_verify(const char* value);
+ void set_verify(const char* value, size_t size);
+ ::std::string* mutable_verify();
+ ::std::string* release_verify();
+ void set_allocated_verify(::std::string* verify);
+
+ // .google.firestore.v1beta1.DocumentTransform transform = 6;
+ bool has_transform() const;
+ void clear_transform();
+ static const int kTransformFieldNumber = 6;
+ const ::google::firestore::v1beta1::DocumentTransform& transform() const;
+ ::google::firestore::v1beta1::DocumentTransform* release_transform();
+ ::google::firestore::v1beta1::DocumentTransform* mutable_transform();
+ void set_allocated_transform(::google::firestore::v1beta1::DocumentTransform* transform);
+
+ OperationCase operation_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Write)
+ private:
+ void set_has_update();
+ void set_has_delete_();
+ void set_has_verify();
+ void set_has_transform();
+
+ inline bool has_operation() const;
+ void clear_operation();
+ inline void clear_has_operation();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::firestore::v1beta1::DocumentMask* update_mask_;
+ ::google::firestore::v1beta1::Precondition* current_document_;
+ union OperationUnion {
+ OperationUnion() {}
+ ::google::firestore::v1beta1::Document* update_;
+ ::google::protobuf::internal::ArenaStringPtr delete__;
+ ::google::protobuf::internal::ArenaStringPtr verify_;
+ ::google::firestore::v1beta1::DocumentTransform* transform_;
+ } operation_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWriteImpl();
+};
+// -------------------------------------------------------------------
+
+class DocumentTransform_FieldTransform : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentTransform.FieldTransform) */ {
+ public:
+ DocumentTransform_FieldTransform();
+ virtual ~DocumentTransform_FieldTransform();
+
+ DocumentTransform_FieldTransform(const DocumentTransform_FieldTransform& from);
+
+ inline DocumentTransform_FieldTransform& operator=(const DocumentTransform_FieldTransform& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DocumentTransform_FieldTransform(DocumentTransform_FieldTransform&& from) noexcept
+ : DocumentTransform_FieldTransform() {
+ *this = ::std::move(from);
+ }
+
+ inline DocumentTransform_FieldTransform& operator=(DocumentTransform_FieldTransform&& 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 DocumentTransform_FieldTransform& default_instance();
+
+ enum TransformTypeCase {
+ kSetToServerValue = 2,
+ TRANSFORM_TYPE_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DocumentTransform_FieldTransform* internal_default_instance() {
+ return reinterpret_cast<const DocumentTransform_FieldTransform*>(
+ &_DocumentTransform_FieldTransform_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void Swap(DocumentTransform_FieldTransform* other);
+ friend void swap(DocumentTransform_FieldTransform& a, DocumentTransform_FieldTransform& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DocumentTransform_FieldTransform* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DocumentTransform_FieldTransform* 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 DocumentTransform_FieldTransform& from);
+ void MergeFrom(const DocumentTransform_FieldTransform& 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(DocumentTransform_FieldTransform* 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 ----------------------------------------------------
+
+ typedef DocumentTransform_FieldTransform_ServerValue ServerValue;
+ static const ServerValue SERVER_VALUE_UNSPECIFIED =
+ DocumentTransform_FieldTransform_ServerValue_SERVER_VALUE_UNSPECIFIED;
+ static const ServerValue REQUEST_TIME =
+ DocumentTransform_FieldTransform_ServerValue_REQUEST_TIME;
+ static inline bool ServerValue_IsValid(int value) {
+ return DocumentTransform_FieldTransform_ServerValue_IsValid(value);
+ }
+ static const ServerValue ServerValue_MIN =
+ DocumentTransform_FieldTransform_ServerValue_ServerValue_MIN;
+ static const ServerValue ServerValue_MAX =
+ DocumentTransform_FieldTransform_ServerValue_ServerValue_MAX;
+ static const int ServerValue_ARRAYSIZE =
+ DocumentTransform_FieldTransform_ServerValue_ServerValue_ARRAYSIZE;
+ static inline const ::google::protobuf::EnumDescriptor*
+ ServerValue_descriptor() {
+ return DocumentTransform_FieldTransform_ServerValue_descriptor();
+ }
+ static inline const ::std::string& ServerValue_Name(ServerValue value) {
+ return DocumentTransform_FieldTransform_ServerValue_Name(value);
+ }
+ static inline bool ServerValue_Parse(const ::std::string& name,
+ ServerValue* value) {
+ return DocumentTransform_FieldTransform_ServerValue_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ // string field_path = 1;
+ void clear_field_path();
+ static const int kFieldPathFieldNumber = 1;
+ const ::std::string& field_path() const;
+ void set_field_path(const ::std::string& value);
+ #if LANG_CXX11
+ void set_field_path(::std::string&& value);
+ #endif
+ void set_field_path(const char* value);
+ void set_field_path(const char* value, size_t size);
+ ::std::string* mutable_field_path();
+ ::std::string* release_field_path();
+ void set_allocated_field_path(::std::string* field_path);
+
+ // .google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
+ private:
+ bool has_set_to_server_value() const;
+ public:
+ void clear_set_to_server_value();
+ static const int kSetToServerValueFieldNumber = 2;
+ ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue set_to_server_value() const;
+ void set_set_to_server_value(::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue value);
+
+ TransformTypeCase transform_type_case() const;
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentTransform.FieldTransform)
+ private:
+ void set_has_set_to_server_value();
+
+ inline bool has_transform_type() const;
+ void clear_transform_type();
+ inline void clear_has_transform_type();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr field_path_;
+ union TransformTypeUnion {
+ TransformTypeUnion() {}
+ int set_to_server_value_;
+ } transform_type_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransform_FieldTransformImpl();
+};
+// -------------------------------------------------------------------
+
+class DocumentTransform : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentTransform) */ {
+ public:
+ DocumentTransform();
+ virtual ~DocumentTransform();
+
+ DocumentTransform(const DocumentTransform& from);
+
+ inline DocumentTransform& operator=(const DocumentTransform& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DocumentTransform(DocumentTransform&& from) noexcept
+ : DocumentTransform() {
+ *this = ::std::move(from);
+ }
+
+ inline DocumentTransform& operator=(DocumentTransform&& 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 DocumentTransform& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DocumentTransform* internal_default_instance() {
+ return reinterpret_cast<const DocumentTransform*>(
+ &_DocumentTransform_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void Swap(DocumentTransform* other);
+ friend void swap(DocumentTransform& a, DocumentTransform& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DocumentTransform* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DocumentTransform* 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 DocumentTransform& from);
+ void MergeFrom(const DocumentTransform& 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(DocumentTransform* 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 ----------------------------------------------------
+
+ typedef DocumentTransform_FieldTransform FieldTransform;
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.DocumentTransform.FieldTransform field_transforms = 2;
+ int field_transforms_size() const;
+ void clear_field_transforms();
+ static const int kFieldTransformsFieldNumber = 2;
+ const ::google::firestore::v1beta1::DocumentTransform_FieldTransform& field_transforms(int index) const;
+ ::google::firestore::v1beta1::DocumentTransform_FieldTransform* mutable_field_transforms(int index);
+ ::google::firestore::v1beta1::DocumentTransform_FieldTransform* add_field_transforms();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::DocumentTransform_FieldTransform >*
+ mutable_field_transforms();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::DocumentTransform_FieldTransform >&
+ field_transforms() const;
+
+ // string document = 1;
+ void clear_document();
+ static const int kDocumentFieldNumber = 1;
+ const ::std::string& document() const;
+ void set_document(const ::std::string& value);
+ #if LANG_CXX11
+ void set_document(::std::string&& value);
+ #endif
+ void set_document(const char* value);
+ void set_document(const char* value, size_t size);
+ ::std::string* mutable_document();
+ ::std::string* release_document();
+ void set_allocated_document(::std::string* document);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentTransform)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::DocumentTransform_FieldTransform > field_transforms_;
+ ::google::protobuf::internal::ArenaStringPtr document_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentTransformImpl();
+};
+// -------------------------------------------------------------------
+
+class WriteResult : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.WriteResult) */ {
+ public:
+ WriteResult();
+ virtual ~WriteResult();
+
+ WriteResult(const WriteResult& from);
+
+ inline WriteResult& operator=(const WriteResult& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ WriteResult(WriteResult&& from) noexcept
+ : WriteResult() {
+ *this = ::std::move(from);
+ }
+
+ inline WriteResult& operator=(WriteResult&& 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 WriteResult& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const WriteResult* internal_default_instance() {
+ return reinterpret_cast<const WriteResult*>(
+ &_WriteResult_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void Swap(WriteResult* other);
+ friend void swap(WriteResult& a, WriteResult& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline WriteResult* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ WriteResult* 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 WriteResult& from);
+ void MergeFrom(const WriteResult& 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(WriteResult* 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 -------------------------------------------------------
+
+ // repeated .google.firestore.v1beta1.Value transform_results = 2;
+ int transform_results_size() const;
+ void clear_transform_results();
+ static const int kTransformResultsFieldNumber = 2;
+ const ::google::firestore::v1beta1::Value& transform_results(int index) const;
+ ::google::firestore::v1beta1::Value* mutable_transform_results(int index);
+ ::google::firestore::v1beta1::Value* add_transform_results();
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >*
+ mutable_transform_results();
+ const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >&
+ transform_results() const;
+
+ // .google.protobuf.Timestamp update_time = 1;
+ bool has_update_time() const;
+ void clear_update_time();
+ static const int kUpdateTimeFieldNumber = 1;
+ const ::google::protobuf::Timestamp& update_time() const;
+ ::google::protobuf::Timestamp* release_update_time();
+ ::google::protobuf::Timestamp* mutable_update_time();
+ void set_allocated_update_time(::google::protobuf::Timestamp* update_time);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.WriteResult)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value > transform_results_;
+ ::google::protobuf::Timestamp* update_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsWriteResultImpl();
+};
+// -------------------------------------------------------------------
+
+class DocumentChange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentChange) */ {
+ public:
+ DocumentChange();
+ virtual ~DocumentChange();
+
+ DocumentChange(const DocumentChange& from);
+
+ inline DocumentChange& operator=(const DocumentChange& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DocumentChange(DocumentChange&& from) noexcept
+ : DocumentChange() {
+ *this = ::std::move(from);
+ }
+
+ inline DocumentChange& operator=(DocumentChange&& 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 DocumentChange& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DocumentChange* internal_default_instance() {
+ return reinterpret_cast<const DocumentChange*>(
+ &_DocumentChange_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 4;
+
+ void Swap(DocumentChange* other);
+ friend void swap(DocumentChange& a, DocumentChange& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DocumentChange* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DocumentChange* 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 DocumentChange& from);
+ void MergeFrom(const DocumentChange& 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(DocumentChange* 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 -------------------------------------------------------
+
+ // repeated int32 target_ids = 5;
+ int target_ids_size() const;
+ void clear_target_ids();
+ static const int kTargetIdsFieldNumber = 5;
+ ::google::protobuf::int32 target_ids(int index) const;
+ void set_target_ids(int index, ::google::protobuf::int32 value);
+ void add_target_ids(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ target_ids() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_target_ids();
+
+ // repeated int32 removed_target_ids = 6;
+ int removed_target_ids_size() const;
+ void clear_removed_target_ids();
+ static const int kRemovedTargetIdsFieldNumber = 6;
+ ::google::protobuf::int32 removed_target_ids(int index) const;
+ void set_removed_target_ids(int index, ::google::protobuf::int32 value);
+ void add_removed_target_ids(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ removed_target_ids() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_removed_target_ids();
+
+ // .google.firestore.v1beta1.Document document = 1;
+ bool has_document() const;
+ void clear_document();
+ static const int kDocumentFieldNumber = 1;
+ const ::google::firestore::v1beta1::Document& document() const;
+ ::google::firestore::v1beta1::Document* release_document();
+ ::google::firestore::v1beta1::Document* mutable_document();
+ void set_allocated_document(::google::firestore::v1beta1::Document* document);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentChange)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > target_ids_;
+ mutable int _target_ids_cached_byte_size_;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > removed_target_ids_;
+ mutable int _removed_target_ids_cached_byte_size_;
+ ::google::firestore::v1beta1::Document* document_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentChangeImpl();
+};
+// -------------------------------------------------------------------
+
+class DocumentDelete : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentDelete) */ {
+ public:
+ DocumentDelete();
+ virtual ~DocumentDelete();
+
+ DocumentDelete(const DocumentDelete& from);
+
+ inline DocumentDelete& operator=(const DocumentDelete& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DocumentDelete(DocumentDelete&& from) noexcept
+ : DocumentDelete() {
+ *this = ::std::move(from);
+ }
+
+ inline DocumentDelete& operator=(DocumentDelete&& 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 DocumentDelete& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DocumentDelete* internal_default_instance() {
+ return reinterpret_cast<const DocumentDelete*>(
+ &_DocumentDelete_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 5;
+
+ void Swap(DocumentDelete* other);
+ friend void swap(DocumentDelete& a, DocumentDelete& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DocumentDelete* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DocumentDelete* 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 DocumentDelete& from);
+ void MergeFrom(const DocumentDelete& 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(DocumentDelete* 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 -------------------------------------------------------
+
+ // repeated int32 removed_target_ids = 6;
+ int removed_target_ids_size() const;
+ void clear_removed_target_ids();
+ static const int kRemovedTargetIdsFieldNumber = 6;
+ ::google::protobuf::int32 removed_target_ids(int index) const;
+ void set_removed_target_ids(int index, ::google::protobuf::int32 value);
+ void add_removed_target_ids(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ removed_target_ids() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_removed_target_ids();
+
+ // string document = 1;
+ void clear_document();
+ static const int kDocumentFieldNumber = 1;
+ const ::std::string& document() const;
+ void set_document(const ::std::string& value);
+ #if LANG_CXX11
+ void set_document(::std::string&& value);
+ #endif
+ void set_document(const char* value);
+ void set_document(const char* value, size_t size);
+ ::std::string* mutable_document();
+ ::std::string* release_document();
+ void set_allocated_document(::std::string* document);
+
+ // .google.protobuf.Timestamp read_time = 4;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 4;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentDelete)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > removed_target_ids_;
+ mutable int _removed_target_ids_cached_byte_size_;
+ ::google::protobuf::internal::ArenaStringPtr document_;
+ ::google::protobuf::Timestamp* read_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentDeleteImpl();
+};
+// -------------------------------------------------------------------
+
+class DocumentRemove : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentRemove) */ {
+ public:
+ DocumentRemove();
+ virtual ~DocumentRemove();
+
+ DocumentRemove(const DocumentRemove& from);
+
+ inline DocumentRemove& operator=(const DocumentRemove& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DocumentRemove(DocumentRemove&& from) noexcept
+ : DocumentRemove() {
+ *this = ::std::move(from);
+ }
+
+ inline DocumentRemove& operator=(DocumentRemove&& 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 DocumentRemove& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DocumentRemove* internal_default_instance() {
+ return reinterpret_cast<const DocumentRemove*>(
+ &_DocumentRemove_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 6;
+
+ void Swap(DocumentRemove* other);
+ friend void swap(DocumentRemove& a, DocumentRemove& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DocumentRemove* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DocumentRemove* 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 DocumentRemove& from);
+ void MergeFrom(const DocumentRemove& 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(DocumentRemove* 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 -------------------------------------------------------
+
+ // repeated int32 removed_target_ids = 2;
+ int removed_target_ids_size() const;
+ void clear_removed_target_ids();
+ static const int kRemovedTargetIdsFieldNumber = 2;
+ ::google::protobuf::int32 removed_target_ids(int index) const;
+ void set_removed_target_ids(int index, ::google::protobuf::int32 value);
+ void add_removed_target_ids(::google::protobuf::int32 value);
+ const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+ removed_target_ids() const;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+ mutable_removed_target_ids();
+
+ // string document = 1;
+ void clear_document();
+ static const int kDocumentFieldNumber = 1;
+ const ::std::string& document() const;
+ void set_document(const ::std::string& value);
+ #if LANG_CXX11
+ void set_document(::std::string&& value);
+ #endif
+ void set_document(const char* value);
+ void set_document(const char* value, size_t size);
+ ::std::string* mutable_document();
+ ::std::string* release_document();
+ void set_allocated_document(::std::string* document);
+
+ // .google.protobuf.Timestamp read_time = 4;
+ bool has_read_time() const;
+ void clear_read_time();
+ static const int kReadTimeFieldNumber = 4;
+ const ::google::protobuf::Timestamp& read_time() const;
+ ::google::protobuf::Timestamp* release_read_time();
+ ::google::protobuf::Timestamp* mutable_read_time();
+ void set_allocated_read_time(::google::protobuf::Timestamp* read_time);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentRemove)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > removed_target_ids_;
+ mutable int _removed_target_ids_cached_byte_size_;
+ ::google::protobuf::internal::ArenaStringPtr document_;
+ ::google::protobuf::Timestamp* read_time_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsDocumentRemoveImpl();
+};
+// -------------------------------------------------------------------
+
+class ExistenceFilter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.ExistenceFilter) */ {
+ public:
+ ExistenceFilter();
+ virtual ~ExistenceFilter();
+
+ ExistenceFilter(const ExistenceFilter& from);
+
+ inline ExistenceFilter& operator=(const ExistenceFilter& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ExistenceFilter(ExistenceFilter&& from) noexcept
+ : ExistenceFilter() {
+ *this = ::std::move(from);
+ }
+
+ inline ExistenceFilter& operator=(ExistenceFilter&& 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 ExistenceFilter& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ExistenceFilter* internal_default_instance() {
+ return reinterpret_cast<const ExistenceFilter*>(
+ &_ExistenceFilter_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 7;
+
+ void Swap(ExistenceFilter* other);
+ friend void swap(ExistenceFilter& a, ExistenceFilter& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ExistenceFilter* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ExistenceFilter* 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 ExistenceFilter& from);
+ void MergeFrom(const ExistenceFilter& 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(ExistenceFilter* 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 -------------------------------------------------------
+
+ // 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);
+
+ // int32 count = 2;
+ void clear_count();
+ static const int kCountFieldNumber = 2;
+ ::google::protobuf::int32 count() const;
+ void set_count(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.ExistenceFilter)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::int32 target_id_;
+ ::google::protobuf::int32 count_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::TableStruct;
+ friend void ::protobuf_google_2ffirestore_2fv1beta1_2fwrite_2eproto::InitDefaultsExistenceFilterImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Write
+
+// .google.firestore.v1beta1.Document update = 1;
+inline bool Write::has_update() const {
+ return operation_case() == kUpdate;
+}
+inline void Write::set_has_update() {
+ _oneof_case_[0] = kUpdate;
+}
+inline ::google::firestore::v1beta1::Document* Write::release_update() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Write.update)
+ if (has_update()) {
+ clear_has_operation();
+ ::google::firestore::v1beta1::Document* temp = operation_.update_;
+ operation_.update_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::Document& Write::update() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Write.update)
+ return has_update()
+ ? *operation_.update_
+ : *reinterpret_cast< ::google::firestore::v1beta1::Document*>(&::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* Write::mutable_update() {
+ if (!has_update()) {
+ clear_operation();
+ set_has_update();
+ operation_.update_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Write.update)
+ return operation_.update_;
+}
+
+// string delete = 2;
+inline bool Write::has_delete_() const {
+ return operation_case() == kDelete;
+}
+inline void Write::set_has_delete_() {
+ _oneof_case_[0] = kDelete;
+}
+inline void Write::clear_delete_() {
+ if (has_delete_()) {
+ operation_.delete__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_operation();
+ }
+}
+inline const ::std::string& Write::delete_() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Write.delete)
+ if (has_delete_()) {
+ return operation_.delete__.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Write::set_delete_(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Write.delete)
+ if (!has_delete_()) {
+ clear_operation();
+ set_has_delete_();
+ operation_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.delete__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Write.delete)
+}
+#if LANG_CXX11
+inline void Write::set_delete_(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Write.delete)
+ if (!has_delete_()) {
+ clear_operation();
+ set_has_delete_();
+ operation_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.delete__.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Write.delete)
+}
+#endif
+inline void Write::set_delete_(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_delete_()) {
+ clear_operation();
+ set_has_delete_();
+ operation_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.delete__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Write.delete)
+}
+inline void Write::set_delete_(const char* value, size_t size) {
+ if (!has_delete_()) {
+ clear_operation();
+ set_has_delete_();
+ operation_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.delete__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Write.delete)
+}
+inline ::std::string* Write::mutable_delete_() {
+ if (!has_delete_()) {
+ clear_operation();
+ set_has_delete_();
+ operation_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Write.delete)
+ return operation_.delete__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Write::release_delete_() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Write.delete)
+ if (has_delete_()) {
+ clear_has_operation();
+ return operation_.delete__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void Write::set_allocated_delete_(::std::string* delete_) {
+ if (!has_delete_()) {
+ operation_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_operation();
+ if (delete_ != NULL) {
+ set_has_delete_();
+ operation_.delete__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ delete_);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Write.delete)
+}
+
+// string verify = 5;
+inline bool Write::has_verify() const {
+ return operation_case() == kVerify;
+}
+inline void Write::set_has_verify() {
+ _oneof_case_[0] = kVerify;
+}
+inline void Write::clear_verify() {
+ if (has_verify()) {
+ operation_.verify_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_operation();
+ }
+}
+inline const ::std::string& Write::verify() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Write.verify)
+ if (has_verify()) {
+ return operation_.verify_.GetNoArena();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Write::set_verify(const ::std::string& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Write.verify)
+ if (!has_verify()) {
+ clear_operation();
+ set_has_verify();
+ operation_.verify_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.verify_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Write.verify)
+}
+#if LANG_CXX11
+inline void Write::set_verify(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Write.verify)
+ if (!has_verify()) {
+ clear_operation();
+ set_has_verify();
+ operation_.verify_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.verify_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.Write.verify)
+}
+#endif
+inline void Write::set_verify(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_verify()) {
+ clear_operation();
+ set_has_verify();
+ operation_.verify_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.verify_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.Write.verify)
+}
+inline void Write::set_verify(const char* value, size_t size) {
+ if (!has_verify()) {
+ clear_operation();
+ set_has_verify();
+ operation_.verify_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ operation_.verify_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.Write.verify)
+}
+inline ::std::string* Write::mutable_verify() {
+ if (!has_verify()) {
+ clear_operation();
+ set_has_verify();
+ operation_.verify_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Write.verify)
+ return operation_.verify_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Write::release_verify() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Write.verify)
+ if (has_verify()) {
+ clear_has_operation();
+ return operation_.verify_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ } else {
+ return NULL;
+ }
+}
+inline void Write::set_allocated_verify(::std::string* verify) {
+ if (!has_verify()) {
+ operation_.verify_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_operation();
+ if (verify != NULL) {
+ set_has_verify();
+ operation_.verify_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ verify);
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Write.verify)
+}
+
+// .google.firestore.v1beta1.DocumentTransform transform = 6;
+inline bool Write::has_transform() const {
+ return operation_case() == kTransform;
+}
+inline void Write::set_has_transform() {
+ _oneof_case_[0] = kTransform;
+}
+inline void Write::clear_transform() {
+ if (has_transform()) {
+ delete operation_.transform_;
+ clear_has_operation();
+ }
+}
+inline ::google::firestore::v1beta1::DocumentTransform* Write::release_transform() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Write.transform)
+ if (has_transform()) {
+ clear_has_operation();
+ ::google::firestore::v1beta1::DocumentTransform* temp = operation_.transform_;
+ operation_.transform_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::firestore::v1beta1::DocumentTransform& Write::transform() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Write.transform)
+ return has_transform()
+ ? *operation_.transform_
+ : *reinterpret_cast< ::google::firestore::v1beta1::DocumentTransform*>(&::google::firestore::v1beta1::_DocumentTransform_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentTransform* Write::mutable_transform() {
+ if (!has_transform()) {
+ clear_operation();
+ set_has_transform();
+ operation_.transform_ = new ::google::firestore::v1beta1::DocumentTransform;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Write.transform)
+ return operation_.transform_;
+}
+
+// .google.firestore.v1beta1.DocumentMask update_mask = 3;
+inline bool Write::has_update_mask() const {
+ return this != internal_default_instance() && update_mask_ != NULL;
+}
+inline const ::google::firestore::v1beta1::DocumentMask& Write::update_mask() const {
+ const ::google::firestore::v1beta1::DocumentMask* p = update_mask_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Write.update_mask)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::DocumentMask*>(
+ &::google::firestore::v1beta1::_DocumentMask_default_instance_);
+}
+inline ::google::firestore::v1beta1::DocumentMask* Write::release_update_mask() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Write.update_mask)
+
+ ::google::firestore::v1beta1::DocumentMask* temp = update_mask_;
+ update_mask_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::DocumentMask* Write::mutable_update_mask() {
+
+ if (update_mask_ == NULL) {
+ update_mask_ = new ::google::firestore::v1beta1::DocumentMask;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Write.update_mask)
+ return update_mask_;
+}
+inline void Write::set_allocated_update_mask(::google::firestore::v1beta1::DocumentMask* update_mask) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(update_mask_);
+ }
+ if (update_mask) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ update_mask = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, update_mask, submessage_arena);
+ }
+
+ } else {
+
+ }
+ update_mask_ = update_mask;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Write.update_mask)
+}
+
+// .google.firestore.v1beta1.Precondition current_document = 4;
+inline bool Write::has_current_document() const {
+ return this != internal_default_instance() && current_document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Precondition& Write::current_document() const {
+ const ::google::firestore::v1beta1::Precondition* p = current_document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Write.current_document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Precondition*>(
+ &::google::firestore::v1beta1::_Precondition_default_instance_);
+}
+inline ::google::firestore::v1beta1::Precondition* Write::release_current_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Write.current_document)
+
+ ::google::firestore::v1beta1::Precondition* temp = current_document_;
+ current_document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Precondition* Write::mutable_current_document() {
+
+ if (current_document_ == NULL) {
+ current_document_ = new ::google::firestore::v1beta1::Precondition;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Write.current_document)
+ return current_document_;
+}
+inline void Write::set_allocated_current_document(::google::firestore::v1beta1::Precondition* current_document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(current_document_);
+ }
+ if (current_document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ current_document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, current_document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ current_document_ = current_document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.Write.current_document)
+}
+
+inline bool Write::has_operation() const {
+ return operation_case() != OPERATION_NOT_SET;
+}
+inline void Write::clear_has_operation() {
+ _oneof_case_[0] = OPERATION_NOT_SET;
+}
+inline Write::OperationCase Write::operation_case() const {
+ return Write::OperationCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// DocumentTransform_FieldTransform
+
+// string field_path = 1;
+inline void DocumentTransform_FieldTransform::clear_field_path() {
+ field_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& DocumentTransform_FieldTransform::field_path() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+ return field_path_.GetNoArena();
+}
+inline void DocumentTransform_FieldTransform::set_field_path(const ::std::string& value) {
+
+ field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+}
+#if LANG_CXX11
+inline void DocumentTransform_FieldTransform::set_field_path(::std::string&& value) {
+
+ field_path_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+}
+#endif
+inline void DocumentTransform_FieldTransform::set_field_path(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+}
+inline void DocumentTransform_FieldTransform::set_field_path(const char* value, size_t size) {
+
+ field_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+}
+inline ::std::string* DocumentTransform_FieldTransform::mutable_field_path() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+ return field_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* DocumentTransform_FieldTransform::release_field_path() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+
+ return field_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void DocumentTransform_FieldTransform::set_allocated_field_path(::std::string* field_path) {
+ if (field_path != NULL) {
+
+ } else {
+
+ }
+ field_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field_path);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentTransform.FieldTransform.field_path)
+}
+
+// .google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
+inline bool DocumentTransform_FieldTransform::has_set_to_server_value() const {
+ return transform_type_case() == kSetToServerValue;
+}
+inline void DocumentTransform_FieldTransform::set_has_set_to_server_value() {
+ _oneof_case_[0] = kSetToServerValue;
+}
+inline void DocumentTransform_FieldTransform::clear_set_to_server_value() {
+ if (has_set_to_server_value()) {
+ transform_type_.set_to_server_value_ = 0;
+ clear_has_transform_type();
+ }
+}
+inline ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue DocumentTransform_FieldTransform::set_to_server_value() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentTransform.FieldTransform.set_to_server_value)
+ if (has_set_to_server_value()) {
+ return static_cast< ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue >(transform_type_.set_to_server_value_);
+ }
+ return static_cast< ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue >(0);
+}
+inline void DocumentTransform_FieldTransform::set_set_to_server_value(::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue value) {
+ if (!has_set_to_server_value()) {
+ clear_transform_type();
+ set_has_set_to_server_value();
+ }
+ transform_type_.set_to_server_value_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentTransform.FieldTransform.set_to_server_value)
+}
+
+inline bool DocumentTransform_FieldTransform::has_transform_type() const {
+ return transform_type_case() != TRANSFORM_TYPE_NOT_SET;
+}
+inline void DocumentTransform_FieldTransform::clear_has_transform_type() {
+ _oneof_case_[0] = TRANSFORM_TYPE_NOT_SET;
+}
+inline DocumentTransform_FieldTransform::TransformTypeCase DocumentTransform_FieldTransform::transform_type_case() const {
+ return DocumentTransform_FieldTransform::TransformTypeCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// DocumentTransform
+
+// string document = 1;
+inline void DocumentTransform::clear_document() {
+ document_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& DocumentTransform::document() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentTransform.document)
+ return document_.GetNoArena();
+}
+inline void DocumentTransform::set_document(const ::std::string& value) {
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentTransform.document)
+}
+#if LANG_CXX11
+inline void DocumentTransform::set_document(::std::string&& value) {
+
+ document_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.DocumentTransform.document)
+}
+#endif
+inline void DocumentTransform::set_document(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DocumentTransform.document)
+}
+inline void DocumentTransform::set_document(const char* value, size_t size) {
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DocumentTransform.document)
+}
+inline ::std::string* DocumentTransform::mutable_document() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentTransform.document)
+ return document_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* DocumentTransform::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentTransform.document)
+
+ return document_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void DocumentTransform::set_allocated_document(::std::string* document) {
+ if (document != NULL) {
+
+ } else {
+
+ }
+ document_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), document);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentTransform.document)
+}
+
+// repeated .google.firestore.v1beta1.DocumentTransform.FieldTransform field_transforms = 2;
+inline int DocumentTransform::field_transforms_size() const {
+ return field_transforms_.size();
+}
+inline void DocumentTransform::clear_field_transforms() {
+ field_transforms_.Clear();
+}
+inline const ::google::firestore::v1beta1::DocumentTransform_FieldTransform& DocumentTransform::field_transforms(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentTransform.field_transforms)
+ return field_transforms_.Get(index);
+}
+inline ::google::firestore::v1beta1::DocumentTransform_FieldTransform* DocumentTransform::mutable_field_transforms(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentTransform.field_transforms)
+ return field_transforms_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::DocumentTransform_FieldTransform* DocumentTransform::add_field_transforms() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentTransform.field_transforms)
+ return field_transforms_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::DocumentTransform_FieldTransform >*
+DocumentTransform::mutable_field_transforms() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentTransform.field_transforms)
+ return &field_transforms_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::DocumentTransform_FieldTransform >&
+DocumentTransform::field_transforms() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentTransform.field_transforms)
+ return field_transforms_;
+}
+
+// -------------------------------------------------------------------
+
+// WriteResult
+
+// .google.protobuf.Timestamp update_time = 1;
+inline bool WriteResult::has_update_time() const {
+ return this != internal_default_instance() && update_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& WriteResult::update_time() const {
+ const ::google::protobuf::Timestamp* p = update_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteResult.update_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* WriteResult::release_update_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.WriteResult.update_time)
+
+ ::google::protobuf::Timestamp* temp = update_time_;
+ update_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* WriteResult::mutable_update_time() {
+
+ if (update_time_ == NULL) {
+ update_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteResult.update_time)
+ return update_time_;
+}
+inline void WriteResult::set_allocated_update_time(::google::protobuf::Timestamp* update_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(update_time_);
+ }
+ if (update_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(update_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ update_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, update_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ update_time_ = update_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.WriteResult.update_time)
+}
+
+// repeated .google.firestore.v1beta1.Value transform_results = 2;
+inline int WriteResult::transform_results_size() const {
+ return transform_results_.size();
+}
+inline const ::google::firestore::v1beta1::Value& WriteResult::transform_results(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.WriteResult.transform_results)
+ return transform_results_.Get(index);
+}
+inline ::google::firestore::v1beta1::Value* WriteResult::mutable_transform_results(int index) {
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.WriteResult.transform_results)
+ return transform_results_.Mutable(index);
+}
+inline ::google::firestore::v1beta1::Value* WriteResult::add_transform_results() {
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.WriteResult.transform_results)
+ return transform_results_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >*
+WriteResult::mutable_transform_results() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.WriteResult.transform_results)
+ return &transform_results_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1beta1::Value >&
+WriteResult::transform_results() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.WriteResult.transform_results)
+ return transform_results_;
+}
+
+// -------------------------------------------------------------------
+
+// DocumentChange
+
+// .google.firestore.v1beta1.Document document = 1;
+inline bool DocumentChange::has_document() const {
+ return this != internal_default_instance() && document_ != NULL;
+}
+inline const ::google::firestore::v1beta1::Document& DocumentChange::document() const {
+ const ::google::firestore::v1beta1::Document* p = document_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentChange.document)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::firestore::v1beta1::Document*>(
+ &::google::firestore::v1beta1::_Document_default_instance_);
+}
+inline ::google::firestore::v1beta1::Document* DocumentChange::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentChange.document)
+
+ ::google::firestore::v1beta1::Document* temp = document_;
+ document_ = NULL;
+ return temp;
+}
+inline ::google::firestore::v1beta1::Document* DocumentChange::mutable_document() {
+
+ if (document_ == NULL) {
+ document_ = new ::google::firestore::v1beta1::Document;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentChange.document)
+ return document_;
+}
+inline void DocumentChange::set_allocated_document(::google::firestore::v1beta1::Document* document) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(document_);
+ }
+ if (document) {
+ ::google::protobuf::Arena* submessage_arena = NULL;
+ if (message_arena != submessage_arena) {
+ document = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, document, submessage_arena);
+ }
+
+ } else {
+
+ }
+ document_ = document;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentChange.document)
+}
+
+// repeated int32 target_ids = 5;
+inline int DocumentChange::target_ids_size() const {
+ return target_ids_.size();
+}
+inline void DocumentChange::clear_target_ids() {
+ target_ids_.Clear();
+}
+inline ::google::protobuf::int32 DocumentChange::target_ids(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentChange.target_ids)
+ return target_ids_.Get(index);
+}
+inline void DocumentChange::set_target_ids(int index, ::google::protobuf::int32 value) {
+ target_ids_.Set(index, value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentChange.target_ids)
+}
+inline void DocumentChange::add_target_ids(::google::protobuf::int32 value) {
+ target_ids_.Add(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentChange.target_ids)
+}
+inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+DocumentChange::target_ids() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentChange.target_ids)
+ return target_ids_;
+}
+inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+DocumentChange::mutable_target_ids() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentChange.target_ids)
+ return &target_ids_;
+}
+
+// repeated int32 removed_target_ids = 6;
+inline int DocumentChange::removed_target_ids_size() const {
+ return removed_target_ids_.size();
+}
+inline void DocumentChange::clear_removed_target_ids() {
+ removed_target_ids_.Clear();
+}
+inline ::google::protobuf::int32 DocumentChange::removed_target_ids(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentChange.removed_target_ids)
+ return removed_target_ids_.Get(index);
+}
+inline void DocumentChange::set_removed_target_ids(int index, ::google::protobuf::int32 value) {
+ removed_target_ids_.Set(index, value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentChange.removed_target_ids)
+}
+inline void DocumentChange::add_removed_target_ids(::google::protobuf::int32 value) {
+ removed_target_ids_.Add(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentChange.removed_target_ids)
+}
+inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+DocumentChange::removed_target_ids() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentChange.removed_target_ids)
+ return removed_target_ids_;
+}
+inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+DocumentChange::mutable_removed_target_ids() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentChange.removed_target_ids)
+ return &removed_target_ids_;
+}
+
+// -------------------------------------------------------------------
+
+// DocumentDelete
+
+// string document = 1;
+inline void DocumentDelete::clear_document() {
+ document_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& DocumentDelete::document() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentDelete.document)
+ return document_.GetNoArena();
+}
+inline void DocumentDelete::set_document(const ::std::string& value) {
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentDelete.document)
+}
+#if LANG_CXX11
+inline void DocumentDelete::set_document(::std::string&& value) {
+
+ document_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.DocumentDelete.document)
+}
+#endif
+inline void DocumentDelete::set_document(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DocumentDelete.document)
+}
+inline void DocumentDelete::set_document(const char* value, size_t size) {
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DocumentDelete.document)
+}
+inline ::std::string* DocumentDelete::mutable_document() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentDelete.document)
+ return document_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* DocumentDelete::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentDelete.document)
+
+ return document_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void DocumentDelete::set_allocated_document(::std::string* document) {
+ if (document != NULL) {
+
+ } else {
+
+ }
+ document_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), document);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentDelete.document)
+}
+
+// repeated int32 removed_target_ids = 6;
+inline int DocumentDelete::removed_target_ids_size() const {
+ return removed_target_ids_.size();
+}
+inline void DocumentDelete::clear_removed_target_ids() {
+ removed_target_ids_.Clear();
+}
+inline ::google::protobuf::int32 DocumentDelete::removed_target_ids(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentDelete.removed_target_ids)
+ return removed_target_ids_.Get(index);
+}
+inline void DocumentDelete::set_removed_target_ids(int index, ::google::protobuf::int32 value) {
+ removed_target_ids_.Set(index, value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentDelete.removed_target_ids)
+}
+inline void DocumentDelete::add_removed_target_ids(::google::protobuf::int32 value) {
+ removed_target_ids_.Add(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentDelete.removed_target_ids)
+}
+inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+DocumentDelete::removed_target_ids() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentDelete.removed_target_ids)
+ return removed_target_ids_;
+}
+inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+DocumentDelete::mutable_removed_target_ids() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentDelete.removed_target_ids)
+ return &removed_target_ids_;
+}
+
+// .google.protobuf.Timestamp read_time = 4;
+inline bool DocumentDelete::has_read_time() const {
+ return this != internal_default_instance() && read_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& DocumentDelete::read_time() const {
+ const ::google::protobuf::Timestamp* p = read_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentDelete.read_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* DocumentDelete::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentDelete.read_time)
+
+ ::google::protobuf::Timestamp* temp = read_time_;
+ read_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* DocumentDelete::mutable_read_time() {
+
+ if (read_time_ == NULL) {
+ read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentDelete.read_time)
+ return read_time_;
+}
+inline void DocumentDelete::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_time_);
+ }
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ read_time_ = read_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentDelete.read_time)
+}
+
+// -------------------------------------------------------------------
+
+// DocumentRemove
+
+// string document = 1;
+inline void DocumentRemove::clear_document() {
+ document_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& DocumentRemove::document() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentRemove.document)
+ return document_.GetNoArena();
+}
+inline void DocumentRemove::set_document(const ::std::string& value) {
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentRemove.document)
+}
+#if LANG_CXX11
+inline void DocumentRemove::set_document(::std::string&& value) {
+
+ document_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.DocumentRemove.document)
+}
+#endif
+inline void DocumentRemove::set_document(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DocumentRemove.document)
+}
+inline void DocumentRemove::set_document(const char* value, size_t size) {
+
+ document_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DocumentRemove.document)
+}
+inline ::std::string* DocumentRemove::mutable_document() {
+
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentRemove.document)
+ return document_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* DocumentRemove::release_document() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentRemove.document)
+
+ return document_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void DocumentRemove::set_allocated_document(::std::string* document) {
+ if (document != NULL) {
+
+ } else {
+
+ }
+ document_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), document);
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentRemove.document)
+}
+
+// repeated int32 removed_target_ids = 2;
+inline int DocumentRemove::removed_target_ids_size() const {
+ return removed_target_ids_.size();
+}
+inline void DocumentRemove::clear_removed_target_ids() {
+ removed_target_ids_.Clear();
+}
+inline ::google::protobuf::int32 DocumentRemove::removed_target_ids(int index) const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentRemove.removed_target_ids)
+ return removed_target_ids_.Get(index);
+}
+inline void DocumentRemove::set_removed_target_ids(int index, ::google::protobuf::int32 value) {
+ removed_target_ids_.Set(index, value);
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentRemove.removed_target_ids)
+}
+inline void DocumentRemove::add_removed_target_ids(::google::protobuf::int32 value) {
+ removed_target_ids_.Add(value);
+ // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentRemove.removed_target_ids)
+}
+inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
+DocumentRemove::removed_target_ids() const {
+ // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentRemove.removed_target_ids)
+ return removed_target_ids_;
+}
+inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
+DocumentRemove::mutable_removed_target_ids() {
+ // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentRemove.removed_target_ids)
+ return &removed_target_ids_;
+}
+
+// .google.protobuf.Timestamp read_time = 4;
+inline bool DocumentRemove::has_read_time() const {
+ return this != internal_default_instance() && read_time_ != NULL;
+}
+inline const ::google::protobuf::Timestamp& DocumentRemove::read_time() const {
+ const ::google::protobuf::Timestamp* p = read_time_;
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentRemove.read_time)
+ return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
+ &::google::protobuf::_Timestamp_default_instance_);
+}
+inline ::google::protobuf::Timestamp* DocumentRemove::release_read_time() {
+ // @@protoc_insertion_point(field_release:google.firestore.v1beta1.DocumentRemove.read_time)
+
+ ::google::protobuf::Timestamp* temp = read_time_;
+ read_time_ = NULL;
+ return temp;
+}
+inline ::google::protobuf::Timestamp* DocumentRemove::mutable_read_time() {
+
+ if (read_time_ == NULL) {
+ read_time_ = new ::google::protobuf::Timestamp;
+ }
+ // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentRemove.read_time)
+ return read_time_;
+}
+inline void DocumentRemove::set_allocated_read_time(::google::protobuf::Timestamp* read_time) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == NULL) {
+ delete reinterpret_cast< ::google::protobuf::MessageLite*>(read_time_);
+ }
+ if (read_time) {
+ ::google::protobuf::Arena* submessage_arena =
+ reinterpret_cast< ::google::protobuf::MessageLite*>(read_time)->GetArena();
+ if (message_arena != submessage_arena) {
+ read_time = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, read_time, submessage_arena);
+ }
+
+ } else {
+
+ }
+ read_time_ = read_time;
+ // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.DocumentRemove.read_time)
+}
+
+// -------------------------------------------------------------------
+
+// ExistenceFilter
+
+// int32 target_id = 1;
+inline void ExistenceFilter::clear_target_id() {
+ target_id_ = 0;
+}
+inline ::google::protobuf::int32 ExistenceFilter::target_id() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ExistenceFilter.target_id)
+ return target_id_;
+}
+inline void ExistenceFilter::set_target_id(::google::protobuf::int32 value) {
+
+ target_id_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ExistenceFilter.target_id)
+}
+
+// int32 count = 2;
+inline void ExistenceFilter::clear_count() {
+ count_ = 0;
+}
+inline ::google::protobuf::int32 ExistenceFilter::count() const {
+ // @@protoc_insertion_point(field_get:google.firestore.v1beta1.ExistenceFilter.count)
+ return count_;
+}
+inline void ExistenceFilter::set_count(::google::protobuf::int32 value) {
+
+ count_ = value;
+ // @@protoc_insertion_point(field_set:google.firestore.v1beta1.ExistenceFilter.count)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace v1beta1
+} // namespace firestore
+} // namespace google
+
+namespace google {
+namespace protobuf {
+
+template <> struct is_proto_enum< ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue>() {
+ return ::google::firestore::v1beta1::DocumentTransform_FieldTransform_ServerValue_descriptor();
+}
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2ffirestore_2fv1beta1_2fwrite_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/protobuf/any.pb.cc b/Firestore/Protos/cpp/google/protobuf/any.pb.cc
new file mode 100644
index 0000000..6f7c576
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/any.pb.cc
@@ -0,0 +1,456 @@
+/*
+ * 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: google/protobuf/any.proto
+
+#include <google/protobuf/any.pb.h>
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace protobuf {
+class AnyDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Any>
+ _instance;
+} _Any_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace protobuf_google_2fprotobuf_2fany_2eproto {
+void InitDefaultsAnyImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_Any_default_instance_;
+ new (ptr) ::google::protobuf::Any();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::Any::InitAsDefaultInstance();
+}
+
+void InitDefaultsAny() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAnyImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Any, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Any, type_url_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Any, value_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::protobuf::Any)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Any_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/protobuf/any.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\031google/protobuf/any.proto\022\017google.prot"
+ "obuf\"&\n\003Any\022\020\n\010type_url\030\001 \001(\t\022\r\n\005value\030\002"
+ " \001(\014Bo\n\023com.google.protobufB\010AnyProtoP\001Z"
+ "%github.com/golang/protobuf/ptypes/any\242\002"
+ "\003GPB\252\002\036Google.Protobuf.WellKnownTypesb\006p"
+ "roto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 205);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/protobuf/any.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fprotobuf_2fany_2eproto
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+void Any::InitAsDefaultInstance() {
+}
+void Any::PackFrom(const ::google::protobuf::Message& message) {
+ _any_metadata_.PackFrom(message);
+}
+
+void Any::PackFrom(const ::google::protobuf::Message& message,
+ const ::std::string& type_url_prefix) {
+ _any_metadata_.PackFrom(message, type_url_prefix);
+}
+
+bool Any::UnpackTo(::google::protobuf::Message* message) const {
+ return _any_metadata_.UnpackTo(message);
+}
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Any::kTypeUrlFieldNumber;
+const int Any::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Any::Any()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL), _any_metadata_(&type_url_, &value_) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Any)
+}
+Any::Any(const Any& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0),
+ _any_metadata_(&type_url_, &value_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.type_url().size() > 0) {
+ type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url_);
+ }
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.value().size() > 0) {
+ value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
+ }
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Any)
+}
+
+void Any::SharedCtor() {
+ type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+Any::~Any() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Any)
+ SharedDtor();
+}
+
+void Any::SharedDtor() {
+ type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void Any::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Any::descriptor() {
+ ::protobuf_google_2fprotobuf_2fany_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fany_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Any& Any::default_instance() {
+ ::protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
+ return *internal_default_instance();
+}
+
+Any* Any::New(::google::protobuf::Arena* arena) const {
+ Any* n = new Any;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Any::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Any)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _internal_metadata_.Clear();
+}
+
+bool Any::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Any)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string type_url = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_type_url()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->type_url().data(), static_cast<int>(this->type_url().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.protobuf.Any.type_url"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bytes value = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Any)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Any)
+ return false;
+#undef DO_
+}
+
+void Any::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Any)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string type_url = 1;
+ if (this->type_url().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->type_url().data(), static_cast<int>(this->type_url().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.Any.type_url");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->type_url(), output);
+ }
+
+ // bytes value = 2;
+ if (this->value().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 2, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Any)
+}
+
+::google::protobuf::uint8* Any::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Any)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string type_url = 1;
+ if (this->type_url().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->type_url().data(), static_cast<int>(this->type_url().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.Any.type_url");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->type_url(), target);
+ }
+
+ // bytes value = 2;
+ if (this->value().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 2, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Any)
+ return target;
+}
+
+size_t Any::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Any)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string type_url = 1;
+ if (this->type_url().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->type_url());
+ }
+
+ // bytes value = 2;
+ if (this->value().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Any::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Any)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Any* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Any>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Any)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Any)
+ MergeFrom(*source);
+ }
+}
+
+void Any::MergeFrom(const Any& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Any)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.type_url().size() > 0) {
+
+ type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url_);
+ }
+ if (from.value().size() > 0) {
+
+ value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
+ }
+}
+
+void Any::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Any)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Any::CopyFrom(const Any& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Any)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Any::IsInitialized() const {
+ return true;
+}
+
+void Any::Swap(Any* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Any::InternalSwap(Any* other) {
+ using std::swap;
+ type_url_.Swap(&other->type_url_);
+ value_.Swap(&other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Any::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fany_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fany_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/protobuf/any.pb.h b/Firestore/Protos/cpp/google/protobuf/any.pb.h
new file mode 100644
index 0000000..98a8f3e
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/any.pb.h
@@ -0,0 +1,339 @@
+/*
+ * 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: google/protobuf/any.proto
+
+#ifndef PROTOBUF_google_2fprotobuf_2fany_2eproto__INCLUDED
+#define PROTOBUF_google_2fprotobuf_2fany_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/protobuf/any.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fprotobuf_2fany_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[1];
+ 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 InitDefaultsAnyImpl();
+void InitDefaultsAny();
+inline void InitDefaults() {
+ InitDefaultsAny();
+}
+} // namespace protobuf_google_2fprotobuf_2fany_2eproto
+namespace google {
+namespace protobuf {
+class Any;
+class AnyDefaultTypeInternal;
+extern AnyDefaultTypeInternal _Any_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+class Any : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Any) */ {
+ public:
+ Any();
+ virtual ~Any();
+
+ Any(const Any& from);
+
+ inline Any& operator=(const Any& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Any(Any&& from) noexcept
+ : Any() {
+ *this = ::std::move(from);
+ }
+
+ inline Any& operator=(Any&& 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 Any& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Any* internal_default_instance() {
+ return reinterpret_cast<const Any*>(
+ &_Any_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ // implements Any -----------------------------------------------
+
+ void PackFrom(const ::google::protobuf::Message& message);
+ void PackFrom(const ::google::protobuf::Message& message,
+ const ::std::string& type_url_prefix);
+ bool UnpackTo(::google::protobuf::Message* message) const;
+ template<typename T> bool Is() const {
+ return _any_metadata_.Is<T>();
+ }
+
+ void Swap(Any* other);
+ friend void swap(Any& a, Any& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Any* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Any* 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 Any& from);
+ void MergeFrom(const Any& 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(Any* 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 -------------------------------------------------------
+
+ // string type_url = 1;
+ void clear_type_url();
+ static const int kTypeUrlFieldNumber = 1;
+ const ::std::string& type_url() const;
+ void set_type_url(const ::std::string& value);
+ #if LANG_CXX11
+ void set_type_url(::std::string&& value);
+ #endif
+ void set_type_url(const char* value);
+ void set_type_url(const char* value, size_t size);
+ ::std::string* mutable_type_url();
+ ::std::string* release_type_url();
+ void set_allocated_type_url(::std::string* type_url);
+
+ // bytes value = 2;
+ void clear_value();
+ static const int kValueFieldNumber = 2;
+ const ::std::string& value() const;
+ void set_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_value(::std::string&& value);
+ #endif
+ void set_value(const char* value);
+ void set_value(const void* value, size_t size);
+ ::std::string* mutable_value();
+ ::std::string* release_value();
+ void set_allocated_value(::std::string* value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.Any)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::internal::ArenaStringPtr type_url_;
+ ::google::protobuf::internal::ArenaStringPtr value_;
+ mutable int _cached_size_;
+ ::google::protobuf::internal::AnyMetadata _any_metadata_;
+ friend struct ::protobuf_google_2fprotobuf_2fany_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAnyImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Any
+
+// string type_url = 1;
+inline void Any::clear_type_url() {
+ type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& Any::type_url() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url)
+ return type_url_.GetNoArena();
+}
+inline void Any::set_type_url(const ::std::string& value) {
+
+ type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url)
+}
+#if LANG_CXX11
+inline void Any::set_type_url(::std::string&& value) {
+
+ type_url_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.type_url)
+}
+#endif
+inline void Any::set_type_url(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.protobuf.Any.type_url)
+}
+inline void Any::set_type_url(const char* value, size_t size) {
+
+ type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.type_url)
+}
+inline ::std::string* Any::mutable_type_url() {
+
+ // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url)
+ return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Any::release_type_url() {
+ // @@protoc_insertion_point(field_release:google.protobuf.Any.type_url)
+
+ return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void Any::set_allocated_type_url(::std::string* type_url) {
+ if (type_url != NULL) {
+
+ } else {
+
+ }
+ type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url);
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url)
+}
+
+// bytes value = 2;
+inline void Any::clear_value() {
+ value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& Any::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Any.value)
+ return value_.GetNoArena();
+}
+inline void Any::set_value(const ::std::string& value) {
+
+ value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.protobuf.Any.value)
+}
+#if LANG_CXX11
+inline void Any::set_value(::std::string&& value) {
+
+ value_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.value)
+}
+#endif
+inline void Any::set_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.protobuf.Any.value)
+}
+inline void Any::set_value(const void* value, size_t size) {
+
+ value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.value)
+}
+inline ::std::string* Any::mutable_value() {
+
+ // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value)
+ return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Any::release_value() {
+ // @@protoc_insertion_point(field_release:google.protobuf.Any.value)
+
+ return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void Any::set_allocated_value(::std::string* value) {
+ if (value != NULL) {
+
+ } else {
+
+ }
+ value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fprotobuf_2fany_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/protobuf/empty.pb.cc b/Firestore/Protos/cpp/google/protobuf/empty.pb.cc
new file mode 100644
index 0000000..dfed277
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/empty.pb.cc
@@ -0,0 +1,358 @@
+/*
+ * 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: google/protobuf/empty.proto
+
+#include <google/protobuf/empty.pb.h>
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace protobuf {
+class EmptyDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Empty>
+ _instance;
+} _Empty_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace protobuf_google_2fprotobuf_2fempty_2eproto {
+void InitDefaultsEmptyImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_Empty_default_instance_;
+ new (ptr) ::google::protobuf::Empty();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::Empty::InitAsDefaultInstance();
+}
+
+void InitDefaultsEmpty() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEmptyImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Empty, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::protobuf::Empty)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Empty_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/protobuf/empty.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\033google/protobuf/empty.proto\022\017google.pr"
+ "otobuf\"\007\n\005EmptyBv\n\023com.google.protobufB\n"
+ "EmptyProtoP\001Z\'github.com/golang/protobuf"
+ "/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf"
+ ".WellKnownTypesb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 183);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/protobuf/empty.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fprotobuf_2fempty_2eproto
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+void Empty::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Empty::Empty()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fempty_2eproto::InitDefaultsEmpty();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Empty)
+}
+Empty::Empty(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fempty_2eproto::InitDefaultsEmpty();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty)
+}
+Empty::Empty(const Empty& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty)
+}
+
+void Empty::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+Empty::~Empty() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Empty)
+ SharedDtor();
+}
+
+void Empty::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Empty::ArenaDtor(void* object) {
+ Empty* _this = reinterpret_cast< Empty* >(object);
+ (void)_this;
+}
+void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Empty::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Empty::descriptor() {
+ ::protobuf_google_2fprotobuf_2fempty_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fempty_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Empty& Empty::default_instance() {
+ ::protobuf_google_2fprotobuf_2fempty_2eproto::InitDefaultsEmpty();
+ return *internal_default_instance();
+}
+
+Empty* Empty::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Empty>(arena);
+}
+
+void Empty::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Empty)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ _internal_metadata_.Clear();
+}
+
+bool Empty::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Empty)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Empty)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Empty)
+ return false;
+#undef DO_
+}
+
+void Empty::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Empty)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Empty)
+}
+
+::google::protobuf::uint8* Empty::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty)
+ return target;
+}
+
+size_t Empty::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Empty::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Empty* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Empty>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Empty)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Empty)
+ MergeFrom(*source);
+ }
+}
+
+void Empty::MergeFrom(const Empty& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empty)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+}
+
+void Empty::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Empty::CopyFrom(const Empty& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Empty::IsInitialized() const {
+ return true;
+}
+
+void Empty::Swap(Empty* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Empty* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Empty::UnsafeArenaSwap(Empty* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Empty::InternalSwap(Empty* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Empty::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fempty_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fempty_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/protobuf/empty.pb.h b/Firestore/Protos/cpp/google/protobuf/empty.pb.h
new file mode 100644
index 0000000..a5276b6
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/empty.pb.h
@@ -0,0 +1,206 @@
+/*
+ * 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: google/protobuf/empty.proto
+
+#ifndef PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED
+#define PROTOBUF_google_2fprotobuf_2fempty_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>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fprotobuf_2fempty_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[1];
+ 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 InitDefaultsEmptyImpl();
+void InitDefaultsEmpty();
+inline void InitDefaults() {
+ InitDefaultsEmpty();
+}
+} // namespace protobuf_google_2fprotobuf_2fempty_2eproto
+namespace google {
+namespace protobuf {
+class Empty;
+class EmptyDefaultTypeInternal;
+extern EmptyDefaultTypeInternal _Empty_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+class Empty : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Empty) */ {
+ public:
+ Empty();
+ virtual ~Empty();
+
+ Empty(const Empty& from);
+
+ inline Empty& operator=(const Empty& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Empty(Empty&& from) noexcept
+ : Empty() {
+ *this = ::std::move(from);
+ }
+
+ inline Empty& operator=(Empty&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Empty& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Empty* internal_default_instance() {
+ return reinterpret_cast<const Empty*>(
+ &_Empty_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void UnsafeArenaSwap(Empty* other);
+ void Swap(Empty* other);
+ friend void swap(Empty& a, Empty& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Empty* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Empty* 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 Empty& from);
+ void MergeFrom(const Empty& 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(Empty* other);
+ protected:
+ explicit Empty(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.Empty)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fempty_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fempty_2eproto::InitDefaultsEmptyImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Empty
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/protobuf/struct.pb.cc b/Firestore/Protos/cpp/google/protobuf/struct.pb.cc
new file mode 100644
index 0000000..360a89b
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/struct.pb.cc
@@ -0,0 +1,1491 @@
+/*
+ * 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: google/protobuf/struct.proto
+
+#include <google/protobuf/struct.pb.h>
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace protobuf {
+class Struct_FieldsEntry_DoNotUseDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Struct_FieldsEntry_DoNotUse>
+ _instance;
+} _Struct_FieldsEntry_DoNotUse_default_instance_;
+class StructDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Struct>
+ _instance;
+} _Struct_default_instance_;
+class ValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Value>
+ _instance;
+ int null_value_;
+ double number_value_;
+ ::google::protobuf::internal::ArenaStringPtr string_value_;
+ bool bool_value_;
+ const ::google::protobuf::Struct* struct_value_;
+ const ::google::protobuf::ListValue* list_value_;
+} _Value_default_instance_;
+class ListValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<ListValue>
+ _instance;
+} _ListValue_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace protobuf_google_2fprotobuf_2fstruct_2eproto {
+void InitDefaultsListValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_Struct_FieldsEntry_DoNotUse_default_instance_;
+ new (ptr) ::google::protobuf::Struct_FieldsEntry_DoNotUse();
+ }
+ {
+ void* ptr = &::google::protobuf::_Struct_default_instance_;
+ new (ptr) ::google::protobuf::Struct();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ {
+ void* ptr = &::google::protobuf::_Value_default_instance_;
+ new (ptr) ::google::protobuf::Value();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ {
+ void* ptr = &::google::protobuf::_ListValue_default_instance_;
+ new (ptr) ::google::protobuf::ListValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::Struct_FieldsEntry_DoNotUse::InitAsDefaultInstance();
+ ::google::protobuf::Struct::InitAsDefaultInstance();
+ ::google::protobuf::Value::InitAsDefaultInstance();
+ ::google::protobuf::ListValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsListValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsListValueImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[4];
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _has_bits_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, key_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Struct_FieldsEntry_DoNotUse, value_),
+ 0,
+ 1,
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Struct, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Struct, fields_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Value, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Value, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ offsetof(::google::protobuf::ValueDefaultTypeInternal, null_value_),
+ offsetof(::google::protobuf::ValueDefaultTypeInternal, number_value_),
+ offsetof(::google::protobuf::ValueDefaultTypeInternal, string_value_),
+ offsetof(::google::protobuf::ValueDefaultTypeInternal, bool_value_),
+ offsetof(::google::protobuf::ValueDefaultTypeInternal, struct_value_),
+ offsetof(::google::protobuf::ValueDefaultTypeInternal, list_value_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Value, kind_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ListValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::ListValue, values_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, 7, sizeof(::google::protobuf::Struct_FieldsEntry_DoNotUse)},
+ { 9, -1, sizeof(::google::protobuf::Struct)},
+ { 15, -1, sizeof(::google::protobuf::Value)},
+ { 27, -1, sizeof(::google::protobuf::ListValue)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Struct_FieldsEntry_DoNotUse_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Struct_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Value_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_ListValue_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/protobuf/struct.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, file_level_enum_descriptors, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\034google/protobuf/struct.proto\022\017google.p"
+ "rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo"
+ "gle.protobuf.Struct.FieldsEntry\032E\n\013Field"
+ "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo"
+ "gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull"
+ "_value\030\001 \001(\0162\032.google.protobuf.NullValue"
+ "H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014string_val"
+ "ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/\n\014stru"
+ "ct_value\030\005 \001(\0132\027.google.protobuf.StructH"
+ "\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf."
+ "ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu"
+ "es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull"
+ "Value\022\016\n\nNULL_VALUE\020\000B\201\001\n\023com.google.pro"
+ "tobufB\013StructProtoP\001Z1github.com/golang/"
+ "protobuf/ptypes/struct;structpb\370\001\001\242\002\003GPB"
+ "\252\002\036Google.Protobuf.WellKnownTypesb\006proto"
+ "3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 641);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/protobuf/struct.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fprotobuf_2fstruct_2eproto
+namespace google {
+namespace protobuf {
+const ::google::protobuf::EnumDescriptor* NullValue_descriptor() {
+ protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_enum_descriptors[0];
+}
+bool NullValue_IsValid(int value) {
+ switch (value) {
+ case 0:
+ return true;
+ default:
+ return false;
+ }
+}
+
+
+// ===================================================================
+
+Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse() {}
+Struct_FieldsEntry_DoNotUse::Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
+void Struct_FieldsEntry_DoNotUse::MergeFrom(const Struct_FieldsEntry_DoNotUse& other) {
+ MergeFromInternal(other);
+}
+::google::protobuf::Metadata Struct_FieldsEntry_DoNotUse::GetMetadata() const {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[0];
+}
+void Struct_FieldsEntry_DoNotUse::MergeFrom(
+ const ::google::protobuf::Message& other) {
+ ::google::protobuf::Message::MergeFrom(other);
+}
+
+
+// ===================================================================
+
+void Struct::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Struct::kFieldsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Struct::Struct()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Struct)
+}
+Struct::Struct(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena),
+ fields_(arena) {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.Struct)
+}
+Struct::Struct(const Struct& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ fields_.MergeFrom(from.fields_);
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct)
+}
+
+void Struct::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+Struct::~Struct() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Struct)
+ SharedDtor();
+}
+
+void Struct::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Struct::ArenaDtor(void* object) {
+ Struct* _this = reinterpret_cast< Struct* >(object);
+ (void)_this;
+}
+void Struct::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Struct::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Struct::descriptor() {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Struct& Struct::default_instance() {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ return *internal_default_instance();
+}
+
+Struct* Struct::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Struct>(arena);
+}
+
+void Struct::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Struct)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ fields_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool Struct::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Struct)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // map<string, .google.protobuf.Value> fields = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ Struct_FieldsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
+ Struct_FieldsEntry_DoNotUse,
+ ::std::string, ::google::protobuf::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 >,
+ ::google::protobuf::Map< ::std::string, ::google::protobuf::Value > > parser(&fields_);
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
+ input, &parser));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ parser.key().data(), static_cast<int>(parser.key().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.protobuf.Struct.FieldsEntry.key"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Struct)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Struct)
+ return false;
+#undef DO_
+}
+
+void Struct::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Struct)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // map<string, .google.protobuf.Value> fields = 1;
+ if (!this->fields().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.Struct.FieldsEntry.key");
+ }
+ };
+
+ if (output->IsSerializationDeterministic() &&
+ this->fields().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->fields().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<Struct_FieldsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(fields_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *entry, output);
+ if (entry->GetArena() != NULL) {
+ entry.release();
+ }
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<Struct_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(
+ it->first, it->second));
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, *entry, output);
+ if (entry->GetArena() != NULL) {
+ entry.release();
+ }
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Struct)
+}
+
+::google::protobuf::uint8* Struct::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // map<string, .google.protobuf.Value> fields = 1;
+ if (!this->fields().empty()) {
+ typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_pointer
+ ConstPtr;
+ typedef ConstPtr SortItem;
+ typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
+ struct Utf8Check {
+ static void Check(ConstPtr p) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ p->first.data(), static_cast<int>(p->first.length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.Struct.FieldsEntry.key");
+ }
+ };
+
+ if (deterministic &&
+ this->fields().size() > 1) {
+ ::google::protobuf::scoped_array<SortItem> items(
+ new SortItem[this->fields().size()]);
+ typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::size_type size_type;
+ size_type n = 0;
+ for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it, ++n) {
+ items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
+ }
+ ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
+ ::google::protobuf::scoped_ptr<Struct_FieldsEntry_DoNotUse> entry;
+ for (size_type i = 0; i < n; i++) {
+ entry.reset(fields_.NewEntryWrapper(
+ items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 1, *entry, deterministic, target);
+;
+ if (entry->GetArena() != NULL) {
+ entry.release();
+ }
+ Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
+ }
+ } else {
+ ::google::protobuf::scoped_ptr<Struct_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ entry.reset(fields_.NewEntryWrapper(
+ it->first, it->second));
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageNoVirtualToArray(
+ 1, *entry, deterministic, target);
+;
+ if (entry->GetArena() != NULL) {
+ entry.release();
+ }
+ Utf8Check::Check(&*it);
+ }
+ }
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Struct)
+ return target;
+}
+
+size_t Struct::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // map<string, .google.protobuf.Value> fields = 1;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->fields_size());
+ {
+ ::google::protobuf::scoped_ptr<Struct_FieldsEntry_DoNotUse> entry;
+ for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::const_iterator
+ it = this->fields().begin();
+ it != this->fields().end(); ++it) {
+ if (entry.get() != NULL && entry->GetArena() != NULL) {
+ entry.release();
+ }
+ entry.reset(fields_.NewEntryWrapper(it->first, it->second));
+ total_size += ::google::protobuf::internal::WireFormatLite::
+ MessageSizeNoVirtual(*entry);
+ }
+ if (entry.get() != NULL && entry->GetArena() != NULL) {
+ entry.release();
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Struct::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Struct)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Struct* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Struct>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Struct)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Struct)
+ MergeFrom(*source);
+ }
+}
+
+void Struct::MergeFrom(const Struct& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Struct)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ fields_.MergeFrom(from.fields_);
+}
+
+void Struct::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Struct)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Struct::CopyFrom(const Struct& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struct)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Struct::IsInitialized() const {
+ return true;
+}
+
+void Struct::Swap(Struct* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Struct* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Struct::UnsafeArenaSwap(Struct* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Struct::InternalSwap(Struct* other) {
+ using std::swap;
+ fields_.Swap(&other->fields_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Struct::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Value::InitAsDefaultInstance() {
+ ::google::protobuf::_Value_default_instance_.null_value_ = 0;
+ ::google::protobuf::_Value_default_instance_.number_value_ = 0;
+ ::google::protobuf::_Value_default_instance_.string_value_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::protobuf::_Value_default_instance_.bool_value_ = false;
+ ::google::protobuf::_Value_default_instance_.struct_value_ = const_cast< ::google::protobuf::Struct*>(
+ ::google::protobuf::Struct::internal_default_instance());
+ ::google::protobuf::_Value_default_instance_.list_value_ = const_cast< ::google::protobuf::ListValue*>(
+ ::google::protobuf::ListValue::internal_default_instance());
+}
+void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_kind();
+ if (struct_value) {
+ ::google::protobuf::Arena* submessage_arena =
+ ::google::protobuf::Arena::GetArena(struct_value);
+ if (message_arena != submessage_arena) {
+ struct_value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, struct_value, submessage_arena);
+ }
+ set_has_struct_value();
+ kind_.struct_value_ = struct_value;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value)
+}
+void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_kind();
+ if (list_value) {
+ ::google::protobuf::Arena* submessage_arena =
+ ::google::protobuf::Arena::GetArena(list_value);
+ if (message_arena != submessage_arena) {
+ list_value = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, list_value, submessage_arena);
+ }
+ set_has_list_value();
+ kind_.list_value_ = list_value;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Value::kNullValueFieldNumber;
+const int Value::kNumberValueFieldNumber;
+const int Value::kStringValueFieldNumber;
+const int Value::kBoolValueFieldNumber;
+const int Value::kStructValueFieldNumber;
+const int Value::kListValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Value::Value()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Value)
+}
+Value::Value(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.Value)
+}
+Value::Value(const Value& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ clear_has_kind();
+ switch (from.kind_case()) {
+ case kNullValue: {
+ set_null_value(from.null_value());
+ break;
+ }
+ case kNumberValue: {
+ set_number_value(from.number_value());
+ break;
+ }
+ case kStringValue: {
+ set_string_value(from.string_value());
+ break;
+ }
+ case kBoolValue: {
+ set_bool_value(from.bool_value());
+ break;
+ }
+ case kStructValue: {
+ mutable_struct_value()->::google::protobuf::Struct::MergeFrom(from.struct_value());
+ break;
+ }
+ case kListValue: {
+ mutable_list_value()->::google::protobuf::ListValue::MergeFrom(from.list_value());
+ break;
+ }
+ case KIND_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Value)
+}
+
+void Value::SharedCtor() {
+ clear_has_kind();
+ _cached_size_ = 0;
+}
+
+Value::~Value() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Value)
+ SharedDtor();
+}
+
+void Value::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ if (has_kind()) {
+ clear_kind();
+ }
+}
+
+void Value::ArenaDtor(void* object) {
+ Value* _this = reinterpret_cast< Value* >(object);
+ (void)_this;
+}
+void Value::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Value::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Value::descriptor() {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Value& Value::default_instance() {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ return *internal_default_instance();
+}
+
+Value* Value::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Value>(arena);
+}
+
+void Value::clear_kind() {
+// @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value)
+ switch (kind_case()) {
+ case kNullValue: {
+ // No need to clear
+ break;
+ }
+ case kNumberValue: {
+ // No need to clear
+ break;
+ }
+ case kStringValue: {
+ kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kBoolValue: {
+ // No need to clear
+ break;
+ }
+ case kStructValue: {
+ if (GetArenaNoVirtual() == NULL) {
+ delete kind_.struct_value_;
+ }
+ break;
+ }
+ case kListValue: {
+ if (GetArenaNoVirtual() == NULL) {
+ delete kind_.list_value_;
+ }
+ break;
+ }
+ case KIND_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = KIND_NOT_SET;
+}
+
+
+void Value::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ clear_kind();
+ _internal_metadata_.Clear();
+}
+
+bool Value::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Value)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // .google.protobuf.NullValue null_value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+ int value;
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
+ input, &value)));
+ set_null_value(static_cast< ::google::protobuf::NullValue >(value));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // double number_value = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
+ clear_kind();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
+ input, &kind_.number_value_)));
+ set_has_number_value();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string string_value = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_string_value()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->string_value().data(), static_cast<int>(this->string_value().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.protobuf.Value.string_value"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // bool bool_value = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
+ clear_kind();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &kind_.bool_value_)));
+ set_has_bool_value();
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.Struct struct_value = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_struct_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.protobuf.ListValue list_value = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_list_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Value)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Value)
+ return false;
+#undef DO_
+}
+
+void Value::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.protobuf.NullValue null_value = 1;
+ if (has_null_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
+ 1, this->null_value(), output);
+ }
+
+ // double number_value = 2;
+ if (has_number_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->number_value(), output);
+ }
+
+ // string string_value = 3;
+ if (has_string_value()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->string_value().data(), static_cast<int>(this->string_value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.Value.string_value");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 3, this->string_value(), output);
+ }
+
+ // bool bool_value = 4;
+ if (has_bool_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->bool_value(), output);
+ }
+
+ // .google.protobuf.Struct struct_value = 5;
+ if (has_struct_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 5, *kind_.struct_value_, output);
+ }
+
+ // .google.protobuf.ListValue list_value = 6;
+ if (has_list_value()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 6, *kind_.list_value_, output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Value)
+}
+
+::google::protobuf::uint8* Value::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // .google.protobuf.NullValue null_value = 1;
+ if (has_null_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->null_value(), target);
+ }
+
+ // double number_value = 2;
+ if (has_number_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->number_value(), target);
+ }
+
+ // string string_value = 3;
+ if (has_string_value()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->string_value().data(), static_cast<int>(this->string_value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.Value.string_value");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 3, this->string_value(), target);
+ }
+
+ // bool bool_value = 4;
+ if (has_bool_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->bool_value(), target);
+ }
+
+ // .google.protobuf.Struct struct_value = 5;
+ if (has_struct_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 5, *kind_.struct_value_, deterministic, target);
+ }
+
+ // .google.protobuf.ListValue list_value = 6;
+ if (has_list_value()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 6, *kind_.list_value_, deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Value)
+ return target;
+}
+
+size_t Value::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ switch (kind_case()) {
+ // .google.protobuf.NullValue null_value = 1;
+ case kNullValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->null_value());
+ break;
+ }
+ // double number_value = 2;
+ case kNumberValue: {
+ total_size += 1 + 8;
+ break;
+ }
+ // string string_value = 3;
+ case kStringValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->string_value());
+ break;
+ }
+ // bool bool_value = 4;
+ case kBoolValue: {
+ total_size += 1 + 1;
+ break;
+ }
+ // .google.protobuf.Struct struct_value = 5;
+ case kStructValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *kind_.struct_value_);
+ break;
+ }
+ // .google.protobuf.ListValue list_value = 6;
+ case kListValue: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *kind_.list_value_);
+ break;
+ }
+ case KIND_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Value::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Value* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Value>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Value)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Value)
+ MergeFrom(*source);
+ }
+}
+
+void Value::MergeFrom(const Value& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ switch (from.kind_case()) {
+ case kNullValue: {
+ set_null_value(from.null_value());
+ break;
+ }
+ case kNumberValue: {
+ set_number_value(from.number_value());
+ break;
+ }
+ case kStringValue: {
+ set_string_value(from.string_value());
+ break;
+ }
+ case kBoolValue: {
+ set_bool_value(from.bool_value());
+ break;
+ }
+ case kStructValue: {
+ mutable_struct_value()->::google::protobuf::Struct::MergeFrom(from.struct_value());
+ break;
+ }
+ case kListValue: {
+ mutable_list_value()->::google::protobuf::ListValue::MergeFrom(from.list_value());
+ break;
+ }
+ case KIND_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void Value::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Value::CopyFrom(const Value& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Value::IsInitialized() const {
+ return true;
+}
+
+void Value::Swap(Value* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Value* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Value::UnsafeArenaSwap(Value* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Value::InternalSwap(Value* other) {
+ using std::swap;
+ swap(kind_, other->kind_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Value::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void ListValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ListValue::kValuesFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ListValue::ListValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.ListValue)
+}
+ListValue::ListValue(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena),
+ values_(arena) {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue)
+}
+ListValue::ListValue(const ListValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ values_(from.values_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue)
+}
+
+void ListValue::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+ListValue::~ListValue() {
+ // @@protoc_insertion_point(destructor:google.protobuf.ListValue)
+ SharedDtor();
+}
+
+void ListValue::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void ListValue::ArenaDtor(void* object) {
+ ListValue* _this = reinterpret_cast< ListValue* >(object);
+ (void)_this;
+}
+void ListValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void ListValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ListValue::descriptor() {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const ListValue& ListValue::default_instance() {
+ ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue();
+ return *internal_default_instance();
+}
+
+ListValue* ListValue::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<ListValue>(arena);
+}
+
+void ListValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ values_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool ListValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.ListValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.protobuf.Value values = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_values()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.ListValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.ListValue)
+ return false;
+#undef DO_
+}
+
+void ListValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.ListValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.protobuf.Value values = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->values(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.ListValue)
+}
+
+::google::protobuf::uint8* ListValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.protobuf.Value values = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->values(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ListValue)
+ return target;
+}
+
+size_t ListValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.protobuf.Value values = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->values_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->values(static_cast<int>(i)));
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ListValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ListValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const ListValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ListValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ListValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ListValue)
+ MergeFrom(*source);
+ }
+}
+
+void ListValue::MergeFrom(const ListValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ListValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ values_.MergeFrom(from.values_);
+}
+
+void ListValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ListValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ListValue::CopyFrom(const ListValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ListValue::IsInitialized() const {
+ return true;
+}
+
+void ListValue::Swap(ListValue* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ ListValue* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void ListValue::UnsafeArenaSwap(ListValue* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void ListValue::InternalSwap(ListValue* other) {
+ using std::swap;
+ values_.InternalSwap(&other->values_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ListValue::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fstruct_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fstruct_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/protobuf/struct.pb.h b/Firestore/Protos/cpp/google/protobuf/struct.pb.h
new file mode 100644
index 0000000..8a6f0d2
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/struct.pb.h
@@ -0,0 +1,1046 @@
+/*
+ * 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: google/protobuf/struct.proto
+
+#ifndef PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED
+#define PROTOBUF_google_2fprotobuf_2fstruct_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/map.h> // IWYU pragma: export
+#include <google/protobuf/map_entry.h>
+#include <google/protobuf/map_field_inl.h>
+#include <google/protobuf/generated_enum_reflection.h>
+#include <google/protobuf/unknown_field_set.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fprotobuf_2fstruct_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[4];
+ 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 InitDefaultsListValueImpl();
+void InitDefaultsListValue();
+inline void InitDefaults() {
+ InitDefaultsListValue();
+}
+} // namespace protobuf_google_2fprotobuf_2fstruct_2eproto
+namespace google {
+namespace protobuf {
+class ListValue;
+class ListValueDefaultTypeInternal;
+extern ListValueDefaultTypeInternal _ListValue_default_instance_;
+class Struct;
+class StructDefaultTypeInternal;
+extern StructDefaultTypeInternal _Struct_default_instance_;
+class Struct_FieldsEntry_DoNotUse;
+class Struct_FieldsEntry_DoNotUseDefaultTypeInternal;
+extern Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_;
+class Value;
+class ValueDefaultTypeInternal;
+extern ValueDefaultTypeInternal _Value_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace google {
+namespace protobuf {
+
+enum NullValue {
+ NULL_VALUE = 0,
+ NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
+ NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
+};
+bool NullValue_IsValid(int value);
+const NullValue NullValue_MIN = NULL_VALUE;
+const NullValue NullValue_MAX = NULL_VALUE;
+const int NullValue_ARRAYSIZE = NullValue_MAX + 1;
+
+const ::google::protobuf::EnumDescriptor* NullValue_descriptor();
+inline const ::std::string& NullValue_Name(NullValue value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ NullValue_descriptor(), value);
+}
+inline bool NullValue_Parse(
+ const ::std::string& name, NullValue* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<NullValue>(
+ NullValue_descriptor(), name, value);
+}
+// ===================================================================
+
+class Struct_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Struct_FieldsEntry_DoNotUse,
+ ::std::string, ::google::protobuf::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > {
+public:
+ typedef ::google::protobuf::internal::MapEntry<Struct_FieldsEntry_DoNotUse,
+ ::std::string, ::google::protobuf::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > SuperType;
+ Struct_FieldsEntry_DoNotUse();
+ Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
+ void MergeFrom(const Struct_FieldsEntry_DoNotUse& other);
+ static const Struct_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Struct_FieldsEntry_DoNotUse*>(&_Struct_FieldsEntry_DoNotUse_default_instance_); }
+ void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
+ ::google::protobuf::Metadata GetMetadata() const;
+};
+
+// -------------------------------------------------------------------
+
+class Struct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ {
+ public:
+ Struct();
+ virtual ~Struct();
+
+ Struct(const Struct& from);
+
+ inline Struct& operator=(const Struct& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Struct(Struct&& from) noexcept
+ : Struct() {
+ *this = ::std::move(from);
+ }
+
+ inline Struct& operator=(Struct&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Struct& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Struct* internal_default_instance() {
+ return reinterpret_cast<const Struct*>(
+ &_Struct_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void UnsafeArenaSwap(Struct* other);
+ void Swap(Struct* other);
+ friend void swap(Struct& a, Struct& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Struct* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Struct* 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 Struct& from);
+ void MergeFrom(const Struct& 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(Struct* other);
+ protected:
+ explicit Struct(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+
+ // accessors -------------------------------------------------------
+
+ // map<string, .google.protobuf.Value> fields = 1;
+ int fields_size() const;
+ void clear_fields();
+ static const int kFieldsFieldNumber = 1;
+ const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
+ fields() const;
+ ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
+ mutable_fields();
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.Struct)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::internal::MapField<
+ Struct_FieldsEntry_DoNotUse,
+ ::std::string, ::google::protobuf::Value,
+ ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
+ ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
+ 0 > fields_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValueImpl();
+};
+// -------------------------------------------------------------------
+
+class Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ {
+ public:
+ Value();
+ virtual ~Value();
+
+ Value(const Value& from);
+
+ inline Value& operator=(const Value& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Value(Value&& from) noexcept
+ : Value() {
+ *this = ::std::move(from);
+ }
+
+ inline Value& operator=(Value&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Value& default_instance();
+
+ enum KindCase {
+ kNullValue = 1,
+ kNumberValue = 2,
+ kStringValue = 3,
+ kBoolValue = 4,
+ kStructValue = 5,
+ kListValue = 6,
+ KIND_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Value* internal_default_instance() {
+ return reinterpret_cast<const Value*>(
+ &_Value_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void UnsafeArenaSwap(Value* other);
+ void Swap(Value* other);
+ friend void swap(Value& a, Value& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Value* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Value* 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 Value& from);
+ void MergeFrom(const Value& 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(Value* other);
+ protected:
+ explicit Value(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // .google.protobuf.NullValue null_value = 1;
+ private:
+ bool has_null_value() const;
+ public:
+ void clear_null_value();
+ static const int kNullValueFieldNumber = 1;
+ ::google::protobuf::NullValue null_value() const;
+ void set_null_value(::google::protobuf::NullValue value);
+
+ // double number_value = 2;
+ private:
+ bool has_number_value() const;
+ public:
+ void clear_number_value();
+ static const int kNumberValueFieldNumber = 2;
+ double number_value() const;
+ void set_number_value(double value);
+
+ // string string_value = 3;
+ private:
+ bool has_string_value() const;
+ public:
+ void clear_string_value();
+ static const int kStringValueFieldNumber = 3;
+ const ::std::string& string_value() const;
+ void set_string_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_string_value(::std::string&& value);
+ #endif
+ void set_string_value(const char* value);
+ void set_string_value(const char* value, size_t size);
+ ::std::string* mutable_string_value();
+ ::std::string* release_string_value();
+ void set_allocated_string_value(::std::string* string_value);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_string_value();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_string_value(
+ ::std::string* string_value);
+
+ // bool bool_value = 4;
+ private:
+ bool has_bool_value() const;
+ public:
+ void clear_bool_value();
+ static const int kBoolValueFieldNumber = 4;
+ bool bool_value() const;
+ void set_bool_value(bool value);
+
+ // .google.protobuf.Struct struct_value = 5;
+ bool has_struct_value() const;
+ void clear_struct_value();
+ static const int kStructValueFieldNumber = 5;
+ private:
+ void _slow_mutable_struct_value();
+ public:
+ const ::google::protobuf::Struct& struct_value() const;
+ ::google::protobuf::Struct* release_struct_value();
+ ::google::protobuf::Struct* mutable_struct_value();
+ void set_allocated_struct_value(::google::protobuf::Struct* struct_value);
+ void unsafe_arena_set_allocated_struct_value(
+ ::google::protobuf::Struct* struct_value);
+ ::google::protobuf::Struct* unsafe_arena_release_struct_value();
+
+ // .google.protobuf.ListValue list_value = 6;
+ bool has_list_value() const;
+ void clear_list_value();
+ static const int kListValueFieldNumber = 6;
+ private:
+ void _slow_mutable_list_value();
+ public:
+ const ::google::protobuf::ListValue& list_value() const;
+ ::google::protobuf::ListValue* release_list_value();
+ ::google::protobuf::ListValue* mutable_list_value();
+ void set_allocated_list_value(::google::protobuf::ListValue* list_value);
+ void unsafe_arena_set_allocated_list_value(
+ ::google::protobuf::ListValue* list_value);
+ ::google::protobuf::ListValue* unsafe_arena_release_list_value();
+
+ KindCase kind_case() const;
+ // @@protoc_insertion_point(class_scope:google.protobuf.Value)
+ private:
+ void set_has_null_value();
+ void set_has_number_value();
+ void set_has_string_value();
+ void set_has_bool_value();
+ void set_has_struct_value();
+ void set_has_list_value();
+
+ inline bool has_kind() const;
+ void clear_kind();
+ inline void clear_has_kind();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ union KindUnion {
+ KindUnion() {}
+ int null_value_;
+ double number_value_;
+ ::google::protobuf::internal::ArenaStringPtr string_value_;
+ bool bool_value_;
+ ::google::protobuf::Struct* struct_value_;
+ ::google::protobuf::ListValue* list_value_;
+ } kind_;
+ mutable int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValueImpl();
+};
+// -------------------------------------------------------------------
+
+class ListValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ {
+ public:
+ ListValue();
+ virtual ~ListValue();
+
+ ListValue(const ListValue& from);
+
+ inline ListValue& operator=(const ListValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ ListValue(ListValue&& from) noexcept
+ : ListValue() {
+ *this = ::std::move(from);
+ }
+
+ inline ListValue& operator=(ListValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const ListValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ListValue* internal_default_instance() {
+ return reinterpret_cast<const ListValue*>(
+ &_ListValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void UnsafeArenaSwap(ListValue* other);
+ void Swap(ListValue* other);
+ friend void swap(ListValue& a, ListValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ListValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ ListValue* 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 ListValue& from);
+ void MergeFrom(const ListValue& 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(ListValue* other);
+ protected:
+ explicit ListValue(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.protobuf.Value values = 1;
+ int values_size() const;
+ void clear_values();
+ static const int kValuesFieldNumber = 1;
+ const ::google::protobuf::Value& values(int index) const;
+ ::google::protobuf::Value* mutable_values(int index);
+ ::google::protobuf::Value* add_values();
+ ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
+ mutable_values();
+ const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
+ values() const;
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.ListValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValueImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// Struct
+
+// map<string, .google.protobuf.Value> fields = 1;
+inline int Struct::fields_size() const {
+ return fields_.size();
+}
+inline void Struct::clear_fields() {
+ fields_.Clear();
+}
+inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
+Struct::fields() const {
+ // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields)
+ return fields_.GetMap();
+}
+inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
+Struct::mutable_fields() {
+ // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields)
+ return fields_.MutableMap();
+}
+
+// -------------------------------------------------------------------
+
+// Value
+
+// .google.protobuf.NullValue null_value = 1;
+inline bool Value::has_null_value() const {
+ return kind_case() == kNullValue;
+}
+inline void Value::set_has_null_value() {
+ _oneof_case_[0] = kNullValue;
+}
+inline void Value::clear_null_value() {
+ if (has_null_value()) {
+ kind_.null_value_ = 0;
+ clear_has_kind();
+ }
+}
+inline ::google::protobuf::NullValue Value::null_value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
+ if (has_null_value()) {
+ return static_cast< ::google::protobuf::NullValue >(kind_.null_value_);
+ }
+ return static_cast< ::google::protobuf::NullValue >(0);
+}
+inline void Value::set_null_value(::google::protobuf::NullValue value) {
+ if (!has_null_value()) {
+ clear_kind();
+ set_has_null_value();
+ }
+ kind_.null_value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
+}
+
+// double number_value = 2;
+inline bool Value::has_number_value() const {
+ return kind_case() == kNumberValue;
+}
+inline void Value::set_has_number_value() {
+ _oneof_case_[0] = kNumberValue;
+}
+inline void Value::clear_number_value() {
+ if (has_number_value()) {
+ kind_.number_value_ = 0;
+ clear_has_kind();
+ }
+}
+inline double Value::number_value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value)
+ if (has_number_value()) {
+ return kind_.number_value_;
+ }
+ return 0;
+}
+inline void Value::set_number_value(double value) {
+ if (!has_number_value()) {
+ clear_kind();
+ set_has_number_value();
+ }
+ kind_.number_value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value)
+}
+
+// string string_value = 3;
+inline bool Value::has_string_value() const {
+ return kind_case() == kStringValue;
+}
+inline void Value::set_has_string_value() {
+ _oneof_case_[0] = kStringValue;
+}
+inline void Value::clear_string_value() {
+ if (has_string_value()) {
+ kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_kind();
+ }
+}
+inline const ::std::string& Value::string_value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value)
+ if (has_string_value()) {
+ return kind_.string_value_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void Value::set_string_value(const ::std::string& value) {
+ if (!has_string_value()) {
+ clear_kind();
+ set_has_string_value();
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
+}
+#if LANG_CXX11
+inline void Value::set_string_value(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
+ if (!has_string_value()) {
+ clear_kind();
+ set_has_string_value();
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ kind_.string_value_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Value.string_value)
+}
+#endif
+inline void Value::set_string_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_string_value()) {
+ clear_kind();
+ set_has_string_value();
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value)
+}
+inline void Value::set_string_value(const char* value,
+ size_t size) {
+ if (!has_string_value()) {
+ clear_kind();
+ set_has_string_value();
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ kind_.string_value_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_value)
+}
+inline ::std::string* Value::mutable_string_value() {
+ if (!has_string_value()) {
+ clear_kind();
+ set_has_string_value();
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return kind_.string_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value)
+}
+inline ::std::string* Value::release_string_value() {
+ // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
+ if (has_string_value()) {
+ clear_has_kind();
+ return kind_.string_value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void Value::set_allocated_string_value(::std::string* string_value) {
+ if (!has_string_value()) {
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_kind();
+ if (string_value != NULL) {
+ set_has_string_value();
+ kind_.string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value)
+}
+inline ::std::string* Value::unsafe_arena_release_string_value() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.string_value)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_string_value()) {
+ clear_has_kind();
+ return kind_.string_value_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void Value::unsafe_arena_set_allocated_string_value(::std::string* string_value) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_string_value()) {
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_kind();
+ if (string_value) {
+ set_has_string_value();
+ kind_.string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.string_value)
+}
+
+// bool bool_value = 4;
+inline bool Value::has_bool_value() const {
+ return kind_case() == kBoolValue;
+}
+inline void Value::set_has_bool_value() {
+ _oneof_case_[0] = kBoolValue;
+}
+inline void Value::clear_bool_value() {
+ if (has_bool_value()) {
+ kind_.bool_value_ = false;
+ clear_has_kind();
+ }
+}
+inline bool Value::bool_value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value)
+ if (has_bool_value()) {
+ return kind_.bool_value_;
+ }
+ return false;
+}
+inline void Value::set_bool_value(bool value) {
+ if (!has_bool_value()) {
+ clear_kind();
+ set_has_bool_value();
+ }
+ kind_.bool_value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value)
+}
+
+// .google.protobuf.Struct struct_value = 5;
+inline bool Value::has_struct_value() const {
+ return kind_case() == kStructValue;
+}
+inline void Value::set_has_struct_value() {
+ _oneof_case_[0] = kStructValue;
+}
+inline void Value::clear_struct_value() {
+ if (has_struct_value()) {
+ if (GetArenaNoVirtual() == NULL) {
+ delete kind_.struct_value_;
+ }
+ clear_has_kind();
+ }
+}
+inline ::google::protobuf::Struct* Value::release_struct_value() {
+ // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value)
+ if (has_struct_value()) {
+ clear_has_kind();
+ ::google::protobuf::Struct* temp = kind_.struct_value_;
+ if (GetArenaNoVirtual() != NULL) {
+ temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
+ }
+ kind_.struct_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::Struct& Value::struct_value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value)
+ return has_struct_value()
+ ? *kind_.struct_value_
+ : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_);
+}
+inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value)
+ if (has_struct_value()) {
+ clear_has_kind();
+ ::google::protobuf::Struct* temp = kind_.struct_value_;
+ kind_.struct_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* struct_value) {
+ clear_kind();
+ if (struct_value) {
+ set_has_struct_value();
+ kind_.struct_value_ = struct_value;
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value)
+}
+inline ::google::protobuf::Struct* Value::mutable_struct_value() {
+ if (!has_struct_value()) {
+ clear_kind();
+ set_has_struct_value();
+ kind_.struct_value_ =
+ ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct >(
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value)
+ return kind_.struct_value_;
+}
+
+// .google.protobuf.ListValue list_value = 6;
+inline bool Value::has_list_value() const {
+ return kind_case() == kListValue;
+}
+inline void Value::set_has_list_value() {
+ _oneof_case_[0] = kListValue;
+}
+inline void Value::clear_list_value() {
+ if (has_list_value()) {
+ if (GetArenaNoVirtual() == NULL) {
+ delete kind_.list_value_;
+ }
+ clear_has_kind();
+ }
+}
+inline ::google::protobuf::ListValue* Value::release_list_value() {
+ // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value)
+ if (has_list_value()) {
+ clear_has_kind();
+ ::google::protobuf::ListValue* temp = kind_.list_value_;
+ if (GetArenaNoVirtual() != NULL) {
+ temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
+ }
+ kind_.list_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::protobuf::ListValue& Value::list_value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value)
+ return has_list_value()
+ ? *kind_.list_value_
+ : *reinterpret_cast< ::google::protobuf::ListValue*>(&::google::protobuf::_ListValue_default_instance_);
+}
+inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value)
+ if (has_list_value()) {
+ clear_has_kind();
+ ::google::protobuf::ListValue* temp = kind_.list_value_;
+ kind_.list_value_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* list_value) {
+ clear_kind();
+ if (list_value) {
+ set_has_list_value();
+ kind_.list_value_ = list_value;
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value)
+}
+inline ::google::protobuf::ListValue* Value::mutable_list_value() {
+ if (!has_list_value()) {
+ clear_kind();
+ set_has_list_value();
+ kind_.list_value_ =
+ ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValue >(
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value)
+ return kind_.list_value_;
+}
+
+inline bool Value::has_kind() const {
+ return kind_case() != KIND_NOT_SET;
+}
+inline void Value::clear_has_kind() {
+ _oneof_case_[0] = KIND_NOT_SET;
+}
+inline Value::KindCase Value::kind_case() const {
+ return Value::KindCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// ListValue
+
+// repeated .google.protobuf.Value values = 1;
+inline int ListValue::values_size() const {
+ return values_.size();
+}
+inline void ListValue::clear_values() {
+ values_.Clear();
+}
+inline const ::google::protobuf::Value& ListValue::values(int index) const {
+ // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values)
+ return values_.Get(index);
+}
+inline ::google::protobuf::Value* ListValue::mutable_values(int index) {
+ // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values)
+ return values_.Mutable(index);
+}
+inline ::google::protobuf::Value* ListValue::add_values() {
+ // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values)
+ return values_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
+ListValue::mutable_values() {
+ // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values)
+ return &values_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
+ListValue::values() const {
+ // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values)
+ return values_;
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace protobuf
+} // namespace google
+
+namespace google {
+namespace protobuf {
+
+template <> struct is_proto_enum< ::google::protobuf::NullValue> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::NullValue>() {
+ return ::google::protobuf::NullValue_descriptor();
+}
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fprotobuf_2fstruct_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/protobuf/timestamp.pb.cc b/Firestore/Protos/cpp/google/protobuf/timestamp.pb.cc
new file mode 100644
index 0000000..7f0ea38
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/timestamp.pb.cc
@@ -0,0 +1,447 @@
+/*
+ * 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: google/protobuf/timestamp.proto
+
+#include <google/protobuf/timestamp.pb.h>
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace protobuf {
+class TimestampDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Timestamp>
+ _instance;
+} _Timestamp_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto {
+void InitDefaultsTimestampImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_Timestamp_default_instance_;
+ new (ptr) ::google::protobuf::Timestamp();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::Timestamp::InitAsDefaultInstance();
+}
+
+void InitDefaultsTimestamp() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTimestampImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Timestamp, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Timestamp, seconds_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Timestamp, nanos_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::protobuf::Timestamp)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Timestamp_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/protobuf/timestamp.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\037google/protobuf/timestamp.proto\022\017googl"
+ "e.protobuf\"+\n\tTimestamp\022\017\n\007seconds\030\001 \001(\003"
+ "\022\r\n\005nanos\030\002 \001(\005B~\n\023com.google.protobufB\016"
+ "TimestampProtoP\001Z+github.com/golang/prot"
+ "obuf/ptypes/timestamp\370\001\001\242\002\003GPB\252\002\036Google."
+ "Protobuf.WellKnownTypesb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 231);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/protobuf/timestamp.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+void Timestamp::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Timestamp::kSecondsFieldNumber;
+const int Timestamp::kNanosFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Timestamp::Timestamp()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Timestamp)
+}
+Timestamp::Timestamp(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.Timestamp)
+}
+Timestamp::Timestamp(const Timestamp& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&seconds_, &from.seconds_,
+ static_cast<size_t>(reinterpret_cast<char*>(&nanos_) -
+ reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Timestamp)
+}
+
+void Timestamp::SharedCtor() {
+ ::memset(&seconds_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&nanos_) -
+ reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
+ _cached_size_ = 0;
+}
+
+Timestamp::~Timestamp() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Timestamp)
+ SharedDtor();
+}
+
+void Timestamp::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Timestamp::ArenaDtor(void* object) {
+ Timestamp* _this = reinterpret_cast< Timestamp* >(object);
+ (void)_this;
+}
+void Timestamp::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Timestamp::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Timestamp::descriptor() {
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Timestamp& Timestamp::default_instance() {
+ ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp();
+ return *internal_default_instance();
+}
+
+Timestamp* Timestamp::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Timestamp>(arena);
+}
+
+void Timestamp::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Timestamp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ ::memset(&seconds_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&nanos_) -
+ reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
+ _internal_metadata_.Clear();
+}
+
+bool Timestamp::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Timestamp)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int64 seconds = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
+ input, &seconds_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // int32 nanos = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &nanos_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Timestamp)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Timestamp)
+ return false;
+#undef DO_
+}
+
+void Timestamp::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Timestamp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int64 seconds = 1;
+ if (this->seconds() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->seconds(), output);
+ }
+
+ // int32 nanos = 2;
+ if (this->nanos() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->nanos(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Timestamp)
+}
+
+::google::protobuf::uint8* Timestamp::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Timestamp)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int64 seconds = 1;
+ if (this->seconds() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->seconds(), target);
+ }
+
+ // int32 nanos = 2;
+ if (this->nanos() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->nanos(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Timestamp)
+ return target;
+}
+
+size_t Timestamp::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Timestamp)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // int64 seconds = 1;
+ if (this->seconds() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->seconds());
+ }
+
+ // int32 nanos = 2;
+ if (this->nanos() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->nanos());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Timestamp::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Timestamp)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Timestamp* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Timestamp>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Timestamp)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Timestamp)
+ MergeFrom(*source);
+ }
+}
+
+void Timestamp::MergeFrom(const Timestamp& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Timestamp)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.seconds() != 0) {
+ set_seconds(from.seconds());
+ }
+ if (from.nanos() != 0) {
+ set_nanos(from.nanos());
+ }
+}
+
+void Timestamp::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Timestamp)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Timestamp::CopyFrom(const Timestamp& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Timestamp)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Timestamp::IsInitialized() const {
+ return true;
+}
+
+void Timestamp::Swap(Timestamp* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Timestamp* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Timestamp::UnsafeArenaSwap(Timestamp* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Timestamp::InternalSwap(Timestamp* other) {
+ using std::swap;
+ swap(seconds_, other->seconds_);
+ swap(nanos_, other->nanos_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Timestamp::GetMetadata() const {
+ protobuf_google_2fprotobuf_2ftimestamp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/protobuf/timestamp.pb.h b/Firestore/Protos/cpp/google/protobuf/timestamp.pb.h
new file mode 100644
index 0000000..0047b39
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/timestamp.pb.h
@@ -0,0 +1,248 @@
+/*
+ * 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: google/protobuf/timestamp.proto
+
+#ifndef PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
+#define PROTOBUF_google_2fprotobuf_2ftimestamp_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>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fprotobuf_2ftimestamp_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[1];
+ 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 InitDefaultsTimestampImpl();
+void InitDefaultsTimestamp();
+inline void InitDefaults() {
+ InitDefaultsTimestamp();
+}
+} // namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto
+namespace google {
+namespace protobuf {
+class Timestamp;
+class TimestampDefaultTypeInternal;
+extern TimestampDefaultTypeInternal _Timestamp_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+class Timestamp : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
+ public:
+ Timestamp();
+ virtual ~Timestamp();
+
+ Timestamp(const Timestamp& from);
+
+ inline Timestamp& operator=(const Timestamp& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Timestamp(Timestamp&& from) noexcept
+ : Timestamp() {
+ *this = ::std::move(from);
+ }
+
+ inline Timestamp& operator=(Timestamp&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Timestamp& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Timestamp* internal_default_instance() {
+ return reinterpret_cast<const Timestamp*>(
+ &_Timestamp_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void UnsafeArenaSwap(Timestamp* other);
+ void Swap(Timestamp* other);
+ friend void swap(Timestamp& a, Timestamp& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Timestamp* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Timestamp* 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 Timestamp& from);
+ void MergeFrom(const Timestamp& 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(Timestamp* other);
+ protected:
+ explicit Timestamp(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // int64 seconds = 1;
+ void clear_seconds();
+ static const int kSecondsFieldNumber = 1;
+ ::google::protobuf::int64 seconds() const;
+ void set_seconds(::google::protobuf::int64 value);
+
+ // int32 nanos = 2;
+ void clear_nanos();
+ static const int kNanosFieldNumber = 2;
+ ::google::protobuf::int32 nanos() const;
+ void set_nanos(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::int64 seconds_;
+ ::google::protobuf::int32 nanos_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestampImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Timestamp
+
+// int64 seconds = 1;
+inline void Timestamp::clear_seconds() {
+ seconds_ = GOOGLE_LONGLONG(0);
+}
+inline ::google::protobuf::int64 Timestamp::seconds() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
+ return seconds_;
+}
+inline void Timestamp::set_seconds(::google::protobuf::int64 value) {
+
+ seconds_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
+}
+
+// int32 nanos = 2;
+inline void Timestamp::clear_nanos() {
+ nanos_ = 0;
+}
+inline ::google::protobuf::int32 Timestamp::nanos() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
+ return nanos_;
+}
+inline void Timestamp::set_nanos(::google::protobuf::int32 value) {
+
+ nanos_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/protobuf/wrappers.pb.cc b/Firestore/Protos/cpp/google/protobuf/wrappers.pb.cc
new file mode 100644
index 0000000..b44c5c2
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/wrappers.pb.cc
@@ -0,0 +1,2812 @@
+/*
+ * 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: google/protobuf/wrappers.proto
+
+#include <google/protobuf/wrappers.pb.h>
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace protobuf {
+class DoubleValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<DoubleValue>
+ _instance;
+} _DoubleValue_default_instance_;
+class FloatValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<FloatValue>
+ _instance;
+} _FloatValue_default_instance_;
+class Int64ValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Int64Value>
+ _instance;
+} _Int64Value_default_instance_;
+class UInt64ValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<UInt64Value>
+ _instance;
+} _UInt64Value_default_instance_;
+class Int32ValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Int32Value>
+ _instance;
+} _Int32Value_default_instance_;
+class UInt32ValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<UInt32Value>
+ _instance;
+} _UInt32Value_default_instance_;
+class BoolValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BoolValue>
+ _instance;
+} _BoolValue_default_instance_;
+class StringValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<StringValue>
+ _instance;
+} _StringValue_default_instance_;
+class BytesValueDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<BytesValue>
+ _instance;
+} _BytesValue_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace protobuf_google_2fprotobuf_2fwrappers_2eproto {
+void InitDefaultsDoubleValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_DoubleValue_default_instance_;
+ new (ptr) ::google::protobuf::DoubleValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::DoubleValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsDoubleValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDoubleValueImpl);
+}
+
+void InitDefaultsFloatValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_FloatValue_default_instance_;
+ new (ptr) ::google::protobuf::FloatValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::FloatValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsFloatValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFloatValueImpl);
+}
+
+void InitDefaultsInt64ValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_Int64Value_default_instance_;
+ new (ptr) ::google::protobuf::Int64Value();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::Int64Value::InitAsDefaultInstance();
+}
+
+void InitDefaultsInt64Value() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInt64ValueImpl);
+}
+
+void InitDefaultsUInt64ValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_UInt64Value_default_instance_;
+ new (ptr) ::google::protobuf::UInt64Value();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::UInt64Value::InitAsDefaultInstance();
+}
+
+void InitDefaultsUInt64Value() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUInt64ValueImpl);
+}
+
+void InitDefaultsInt32ValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_Int32Value_default_instance_;
+ new (ptr) ::google::protobuf::Int32Value();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::Int32Value::InitAsDefaultInstance();
+}
+
+void InitDefaultsInt32Value() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInt32ValueImpl);
+}
+
+void InitDefaultsUInt32ValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_UInt32Value_default_instance_;
+ new (ptr) ::google::protobuf::UInt32Value();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::UInt32Value::InitAsDefaultInstance();
+}
+
+void InitDefaultsUInt32Value() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUInt32ValueImpl);
+}
+
+void InitDefaultsBoolValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_BoolValue_default_instance_;
+ new (ptr) ::google::protobuf::BoolValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::BoolValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsBoolValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBoolValueImpl);
+}
+
+void InitDefaultsStringValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_StringValue_default_instance_;
+ new (ptr) ::google::protobuf::StringValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::StringValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsStringValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStringValueImpl);
+}
+
+void InitDefaultsBytesValueImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::protobuf::_BytesValue_default_instance_;
+ new (ptr) ::google::protobuf::BytesValue();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::protobuf::BytesValue::InitAsDefaultInstance();
+}
+
+void InitDefaultsBytesValue() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBytesValueImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[9];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DoubleValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::DoubleValue, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FloatValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::FloatValue, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Int64Value, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Int64Value, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UInt64Value, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UInt64Value, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Int32Value, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Int32Value, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UInt32Value, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::UInt32Value, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::BoolValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::BoolValue, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::StringValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::StringValue, value_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::BytesValue, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::BytesValue, value_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::protobuf::DoubleValue)},
+ { 6, -1, sizeof(::google::protobuf::FloatValue)},
+ { 12, -1, sizeof(::google::protobuf::Int64Value)},
+ { 18, -1, sizeof(::google::protobuf::UInt64Value)},
+ { 24, -1, sizeof(::google::protobuf::Int32Value)},
+ { 30, -1, sizeof(::google::protobuf::UInt32Value)},
+ { 36, -1, sizeof(::google::protobuf::BoolValue)},
+ { 42, -1, sizeof(::google::protobuf::StringValue)},
+ { 48, -1, sizeof(::google::protobuf::BytesValue)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_DoubleValue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_FloatValue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Int64Value_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_UInt64Value_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Int32Value_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_UInt32Value_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_BoolValue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_StringValue_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_BytesValue_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/protobuf/wrappers.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\036google/protobuf/wrappers.proto\022\017google"
+ ".protobuf\"\034\n\013DoubleValue\022\r\n\005value\030\001 \001(\001\""
+ "\033\n\nFloatValue\022\r\n\005value\030\001 \001(\002\"\033\n\nInt64Val"
+ "ue\022\r\n\005value\030\001 \001(\003\"\034\n\013UInt64Value\022\r\n\005valu"
+ "e\030\001 \001(\004\"\033\n\nInt32Value\022\r\n\005value\030\001 \001(\005\"\034\n\013"
+ "UInt32Value\022\r\n\005value\030\001 \001(\r\"\032\n\tBoolValue\022"
+ "\r\n\005value\030\001 \001(\010\"\034\n\013StringValue\022\r\n\005value\030\001"
+ " \001(\t\"\033\n\nBytesValue\022\r\n\005value\030\001 \001(\014B|\n\023com"
+ ".google.protobufB\rWrappersProtoP\001Z*githu"
+ "b.com/golang/protobuf/ptypes/wrappers\370\001\001"
+ "\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypesb"
+ "\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 447);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/protobuf/wrappers.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fprotobuf_2fwrappers_2eproto
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+void DoubleValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int DoubleValue::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+DoubleValue::DoubleValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsDoubleValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.DoubleValue)
+}
+DoubleValue::DoubleValue(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsDoubleValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.DoubleValue)
+}
+DoubleValue::DoubleValue(const DoubleValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.DoubleValue)
+}
+
+void DoubleValue::SharedCtor() {
+ value_ = 0;
+ _cached_size_ = 0;
+}
+
+DoubleValue::~DoubleValue() {
+ // @@protoc_insertion_point(destructor:google.protobuf.DoubleValue)
+ SharedDtor();
+}
+
+void DoubleValue::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void DoubleValue::ArenaDtor(void* object) {
+ DoubleValue* _this = reinterpret_cast< DoubleValue* >(object);
+ (void)_this;
+}
+void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void DoubleValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* DoubleValue::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const DoubleValue& DoubleValue::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsDoubleValue();
+ return *internal_default_instance();
+}
+
+DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena);
+}
+
+void DoubleValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.DoubleValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool DoubleValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.DoubleValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // double value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.DoubleValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.DoubleValue)
+ return false;
+#undef DO_
+}
+
+void DoubleValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.DoubleValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // double value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.DoubleValue)
+}
+
+::google::protobuf::uint8* DoubleValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // double value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DoubleValue)
+ return target;
+}
+
+size_t DoubleValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.DoubleValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // double value = 1;
+ if (this->value() != 0) {
+ total_size += 1 + 8;
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void DoubleValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DoubleValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const DoubleValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const DoubleValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DoubleValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DoubleValue)
+ MergeFrom(*source);
+ }
+}
+
+void DoubleValue::MergeFrom(const DoubleValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DoubleValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void DoubleValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DoubleValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void DoubleValue::CopyFrom(const DoubleValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DoubleValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DoubleValue::IsInitialized() const {
+ return true;
+}
+
+void DoubleValue::Swap(DoubleValue* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ DoubleValue* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void DoubleValue::UnsafeArenaSwap(DoubleValue* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void DoubleValue::InternalSwap(DoubleValue* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata DoubleValue::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void FloatValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int FloatValue::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+FloatValue::FloatValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsFloatValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.FloatValue)
+}
+FloatValue::FloatValue(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsFloatValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.FloatValue)
+}
+FloatValue::FloatValue(const FloatValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.FloatValue)
+}
+
+void FloatValue::SharedCtor() {
+ value_ = 0;
+ _cached_size_ = 0;
+}
+
+FloatValue::~FloatValue() {
+ // @@protoc_insertion_point(destructor:google.protobuf.FloatValue)
+ SharedDtor();
+}
+
+void FloatValue::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void FloatValue::ArenaDtor(void* object) {
+ FloatValue* _this = reinterpret_cast< FloatValue* >(object);
+ (void)_this;
+}
+void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void FloatValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* FloatValue::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const FloatValue& FloatValue::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsFloatValue();
+ return *internal_default_instance();
+}
+
+FloatValue* FloatValue::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<FloatValue>(arena);
+}
+
+void FloatValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.FloatValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool FloatValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.FloatValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // float value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.FloatValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.FloatValue)
+ return false;
+#undef DO_
+}
+
+void FloatValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.FloatValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // float value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.FloatValue)
+}
+
+::google::protobuf::uint8* FloatValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // float value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FloatValue)
+ return target;
+}
+
+size_t FloatValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FloatValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // float value = 1;
+ if (this->value() != 0) {
+ total_size += 1 + 4;
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void FloatValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FloatValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const FloatValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const FloatValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FloatValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FloatValue)
+ MergeFrom(*source);
+ }
+}
+
+void FloatValue::MergeFrom(const FloatValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FloatValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void FloatValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FloatValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void FloatValue::CopyFrom(const FloatValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FloatValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool FloatValue::IsInitialized() const {
+ return true;
+}
+
+void FloatValue::Swap(FloatValue* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ FloatValue* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void FloatValue::UnsafeArenaSwap(FloatValue* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void FloatValue::InternalSwap(FloatValue* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata FloatValue::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Int64Value::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Int64Value::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Int64Value::Int64Value()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt64Value();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Int64Value)
+}
+Int64Value::Int64Value(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt64Value();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.Int64Value)
+}
+Int64Value::Int64Value(const Int64Value& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Int64Value)
+}
+
+void Int64Value::SharedCtor() {
+ value_ = GOOGLE_LONGLONG(0);
+ _cached_size_ = 0;
+}
+
+Int64Value::~Int64Value() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Int64Value)
+ SharedDtor();
+}
+
+void Int64Value::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Int64Value::ArenaDtor(void* object) {
+ Int64Value* _this = reinterpret_cast< Int64Value* >(object);
+ (void)_this;
+}
+void Int64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Int64Value::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Int64Value::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Int64Value& Int64Value::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt64Value();
+ return *internal_default_instance();
+}
+
+Int64Value* Int64Value::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Int64Value>(arena);
+}
+
+void Int64Value::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Int64Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = GOOGLE_LONGLONG(0);
+ _internal_metadata_.Clear();
+}
+
+bool Int64Value::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Int64Value)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int64 value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Int64Value)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Int64Value)
+ return false;
+#undef DO_
+}
+
+void Int64Value::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Int64Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int64 value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Int64Value)
+}
+
+::google::protobuf::uint8* Int64Value::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int64 value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int64Value)
+ return target;
+}
+
+size_t Int64Value::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int64Value)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // int64 value = 1;
+ if (this->value() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Int64Value::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int64Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Int64Value* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Int64Value>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Int64Value)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Int64Value)
+ MergeFrom(*source);
+ }
+}
+
+void Int64Value::MergeFrom(const Int64Value& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int64Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void Int64Value::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int64Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Int64Value::CopyFrom(const Int64Value& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int64Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Int64Value::IsInitialized() const {
+ return true;
+}
+
+void Int64Value::Swap(Int64Value* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Int64Value* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Int64Value::UnsafeArenaSwap(Int64Value* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Int64Value::InternalSwap(Int64Value* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Int64Value::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void UInt64Value::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int UInt64Value::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+UInt64Value::UInt64Value()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt64Value();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.UInt64Value)
+}
+UInt64Value::UInt64Value(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt64Value();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt64Value)
+}
+UInt64Value::UInt64Value(const UInt64Value& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt64Value)
+}
+
+void UInt64Value::SharedCtor() {
+ value_ = GOOGLE_ULONGLONG(0);
+ _cached_size_ = 0;
+}
+
+UInt64Value::~UInt64Value() {
+ // @@protoc_insertion_point(destructor:google.protobuf.UInt64Value)
+ SharedDtor();
+}
+
+void UInt64Value::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void UInt64Value::ArenaDtor(void* object) {
+ UInt64Value* _this = reinterpret_cast< UInt64Value* >(object);
+ (void)_this;
+}
+void UInt64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void UInt64Value::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* UInt64Value::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const UInt64Value& UInt64Value::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt64Value();
+ return *internal_default_instance();
+}
+
+UInt64Value* UInt64Value::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<UInt64Value>(arena);
+}
+
+void UInt64Value::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.UInt64Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = GOOGLE_ULONGLONG(0);
+ _internal_metadata_.Clear();
+}
+
+bool UInt64Value::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.UInt64Value)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // uint64 value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.UInt64Value)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.UInt64Value)
+ return false;
+#undef DO_
+}
+
+void UInt64Value::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.UInt64Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // uint64 value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.UInt64Value)
+}
+
+::google::protobuf::uint8* UInt64Value::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // uint64 value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt64Value)
+ return target;
+}
+
+size_t UInt64Value::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt64Value)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // uint64 value = 1;
+ if (this->value() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt64Size(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void UInt64Value::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt64Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ const UInt64Value* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const UInt64Value>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UInt64Value)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UInt64Value)
+ MergeFrom(*source);
+ }
+}
+
+void UInt64Value::MergeFrom(const UInt64Value& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt64Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void UInt64Value::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt64Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void UInt64Value::CopyFrom(const UInt64Value& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt64Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool UInt64Value::IsInitialized() const {
+ return true;
+}
+
+void UInt64Value::Swap(UInt64Value* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ UInt64Value* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void UInt64Value::UnsafeArenaSwap(UInt64Value* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void UInt64Value::InternalSwap(UInt64Value* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata UInt64Value::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void Int32Value::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Int32Value::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Int32Value::Int32Value()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt32Value();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.Int32Value)
+}
+Int32Value::Int32Value(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt32Value();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.Int32Value)
+}
+Int32Value::Int32Value(const Int32Value& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.Int32Value)
+}
+
+void Int32Value::SharedCtor() {
+ value_ = 0;
+ _cached_size_ = 0;
+}
+
+Int32Value::~Int32Value() {
+ // @@protoc_insertion_point(destructor:google.protobuf.Int32Value)
+ SharedDtor();
+}
+
+void Int32Value::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Int32Value::ArenaDtor(void* object) {
+ Int32Value* _this = reinterpret_cast< Int32Value* >(object);
+ (void)_this;
+}
+void Int32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Int32Value::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Int32Value::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Int32Value& Int32Value::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt32Value();
+ return *internal_default_instance();
+}
+
+Int32Value* Int32Value::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Int32Value>(arena);
+}
+
+void Int32Value::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.Int32Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool Int32Value::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.Int32Value)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.Int32Value)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.Int32Value)
+ return false;
+#undef DO_
+}
+
+void Int32Value::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.Int32Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.Int32Value)
+}
+
+::google::protobuf::uint8* Int32Value::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int32Value)
+ return target;
+}
+
+size_t Int32Value::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int32Value)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // int32 value = 1;
+ if (this->value() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Int32Value::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int32Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Int32Value* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Int32Value>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Int32Value)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Int32Value)
+ MergeFrom(*source);
+ }
+}
+
+void Int32Value::MergeFrom(const Int32Value& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int32Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void Int32Value::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int32Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Int32Value::CopyFrom(const Int32Value& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int32Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Int32Value::IsInitialized() const {
+ return true;
+}
+
+void Int32Value::Swap(Int32Value* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Int32Value* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Int32Value::UnsafeArenaSwap(Int32Value* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Int32Value::InternalSwap(Int32Value* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Int32Value::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void UInt32Value::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int UInt32Value::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+UInt32Value::UInt32Value()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt32Value();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.UInt32Value)
+}
+UInt32Value::UInt32Value(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt32Value();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt32Value)
+}
+UInt32Value::UInt32Value(const UInt32Value& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt32Value)
+}
+
+void UInt32Value::SharedCtor() {
+ value_ = 0u;
+ _cached_size_ = 0;
+}
+
+UInt32Value::~UInt32Value() {
+ // @@protoc_insertion_point(destructor:google.protobuf.UInt32Value)
+ SharedDtor();
+}
+
+void UInt32Value::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void UInt32Value::ArenaDtor(void* object) {
+ UInt32Value* _this = reinterpret_cast< UInt32Value* >(object);
+ (void)_this;
+}
+void UInt32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void UInt32Value::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* UInt32Value::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const UInt32Value& UInt32Value::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt32Value();
+ return *internal_default_instance();
+}
+
+UInt32Value* UInt32Value::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<UInt32Value>(arena);
+}
+
+void UInt32Value::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.UInt32Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = 0u;
+ _internal_metadata_.Clear();
+}
+
+bool UInt32Value::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.UInt32Value)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // uint32 value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.UInt32Value)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.UInt32Value)
+ return false;
+#undef DO_
+}
+
+void UInt32Value::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.UInt32Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // uint32 value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.UInt32Value)
+}
+
+::google::protobuf::uint8* UInt32Value::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Value)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // uint32 value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt32Value)
+ return target;
+}
+
+size_t UInt32Value::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt32Value)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // uint32 value = 1;
+ if (this->value() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void UInt32Value::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt32Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ const UInt32Value* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const UInt32Value>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UInt32Value)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UInt32Value)
+ MergeFrom(*source);
+ }
+}
+
+void UInt32Value::MergeFrom(const UInt32Value& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt32Value)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void UInt32Value::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt32Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void UInt32Value::CopyFrom(const UInt32Value& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt32Value)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool UInt32Value::IsInitialized() const {
+ return true;
+}
+
+void UInt32Value::Swap(UInt32Value* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ UInt32Value* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void UInt32Value::UnsafeArenaSwap(UInt32Value* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void UInt32Value::InternalSwap(UInt32Value* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata UInt32Value::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void BoolValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int BoolValue::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+BoolValue::BoolValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBoolValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.BoolValue)
+}
+BoolValue::BoolValue(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBoolValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.BoolValue)
+}
+BoolValue::BoolValue(const BoolValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_ = from.value_;
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.BoolValue)
+}
+
+void BoolValue::SharedCtor() {
+ value_ = false;
+ _cached_size_ = 0;
+}
+
+BoolValue::~BoolValue() {
+ // @@protoc_insertion_point(destructor:google.protobuf.BoolValue)
+ SharedDtor();
+}
+
+void BoolValue::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void BoolValue::ArenaDtor(void* object) {
+ BoolValue* _this = reinterpret_cast< BoolValue* >(object);
+ (void)_this;
+}
+void BoolValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void BoolValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* BoolValue::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const BoolValue& BoolValue::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBoolValue();
+ return *internal_default_instance();
+}
+
+BoolValue* BoolValue::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<BoolValue>(arena);
+}
+
+void BoolValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.BoolValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_ = false;
+ _internal_metadata_.Clear();
+}
+
+bool BoolValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.BoolValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // bool value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
+ input, &value_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.BoolValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.BoolValue)
+ return false;
+#undef DO_
+}
+
+void BoolValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.BoolValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bool value = 1;
+ if (this->value() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.BoolValue)
+}
+
+::google::protobuf::uint8* BoolValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bool value = 1;
+ if (this->value() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BoolValue)
+ return target;
+}
+
+size_t BoolValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.BoolValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bool value = 1;
+ if (this->value() != 0) {
+ total_size += 1 + 1;
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void BoolValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BoolValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const BoolValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const BoolValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.BoolValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.BoolValue)
+ MergeFrom(*source);
+ }
+}
+
+void BoolValue::MergeFrom(const BoolValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BoolValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value() != 0) {
+ set_value(from.value());
+ }
+}
+
+void BoolValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BoolValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void BoolValue::CopyFrom(const BoolValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BoolValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BoolValue::IsInitialized() const {
+ return true;
+}
+
+void BoolValue::Swap(BoolValue* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ BoolValue* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void BoolValue::UnsafeArenaSwap(BoolValue* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void BoolValue::InternalSwap(BoolValue* other) {
+ using std::swap;
+ swap(value_, other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata BoolValue::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void StringValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int StringValue::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+StringValue::StringValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsStringValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.StringValue)
+}
+StringValue::StringValue(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsStringValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.StringValue)
+}
+StringValue::StringValue(const StringValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.value().size() > 0) {
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value(),
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.StringValue)
+}
+
+void StringValue::SharedCtor() {
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+StringValue::~StringValue() {
+ // @@protoc_insertion_point(destructor:google.protobuf.StringValue)
+ SharedDtor();
+}
+
+void StringValue::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void StringValue::ArenaDtor(void* object) {
+ StringValue* _this = reinterpret_cast< StringValue* >(object);
+ (void)_this;
+}
+void StringValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void StringValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* StringValue::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const StringValue& StringValue::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsStringValue();
+ return *internal_default_instance();
+}
+
+StringValue* StringValue::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<StringValue>(arena);
+}
+
+void StringValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.StringValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ _internal_metadata_.Clear();
+}
+
+bool StringValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.StringValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_value()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->value().data(), static_cast<int>(this->value().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.protobuf.StringValue.value"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.StringValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.StringValue)
+ return false;
+#undef DO_
+}
+
+void StringValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.StringValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string value = 1;
+ if (this->value().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->value().data(), static_cast<int>(this->value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.StringValue.value");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.StringValue)
+}
+
+::google::protobuf::uint8* StringValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string value = 1;
+ if (this->value().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->value().data(), static_cast<int>(this->value().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.protobuf.StringValue.value");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.StringValue)
+ return target;
+}
+
+size_t StringValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.StringValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string value = 1;
+ if (this->value().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void StringValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.StringValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const StringValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const StringValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.StringValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.StringValue)
+ MergeFrom(*source);
+ }
+}
+
+void StringValue::MergeFrom(const StringValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.StringValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value().size() > 0) {
+ set_value(from.value());
+ }
+}
+
+void StringValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.StringValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void StringValue::CopyFrom(const StringValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.StringValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool StringValue::IsInitialized() const {
+ return true;
+}
+
+void StringValue::Swap(StringValue* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ StringValue* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void StringValue::UnsafeArenaSwap(StringValue* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void StringValue::InternalSwap(StringValue* other) {
+ using std::swap;
+ value_.Swap(&other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata StringValue::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void BytesValue::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int BytesValue::kValueFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+BytesValue::BytesValue()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBytesValue();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.protobuf.BytesValue)
+}
+BytesValue::BytesValue(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBytesValue();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.protobuf.BytesValue)
+}
+BytesValue::BytesValue(const BytesValue& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.value().size() > 0) {
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value(),
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(copy_constructor:google.protobuf.BytesValue)
+}
+
+void BytesValue::SharedCtor() {
+ value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+BytesValue::~BytesValue() {
+ // @@protoc_insertion_point(destructor:google.protobuf.BytesValue)
+ SharedDtor();
+}
+
+void BytesValue::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void BytesValue::ArenaDtor(void* object) {
+ BytesValue* _this = reinterpret_cast< BytesValue* >(object);
+ (void)_this;
+}
+void BytesValue::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void BytesValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* BytesValue::descriptor() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const BytesValue& BytesValue::default_instance() {
+ ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBytesValue();
+ return *internal_default_instance();
+}
+
+BytesValue* BytesValue::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<BytesValue>(arena);
+}
+
+void BytesValue::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.protobuf.BytesValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ _internal_metadata_.Clear();
+}
+
+bool BytesValue::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.protobuf.BytesValue)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // bytes value = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
+ input, this->mutable_value()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.protobuf.BytesValue)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.protobuf.BytesValue)
+ return false;
+#undef DO_
+}
+
+void BytesValue::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.protobuf.BytesValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes value = 1;
+ if (this->value().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
+ 1, this->value(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.protobuf.BytesValue)
+}
+
+::google::protobuf::uint8* BytesValue::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValue)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // bytes value = 1;
+ if (this->value().size() > 0) {
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
+ 1, this->value(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BytesValue)
+ return target;
+}
+
+size_t BytesValue::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.protobuf.BytesValue)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // bytes value = 1;
+ if (this->value().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
+ this->value());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void BytesValue::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BytesValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ const BytesValue* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const BytesValue>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.BytesValue)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.BytesValue)
+ MergeFrom(*source);
+ }
+}
+
+void BytesValue::MergeFrom(const BytesValue& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BytesValue)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.value().size() > 0) {
+ set_value(from.value());
+ }
+}
+
+void BytesValue::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BytesValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void BytesValue::CopyFrom(const BytesValue& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BytesValue)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool BytesValue::IsInitialized() const {
+ return true;
+}
+
+void BytesValue::Swap(BytesValue* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ BytesValue* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void BytesValue::UnsafeArenaSwap(BytesValue* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void BytesValue::InternalSwap(BytesValue* other) {
+ using std::swap;
+ value_.Swap(&other->value_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata BytesValue::GetMetadata() const {
+ protobuf_google_2fprotobuf_2fwrappers_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fprotobuf_2fwrappers_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/protobuf/wrappers.pb.h b/Firestore/Protos/cpp/google/protobuf/wrappers.pb.h
new file mode 100644
index 0000000..a43c27b
--- /dev/null
+++ b/Firestore/Protos/cpp/google/protobuf/wrappers.pb.h
@@ -0,0 +1,1503 @@
+/*
+ * 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: google/protobuf/wrappers.proto
+
+#ifndef PROTOBUF_google_2fprotobuf_2fwrappers_2eproto__INCLUDED
+#define PROTOBUF_google_2fprotobuf_2fwrappers_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>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fprotobuf_2fwrappers_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[9];
+ 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 InitDefaultsDoubleValueImpl();
+void InitDefaultsDoubleValue();
+void InitDefaultsFloatValueImpl();
+void InitDefaultsFloatValue();
+void InitDefaultsInt64ValueImpl();
+void InitDefaultsInt64Value();
+void InitDefaultsUInt64ValueImpl();
+void InitDefaultsUInt64Value();
+void InitDefaultsInt32ValueImpl();
+void InitDefaultsInt32Value();
+void InitDefaultsUInt32ValueImpl();
+void InitDefaultsUInt32Value();
+void InitDefaultsBoolValueImpl();
+void InitDefaultsBoolValue();
+void InitDefaultsStringValueImpl();
+void InitDefaultsStringValue();
+void InitDefaultsBytesValueImpl();
+void InitDefaultsBytesValue();
+inline void InitDefaults() {
+ InitDefaultsDoubleValue();
+ InitDefaultsFloatValue();
+ InitDefaultsInt64Value();
+ InitDefaultsUInt64Value();
+ InitDefaultsInt32Value();
+ InitDefaultsUInt32Value();
+ InitDefaultsBoolValue();
+ InitDefaultsStringValue();
+ InitDefaultsBytesValue();
+}
+} // namespace protobuf_google_2fprotobuf_2fwrappers_2eproto
+namespace google {
+namespace protobuf {
+class BoolValue;
+class BoolValueDefaultTypeInternal;
+extern BoolValueDefaultTypeInternal _BoolValue_default_instance_;
+class BytesValue;
+class BytesValueDefaultTypeInternal;
+extern BytesValueDefaultTypeInternal _BytesValue_default_instance_;
+class DoubleValue;
+class DoubleValueDefaultTypeInternal;
+extern DoubleValueDefaultTypeInternal _DoubleValue_default_instance_;
+class FloatValue;
+class FloatValueDefaultTypeInternal;
+extern FloatValueDefaultTypeInternal _FloatValue_default_instance_;
+class Int32Value;
+class Int32ValueDefaultTypeInternal;
+extern Int32ValueDefaultTypeInternal _Int32Value_default_instance_;
+class Int64Value;
+class Int64ValueDefaultTypeInternal;
+extern Int64ValueDefaultTypeInternal _Int64Value_default_instance_;
+class StringValue;
+class StringValueDefaultTypeInternal;
+extern StringValueDefaultTypeInternal _StringValue_default_instance_;
+class UInt32Value;
+class UInt32ValueDefaultTypeInternal;
+extern UInt32ValueDefaultTypeInternal _UInt32Value_default_instance_;
+class UInt64Value;
+class UInt64ValueDefaultTypeInternal;
+extern UInt64ValueDefaultTypeInternal _UInt64Value_default_instance_;
+} // namespace protobuf
+} // namespace google
+namespace google {
+namespace protobuf {
+
+// ===================================================================
+
+class DoubleValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DoubleValue) */ {
+ public:
+ DoubleValue();
+ virtual ~DoubleValue();
+
+ DoubleValue(const DoubleValue& from);
+
+ inline DoubleValue& operator=(const DoubleValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ DoubleValue(DoubleValue&& from) noexcept
+ : DoubleValue() {
+ *this = ::std::move(from);
+ }
+
+ inline DoubleValue& operator=(DoubleValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const DoubleValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DoubleValue* internal_default_instance() {
+ return reinterpret_cast<const DoubleValue*>(
+ &_DoubleValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void UnsafeArenaSwap(DoubleValue* other);
+ void Swap(DoubleValue* other);
+ friend void swap(DoubleValue& a, DoubleValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DoubleValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ DoubleValue* 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 DoubleValue& from);
+ void MergeFrom(const DoubleValue& 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(DoubleValue* other);
+ protected:
+ explicit DoubleValue(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // double value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ double value() const;
+ void set_value(double value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.DoubleValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ double value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsDoubleValueImpl();
+};
+// -------------------------------------------------------------------
+
+class FloatValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FloatValue) */ {
+ public:
+ FloatValue();
+ virtual ~FloatValue();
+
+ FloatValue(const FloatValue& from);
+
+ inline FloatValue& operator=(const FloatValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ FloatValue(FloatValue&& from) noexcept
+ : FloatValue() {
+ *this = ::std::move(from);
+ }
+
+ inline FloatValue& operator=(FloatValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const FloatValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const FloatValue* internal_default_instance() {
+ return reinterpret_cast<const FloatValue*>(
+ &_FloatValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void UnsafeArenaSwap(FloatValue* other);
+ void Swap(FloatValue* other);
+ friend void swap(FloatValue& a, FloatValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline FloatValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ FloatValue* 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 FloatValue& from);
+ void MergeFrom(const FloatValue& 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(FloatValue* other);
+ protected:
+ explicit FloatValue(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // float value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ float value() const;
+ void set_value(float value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.FloatValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ float value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsFloatValueImpl();
+};
+// -------------------------------------------------------------------
+
+class Int64Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Int64Value) */ {
+ public:
+ Int64Value();
+ virtual ~Int64Value();
+
+ Int64Value(const Int64Value& from);
+
+ inline Int64Value& operator=(const Int64Value& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Int64Value(Int64Value&& from) noexcept
+ : Int64Value() {
+ *this = ::std::move(from);
+ }
+
+ inline Int64Value& operator=(Int64Value&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Int64Value& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Int64Value* internal_default_instance() {
+ return reinterpret_cast<const Int64Value*>(
+ &_Int64Value_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void UnsafeArenaSwap(Int64Value* other);
+ void Swap(Int64Value* other);
+ friend void swap(Int64Value& a, Int64Value& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Int64Value* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Int64Value* 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 Int64Value& from);
+ void MergeFrom(const Int64Value& 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(Int64Value* other);
+ protected:
+ explicit Int64Value(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // int64 value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ ::google::protobuf::int64 value() const;
+ void set_value(::google::protobuf::int64 value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.Int64Value)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::int64 value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt64ValueImpl();
+};
+// -------------------------------------------------------------------
+
+class UInt64Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UInt64Value) */ {
+ public:
+ UInt64Value();
+ virtual ~UInt64Value();
+
+ UInt64Value(const UInt64Value& from);
+
+ inline UInt64Value& operator=(const UInt64Value& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ UInt64Value(UInt64Value&& from) noexcept
+ : UInt64Value() {
+ *this = ::std::move(from);
+ }
+
+ inline UInt64Value& operator=(UInt64Value&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const UInt64Value& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const UInt64Value* internal_default_instance() {
+ return reinterpret_cast<const UInt64Value*>(
+ &_UInt64Value_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 3;
+
+ void UnsafeArenaSwap(UInt64Value* other);
+ void Swap(UInt64Value* other);
+ friend void swap(UInt64Value& a, UInt64Value& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline UInt64Value* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ UInt64Value* 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 UInt64Value& from);
+ void MergeFrom(const UInt64Value& 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(UInt64Value* other);
+ protected:
+ explicit UInt64Value(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // uint64 value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ ::google::protobuf::uint64 value() const;
+ void set_value(::google::protobuf::uint64 value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.UInt64Value)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::uint64 value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt64ValueImpl();
+};
+// -------------------------------------------------------------------
+
+class Int32Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Int32Value) */ {
+ public:
+ Int32Value();
+ virtual ~Int32Value();
+
+ Int32Value(const Int32Value& from);
+
+ inline Int32Value& operator=(const Int32Value& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Int32Value(Int32Value&& from) noexcept
+ : Int32Value() {
+ *this = ::std::move(from);
+ }
+
+ inline Int32Value& operator=(Int32Value&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Int32Value& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Int32Value* internal_default_instance() {
+ return reinterpret_cast<const Int32Value*>(
+ &_Int32Value_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 4;
+
+ void UnsafeArenaSwap(Int32Value* other);
+ void Swap(Int32Value* other);
+ friend void swap(Int32Value& a, Int32Value& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Int32Value* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Int32Value* 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 Int32Value& from);
+ void MergeFrom(const Int32Value& 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(Int32Value* other);
+ protected:
+ explicit Int32Value(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // int32 value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ ::google::protobuf::int32 value() const;
+ void set_value(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.Int32Value)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::int32 value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsInt32ValueImpl();
+};
+// -------------------------------------------------------------------
+
+class UInt32Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UInt32Value) */ {
+ public:
+ UInt32Value();
+ virtual ~UInt32Value();
+
+ UInt32Value(const UInt32Value& from);
+
+ inline UInt32Value& operator=(const UInt32Value& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ UInt32Value(UInt32Value&& from) noexcept
+ : UInt32Value() {
+ *this = ::std::move(from);
+ }
+
+ inline UInt32Value& operator=(UInt32Value&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const UInt32Value& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const UInt32Value* internal_default_instance() {
+ return reinterpret_cast<const UInt32Value*>(
+ &_UInt32Value_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 5;
+
+ void UnsafeArenaSwap(UInt32Value* other);
+ void Swap(UInt32Value* other);
+ friend void swap(UInt32Value& a, UInt32Value& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline UInt32Value* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ UInt32Value* 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 UInt32Value& from);
+ void MergeFrom(const UInt32Value& 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(UInt32Value* other);
+ protected:
+ explicit UInt32Value(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // uint32 value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ ::google::protobuf::uint32 value() const;
+ void set_value(::google::protobuf::uint32 value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.UInt32Value)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::uint32 value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsUInt32ValueImpl();
+};
+// -------------------------------------------------------------------
+
+class BoolValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.BoolValue) */ {
+ public:
+ BoolValue();
+ virtual ~BoolValue();
+
+ BoolValue(const BoolValue& from);
+
+ inline BoolValue& operator=(const BoolValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ BoolValue(BoolValue&& from) noexcept
+ : BoolValue() {
+ *this = ::std::move(from);
+ }
+
+ inline BoolValue& operator=(BoolValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const BoolValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BoolValue* internal_default_instance() {
+ return reinterpret_cast<const BoolValue*>(
+ &_BoolValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 6;
+
+ void UnsafeArenaSwap(BoolValue* other);
+ void Swap(BoolValue* other);
+ friend void swap(BoolValue& a, BoolValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline BoolValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ BoolValue* 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 BoolValue& from);
+ void MergeFrom(const BoolValue& 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(BoolValue* other);
+ protected:
+ explicit BoolValue(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // bool value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ bool value() const;
+ void set_value(bool value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.BoolValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ bool value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBoolValueImpl();
+};
+// -------------------------------------------------------------------
+
+class StringValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.StringValue) */ {
+ public:
+ StringValue();
+ virtual ~StringValue();
+
+ StringValue(const StringValue& from);
+
+ inline StringValue& operator=(const StringValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ StringValue(StringValue&& from) noexcept
+ : StringValue() {
+ *this = ::std::move(from);
+ }
+
+ inline StringValue& operator=(StringValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const StringValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const StringValue* internal_default_instance() {
+ return reinterpret_cast<const StringValue*>(
+ &_StringValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 7;
+
+ void UnsafeArenaSwap(StringValue* other);
+ void Swap(StringValue* other);
+ friend void swap(StringValue& a, StringValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline StringValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ StringValue* 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 StringValue& from);
+ void MergeFrom(const StringValue& 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(StringValue* other);
+ protected:
+ explicit StringValue(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // string value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ const ::std::string& value() const;
+ void set_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_value(::std::string&& value);
+ #endif
+ void set_value(const char* value);
+ void set_value(const char* value, size_t size);
+ ::std::string* mutable_value();
+ ::std::string* release_value();
+ void set_allocated_value(::std::string* value);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_value();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_value(
+ ::std::string* value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.StringValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::internal::ArenaStringPtr value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsStringValueImpl();
+};
+// -------------------------------------------------------------------
+
+class BytesValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.BytesValue) */ {
+ public:
+ BytesValue();
+ virtual ~BytesValue();
+
+ BytesValue(const BytesValue& from);
+
+ inline BytesValue& operator=(const BytesValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ BytesValue(BytesValue&& from) noexcept
+ : BytesValue() {
+ *this = ::std::move(from);
+ }
+
+ inline BytesValue& operator=(BytesValue&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const BytesValue& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const BytesValue* internal_default_instance() {
+ return reinterpret_cast<const BytesValue*>(
+ &_BytesValue_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 8;
+
+ void UnsafeArenaSwap(BytesValue* other);
+ void Swap(BytesValue* other);
+ friend void swap(BytesValue& a, BytesValue& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline BytesValue* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ BytesValue* 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 BytesValue& from);
+ void MergeFrom(const BytesValue& 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(BytesValue* other);
+ protected:
+ explicit BytesValue(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // bytes value = 1;
+ void clear_value();
+ static const int kValueFieldNumber = 1;
+ const ::std::string& value() const;
+ void set_value(const ::std::string& value);
+ #if LANG_CXX11
+ void set_value(::std::string&& value);
+ #endif
+ void set_value(const char* value);
+ void set_value(const void* value, size_t size);
+ ::std::string* mutable_value();
+ ::std::string* release_value();
+ void set_allocated_value(::std::string* value);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_value();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_value(
+ ::std::string* value);
+
+ // @@protoc_insertion_point(class_scope:google.protobuf.BytesValue)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::internal::ArenaStringPtr value_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct;
+ friend void ::protobuf_google_2fprotobuf_2fwrappers_2eproto::InitDefaultsBytesValueImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// DoubleValue
+
+// double value = 1;
+inline void DoubleValue::clear_value() {
+ value_ = 0;
+}
+inline double DoubleValue::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.DoubleValue.value)
+ return value_;
+}
+inline void DoubleValue::set_value(double value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.DoubleValue.value)
+}
+
+// -------------------------------------------------------------------
+
+// FloatValue
+
+// float value = 1;
+inline void FloatValue::clear_value() {
+ value_ = 0;
+}
+inline float FloatValue::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.FloatValue.value)
+ return value_;
+}
+inline void FloatValue::set_value(float value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.FloatValue.value)
+}
+
+// -------------------------------------------------------------------
+
+// Int64Value
+
+// int64 value = 1;
+inline void Int64Value::clear_value() {
+ value_ = GOOGLE_LONGLONG(0);
+}
+inline ::google::protobuf::int64 Int64Value::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Int64Value.value)
+ return value_;
+}
+inline void Int64Value::set_value(::google::protobuf::int64 value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Int64Value.value)
+}
+
+// -------------------------------------------------------------------
+
+// UInt64Value
+
+// uint64 value = 1;
+inline void UInt64Value::clear_value() {
+ value_ = GOOGLE_ULONGLONG(0);
+}
+inline ::google::protobuf::uint64 UInt64Value::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.UInt64Value.value)
+ return value_;
+}
+inline void UInt64Value::set_value(::google::protobuf::uint64 value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.UInt64Value.value)
+}
+
+// -------------------------------------------------------------------
+
+// Int32Value
+
+// int32 value = 1;
+inline void Int32Value::clear_value() {
+ value_ = 0;
+}
+inline ::google::protobuf::int32 Int32Value::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.Int32Value.value)
+ return value_;
+}
+inline void Int32Value::set_value(::google::protobuf::int32 value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.Int32Value.value)
+}
+
+// -------------------------------------------------------------------
+
+// UInt32Value
+
+// uint32 value = 1;
+inline void UInt32Value::clear_value() {
+ value_ = 0u;
+}
+inline ::google::protobuf::uint32 UInt32Value::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.UInt32Value.value)
+ return value_;
+}
+inline void UInt32Value::set_value(::google::protobuf::uint32 value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.UInt32Value.value)
+}
+
+// -------------------------------------------------------------------
+
+// BoolValue
+
+// bool value = 1;
+inline void BoolValue::clear_value() {
+ value_ = false;
+}
+inline bool BoolValue::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.BoolValue.value)
+ return value_;
+}
+inline void BoolValue::set_value(bool value) {
+
+ value_ = value;
+ // @@protoc_insertion_point(field_set:google.protobuf.BoolValue.value)
+}
+
+// -------------------------------------------------------------------
+
+// StringValue
+
+// string value = 1;
+inline void StringValue::clear_value() {
+ value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& StringValue::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.StringValue.value)
+ return value_.Get();
+}
+inline void StringValue::set_value(const ::std::string& value) {
+
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value)
+}
+#if LANG_CXX11
+inline void StringValue::set_value(::std::string&& value) {
+
+ value_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.protobuf.StringValue.value)
+}
+#endif
+inline void StringValue::set_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.protobuf.StringValue.value)
+}
+inline void StringValue::set_value(const char* value,
+ size_t size) {
+
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.StringValue.value)
+}
+inline ::std::string* StringValue::mutable_value() {
+
+ // @@protoc_insertion_point(field_mutable:google.protobuf.StringValue.value)
+ return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* StringValue::release_value() {
+ // @@protoc_insertion_point(field_release:google.protobuf.StringValue.value)
+
+ return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void StringValue::set_allocated_value(::std::string* value) {
+ if (value != NULL) {
+
+ } else {
+
+ }
+ value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.StringValue.value)
+}
+inline ::std::string* StringValue::unsafe_arena_release_value() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.StringValue.value)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void StringValue::unsafe_arena_set_allocated_value(
+ ::std::string* value) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (value != NULL) {
+
+ } else {
+
+ }
+ value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.StringValue.value)
+}
+
+// -------------------------------------------------------------------
+
+// BytesValue
+
+// bytes value = 1;
+inline void BytesValue::clear_value() {
+ value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& BytesValue::value() const {
+ // @@protoc_insertion_point(field_get:google.protobuf.BytesValue.value)
+ return value_.Get();
+}
+inline void BytesValue::set_value(const ::std::string& value) {
+
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value)
+}
+#if LANG_CXX11
+inline void BytesValue::set_value(::std::string&& value) {
+
+ value_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.protobuf.BytesValue.value)
+}
+#endif
+inline void BytesValue::set_value(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.protobuf.BytesValue.value)
+}
+inline void BytesValue::set_value(const void* value,
+ size_t size) {
+
+ value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.protobuf.BytesValue.value)
+}
+inline ::std::string* BytesValue::mutable_value() {
+
+ // @@protoc_insertion_point(field_mutable:google.protobuf.BytesValue.value)
+ return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* BytesValue::release_value() {
+ // @@protoc_insertion_point(field_release:google.protobuf.BytesValue.value)
+
+ return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void BytesValue::set_allocated_value(::std::string* value) {
+ if (value != NULL) {
+
+ } else {
+
+ }
+ value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.BytesValue.value)
+}
+inline ::std::string* BytesValue::unsafe_arena_release_value() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.BytesValue.value)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void BytesValue::unsafe_arena_set_allocated_value(
+ ::std::string* value) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (value != NULL) {
+
+ } else {
+
+ }
+ value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.BytesValue.value)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace protobuf
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fprotobuf_2fwrappers_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/rpc/status.pb.cc b/Firestore/Protos/cpp/google/rpc/status.pb.cc
new file mode 100644
index 0000000..d0213ae
--- /dev/null
+++ b/Firestore/Protos/cpp/google/rpc/status.pb.cc
@@ -0,0 +1,485 @@
+/*
+ * 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: google/rpc/status.proto
+
+#include "google/rpc/status.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace rpc {
+class StatusDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Status>
+ _instance;
+} _Status_default_instance_;
+} // namespace rpc
+} // namespace google
+namespace protobuf_google_2frpc_2fstatus_2eproto {
+void InitDefaultsStatusImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fprotobuf_2fany_2eproto::InitDefaultsAny();
+ {
+ void* ptr = &::google::rpc::_Status_default_instance_;
+ new (ptr) ::google::rpc::Status();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::rpc::Status::InitAsDefaultInstance();
+}
+
+void InitDefaultsStatus() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStatusImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, code_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, message_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::rpc::Status, details_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::rpc::Status)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::rpc::_Status_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/rpc/status.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\027google/rpc/status.proto\022\ngoogle.rpc\032\031g"
+ "oogle/protobuf/any.proto\"N\n\006Status\022\014\n\004co"
+ "de\030\001 \001(\005\022\017\n\007message\030\002 \001(\t\022%\n\007details\030\003 \003"
+ "(\0132\024.google.protobuf.AnyB^\n\016com.google.r"
+ "pcB\013StatusProtoP\001Z7google.golang.org/gen"
+ "proto/googleapis/rpc/status;status\242\002\003RPC"
+ "b\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 248);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/rpc/status.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2frpc_2fstatus_2eproto
+namespace google {
+namespace rpc {
+
+// ===================================================================
+
+void Status::InitAsDefaultInstance() {
+}
+void Status::clear_details() {
+ details_.Clear();
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Status::kCodeFieldNumber;
+const int Status::kMessageFieldNumber;
+const int Status::kDetailsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Status::Status()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatus();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.rpc.Status)
+}
+Status::Status(const Status& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ details_(from.details_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.message().size() > 0) {
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
+ }
+ code_ = from.code_;
+ // @@protoc_insertion_point(copy_constructor:google.rpc.Status)
+}
+
+void Status::SharedCtor() {
+ message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ code_ = 0;
+ _cached_size_ = 0;
+}
+
+Status::~Status() {
+ // @@protoc_insertion_point(destructor:google.rpc.Status)
+ SharedDtor();
+}
+
+void Status::SharedDtor() {
+ message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void Status::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Status::descriptor() {
+ ::protobuf_google_2frpc_2fstatus_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2frpc_2fstatus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Status& Status::default_instance() {
+ ::protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatus();
+ return *internal_default_instance();
+}
+
+Status* Status::New(::google::protobuf::Arena* arena) const {
+ Status* n = new Status;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void Status::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.rpc.Status)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ details_.Clear();
+ message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ code_ = 0;
+ _internal_metadata_.Clear();
+}
+
+bool Status::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.rpc.Status)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // int32 code = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
+ input, &code_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string message = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_message()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.rpc.Status.message"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.protobuf.Any details = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_details()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.rpc.Status)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.rpc.Status)
+ return false;
+#undef DO_
+}
+
+void Status::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.rpc.Status)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 code = 1;
+ if (this->code() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->code(), output);
+ }
+
+ // string message = 2;
+ if (this->message().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.rpc.Status.message");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->message(), output);
+ }
+
+ // repeated .google.protobuf.Any details = 3;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->details_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 3, this->details(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.rpc.Status)
+}
+
+::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.rpc.Status)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // int32 code = 1;
+ if (this->code() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->code(), target);
+ }
+
+ // string message = 2;
+ if (this->message().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->message().data(), static_cast<int>(this->message().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.rpc.Status.message");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->message(), target);
+ }
+
+ // repeated .google.protobuf.Any details = 3;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->details_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 3, this->details(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.rpc.Status)
+ return target;
+}
+
+size_t Status::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.rpc.Status)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.protobuf.Any details = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->details_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->details(static_cast<int>(i)));
+ }
+ }
+
+ // string message = 2;
+ if (this->message().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->message());
+ }
+
+ // int32 code = 1;
+ if (this->code() != 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
+ this->code());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Status::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.rpc.Status)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Status* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Status>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.rpc.Status)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.rpc.Status)
+ MergeFrom(*source);
+ }
+}
+
+void Status::MergeFrom(const Status& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.rpc.Status)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ details_.MergeFrom(from.details_);
+ if (from.message().size() > 0) {
+
+ message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
+ }
+ if (from.code() != 0) {
+ set_code(from.code());
+ }
+}
+
+void Status::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.rpc.Status)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Status::CopyFrom(const Status& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.rpc.Status)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Status::IsInitialized() const {
+ return true;
+}
+
+void Status::Swap(Status* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void Status::InternalSwap(Status* other) {
+ using std::swap;
+ details_.InternalSwap(&other->details_);
+ message_.Swap(&other->message_);
+ swap(code_, other->code_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Status::GetMetadata() const {
+ protobuf_google_2frpc_2fstatus_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2frpc_2fstatus_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace rpc
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/rpc/status.pb.h b/Firestore/Protos/cpp/google/rpc/status.pb.h
new file mode 100644
index 0000000..7a54c9f
--- /dev/null
+++ b/Firestore/Protos/cpp/google/rpc/status.pb.h
@@ -0,0 +1,321 @@
+/*
+ * 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: google/rpc/status.proto
+
+#ifndef PROTOBUF_google_2frpc_2fstatus_2eproto__INCLUDED
+#define PROTOBUF_google_2frpc_2fstatus_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/protobuf/any.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2frpc_2fstatus_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[1];
+ 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 InitDefaultsStatusImpl();
+void InitDefaultsStatus();
+inline void InitDefaults() {
+ InitDefaultsStatus();
+}
+} // namespace protobuf_google_2frpc_2fstatus_2eproto
+namespace google {
+namespace rpc {
+class Status;
+class StatusDefaultTypeInternal;
+extern StatusDefaultTypeInternal _Status_default_instance_;
+} // namespace rpc
+} // namespace google
+namespace google {
+namespace rpc {
+
+// ===================================================================
+
+class Status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ {
+ public:
+ Status();
+ virtual ~Status();
+
+ Status(const Status& from);
+
+ inline Status& operator=(const Status& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Status(Status&& from) noexcept
+ : Status() {
+ *this = ::std::move(from);
+ }
+
+ inline Status& operator=(Status&& 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 Status& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Status* internal_default_instance() {
+ return reinterpret_cast<const Status*>(
+ &_Status_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(Status* other);
+ friend void swap(Status& a, Status& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Status* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Status* 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 Status& from);
+ void MergeFrom(const Status& 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(Status* 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 -------------------------------------------------------
+
+ // repeated .google.protobuf.Any details = 3;
+ int details_size() const;
+ void clear_details();
+ static const int kDetailsFieldNumber = 3;
+ const ::google::protobuf::Any& details(int index) const;
+ ::google::protobuf::Any* mutable_details(int index);
+ ::google::protobuf::Any* add_details();
+ ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >*
+ mutable_details();
+ const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >&
+ details() const;
+
+ // string message = 2;
+ void clear_message();
+ static const int kMessageFieldNumber = 2;
+ const ::std::string& message() const;
+ void set_message(const ::std::string& value);
+ #if LANG_CXX11
+ void set_message(::std::string&& value);
+ #endif
+ void set_message(const char* value);
+ void set_message(const char* value, size_t size);
+ ::std::string* mutable_message();
+ ::std::string* release_message();
+ void set_allocated_message(::std::string* message);
+
+ // int32 code = 1;
+ void clear_code();
+ static const int kCodeFieldNumber = 1;
+ ::google::protobuf::int32 code() const;
+ void set_code(::google::protobuf::int32 value);
+
+ // @@protoc_insertion_point(class_scope:google.rpc.Status)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > details_;
+ ::google::protobuf::internal::ArenaStringPtr message_;
+ ::google::protobuf::int32 code_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2frpc_2fstatus_2eproto::TableStruct;
+ friend void ::protobuf_google_2frpc_2fstatus_2eproto::InitDefaultsStatusImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Status
+
+// int32 code = 1;
+inline void Status::clear_code() {
+ code_ = 0;
+}
+inline ::google::protobuf::int32 Status::code() const {
+ // @@protoc_insertion_point(field_get:google.rpc.Status.code)
+ return code_;
+}
+inline void Status::set_code(::google::protobuf::int32 value) {
+
+ code_ = value;
+ // @@protoc_insertion_point(field_set:google.rpc.Status.code)
+}
+
+// string message = 2;
+inline void Status::clear_message() {
+ message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline const ::std::string& Status::message() const {
+ // @@protoc_insertion_point(field_get:google.rpc.Status.message)
+ return message_.GetNoArena();
+}
+inline void Status::set_message(const ::std::string& value) {
+
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:google.rpc.Status.message)
+}
+#if LANG_CXX11
+inline void Status::set_message(::std::string&& value) {
+
+ message_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:google.rpc.Status.message)
+}
+#endif
+inline void Status::set_message(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:google.rpc.Status.message)
+}
+inline void Status::set_message(const char* value, size_t size) {
+
+ message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:google.rpc.Status.message)
+}
+inline ::std::string* Status::mutable_message() {
+
+ // @@protoc_insertion_point(field_mutable:google.rpc.Status.message)
+ return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline ::std::string* Status::release_message() {
+ // @@protoc_insertion_point(field_release:google.rpc.Status.message)
+
+ return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+inline void Status::set_allocated_message(::std::string* message) {
+ if (message != NULL) {
+
+ } else {
+
+ }
+ message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message);
+ // @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message)
+}
+
+// repeated .google.protobuf.Any details = 3;
+inline int Status::details_size() const {
+ return details_.size();
+}
+inline const ::google::protobuf::Any& Status::details(int index) const {
+ // @@protoc_insertion_point(field_get:google.rpc.Status.details)
+ return details_.Get(index);
+}
+inline ::google::protobuf::Any* Status::mutable_details(int index) {
+ // @@protoc_insertion_point(field_mutable:google.rpc.Status.details)
+ return details_.Mutable(index);
+}
+inline ::google::protobuf::Any* Status::add_details() {
+ // @@protoc_insertion_point(field_add:google.rpc.Status.details)
+ return details_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >*
+Status::mutable_details() {
+ // @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details)
+ return &details_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >&
+Status::details() const {
+ // @@protoc_insertion_point(field_list:google.rpc.Status.details)
+ return details_;
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace rpc
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2frpc_2fstatus_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/type/latlng.pb.cc b/Firestore/Protos/cpp/google/type/latlng.pb.cc
new file mode 100644
index 0000000..f60eb6c
--- /dev/null
+++ b/Firestore/Protos/cpp/google/type/latlng.pb.cc
@@ -0,0 +1,416 @@
+/*
+ * 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: google/type/latlng.proto
+
+#include "google/type/latlng.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace type {
+class LatLngDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<LatLng>
+ _instance;
+} _LatLng_default_instance_;
+} // namespace type
+} // namespace google
+namespace protobuf_google_2ftype_2flatlng_2eproto {
+void InitDefaultsLatLngImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::type::_LatLng_default_instance_;
+ new (ptr) ::google::type::LatLng();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::type::LatLng::InitAsDefaultInstance();
+}
+
+void InitDefaultsLatLng() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLatLngImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[1];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::type::LatLng, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::type::LatLng, latitude_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::type::LatLng, longitude_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::type::LatLng)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::type::_LatLng_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/type/latlng.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\030google/type/latlng.proto\022\013google.type\""
+ "-\n\006LatLng\022\020\n\010latitude\030\001 \001(\001\022\021\n\tlongitude"
+ "\030\002 \001(\001B`\n\017com.google.typeB\013LatLngProtoP\001"
+ "Z8google.golang.org/genproto/googleapis/"
+ "type/latlng;latlng\242\002\003GTPb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 192);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/type/latlng.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2ftype_2flatlng_2eproto
+namespace google {
+namespace type {
+
+// ===================================================================
+
+void LatLng::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int LatLng::kLatitudeFieldNumber;
+const int LatLng::kLongitudeFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+LatLng::LatLng()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2ftype_2flatlng_2eproto::InitDefaultsLatLng();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.type.LatLng)
+}
+LatLng::LatLng(const LatLng& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&latitude_, &from.latitude_,
+ static_cast<size_t>(reinterpret_cast<char*>(&longitude_) -
+ reinterpret_cast<char*>(&latitude_)) + sizeof(longitude_));
+ // @@protoc_insertion_point(copy_constructor:google.type.LatLng)
+}
+
+void LatLng::SharedCtor() {
+ ::memset(&latitude_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&longitude_) -
+ reinterpret_cast<char*>(&latitude_)) + sizeof(longitude_));
+ _cached_size_ = 0;
+}
+
+LatLng::~LatLng() {
+ // @@protoc_insertion_point(destructor:google.type.LatLng)
+ SharedDtor();
+}
+
+void LatLng::SharedDtor() {
+}
+
+void LatLng::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* LatLng::descriptor() {
+ ::protobuf_google_2ftype_2flatlng_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ftype_2flatlng_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const LatLng& LatLng::default_instance() {
+ ::protobuf_google_2ftype_2flatlng_2eproto::InitDefaultsLatLng();
+ return *internal_default_instance();
+}
+
+LatLng* LatLng::New(::google::protobuf::Arena* arena) const {
+ LatLng* n = new LatLng;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void LatLng::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.type.LatLng)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ ::memset(&latitude_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&longitude_) -
+ reinterpret_cast<char*>(&latitude_)) + sizeof(longitude_));
+ _internal_metadata_.Clear();
+}
+
+bool LatLng::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.type.LatLng)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // double latitude = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
+ input, &latitude_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // double longitude = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
+
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
+ input, &longitude_)));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.type.LatLng)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.type.LatLng)
+ return false;
+#undef DO_
+}
+
+void LatLng::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.type.LatLng)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // double latitude = 1;
+ if (this->latitude() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->latitude(), output);
+ }
+
+ // double longitude = 2;
+ if (this->longitude() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->longitude(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.type.LatLng)
+}
+
+::google::protobuf::uint8* LatLng::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.type.LatLng)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // double latitude = 1;
+ if (this->latitude() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->latitude(), target);
+ }
+
+ // double longitude = 2;
+ if (this->longitude() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->longitude(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.type.LatLng)
+ return target;
+}
+
+size_t LatLng::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.type.LatLng)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // double latitude = 1;
+ if (this->latitude() != 0) {
+ total_size += 1 + 8;
+ }
+
+ // double longitude = 2;
+ if (this->longitude() != 0) {
+ total_size += 1 + 8;
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void LatLng::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.type.LatLng)
+ GOOGLE_DCHECK_NE(&from, this);
+ const LatLng* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const LatLng>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.type.LatLng)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.type.LatLng)
+ MergeFrom(*source);
+ }
+}
+
+void LatLng::MergeFrom(const LatLng& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.type.LatLng)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.latitude() != 0) {
+ set_latitude(from.latitude());
+ }
+ if (from.longitude() != 0) {
+ set_longitude(from.longitude());
+ }
+}
+
+void LatLng::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.type.LatLng)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void LatLng::CopyFrom(const LatLng& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.type.LatLng)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LatLng::IsInitialized() const {
+ return true;
+}
+
+void LatLng::Swap(LatLng* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void LatLng::InternalSwap(LatLng* other) {
+ using std::swap;
+ swap(latitude_, other->latitude_);
+ swap(longitude_, other->longitude_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata LatLng::GetMetadata() const {
+ protobuf_google_2ftype_2flatlng_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2ftype_2flatlng_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace type
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/type/latlng.pb.h b/Firestore/Protos/cpp/google/type/latlng.pb.h
new file mode 100644
index 0000000..4ea19b1
--- /dev/null
+++ b/Firestore/Protos/cpp/google/type/latlng.pb.h
@@ -0,0 +1,233 @@
+/*
+ * 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: google/type/latlng.proto
+
+#ifndef PROTOBUF_google_2ftype_2flatlng_2eproto__INCLUDED
+#define PROTOBUF_google_2ftype_2flatlng_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>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2ftype_2flatlng_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[1];
+ 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 InitDefaultsLatLngImpl();
+void InitDefaultsLatLng();
+inline void InitDefaults() {
+ InitDefaultsLatLng();
+}
+} // namespace protobuf_google_2ftype_2flatlng_2eproto
+namespace google {
+namespace type {
+class LatLng;
+class LatLngDefaultTypeInternal;
+extern LatLngDefaultTypeInternal _LatLng_default_instance_;
+} // namespace type
+} // namespace google
+namespace google {
+namespace type {
+
+// ===================================================================
+
+class LatLng : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.type.LatLng) */ {
+ public:
+ LatLng();
+ virtual ~LatLng();
+
+ LatLng(const LatLng& from);
+
+ inline LatLng& operator=(const LatLng& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ LatLng(LatLng&& from) noexcept
+ : LatLng() {
+ *this = ::std::move(from);
+ }
+
+ inline LatLng& operator=(LatLng&& 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 LatLng& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LatLng* internal_default_instance() {
+ return reinterpret_cast<const LatLng*>(
+ &_LatLng_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void Swap(LatLng* other);
+ friend void swap(LatLng& a, LatLng& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LatLng* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ LatLng* 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 LatLng& from);
+ void MergeFrom(const LatLng& 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(LatLng* 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 -------------------------------------------------------
+
+ // double latitude = 1;
+ void clear_latitude();
+ static const int kLatitudeFieldNumber = 1;
+ double latitude() const;
+ void set_latitude(double value);
+
+ // double longitude = 2;
+ void clear_longitude();
+ static const int kLongitudeFieldNumber = 2;
+ double longitude() const;
+ void set_longitude(double value);
+
+ // @@protoc_insertion_point(class_scope:google.type.LatLng)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ double latitude_;
+ double longitude_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2ftype_2flatlng_2eproto::TableStruct;
+ friend void ::protobuf_google_2ftype_2flatlng_2eproto::InitDefaultsLatLngImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// LatLng
+
+// double latitude = 1;
+inline void LatLng::clear_latitude() {
+ latitude_ = 0;
+}
+inline double LatLng::latitude() const {
+ // @@protoc_insertion_point(field_get:google.type.LatLng.latitude)
+ return latitude_;
+}
+inline void LatLng::set_latitude(double value) {
+
+ latitude_ = value;
+ // @@protoc_insertion_point(field_set:google.type.LatLng.latitude)
+}
+
+// double longitude = 2;
+inline void LatLng::clear_longitude() {
+ longitude_ = 0;
+}
+inline double LatLng::longitude() const {
+ // @@protoc_insertion_point(field_get:google.type.LatLng.longitude)
+ return longitude_;
+}
+inline void LatLng::set_longitude(double value) {
+
+ longitude_ = value;
+ // @@protoc_insertion_point(field_set:google.type.LatLng.longitude)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace type
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2ftype_2flatlng_2eproto__INCLUDED