|
|
|
@ -2253,6 +2253,26 @@ UPB_API_INLINE const upb_MiniTableEnum* upb_MiniTable_GetSubEnumTable( |
|
|
|
|
return mini_table->subs[field->submsg_index].subenum; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// If this field is in a oneof, returns the first field in the oneof.
|
|
|
|
|
//
|
|
|
|
|
// Otherwise returns NULL.
|
|
|
|
|
//
|
|
|
|
|
// Usage:
|
|
|
|
|
// const upb_MiniTableField* field = upb_MiniTable_GetOneof(m, f);
|
|
|
|
|
// do {
|
|
|
|
|
// ..
|
|
|
|
|
// } while (upb_MiniTable_NextOneofField(m, &field);
|
|
|
|
|
//
|
|
|
|
|
const upb_MiniTableField* upb_MiniTable_GetOneof(const upb_MiniTable* m, |
|
|
|
|
const upb_MiniTableField* f); |
|
|
|
|
|
|
|
|
|
// Returns the next field in the oneof. If this is the last field in the
|
|
|
|
|
// oneof, returns NULL. The ordering of fields in the oneof is not
|
|
|
|
|
// guaranteed.
|
|
|
|
|
// REQUIRES: |iter| is and iterator.
|
|
|
|
|
bool upb_MiniTable_NextOneofField(const upb_MiniTable* m, |
|
|
|
|
const upb_MiniTableField** f); |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
} /* extern "C" */ |
|
|
|
|
#endif |
|
|
|
@ -2942,6 +2962,8 @@ typedef struct { |
|
|
|
|
//
|
|
|
|
|
// The unknown data is removed from message after field value is set
|
|
|
|
|
// using upb_Message_SetMessage.
|
|
|
|
|
//
|
|
|
|
|
// WARNING!: See b/267655898
|
|
|
|
|
upb_UnknownToMessageRet upb_MiniTable_PromoteUnknownToMessage( |
|
|
|
|
upb_Message* msg, const upb_MiniTable* mini_table, |
|
|
|
|
const upb_MiniTableField* field, const upb_MiniTable* sub_mini_table, |
|
|
|
@ -3289,6 +3311,12 @@ extern const upb_MiniTable google_protobuf_SourceCodeInfo_Location_msg_init; |
|
|
|
|
extern const upb_MiniTable google_protobuf_GeneratedCodeInfo_msg_init; |
|
|
|
|
extern const upb_MiniTable google_protobuf_GeneratedCodeInfo_Annotation_msg_init; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1, |
|
|
|
|
google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2, |
|
|
|
|
google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3 |
|
|
|
|
} google_protobuf_FieldDescriptorProto_Label; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_FieldDescriptorProto_TYPE_DOUBLE = 1, |
|
|
|
|
google_protobuf_FieldDescriptorProto_TYPE_FLOAT = 2, |
|
|
|
@ -3310,18 +3338,6 @@ typedef enum { |
|
|
|
|
google_protobuf_FieldDescriptorProto_TYPE_SINT64 = 18 |
|
|
|
|
} google_protobuf_FieldDescriptorProto_Type; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1, |
|
|
|
|
google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2, |
|
|
|
|
google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3 |
|
|
|
|
} google_protobuf_FieldDescriptorProto_Label; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_FileOptions_SPEED = 1, |
|
|
|
|
google_protobuf_FileOptions_CODE_SIZE = 2, |
|
|
|
|
google_protobuf_FileOptions_LITE_RUNTIME = 3 |
|
|
|
|
} google_protobuf_FileOptions_OptimizeMode; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_FieldOptions_STRING = 0, |
|
|
|
|
google_protobuf_FieldOptions_CORD = 1, |
|
|
|
@ -3354,10 +3370,10 @@ typedef enum { |
|
|
|
|
} google_protobuf_FieldOptions_OptionTargetType; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_MethodOptions_IDEMPOTENCY_UNKNOWN = 0, |
|
|
|
|
google_protobuf_MethodOptions_NO_SIDE_EFFECTS = 1, |
|
|
|
|
google_protobuf_MethodOptions_IDEMPOTENT = 2 |
|
|
|
|
} google_protobuf_MethodOptions_IdempotencyLevel; |
|
|
|
|
google_protobuf_FileOptions_SPEED = 1, |
|
|
|
|
google_protobuf_FileOptions_CODE_SIZE = 2, |
|
|
|
|
google_protobuf_FileOptions_LITE_RUNTIME = 3 |
|
|
|
|
} google_protobuf_FileOptions_OptimizeMode; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_GeneratedCodeInfo_Annotation_NONE = 0, |
|
|
|
@ -3365,16 +3381,22 @@ typedef enum { |
|
|
|
|
google_protobuf_GeneratedCodeInfo_Annotation_ALIAS = 2 |
|
|
|
|
} google_protobuf_GeneratedCodeInfo_Annotation_Semantic; |
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
|
|
google_protobuf_MethodOptions_IDEMPOTENCY_UNKNOWN = 0, |
|
|
|
|
google_protobuf_MethodOptions_NO_SIDE_EFFECTS = 1, |
|
|
|
|
google_protobuf_MethodOptions_IDEMPOTENT = 2 |
|
|
|
|
} google_protobuf_MethodOptions_IdempotencyLevel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldDescriptorProto_Type_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldDescriptorProto_Label_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FileOptions_OptimizeMode_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldDescriptorProto_Type_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldOptions_CType_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldOptions_JSType_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldOptions_OptionRetention_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FieldOptions_OptionTargetType_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_MethodOptions_IdempotencyLevel_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_FileOptions_OptimizeMode_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_GeneratedCodeInfo_Annotation_Semantic_enum_init; |
|
|
|
|
extern const upb_MiniTableEnum google_protobuf_MethodOptions_IdempotencyLevel_enum_init; |
|
|
|
|
|
|
|
|
|
/* google.protobuf.FileDescriptorSet */ |
|
|
|
|
|
|
|
|
|