summaryrefslogtreecommitdiff
path: root/upb/def.h
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2018-12-12 06:34:11 +0000
committerBo Yang <teboring@google.com>2018-12-12 06:34:11 +0000
commitb39dbb9d4010f6b6e11a5100a73e03b601cf72b9 (patch)
treef94970fb0f0db5b1a456290de59b9a60ca3a0a6a /upb/def.h
parent13c59cb051c4deee5367f9c5fc7b5d07363496a0 (diff)
Add support for encoding Any in json
Diffstat (limited to 'upb/def.h')
-rw-r--r--upb/def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/upb/def.h b/upb/def.h
index c9ed1cf..98b458a 100644
--- a/upb/def.h
+++ b/upb/def.h
@@ -689,6 +689,10 @@ typedef upb_strtable_iter upb_msg_oneof_iter;
#define UPB_MAPENTRY_KEY 1
#define UPB_MAPENTRY_VALUE 2
+/* Well-known field tag numbers for Any messages. */
+#define UPB_ANY_TYPE 1
+#define UPB_ANY_VALUE 2
+
/* Well-known field tag numbers for timestamp messages. */
#define UPB_DURATION_SECONDS 1
#define UPB_DURATION_NANOS 2
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback