1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 // IWYU pragma: private, include "upb/reflection/def.h" 9 10 #ifndef UPB_REFLECTION_METHOD_DEF_H_ 11 #define UPB_REFLECTION_METHOD_DEF_H_ 12 13 #include "upb/reflection/common.h" 14 15 // Must be last. 16 #include "upb/port/def.inc" 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 UPB_API bool upb_MethodDef_ClientStreaming(const upb_MethodDef* m); 23 const char* upb_MethodDef_FullName(const upb_MethodDef* m); 24 bool upb_MethodDef_HasOptions(const upb_MethodDef* m); 25 int upb_MethodDef_Index(const upb_MethodDef* m); 26 UPB_API const upb_MessageDef* upb_MethodDef_InputType(const upb_MethodDef* m); 27 UPB_API const char* upb_MethodDef_Name(const upb_MethodDef* m); 28 UPB_API const UPB_DESC(MethodOptions) * 29 upb_MethodDef_Options(const upb_MethodDef* m); 30 const UPB_DESC(FeatureSet) * 31 upb_MethodDef_ResolvedFeatures(const upb_MethodDef* m); 32 UPB_API const upb_MessageDef* upb_MethodDef_OutputType(const upb_MethodDef* m); 33 UPB_API bool upb_MethodDef_ServerStreaming(const upb_MethodDef* m); 34 UPB_API const upb_ServiceDef* upb_MethodDef_Service(const upb_MethodDef* m); 35 36 #ifdef __cplusplus 37 } /* extern "C" */ 38 #endif 39 40 #include "upb/port/undef.inc" 41 42 #endif /* UPB_REFLECTION_METHOD_DEF_H_ */ 43