Skip to content

Commit

Permalink
Update protos. (firebase#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelehen authored Apr 12, 2018
1 parent 4770ec6 commit 986822e
Show file tree
Hide file tree
Showing 21 changed files with 338 additions and 146 deletions.
5 changes: 3 additions & 2 deletions Firestore/Protos/nanopb/google/api/http.pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.3.8 at Fri Feb 2 17:48:02 2018. */
/* Generated by nanopb-0.3.8 at Thu Apr 12 07:27:15 2018. */

#include "http.pb.h"

Expand All @@ -26,8 +26,9 @@



const pb_field_t google_api_Http_fields[2] = {
const pb_field_t google_api_Http_fields[3] = {
PB_FIELD( 1, MESSAGE , REPEATED, CALLBACK, FIRST, google_api_Http, rules, rules, &google_api_HttpRule_fields),
PB_FIELD( 2, BOOL , SINGULAR, STATIC , OTHER, google_api_Http, fully_decode_reserved_expansion, rules, 0),
PB_LAST_FIELD
};

Expand Down
10 changes: 6 additions & 4 deletions Firestore/Protos/nanopb/google/api/http.pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/* Automatically generated nanopb header */
/* Generated by nanopb-0.3.8 at Fri Feb 2 17:48:02 2018. */
/* Generated by nanopb-0.3.8 at Thu Apr 12 07:27:15 2018. */

#ifndef PB_GOOGLE_API_HTTP_PB_H_INCLUDED
#define PB_GOOGLE_API_HTTP_PB_H_INCLUDED
Expand All @@ -39,6 +39,7 @@ typedef struct _google_api_CustomHttpPattern {

typedef struct _google_api_Http {
pb_callback_t rules;
bool fully_decode_reserved_expansion;
/* @@protoc_insertion_point(struct:google_api_Http) */
} google_api_Http;

Expand All @@ -58,17 +59,18 @@ typedef struct _google_api_HttpRule {
/* Default values for struct fields */

/* Initializer values for message structs */
#define google_api_Http_init_default {{{NULL}, NULL}}
#define google_api_Http_init_default {{{NULL}, NULL}, 0}
#define google_api_HttpRule_init_default {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, google_api_CustomHttpPattern_init_default, {{NULL}, NULL}}
#define google_api_CustomHttpPattern_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
#define google_api_Http_init_zero {{{NULL}, NULL}}
#define google_api_Http_init_zero {{{NULL}, NULL}, 0}
#define google_api_HttpRule_init_zero {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, google_api_CustomHttpPattern_init_zero, {{NULL}, NULL}}
#define google_api_CustomHttpPattern_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
#define google_api_CustomHttpPattern_kind_tag 1
#define google_api_CustomHttpPattern_path_tag 2
#define google_api_Http_rules_tag 1
#define google_api_Http_fully_decode_reserved_expansion_tag 2
#define google_api_HttpRule_selector_tag 1
#define google_api_HttpRule_get_tag 2
#define google_api_HttpRule_put_tag 3
Expand All @@ -80,7 +82,7 @@ typedef struct _google_api_HttpRule {
#define google_api_HttpRule_additional_bindings_tag 11

/* Struct field encoding specification for nanopb */
extern const pb_field_t google_api_Http_fields[2];
extern const pb_field_t google_api_Http_fields[3];
extern const pb_field_t google_api_HttpRule_fields[10];
extern const pb_field_t google_api_CustomHttpPattern_fields[3];

Expand Down
9 changes: 5 additions & 4 deletions Firestore/Protos/nanopb/google/firestore/v1beta1/query.pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/* Automatically generated nanopb header */
/* Generated by nanopb-0.3.8 at Fri Feb 2 17:48:02 2018. */
/* Generated by nanopb-0.3.8 at Thu Apr 12 07:27:15 2018. */

#ifndef PB_GOOGLE_FIRESTORE_V1BETA1_QUERY_PB_H_INCLUDED
#define PB_GOOGLE_FIRESTORE_V1BETA1_QUERY_PB_H_INCLUDED
Expand Down Expand Up @@ -60,11 +60,12 @@ typedef enum _google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator {
google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_LESS_THAN_OR_EQUAL = 2,
google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_GREATER_THAN = 3,
google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_GREATER_THAN_OR_EQUAL = 4,
google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_EQUAL = 5
google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_EQUAL = 5,
google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS = 7
} google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator;
#define _google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_MIN google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_OPERATOR_UNSPECIFIED
#define _google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_MAX google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_EQUAL
#define _google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_ARRAYSIZE ((google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator)(google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_EQUAL+1))
#define _google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_MAX google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS
#define _google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_ARRAYSIZE ((google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator)(google_firestore_v1beta1_StructuredQuery_FieldFilter_Operator_ARRAY_CONTAINS+1))

typedef enum _google_firestore_v1beta1_StructuredQuery_UnaryFilter_Operator {
google_firestore_v1beta1_StructuredQuery_UnaryFilter_Operator_OPERATOR_UNSPECIFIED = 0,
Expand Down
15 changes: 8 additions & 7 deletions Firestore/Protos/nanopb/google/firestore/v1beta1/write.pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.3.8 at Fri Feb 2 17:48:02 2018. */
/* Generated by nanopb-0.3.8 at Thu Apr 12 07:27:15 2018. */

#include "write.pb.h"

Expand All @@ -26,13 +26,12 @@



const pb_field_t google_firestore_v1beta1_Write_fields[7] = {
const pb_field_t google_firestore_v1beta1_Write_fields[6] = {
PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, google_firestore_v1beta1_Write, update, update, &google_firestore_v1beta1_Document_fields),
PB_FIELD( 2, STRING , SINGULAR, CALLBACK, OTHER, google_firestore_v1beta1_Write, delete_, update, 0),
PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, google_firestore_v1beta1_Write, update_mask, delete_, &google_firestore_v1beta1_DocumentMask_fields),
PB_FIELD( 4, MESSAGE , SINGULAR, STATIC , OTHER, google_firestore_v1beta1_Write, current_document, update_mask, &google_firestore_v1beta1_Precondition_fields),
PB_FIELD( 5, STRING , SINGULAR, CALLBACK, OTHER, google_firestore_v1beta1_Write, verify, current_document, 0),
PB_FIELD( 6, MESSAGE , SINGULAR, STATIC , OTHER, google_firestore_v1beta1_Write, transform, verify, &google_firestore_v1beta1_DocumentTransform_fields),
PB_FIELD( 6, MESSAGE , SINGULAR, STATIC , OTHER, google_firestore_v1beta1_Write, transform, current_document, &google_firestore_v1beta1_DocumentTransform_fields),
PB_LAST_FIELD
};

Expand All @@ -42,9 +41,11 @@ const pb_field_t google_firestore_v1beta1_DocumentTransform_fields[3] = {
PB_LAST_FIELD
};

const pb_field_t google_firestore_v1beta1_DocumentTransform_FieldTransform_fields[3] = {
const pb_field_t google_firestore_v1beta1_DocumentTransform_FieldTransform_fields[5] = {
PB_FIELD( 1, STRING , SINGULAR, CALLBACK, FIRST, google_firestore_v1beta1_DocumentTransform_FieldTransform, field_path, field_path, 0),
PB_ONEOF_FIELD(transform_type, 2, ENUM , ONEOF, STATIC , OTHER, google_firestore_v1beta1_DocumentTransform_FieldTransform, set_to_server_value, field_path, 0),
PB_ONEOF_FIELD(transform_type, 6, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1beta1_DocumentTransform_FieldTransform, append_missing_elements, field_path, &google_firestore_v1beta1_ArrayValue_fields),
PB_ONEOF_FIELD(transform_type, 7, MESSAGE , ONEOF, STATIC , UNION, google_firestore_v1beta1_DocumentTransform_FieldTransform, remove_all_from_array, field_path, &google_firestore_v1beta1_ArrayValue_fields),
PB_LAST_FIELD
};

Expand Down Expand Up @@ -92,7 +93,7 @@ const pb_field_t google_firestore_v1beta1_ExistenceFilter_fields[3] = {
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
* field descriptors.
*/
PB_STATIC_ASSERT((pb_membersize(google_firestore_v1beta1_Write, update) < 65536 && pb_membersize(google_firestore_v1beta1_Write, transform) < 65536 && pb_membersize(google_firestore_v1beta1_Write, update_mask) < 65536 && pb_membersize(google_firestore_v1beta1_Write, current_document) < 65536 && pb_membersize(google_firestore_v1beta1_WriteResult, update_time) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentChange, document) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentDelete, read_time) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentRemove, read_time) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1beta1_Write_google_firestore_v1beta1_DocumentTransform_google_firestore_v1beta1_DocumentTransform_FieldTransform_google_firestore_v1beta1_WriteResult_google_firestore_v1beta1_DocumentChange_google_firestore_v1beta1_DocumentDelete_google_firestore_v1beta1_DocumentRemove_google_firestore_v1beta1_ExistenceFilter)
PB_STATIC_ASSERT((pb_membersize(google_firestore_v1beta1_Write, update) < 65536 && pb_membersize(google_firestore_v1beta1_Write, transform) < 65536 && pb_membersize(google_firestore_v1beta1_Write, update_mask) < 65536 && pb_membersize(google_firestore_v1beta1_Write, current_document) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentTransform_FieldTransform, transform_type.append_missing_elements) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentTransform_FieldTransform, transform_type.remove_all_from_array) < 65536 && pb_membersize(google_firestore_v1beta1_WriteResult, update_time) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentChange, document) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentDelete, read_time) < 65536 && pb_membersize(google_firestore_v1beta1_DocumentRemove, read_time) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_google_firestore_v1beta1_Write_google_firestore_v1beta1_DocumentTransform_google_firestore_v1beta1_DocumentTransform_FieldTransform_google_firestore_v1beta1_WriteResult_google_firestore_v1beta1_DocumentChange_google_firestore_v1beta1_DocumentDelete_google_firestore_v1beta1_DocumentRemove_google_firestore_v1beta1_ExistenceFilter)
#endif

#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
Expand All @@ -103,7 +104,7 @@ PB_STATIC_ASSERT((pb_membersize(google_firestore_v1beta1_Write, update) < 65536
* numbers or field sizes that are larger than what can fit in the default
* 8 bit descriptors.
*/
PB_STATIC_ASSERT((pb_membersize(google_firestore_v1beta1_Write, update) < 256 && pb_membersize(google_firestore_v1beta1_Write, transform) < 256 && pb_membersize(google_firestore_v1beta1_Write, update_mask) < 256 && pb_membersize(google_firestore_v1beta1_Write, current_document) < 256 && pb_membersize(google_firestore_v1beta1_WriteResult, update_time) < 256 && pb_membersize(google_firestore_v1beta1_DocumentChange, document) < 256 && pb_membersize(google_firestore_v1beta1_DocumentDelete, read_time) < 256 && pb_membersize(google_firestore_v1beta1_DocumentRemove, read_time) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1beta1_Write_google_firestore_v1beta1_DocumentTransform_google_firestore_v1beta1_DocumentTransform_FieldTransform_google_firestore_v1beta1_WriteResult_google_firestore_v1beta1_DocumentChange_google_firestore_v1beta1_DocumentDelete_google_firestore_v1beta1_DocumentRemove_google_firestore_v1beta1_ExistenceFilter)
PB_STATIC_ASSERT((pb_membersize(google_firestore_v1beta1_Write, update) < 256 && pb_membersize(google_firestore_v1beta1_Write, transform) < 256 && pb_membersize(google_firestore_v1beta1_Write, update_mask) < 256 && pb_membersize(google_firestore_v1beta1_Write, current_document) < 256 && pb_membersize(google_firestore_v1beta1_DocumentTransform_FieldTransform, transform_type.append_missing_elements) < 256 && pb_membersize(google_firestore_v1beta1_DocumentTransform_FieldTransform, transform_type.remove_all_from_array) < 256 && pb_membersize(google_firestore_v1beta1_WriteResult, update_time) < 256 && pb_membersize(google_firestore_v1beta1_DocumentChange, document) < 256 && pb_membersize(google_firestore_v1beta1_DocumentDelete, read_time) < 256 && pb_membersize(google_firestore_v1beta1_DocumentRemove, read_time) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_google_firestore_v1beta1_Write_google_firestore_v1beta1_DocumentTransform_google_firestore_v1beta1_DocumentTransform_FieldTransform_google_firestore_v1beta1_WriteResult_google_firestore_v1beta1_DocumentChange_google_firestore_v1beta1_DocumentDelete_google_firestore_v1beta1_DocumentRemove_google_firestore_v1beta1_ExistenceFilter)
#endif


Expand Down
16 changes: 9 additions & 7 deletions Firestore/Protos/nanopb/google/firestore/v1beta1/write.pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/* Automatically generated nanopb header */
/* Generated by nanopb-0.3.8 at Fri Feb 2 17:48:02 2018. */
/* Generated by nanopb-0.3.8 at Thu Apr 12 07:27:15 2018. */

#ifndef PB_GOOGLE_FIRESTORE_V1BETA1_WRITE_PB_H_INCLUDED
#define PB_GOOGLE_FIRESTORE_V1BETA1_WRITE_PB_H_INCLUDED
Expand Down Expand Up @@ -80,6 +80,8 @@ typedef struct _google_firestore_v1beta1_DocumentTransform_FieldTransform {
pb_size_t which_transform_type;
union {
google_firestore_v1beta1_DocumentTransform_FieldTransform_ServerValue set_to_server_value;
google_firestore_v1beta1_ArrayValue append_missing_elements;
google_firestore_v1beta1_ArrayValue remove_all_from_array;
} transform_type;
/* @@protoc_insertion_point(struct:google_firestore_v1beta1_DocumentTransform_FieldTransform) */
} google_firestore_v1beta1_DocumentTransform_FieldTransform;
Expand All @@ -95,7 +97,6 @@ typedef struct _google_firestore_v1beta1_Write {
pb_callback_t delete_;
google_firestore_v1beta1_DocumentMask update_mask;
google_firestore_v1beta1_Precondition current_document;
pb_callback_t verify;
google_firestore_v1beta1_DocumentTransform transform;
/* @@protoc_insertion_point(struct:google_firestore_v1beta1_Write) */
} google_firestore_v1beta1_Write;
Expand All @@ -109,15 +110,15 @@ typedef struct _google_firestore_v1beta1_WriteResult {
/* Default values for struct fields */

/* Initializer values for message structs */
#define google_firestore_v1beta1_Write_init_default {google_firestore_v1beta1_Document_init_default, {{NULL}, NULL}, google_firestore_v1beta1_DocumentMask_init_default, google_firestore_v1beta1_Precondition_init_default, {{NULL}, NULL}, google_firestore_v1beta1_DocumentTransform_init_default}
#define google_firestore_v1beta1_Write_init_default {google_firestore_v1beta1_Document_init_default, {{NULL}, NULL}, google_firestore_v1beta1_DocumentMask_init_default, google_firestore_v1beta1_Precondition_init_default, google_firestore_v1beta1_DocumentTransform_init_default}
#define google_firestore_v1beta1_DocumentTransform_init_default {{{NULL}, NULL}, {{NULL}, NULL}}
#define google_firestore_v1beta1_DocumentTransform_FieldTransform_init_default {{{NULL}, NULL}, 0, {(google_firestore_v1beta1_DocumentTransform_FieldTransform_ServerValue)0}}
#define google_firestore_v1beta1_WriteResult_init_default {google_protobuf_Timestamp_init_default, {{NULL}, NULL}}
#define google_firestore_v1beta1_DocumentChange_init_default {google_firestore_v1beta1_Document_init_default, {{NULL}, NULL}, {{NULL}, NULL}}
#define google_firestore_v1beta1_DocumentDelete_init_default {{{NULL}, NULL}, google_protobuf_Timestamp_init_default, {{NULL}, NULL}}
#define google_firestore_v1beta1_DocumentRemove_init_default {{{NULL}, NULL}, {{NULL}, NULL}, google_protobuf_Timestamp_init_default}
#define google_firestore_v1beta1_ExistenceFilter_init_default {0, 0}
#define google_firestore_v1beta1_Write_init_zero {google_firestore_v1beta1_Document_init_zero, {{NULL}, NULL}, google_firestore_v1beta1_DocumentMask_init_zero, google_firestore_v1beta1_Precondition_init_zero, {{NULL}, NULL}, google_firestore_v1beta1_DocumentTransform_init_zero}
#define google_firestore_v1beta1_Write_init_zero {google_firestore_v1beta1_Document_init_zero, {{NULL}, NULL}, google_firestore_v1beta1_DocumentMask_init_zero, google_firestore_v1beta1_Precondition_init_zero, google_firestore_v1beta1_DocumentTransform_init_zero}
#define google_firestore_v1beta1_DocumentTransform_init_zero {{{NULL}, NULL}, {{NULL}, NULL}}
#define google_firestore_v1beta1_DocumentTransform_FieldTransform_init_zero {{{NULL}, NULL}, 0, {(google_firestore_v1beta1_DocumentTransform_FieldTransform_ServerValue)0}}
#define google_firestore_v1beta1_WriteResult_init_zero {google_protobuf_Timestamp_init_zero, {{NULL}, NULL}}
Expand All @@ -139,22 +140,23 @@ typedef struct _google_firestore_v1beta1_WriteResult {
#define google_firestore_v1beta1_DocumentRemove_removed_target_ids_tag 2
#define google_firestore_v1beta1_DocumentRemove_read_time_tag 4
#define google_firestore_v1beta1_DocumentTransform_FieldTransform_set_to_server_value_tag 2
#define google_firestore_v1beta1_DocumentTransform_FieldTransform_append_missing_elements_tag 6
#define google_firestore_v1beta1_DocumentTransform_FieldTransform_remove_all_from_array_tag 7
#define google_firestore_v1beta1_DocumentTransform_FieldTransform_field_path_tag 1
#define google_firestore_v1beta1_ExistenceFilter_target_id_tag 1
#define google_firestore_v1beta1_ExistenceFilter_count_tag 2
#define google_firestore_v1beta1_Write_update_tag 1
#define google_firestore_v1beta1_Write_delete_tag 2
#define google_firestore_v1beta1_Write_verify_tag 5
#define google_firestore_v1beta1_Write_transform_tag 6
#define google_firestore_v1beta1_Write_update_mask_tag 3
#define google_firestore_v1beta1_Write_current_document_tag 4
#define google_firestore_v1beta1_WriteResult_update_time_tag 1
#define google_firestore_v1beta1_WriteResult_transform_results_tag 2

/* Struct field encoding specification for nanopb */
extern const pb_field_t google_firestore_v1beta1_Write_fields[7];
extern const pb_field_t google_firestore_v1beta1_Write_fields[6];
extern const pb_field_t google_firestore_v1beta1_DocumentTransform_fields[3];
extern const pb_field_t google_firestore_v1beta1_DocumentTransform_FieldTransform_fields[3];
extern const pb_field_t google_firestore_v1beta1_DocumentTransform_FieldTransform_fields[5];
extern const pb_field_t google_firestore_v1beta1_WriteResult_fields[3];
extern const pb_field_t google_firestore_v1beta1_DocumentChange_fields[4];
extern const pb_field_t google_firestore_v1beta1_DocumentDelete_fields[4];
Expand Down
Loading

0 comments on commit 986822e

Please sign in to comment.