aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ext/upb-generated/google/protobuf/wrappers.upb.h')
-rw-r--r--src/core/ext/upb-generated/google/protobuf/wrappers.upb.h305
1 files changed, 305 insertions, 0 deletions
diff --git a/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h b/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h
new file mode 100644
index 0000000000..3ae5d3b16e
--- /dev/null
+++ b/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h
@@ -0,0 +1,305 @@
+/* This file was generated by upbc (the upb compiler) from the input
+ * file:
+ *
+ * google/protobuf/wrappers.proto
+ *
+ * Do not edit -- your changes will be discarded when the file is
+ * regenerated. */
+
+#ifndef GOOGLE_PROTOBUF_WRAPPERS_PROTO_UPB_H_
+#define GOOGLE_PROTOBUF_WRAPPERS_PROTO_UPB_H_
+
+#include "upb/msg.h"
+
+#include "upb/decode.h"
+#include "upb/encode.h"
+#include "upb/port_def.inc"
+UPB_BEGIN_EXTERN_C
+
+struct google_protobuf_DoubleValue;
+struct google_protobuf_FloatValue;
+struct google_protobuf_Int64Value;
+struct google_protobuf_UInt64Value;
+struct google_protobuf_Int32Value;
+struct google_protobuf_UInt32Value;
+struct google_protobuf_BoolValue;
+struct google_protobuf_StringValue;
+struct google_protobuf_BytesValue;
+typedef struct google_protobuf_DoubleValue google_protobuf_DoubleValue;
+typedef struct google_protobuf_FloatValue google_protobuf_FloatValue;
+typedef struct google_protobuf_Int64Value google_protobuf_Int64Value;
+typedef struct google_protobuf_UInt64Value google_protobuf_UInt64Value;
+typedef struct google_protobuf_Int32Value google_protobuf_Int32Value;
+typedef struct google_protobuf_UInt32Value google_protobuf_UInt32Value;
+typedef struct google_protobuf_BoolValue google_protobuf_BoolValue;
+typedef struct google_protobuf_StringValue google_protobuf_StringValue;
+typedef struct google_protobuf_BytesValue google_protobuf_BytesValue;
+
+/* Enums */
+
+/* google.protobuf.DoubleValue */
+
+extern const upb_msglayout google_protobuf_DoubleValue_msginit;
+UPB_INLINE google_protobuf_DoubleValue* google_protobuf_DoubleValue_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_DoubleValue_msginit, arena);
+}
+UPB_INLINE google_protobuf_DoubleValue* google_protobuf_DoubleValue_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_DoubleValue* ret = google_protobuf_DoubleValue_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_DoubleValue_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_DoubleValue_serialize(
+ const google_protobuf_DoubleValue* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_DoubleValue_msginit, arena, len);
+}
+
+UPB_INLINE double google_protobuf_DoubleValue_value(
+ const google_protobuf_DoubleValue* msg) {
+ return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_DoubleValue_set_value(
+ google_protobuf_DoubleValue* msg, double value) {
+ UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.FloatValue */
+
+extern const upb_msglayout google_protobuf_FloatValue_msginit;
+UPB_INLINE google_protobuf_FloatValue* google_protobuf_FloatValue_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_FloatValue_msginit, arena);
+}
+UPB_INLINE google_protobuf_FloatValue* google_protobuf_FloatValue_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_FloatValue* ret = google_protobuf_FloatValue_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_FloatValue_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_FloatValue_serialize(
+ const google_protobuf_FloatValue* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_FloatValue_msginit, arena, len);
+}
+
+UPB_INLINE float google_protobuf_FloatValue_value(
+ const google_protobuf_FloatValue* msg) {
+ return UPB_FIELD_AT(msg, float, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_FloatValue_set_value(
+ google_protobuf_FloatValue* msg, float value) {
+ UPB_FIELD_AT(msg, float, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.Int64Value */
+
+extern const upb_msglayout google_protobuf_Int64Value_msginit;
+UPB_INLINE google_protobuf_Int64Value* google_protobuf_Int64Value_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_Int64Value_msginit, arena);
+}
+UPB_INLINE google_protobuf_Int64Value* google_protobuf_Int64Value_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_Int64Value* ret = google_protobuf_Int64Value_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_Int64Value_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_Int64Value_serialize(
+ const google_protobuf_Int64Value* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_Int64Value_msginit, arena, len);
+}
+
+UPB_INLINE int64_t
+google_protobuf_Int64Value_value(const google_protobuf_Int64Value* msg) {
+ return UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_Int64Value_set_value(
+ google_protobuf_Int64Value* msg, int64_t value) {
+ UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.UInt64Value */
+
+extern const upb_msglayout google_protobuf_UInt64Value_msginit;
+UPB_INLINE google_protobuf_UInt64Value* google_protobuf_UInt64Value_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_UInt64Value_msginit, arena);
+}
+UPB_INLINE google_protobuf_UInt64Value* google_protobuf_UInt64Value_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_UInt64Value* ret = google_protobuf_UInt64Value_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_UInt64Value_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_UInt64Value_serialize(
+ const google_protobuf_UInt64Value* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_UInt64Value_msginit, arena, len);
+}
+
+UPB_INLINE uint64_t
+google_protobuf_UInt64Value_value(const google_protobuf_UInt64Value* msg) {
+ return UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_UInt64Value_set_value(
+ google_protobuf_UInt64Value* msg, uint64_t value) {
+ UPB_FIELD_AT(msg, uint64_t, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.Int32Value */
+
+extern const upb_msglayout google_protobuf_Int32Value_msginit;
+UPB_INLINE google_protobuf_Int32Value* google_protobuf_Int32Value_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_Int32Value_msginit, arena);
+}
+UPB_INLINE google_protobuf_Int32Value* google_protobuf_Int32Value_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_Int32Value* ret = google_protobuf_Int32Value_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_Int32Value_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_Int32Value_serialize(
+ const google_protobuf_Int32Value* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_Int32Value_msginit, arena, len);
+}
+
+UPB_INLINE int32_t
+google_protobuf_Int32Value_value(const google_protobuf_Int32Value* msg) {
+ return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_Int32Value_set_value(
+ google_protobuf_Int32Value* msg, int32_t value) {
+ UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.UInt32Value */
+
+extern const upb_msglayout google_protobuf_UInt32Value_msginit;
+UPB_INLINE google_protobuf_UInt32Value* google_protobuf_UInt32Value_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_UInt32Value_msginit, arena);
+}
+UPB_INLINE google_protobuf_UInt32Value* google_protobuf_UInt32Value_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_UInt32Value* ret = google_protobuf_UInt32Value_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_UInt32Value_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_UInt32Value_serialize(
+ const google_protobuf_UInt32Value* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_UInt32Value_msginit, arena, len);
+}
+
+UPB_INLINE uint32_t
+google_protobuf_UInt32Value_value(const google_protobuf_UInt32Value* msg) {
+ return UPB_FIELD_AT(msg, uint32_t, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_UInt32Value_set_value(
+ google_protobuf_UInt32Value* msg, uint32_t value) {
+ UPB_FIELD_AT(msg, uint32_t, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.BoolValue */
+
+extern const upb_msglayout google_protobuf_BoolValue_msginit;
+UPB_INLINE google_protobuf_BoolValue* google_protobuf_BoolValue_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_BoolValue_msginit, arena);
+}
+UPB_INLINE google_protobuf_BoolValue* google_protobuf_BoolValue_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_BoolValue* ret = google_protobuf_BoolValue_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_BoolValue_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_BoolValue_serialize(
+ const google_protobuf_BoolValue* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_BoolValue_msginit, arena, len);
+}
+
+UPB_INLINE bool google_protobuf_BoolValue_value(
+ const google_protobuf_BoolValue* msg) {
+ return UPB_FIELD_AT(msg, bool, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_BoolValue_set_value(
+ google_protobuf_BoolValue* msg, bool value) {
+ UPB_FIELD_AT(msg, bool, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.StringValue */
+
+extern const upb_msglayout google_protobuf_StringValue_msginit;
+UPB_INLINE google_protobuf_StringValue* google_protobuf_StringValue_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_StringValue_msginit, arena);
+}
+UPB_INLINE google_protobuf_StringValue* google_protobuf_StringValue_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_StringValue* ret = google_protobuf_StringValue_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_StringValue_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_StringValue_serialize(
+ const google_protobuf_StringValue* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_StringValue_msginit, arena, len);
+}
+
+UPB_INLINE upb_stringview
+google_protobuf_StringValue_value(const google_protobuf_StringValue* msg) {
+ return UPB_FIELD_AT(msg, upb_stringview, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_StringValue_set_value(
+ google_protobuf_StringValue* msg, upb_stringview value) {
+ UPB_FIELD_AT(msg, upb_stringview, UPB_SIZE(0, 0)) = value;
+}
+
+/* google.protobuf.BytesValue */
+
+extern const upb_msglayout google_protobuf_BytesValue_msginit;
+UPB_INLINE google_protobuf_BytesValue* google_protobuf_BytesValue_new(
+ upb_arena* arena) {
+ return upb_msg_new(&google_protobuf_BytesValue_msginit, arena);
+}
+UPB_INLINE google_protobuf_BytesValue* google_protobuf_BytesValue_parsenew(
+ upb_stringview buf, upb_arena* arena) {
+ google_protobuf_BytesValue* ret = google_protobuf_BytesValue_new(arena);
+ return (ret && upb_decode(buf, ret, &google_protobuf_BytesValue_msginit))
+ ? ret
+ : NULL;
+}
+UPB_INLINE char* google_protobuf_BytesValue_serialize(
+ const google_protobuf_BytesValue* msg, upb_arena* arena, size_t* len) {
+ return upb_encode(msg, &google_protobuf_BytesValue_msginit, arena, len);
+}
+
+UPB_INLINE upb_stringview
+google_protobuf_BytesValue_value(const google_protobuf_BytesValue* msg) {
+ return UPB_FIELD_AT(msg, upb_stringview, UPB_SIZE(0, 0));
+}
+
+UPB_INLINE void google_protobuf_BytesValue_set_value(
+ google_protobuf_BytesValue* msg, upb_stringview value) {
+ UPB_FIELD_AT(msg, upb_stringview, UPB_SIZE(0, 0)) = value;
+}
+
+UPB_END_EXTERN_C
+
+#include "upb/port_undef.inc"
+
+#endif /* GOOGLE_PROTOBUF_WRAPPERS_PROTO_UPB_H_ */