create
This commit is contained in:
225
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/bundle.nanopb.cc
generated
Normal file
225
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/bundle.nanopb.cc
generated
Normal file
@@ -0,0 +1,225 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb constant definitions */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#include "bundle.nanopb.h"
|
||||
|
||||
#include "Firestore/core/src/nanopb/pretty_printing.h"
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
using nanopb::PrintEnumField;
|
||||
using nanopb::PrintHeader;
|
||||
using nanopb::PrintMessageField;
|
||||
using nanopb::PrintPrimitiveField;
|
||||
using nanopb::PrintTail;
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
const pb_field_t firestore_BundledQuery_fields[4] = {
|
||||
PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, firestore_BundledQuery, parent, parent, 0),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(query_type, 2, MESSAGE , ONEOF, STATIC , OTHER, firestore_BundledQuery, structured_query, parent, &google_firestore_v1_StructuredQuery_fields),
|
||||
PB_FIELD( 3, UENUM , SINGULAR, STATIC , OTHER, firestore_BundledQuery, limit_type, structured_query, 0),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_NamedQuery_fields[4] = {
|
||||
PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, firestore_NamedQuery, name, name, 0),
|
||||
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_NamedQuery, bundled_query, name, &firestore_BundledQuery_fields),
|
||||
PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, firestore_NamedQuery, read_time, bundled_query, &google_protobuf_Timestamp_fields),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_BundledDocumentMetadata_fields[5] = {
|
||||
PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, firestore_BundledDocumentMetadata, name, name, 0),
|
||||
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_BundledDocumentMetadata, read_time, name, &google_protobuf_Timestamp_fields),
|
||||
PB_FIELD( 3, BOOL , SINGULAR, STATIC , OTHER, firestore_BundledDocumentMetadata, exists, read_time, 0),
|
||||
PB_FIELD( 4, BYTES , REPEATED, POINTER , OTHER, firestore_BundledDocumentMetadata, queries, exists, 0),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_BundleMetadata_fields[6] = {
|
||||
PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, firestore_BundleMetadata, id, id, 0),
|
||||
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_BundleMetadata, create_time, id, &google_protobuf_Timestamp_fields),
|
||||
PB_FIELD( 3, UINT32 , SINGULAR, STATIC , OTHER, firestore_BundleMetadata, version, create_time, 0),
|
||||
PB_FIELD( 4, UINT32 , SINGULAR, STATIC , OTHER, firestore_BundleMetadata, total_documents, version, 0),
|
||||
PB_FIELD( 5, UINT64 , SINGULAR, STATIC , OTHER, firestore_BundleMetadata, total_bytes, total_documents, 0),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_BundleElement_fields[5] = {
|
||||
PB_ANONYMOUS_ONEOF_FIELD(element_type, 1, MESSAGE , ONEOF, STATIC , FIRST, firestore_BundleElement, metadata, metadata, &firestore_BundleMetadata_fields),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(element_type, 2, MESSAGE , ONEOF, STATIC , UNION, firestore_BundleElement, named_query, named_query, &firestore_NamedQuery_fields),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(element_type, 3, MESSAGE , ONEOF, STATIC , UNION, firestore_BundleElement, document_metadata, document_metadata, &firestore_BundledDocumentMetadata_fields),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(element_type, 4, MESSAGE , ONEOF, STATIC , UNION, firestore_BundleElement, document, document, &google_firestore_v1_Document_fields),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* Check that field information fits in pb_field_t */
|
||||
#if !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
|
||||
* field descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_BundledQuery, structured_query) < 65536 && pb_membersize(firestore_NamedQuery, bundled_query) < 65536 && pb_membersize(firestore_NamedQuery, read_time) < 65536 && pb_membersize(firestore_BundledDocumentMetadata, read_time) < 65536 && pb_membersize(firestore_BundleMetadata, create_time) < 65536 && pb_membersize(firestore_BundleElement, metadata) < 65536 && pb_membersize(firestore_BundleElement, named_query) < 65536 && pb_membersize(firestore_BundleElement, document_metadata) < 65536 && pb_membersize(firestore_BundleElement, document) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firestore_BundledQuery_firestore_NamedQuery_firestore_BundledDocumentMetadata_firestore_BundleMetadata_firestore_BundleElement)
|
||||
#endif
|
||||
|
||||
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in the default
|
||||
* 8 bit descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_BundledQuery, structured_query) < 256 && pb_membersize(firestore_NamedQuery, bundled_query) < 256 && pb_membersize(firestore_NamedQuery, read_time) < 256 && pb_membersize(firestore_BundledDocumentMetadata, read_time) < 256 && pb_membersize(firestore_BundleMetadata, create_time) < 256 && pb_membersize(firestore_BundleElement, metadata) < 256 && pb_membersize(firestore_BundleElement, named_query) < 256 && pb_membersize(firestore_BundleElement, document_metadata) < 256 && pb_membersize(firestore_BundleElement, document) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firestore_BundledQuery_firestore_NamedQuery_firestore_BundledDocumentMetadata_firestore_BundleMetadata_firestore_BundleElement)
|
||||
#endif
|
||||
|
||||
|
||||
const char* EnumToString(
|
||||
firestore_BundledQuery_LimitType value) {
|
||||
switch (value) {
|
||||
case firestore_BundledQuery_LimitType_FIRST:
|
||||
return "FIRST";
|
||||
case firestore_BundledQuery_LimitType_LAST:
|
||||
return "LAST";
|
||||
}
|
||||
return "<unknown enum value>";
|
||||
}
|
||||
|
||||
std::string firestore_BundledQuery::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "BundledQuery", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("parent: ",
|
||||
parent, indent + 1, false);
|
||||
switch (which_query_type) {
|
||||
case firestore_BundledQuery_structured_query_tag:
|
||||
tostring_result += PrintMessageField("structured_query ",
|
||||
structured_query, indent + 1, true);
|
||||
break;
|
||||
}
|
||||
tostring_result += PrintEnumField("limit_type: ",
|
||||
limit_type, indent + 1, false);
|
||||
|
||||
bool is_root = indent == 0;
|
||||
if (!tostring_result.empty() || is_root) {
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
std::string firestore_NamedQuery::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "NamedQuery", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("name: ", name, indent + 1, false);
|
||||
tostring_result += PrintMessageField("bundled_query ",
|
||||
bundled_query, indent + 1, false);
|
||||
tostring_result += PrintMessageField("read_time ",
|
||||
read_time, indent + 1, false);
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
std::string firestore_BundledDocumentMetadata::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "BundledDocumentMetadata", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("name: ", name, indent + 1, false);
|
||||
tostring_result += PrintMessageField("read_time ",
|
||||
read_time, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("exists: ",
|
||||
exists, indent + 1, false);
|
||||
for (pb_size_t i = 0; i != queries_count; ++i) {
|
||||
tostring_result += PrintPrimitiveField("queries: ",
|
||||
queries[i], indent + 1, true);
|
||||
}
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
std::string firestore_BundleMetadata::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "BundleMetadata", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("id: ", id, indent + 1, false);
|
||||
tostring_result += PrintMessageField("create_time ",
|
||||
create_time, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("version: ",
|
||||
version, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("total_documents: ",
|
||||
total_documents, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("total_bytes: ",
|
||||
total_bytes, indent + 1, false);
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
std::string firestore_BundleElement::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "BundleElement", this);
|
||||
std::string tostring_result;
|
||||
|
||||
switch (which_element_type) {
|
||||
case firestore_BundleElement_metadata_tag:
|
||||
tostring_result += PrintMessageField("metadata ",
|
||||
metadata, indent + 1, true);
|
||||
break;
|
||||
case firestore_BundleElement_named_query_tag:
|
||||
tostring_result += PrintMessageField("named_query ",
|
||||
named_query, indent + 1, true);
|
||||
break;
|
||||
case firestore_BundleElement_document_metadata_tag:
|
||||
tostring_result += PrintMessageField("document_metadata ",
|
||||
document_metadata, indent + 1, true);
|
||||
break;
|
||||
case firestore_BundleElement_document_tag:
|
||||
tostring_result += PrintMessageField("document ",
|
||||
document, indent + 1, true);
|
||||
break;
|
||||
}
|
||||
|
||||
bool is_root = indent == 0;
|
||||
if (!tostring_result.empty() || is_root) {
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
170
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/bundle.nanopb.h
generated
Normal file
170
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/bundle.nanopb.h
generated
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb header */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#ifndef PB_FIRESTORE_BUNDLE_NANOPB_H_INCLUDED
|
||||
#define PB_FIRESTORE_BUNDLE_NANOPB_H_INCLUDED
|
||||
#include <pb.h>
|
||||
|
||||
#include "google/firestore/v1/document.nanopb.h"
|
||||
|
||||
#include "google/firestore/v1/query.nanopb.h"
|
||||
|
||||
#include "google/protobuf/timestamp.nanopb.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
/* Enum definitions */
|
||||
typedef enum _firestore_BundledQuery_LimitType {
|
||||
firestore_BundledQuery_LimitType_FIRST = 0,
|
||||
firestore_BundledQuery_LimitType_LAST = 1
|
||||
} firestore_BundledQuery_LimitType;
|
||||
#define _firestore_BundledQuery_LimitType_MIN firestore_BundledQuery_LimitType_FIRST
|
||||
#define _firestore_BundledQuery_LimitType_MAX firestore_BundledQuery_LimitType_LAST
|
||||
#define _firestore_BundledQuery_LimitType_ARRAYSIZE ((firestore_BundledQuery_LimitType)(firestore_BundledQuery_LimitType_LAST+1))
|
||||
|
||||
/* Struct definitions */
|
||||
typedef struct _firestore_BundleMetadata {
|
||||
pb_bytes_array_t *id;
|
||||
google_protobuf_Timestamp create_time;
|
||||
uint32_t version;
|
||||
uint32_t total_documents;
|
||||
uint64_t total_bytes;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_BundleMetadata) */
|
||||
} firestore_BundleMetadata;
|
||||
|
||||
typedef struct _firestore_BundledDocumentMetadata {
|
||||
pb_bytes_array_t *name;
|
||||
google_protobuf_Timestamp read_time;
|
||||
bool exists;
|
||||
pb_size_t queries_count;
|
||||
pb_bytes_array_t **queries;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_BundledDocumentMetadata) */
|
||||
} firestore_BundledDocumentMetadata;
|
||||
|
||||
typedef struct _firestore_BundledQuery {
|
||||
pb_bytes_array_t *parent;
|
||||
pb_size_t which_query_type;
|
||||
union {
|
||||
google_firestore_v1_StructuredQuery structured_query;
|
||||
};
|
||||
firestore_BundledQuery_LimitType limit_type;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_BundledQuery) */
|
||||
} firestore_BundledQuery;
|
||||
|
||||
typedef struct _firestore_NamedQuery {
|
||||
pb_bytes_array_t *name;
|
||||
firestore_BundledQuery bundled_query;
|
||||
google_protobuf_Timestamp read_time;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_NamedQuery) */
|
||||
} firestore_NamedQuery;
|
||||
|
||||
typedef struct _firestore_BundleElement {
|
||||
pb_size_t which_element_type;
|
||||
union {
|
||||
firestore_BundleMetadata metadata;
|
||||
firestore_NamedQuery named_query;
|
||||
firestore_BundledDocumentMetadata document_metadata;
|
||||
google_firestore_v1_Document document;
|
||||
};
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_BundleElement) */
|
||||
} firestore_BundleElement;
|
||||
|
||||
/* Default values for struct fields */
|
||||
|
||||
/* Initializer values for message structs */
|
||||
#define firestore_BundledQuery_init_default {NULL, 0, {google_firestore_v1_StructuredQuery_init_default}, _firestore_BundledQuery_LimitType_MIN}
|
||||
#define firestore_NamedQuery_init_default {NULL, firestore_BundledQuery_init_default, google_protobuf_Timestamp_init_default}
|
||||
#define firestore_BundledDocumentMetadata_init_default {NULL, google_protobuf_Timestamp_init_default, 0, 0, NULL}
|
||||
#define firestore_BundleMetadata_init_default {NULL, google_protobuf_Timestamp_init_default, 0, 0, 0}
|
||||
#define firestore_BundleElement_init_default {0, {firestore_BundleMetadata_init_default}}
|
||||
#define firestore_BundledQuery_init_zero {NULL, 0, {google_firestore_v1_StructuredQuery_init_zero}, _firestore_BundledQuery_LimitType_MIN}
|
||||
#define firestore_NamedQuery_init_zero {NULL, firestore_BundledQuery_init_zero, google_protobuf_Timestamp_init_zero}
|
||||
#define firestore_BundledDocumentMetadata_init_zero {NULL, google_protobuf_Timestamp_init_zero, 0, 0, NULL}
|
||||
#define firestore_BundleMetadata_init_zero {NULL, google_protobuf_Timestamp_init_zero, 0, 0, 0}
|
||||
#define firestore_BundleElement_init_zero {0, {firestore_BundleMetadata_init_zero}}
|
||||
|
||||
/* Field tags (for use in manual encoding/decoding) */
|
||||
#define firestore_BundleMetadata_id_tag 1
|
||||
#define firestore_BundleMetadata_create_time_tag 2
|
||||
#define firestore_BundleMetadata_version_tag 3
|
||||
#define firestore_BundleMetadata_total_documents_tag 4
|
||||
#define firestore_BundleMetadata_total_bytes_tag 5
|
||||
#define firestore_BundledDocumentMetadata_name_tag 1
|
||||
#define firestore_BundledDocumentMetadata_read_time_tag 2
|
||||
#define firestore_BundledDocumentMetadata_exists_tag 3
|
||||
#define firestore_BundledDocumentMetadata_queries_tag 4
|
||||
#define firestore_BundledQuery_structured_query_tag 2
|
||||
#define firestore_BundledQuery_parent_tag 1
|
||||
#define firestore_BundledQuery_limit_type_tag 3
|
||||
#define firestore_NamedQuery_name_tag 1
|
||||
#define firestore_NamedQuery_bundled_query_tag 2
|
||||
#define firestore_NamedQuery_read_time_tag 3
|
||||
#define firestore_BundleElement_metadata_tag 1
|
||||
#define firestore_BundleElement_named_query_tag 2
|
||||
#define firestore_BundleElement_document_metadata_tag 3
|
||||
#define firestore_BundleElement_document_tag 4
|
||||
|
||||
/* Struct field encoding specification for nanopb */
|
||||
extern const pb_field_t firestore_BundledQuery_fields[4];
|
||||
extern const pb_field_t firestore_NamedQuery_fields[4];
|
||||
extern const pb_field_t firestore_BundledDocumentMetadata_fields[5];
|
||||
extern const pb_field_t firestore_BundleMetadata_fields[6];
|
||||
extern const pb_field_t firestore_BundleElement_fields[5];
|
||||
|
||||
/* Maximum encoded size of messages (where known) */
|
||||
/* firestore_BundledQuery_size depends on runtime parameters */
|
||||
/* firestore_NamedQuery_size depends on runtime parameters */
|
||||
/* firestore_BundledDocumentMetadata_size depends on runtime parameters */
|
||||
/* firestore_BundleMetadata_size depends on runtime parameters */
|
||||
/* firestore_BundleElement_size depends on runtime parameters */
|
||||
|
||||
/* Message IDs (where set with "msgid" option) */
|
||||
#ifdef PB_MSGID
|
||||
|
||||
#define BUNDLE_MESSAGES \
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
const char* EnumToString(firestore_BundledQuery_LimitType value);
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
|
||||
#endif
|
||||
142
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.cc
generated
Normal file
142
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.cc
generated
Normal file
@@ -0,0 +1,142 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb constant definitions */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#include "maybe_document.nanopb.h"
|
||||
|
||||
#include "Firestore/core/src/nanopb/pretty_printing.h"
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
using nanopb::PrintEnumField;
|
||||
using nanopb::PrintHeader;
|
||||
using nanopb::PrintMessageField;
|
||||
using nanopb::PrintPrimitiveField;
|
||||
using nanopb::PrintTail;
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
const pb_field_t firestore_client_NoDocument_fields[3] = {
|
||||
PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, firestore_client_NoDocument, name, name, 0),
|
||||
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_NoDocument, read_time, name, &google_protobuf_Timestamp_fields),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_client_UnknownDocument_fields[3] = {
|
||||
PB_FIELD( 1, BYTES , SINGULAR, POINTER , FIRST, firestore_client_UnknownDocument, name, name, 0),
|
||||
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_UnknownDocument, version, name, &google_protobuf_Timestamp_fields),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_client_MaybeDocument_fields[5] = {
|
||||
PB_ANONYMOUS_ONEOF_FIELD(document_type, 1, MESSAGE , ONEOF, STATIC , FIRST, firestore_client_MaybeDocument, no_document, no_document, &firestore_client_NoDocument_fields),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(document_type, 2, MESSAGE , ONEOF, STATIC , UNION, firestore_client_MaybeDocument, document, document, &google_firestore_v1_Document_fields),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(document_type, 3, MESSAGE , ONEOF, STATIC , UNION, firestore_client_MaybeDocument, unknown_document, unknown_document, &firestore_client_UnknownDocument_fields),
|
||||
PB_FIELD( 4, BOOL , SINGULAR, STATIC , OTHER, firestore_client_MaybeDocument, has_committed_mutations, unknown_document, 0),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
|
||||
/* Check that field information fits in pb_field_t */
|
||||
#if !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
|
||||
* field descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_client_NoDocument, read_time) < 65536 && pb_membersize(firestore_client_UnknownDocument, version) < 65536 && pb_membersize(firestore_client_MaybeDocument, no_document) < 65536 && pb_membersize(firestore_client_MaybeDocument, document) < 65536 && pb_membersize(firestore_client_MaybeDocument, unknown_document) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firestore_client_NoDocument_firestore_client_UnknownDocument_firestore_client_MaybeDocument)
|
||||
#endif
|
||||
|
||||
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in the default
|
||||
* 8 bit descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_client_NoDocument, read_time) < 256 && pb_membersize(firestore_client_UnknownDocument, version) < 256 && pb_membersize(firestore_client_MaybeDocument, no_document) < 256 && pb_membersize(firestore_client_MaybeDocument, document) < 256 && pb_membersize(firestore_client_MaybeDocument, unknown_document) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firestore_client_NoDocument_firestore_client_UnknownDocument_firestore_client_MaybeDocument)
|
||||
#endif
|
||||
|
||||
|
||||
std::string firestore_client_NoDocument::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "NoDocument", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("name: ", name, indent + 1, false);
|
||||
tostring_result += PrintMessageField("read_time ",
|
||||
read_time, indent + 1, false);
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
std::string firestore_client_UnknownDocument::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "UnknownDocument", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("name: ", name, indent + 1, false);
|
||||
tostring_result += PrintMessageField("version ",
|
||||
version, indent + 1, false);
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
std::string firestore_client_MaybeDocument::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "MaybeDocument", this);
|
||||
std::string tostring_result;
|
||||
|
||||
switch (which_document_type) {
|
||||
case firestore_client_MaybeDocument_no_document_tag:
|
||||
tostring_result += PrintMessageField("no_document ",
|
||||
no_document, indent + 1, true);
|
||||
break;
|
||||
case firestore_client_MaybeDocument_document_tag:
|
||||
tostring_result += PrintMessageField("document ",
|
||||
document, indent + 1, true);
|
||||
break;
|
||||
case firestore_client_MaybeDocument_unknown_document_tag:
|
||||
tostring_result += PrintMessageField("unknown_document ",
|
||||
unknown_document, indent + 1, true);
|
||||
break;
|
||||
}
|
||||
tostring_result += PrintPrimitiveField("has_committed_mutations: ",
|
||||
has_committed_mutations, indent + 1, false);
|
||||
|
||||
bool is_root = indent == 0;
|
||||
if (!tostring_result.empty() || is_root) {
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
112
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.h
generated
Normal file
112
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.h
generated
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb header */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#ifndef PB_FIRESTORE_CLIENT_MAYBE_DOCUMENT_NANOPB_H_INCLUDED
|
||||
#define PB_FIRESTORE_CLIENT_MAYBE_DOCUMENT_NANOPB_H_INCLUDED
|
||||
#include <pb.h>
|
||||
|
||||
#include "google/firestore/v1/document.nanopb.h"
|
||||
|
||||
#include "google/protobuf/timestamp.nanopb.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
/* Struct definitions */
|
||||
typedef struct _firestore_client_NoDocument {
|
||||
pb_bytes_array_t *name;
|
||||
google_protobuf_Timestamp read_time;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_NoDocument) */
|
||||
} firestore_client_NoDocument;
|
||||
|
||||
typedef struct _firestore_client_UnknownDocument {
|
||||
pb_bytes_array_t *name;
|
||||
google_protobuf_Timestamp version;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_UnknownDocument) */
|
||||
} firestore_client_UnknownDocument;
|
||||
|
||||
typedef struct _firestore_client_MaybeDocument {
|
||||
pb_size_t which_document_type;
|
||||
union {
|
||||
firestore_client_NoDocument no_document;
|
||||
google_firestore_v1_Document document;
|
||||
firestore_client_UnknownDocument unknown_document;
|
||||
};
|
||||
bool has_committed_mutations;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_MaybeDocument) */
|
||||
} firestore_client_MaybeDocument;
|
||||
|
||||
/* Default values for struct fields */
|
||||
|
||||
/* Initializer values for message structs */
|
||||
#define firestore_client_NoDocument_init_default {NULL, google_protobuf_Timestamp_init_default}
|
||||
#define firestore_client_UnknownDocument_init_default {NULL, google_protobuf_Timestamp_init_default}
|
||||
#define firestore_client_MaybeDocument_init_default {0, {firestore_client_NoDocument_init_default}, 0}
|
||||
#define firestore_client_NoDocument_init_zero {NULL, google_protobuf_Timestamp_init_zero}
|
||||
#define firestore_client_UnknownDocument_init_zero {NULL, google_protobuf_Timestamp_init_zero}
|
||||
#define firestore_client_MaybeDocument_init_zero {0, {firestore_client_NoDocument_init_zero}, 0}
|
||||
|
||||
/* Field tags (for use in manual encoding/decoding) */
|
||||
#define firestore_client_NoDocument_name_tag 1
|
||||
#define firestore_client_NoDocument_read_time_tag 2
|
||||
#define firestore_client_UnknownDocument_name_tag 1
|
||||
#define firestore_client_UnknownDocument_version_tag 2
|
||||
#define firestore_client_MaybeDocument_no_document_tag 1
|
||||
#define firestore_client_MaybeDocument_document_tag 2
|
||||
#define firestore_client_MaybeDocument_unknown_document_tag 3
|
||||
#define firestore_client_MaybeDocument_has_committed_mutations_tag 4
|
||||
|
||||
/* Struct field encoding specification for nanopb */
|
||||
extern const pb_field_t firestore_client_NoDocument_fields[3];
|
||||
extern const pb_field_t firestore_client_UnknownDocument_fields[3];
|
||||
extern const pb_field_t firestore_client_MaybeDocument_fields[5];
|
||||
|
||||
/* Maximum encoded size of messages (where known) */
|
||||
/* firestore_client_NoDocument_size depends on runtime parameters */
|
||||
/* firestore_client_UnknownDocument_size depends on runtime parameters */
|
||||
/* firestore_client_MaybeDocument_size depends on runtime parameters */
|
||||
|
||||
/* Message IDs (where set with "msgid" option) */
|
||||
#ifdef PB_MSGID
|
||||
|
||||
#define MAYBE_DOCUMENT_MESSAGES \
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
|
||||
#endif
|
||||
121
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/mutation.nanopb.cc
generated
Normal file
121
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/mutation.nanopb.cc
generated
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb constant definitions */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#include "mutation.nanopb.h"
|
||||
|
||||
#include "Firestore/core/src/nanopb/pretty_printing.h"
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
using nanopb::PrintEnumField;
|
||||
using nanopb::PrintHeader;
|
||||
using nanopb::PrintMessageField;
|
||||
using nanopb::PrintPrimitiveField;
|
||||
using nanopb::PrintTail;
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
const pb_field_t firestore_client_MutationQueue_fields[3] = {
|
||||
PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, firestore_client_MutationQueue, last_acknowledged_batch_id, last_acknowledged_batch_id, 0),
|
||||
PB_FIELD( 2, BYTES , SINGULAR, POINTER , OTHER, firestore_client_MutationQueue, last_stream_token, last_acknowledged_batch_id, 0),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_client_WriteBatch_fields[5] = {
|
||||
PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, firestore_client_WriteBatch, batch_id, batch_id, 0),
|
||||
PB_FIELD( 2, MESSAGE , REPEATED, POINTER , OTHER, firestore_client_WriteBatch, writes, batch_id, &google_firestore_v1_Write_fields),
|
||||
PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_WriteBatch, local_write_time, writes, &google_protobuf_Timestamp_fields),
|
||||
PB_FIELD( 4, MESSAGE , REPEATED, POINTER , OTHER, firestore_client_WriteBatch, base_writes, local_write_time, &google_firestore_v1_Write_fields),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
|
||||
/* Check that field information fits in pb_field_t */
|
||||
#if !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
|
||||
* field descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_client_WriteBatch, local_write_time) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firestore_client_MutationQueue_firestore_client_WriteBatch)
|
||||
#endif
|
||||
|
||||
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in the default
|
||||
* 8 bit descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_client_WriteBatch, local_write_time) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firestore_client_MutationQueue_firestore_client_WriteBatch)
|
||||
#endif
|
||||
|
||||
|
||||
std::string firestore_client_MutationQueue::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "MutationQueue", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("last_acknowledged_batch_id: ",
|
||||
last_acknowledged_batch_id, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("last_stream_token: ",
|
||||
last_stream_token, indent + 1, false);
|
||||
|
||||
bool is_root = indent == 0;
|
||||
if (!tostring_result.empty() || is_root) {
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
std::string firestore_client_WriteBatch::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "WriteBatch", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("batch_id: ",
|
||||
batch_id, indent + 1, false);
|
||||
for (pb_size_t i = 0; i != writes_count; ++i) {
|
||||
tostring_result += PrintMessageField("writes ",
|
||||
writes[i], indent + 1, true);
|
||||
}
|
||||
tostring_result += PrintMessageField("local_write_time ",
|
||||
local_write_time, indent + 1, false);
|
||||
for (pb_size_t i = 0; i != base_writes_count; ++i) {
|
||||
tostring_result += PrintMessageField("base_writes ",
|
||||
base_writes[i], indent + 1, true);
|
||||
}
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
97
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/mutation.nanopb.h
generated
Normal file
97
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/mutation.nanopb.h
generated
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb header */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#ifndef PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED
|
||||
#define PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED
|
||||
#include <pb.h>
|
||||
|
||||
#include "google/firestore/v1/write.nanopb.h"
|
||||
|
||||
#include "google/protobuf/timestamp.nanopb.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
/* Struct definitions */
|
||||
typedef struct _firestore_client_MutationQueue {
|
||||
int32_t last_acknowledged_batch_id;
|
||||
pb_bytes_array_t *last_stream_token;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_MutationQueue) */
|
||||
} firestore_client_MutationQueue;
|
||||
|
||||
typedef struct _firestore_client_WriteBatch {
|
||||
int32_t batch_id;
|
||||
pb_size_t writes_count;
|
||||
struct _google_firestore_v1_Write *writes;
|
||||
google_protobuf_Timestamp local_write_time;
|
||||
pb_size_t base_writes_count;
|
||||
struct _google_firestore_v1_Write *base_writes;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_WriteBatch) */
|
||||
} firestore_client_WriteBatch;
|
||||
|
||||
/* Default values for struct fields */
|
||||
|
||||
/* Initializer values for message structs */
|
||||
#define firestore_client_MutationQueue_init_default {0, NULL}
|
||||
#define firestore_client_WriteBatch_init_default {0, 0, NULL, google_protobuf_Timestamp_init_default, 0, NULL}
|
||||
#define firestore_client_MutationQueue_init_zero {0, NULL}
|
||||
#define firestore_client_WriteBatch_init_zero {0, 0, NULL, google_protobuf_Timestamp_init_zero, 0, NULL}
|
||||
|
||||
/* Field tags (for use in manual encoding/decoding) */
|
||||
#define firestore_client_MutationQueue_last_acknowledged_batch_id_tag 1
|
||||
#define firestore_client_MutationQueue_last_stream_token_tag 2
|
||||
#define firestore_client_WriteBatch_batch_id_tag 1
|
||||
#define firestore_client_WriteBatch_writes_tag 2
|
||||
#define firestore_client_WriteBatch_local_write_time_tag 3
|
||||
#define firestore_client_WriteBatch_base_writes_tag 4
|
||||
|
||||
/* Struct field encoding specification for nanopb */
|
||||
extern const pb_field_t firestore_client_MutationQueue_fields[3];
|
||||
extern const pb_field_t firestore_client_WriteBatch_fields[5];
|
||||
|
||||
/* Maximum encoded size of messages (where known) */
|
||||
/* firestore_client_MutationQueue_size depends on runtime parameters */
|
||||
/* firestore_client_WriteBatch_size depends on runtime parameters */
|
||||
|
||||
/* Message IDs (where set with "msgid" option) */
|
||||
#ifdef PB_MSGID
|
||||
|
||||
#define MUTATION_MESSAGES \
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
|
||||
#endif
|
||||
133
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/target.nanopb.cc
generated
Normal file
133
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/target.nanopb.cc
generated
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb constant definitions */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#include "target.nanopb.h"
|
||||
|
||||
#include "Firestore/core/src/nanopb/pretty_printing.h"
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
using nanopb::PrintEnumField;
|
||||
using nanopb::PrintHeader;
|
||||
using nanopb::PrintMessageField;
|
||||
using nanopb::PrintPrimitiveField;
|
||||
using nanopb::PrintTail;
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
const pb_field_t firestore_client_Target_fields[8] = {
|
||||
PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, firestore_client_Target, target_id, target_id, 0),
|
||||
PB_FIELD( 2, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_Target, snapshot_version, target_id, &google_protobuf_Timestamp_fields),
|
||||
PB_FIELD( 3, BYTES , SINGULAR, POINTER , OTHER, firestore_client_Target, resume_token, snapshot_version, 0),
|
||||
PB_FIELD( 4, INT64 , SINGULAR, STATIC , OTHER, firestore_client_Target, last_listen_sequence_number, resume_token, 0),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(target_type, 5, MESSAGE , ONEOF, STATIC , OTHER, firestore_client_Target, query, last_listen_sequence_number, &google_firestore_v1_Target_QueryTarget_fields),
|
||||
PB_ANONYMOUS_ONEOF_FIELD(target_type, 6, MESSAGE , ONEOF, STATIC , UNION, firestore_client_Target, documents, last_listen_sequence_number, &google_firestore_v1_Target_DocumentsTarget_fields),
|
||||
PB_FIELD( 7, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_Target, last_limbo_free_snapshot_version, documents, &google_protobuf_Timestamp_fields),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
const pb_field_t firestore_client_TargetGlobal_fields[5] = {
|
||||
PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, firestore_client_TargetGlobal, highest_target_id, highest_target_id, 0),
|
||||
PB_FIELD( 2, INT64 , SINGULAR, STATIC , OTHER, firestore_client_TargetGlobal, highest_listen_sequence_number, highest_target_id, 0),
|
||||
PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, firestore_client_TargetGlobal, last_remote_snapshot_version, highest_listen_sequence_number, &google_protobuf_Timestamp_fields),
|
||||
PB_FIELD( 4, INT32 , SINGULAR, STATIC , OTHER, firestore_client_TargetGlobal, target_count, last_remote_snapshot_version, 0),
|
||||
PB_LAST_FIELD
|
||||
};
|
||||
|
||||
|
||||
/* Check that field information fits in pb_field_t */
|
||||
#if !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
|
||||
* field descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 65536 && pb_membersize(firestore_client_Target, documents) < 65536 && pb_membersize(firestore_client_Target, snapshot_version) < 65536 && pb_membersize(firestore_client_Target, last_limbo_free_snapshot_version) < 65536 && pb_membersize(firestore_client_TargetGlobal, last_remote_snapshot_version) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_firestore_client_Target_firestore_client_TargetGlobal)
|
||||
#endif
|
||||
|
||||
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
|
||||
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
|
||||
* compile-time option. You can do that in pb.h or on compiler command line.
|
||||
*
|
||||
* The reason you need to do this is that some of your messages contain tag
|
||||
* numbers or field sizes that are larger than what can fit in the default
|
||||
* 8 bit descriptors.
|
||||
*/
|
||||
PB_STATIC_ASSERT((pb_membersize(firestore_client_Target, query) < 256 && pb_membersize(firestore_client_Target, documents) < 256 && pb_membersize(firestore_client_Target, snapshot_version) < 256 && pb_membersize(firestore_client_Target, last_limbo_free_snapshot_version) < 256 && pb_membersize(firestore_client_TargetGlobal, last_remote_snapshot_version) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_firestore_client_Target_firestore_client_TargetGlobal)
|
||||
#endif
|
||||
|
||||
|
||||
std::string firestore_client_Target::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "Target", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("target_id: ",
|
||||
target_id, indent + 1, false);
|
||||
tostring_result += PrintMessageField("snapshot_version ",
|
||||
snapshot_version, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("resume_token: ",
|
||||
resume_token, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("last_listen_sequence_number: ",
|
||||
last_listen_sequence_number, indent + 1, false);
|
||||
switch (which_target_type) {
|
||||
case firestore_client_Target_query_tag:
|
||||
tostring_result += PrintMessageField("query ",
|
||||
query, indent + 1, true);
|
||||
break;
|
||||
case firestore_client_Target_documents_tag:
|
||||
tostring_result += PrintMessageField("documents ",
|
||||
documents, indent + 1, true);
|
||||
break;
|
||||
}
|
||||
tostring_result += PrintMessageField("last_limbo_free_snapshot_version ",
|
||||
last_limbo_free_snapshot_version, indent + 1, false);
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
std::string firestore_client_TargetGlobal::ToString(int indent) const {
|
||||
std::string tostring_header = PrintHeader(indent, "TargetGlobal", this);
|
||||
std::string tostring_result;
|
||||
|
||||
tostring_result += PrintPrimitiveField("highest_target_id: ",
|
||||
highest_target_id, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("highest_listen_sequence_number: ",
|
||||
highest_listen_sequence_number, indent + 1, false);
|
||||
tostring_result += PrintMessageField("last_remote_snapshot_version ",
|
||||
last_remote_snapshot_version, indent + 1, false);
|
||||
tostring_result += PrintPrimitiveField("target_count: ",
|
||||
target_count, indent + 1, false);
|
||||
|
||||
std::string tostring_tail = PrintTail(indent);
|
||||
return tostring_header + tostring_result + tostring_tail;
|
||||
}
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
108
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/target.nanopb.h
generated
Normal file
108
Pods/FirebaseFirestoreInternal/Firestore/Protos/nanopb/firestore/local/target.nanopb.h
generated
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Automatically generated nanopb header */
|
||||
/* Generated by nanopb-0.3.9.8 */
|
||||
|
||||
#ifndef PB_FIRESTORE_CLIENT_TARGET_NANOPB_H_INCLUDED
|
||||
#define PB_FIRESTORE_CLIENT_TARGET_NANOPB_H_INCLUDED
|
||||
#include <pb.h>
|
||||
|
||||
#include "google/firestore/v1/firestore.nanopb.h"
|
||||
|
||||
#include "google/protobuf/timestamp.nanopb.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace firebase {
|
||||
namespace firestore {
|
||||
|
||||
/* @@protoc_insertion_point(includes) */
|
||||
#if PB_PROTO_HEADER_VERSION != 30
|
||||
#error Regenerate this file with the current version of nanopb generator.
|
||||
#endif
|
||||
|
||||
|
||||
/* Struct definitions */
|
||||
typedef struct _firestore_client_Target {
|
||||
int32_t target_id;
|
||||
google_protobuf_Timestamp snapshot_version;
|
||||
pb_bytes_array_t *resume_token;
|
||||
int64_t last_listen_sequence_number;
|
||||
pb_size_t which_target_type;
|
||||
union {
|
||||
google_firestore_v1_Target_QueryTarget query;
|
||||
google_firestore_v1_Target_DocumentsTarget documents;
|
||||
};
|
||||
google_protobuf_Timestamp last_limbo_free_snapshot_version;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_Target) */
|
||||
} firestore_client_Target;
|
||||
|
||||
typedef struct _firestore_client_TargetGlobal {
|
||||
int32_t highest_target_id;
|
||||
int64_t highest_listen_sequence_number;
|
||||
google_protobuf_Timestamp last_remote_snapshot_version;
|
||||
int32_t target_count;
|
||||
|
||||
std::string ToString(int indent = 0) const;
|
||||
/* @@protoc_insertion_point(struct:firestore_client_TargetGlobal) */
|
||||
} firestore_client_TargetGlobal;
|
||||
|
||||
/* Default values for struct fields */
|
||||
|
||||
/* Initializer values for message structs */
|
||||
#define firestore_client_Target_init_default {0, google_protobuf_Timestamp_init_default, NULL, 0, 0, {google_firestore_v1_Target_QueryTarget_init_default}, google_protobuf_Timestamp_init_default}
|
||||
#define firestore_client_TargetGlobal_init_default {0, 0, google_protobuf_Timestamp_init_default, 0}
|
||||
#define firestore_client_Target_init_zero {0, google_protobuf_Timestamp_init_zero, NULL, 0, 0, {google_firestore_v1_Target_QueryTarget_init_zero}, google_protobuf_Timestamp_init_zero}
|
||||
#define firestore_client_TargetGlobal_init_zero {0, 0, google_protobuf_Timestamp_init_zero, 0}
|
||||
|
||||
/* Field tags (for use in manual encoding/decoding) */
|
||||
#define firestore_client_Target_query_tag 5
|
||||
#define firestore_client_Target_documents_tag 6
|
||||
#define firestore_client_Target_target_id_tag 1
|
||||
#define firestore_client_Target_snapshot_version_tag 2
|
||||
#define firestore_client_Target_resume_token_tag 3
|
||||
#define firestore_client_Target_last_listen_sequence_number_tag 4
|
||||
#define firestore_client_Target_last_limbo_free_snapshot_version_tag 7
|
||||
#define firestore_client_TargetGlobal_highest_target_id_tag 1
|
||||
#define firestore_client_TargetGlobal_highest_listen_sequence_number_tag 2
|
||||
#define firestore_client_TargetGlobal_last_remote_snapshot_version_tag 3
|
||||
#define firestore_client_TargetGlobal_target_count_tag 4
|
||||
|
||||
/* Struct field encoding specification for nanopb */
|
||||
extern const pb_field_t firestore_client_Target_fields[8];
|
||||
extern const pb_field_t firestore_client_TargetGlobal_fields[5];
|
||||
|
||||
/* Maximum encoded size of messages (where known) */
|
||||
/* firestore_client_Target_size depends on runtime parameters */
|
||||
#define firestore_client_TargetGlobal_size 57
|
||||
|
||||
/* Message IDs (where set with "msgid" option) */
|
||||
#ifdef PB_MSGID
|
||||
|
||||
#define TARGET_MESSAGES \
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace firestore
|
||||
} // namespace firebase
|
||||
|
||||
/* @@protoc_insertion_point(eof) */
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user