Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.2 KiB
78 lines
2.2 KiB
// Protocol Buffers - Google's data interchange format |
|
// Copyright 2023 Google LLC. All rights reserved. |
|
// |
|
// Use of this source code is governed by a BSD-style |
|
// license that can be found in the LICENSE file or at |
|
// https://developers.google.com/open-source/licenses/bsd |
|
|
|
#ifndef UPB_MINI_TABLE_FIELD_H_ |
|
#define UPB_MINI_TABLE_FIELD_H_ |
|
|
|
#include "upb/base/descriptor_constants.h" |
|
#include "upb/mini_table/internal/field.h" |
|
|
|
// Must be last. |
|
#include "upb/port/def.inc" |
|
|
|
typedef struct upb_MiniTableField upb_MiniTableField; |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
UPB_API_INLINE upb_CType upb_MiniTableField_CType(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_CType)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_HasPresence( |
|
const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_HasPresence)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsArray(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsArray)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsClosedEnum( |
|
const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsClosedEnum)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsExtension( |
|
const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsExtension)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsInOneof(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsInOneof)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsMap(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsMap)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsPacked(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsPacked)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsScalar(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsScalar)(f); |
|
} |
|
|
|
UPB_API_INLINE bool upb_MiniTableField_IsSubMessage( |
|
const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_IsSubMessage)(f); |
|
} |
|
|
|
UPB_API_INLINE upb_FieldType |
|
upb_MiniTableField_Type(const upb_MiniTableField* f) { |
|
return UPB_PRIVATE(_upb_MiniTableField_Type)(f); |
|
} |
|
|
|
#ifdef __cplusplus |
|
} /* extern "C" */ |
|
#endif |
|
|
|
#include "upb/port/undef.inc" |
|
|
|
#endif /* UPB_MINI_TABLE_FIELD_H_ */
|
|
|