诸暨麻将添加redis
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.
 
 
 
 
 
 

14068 lines
595 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3011000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3011000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto PROTOBUF_EXPORT
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fdescriptor_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[27]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto;
  53. PROTOBUF_NAMESPACE_OPEN
  54. class DescriptorProto;
  55. class DescriptorProtoDefaultTypeInternal;
  56. PROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  57. class DescriptorProto_ExtensionRange;
  58. class DescriptorProto_ExtensionRangeDefaultTypeInternal;
  59. PROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  60. class DescriptorProto_ReservedRange;
  61. class DescriptorProto_ReservedRangeDefaultTypeInternal;
  62. PROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  63. class EnumDescriptorProto;
  64. class EnumDescriptorProtoDefaultTypeInternal;
  65. PROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  66. class EnumDescriptorProto_EnumReservedRange;
  67. class EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  68. PROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  69. class EnumOptions;
  70. class EnumOptionsDefaultTypeInternal;
  71. PROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  72. class EnumValueDescriptorProto;
  73. class EnumValueDescriptorProtoDefaultTypeInternal;
  74. PROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  75. class EnumValueOptions;
  76. class EnumValueOptionsDefaultTypeInternal;
  77. PROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  78. class ExtensionRangeOptions;
  79. class ExtensionRangeOptionsDefaultTypeInternal;
  80. PROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  81. class FieldDescriptorProto;
  82. class FieldDescriptorProtoDefaultTypeInternal;
  83. PROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  84. class FieldOptions;
  85. class FieldOptionsDefaultTypeInternal;
  86. PROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  87. class FileDescriptorProto;
  88. class FileDescriptorProtoDefaultTypeInternal;
  89. PROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  90. class FileDescriptorSet;
  91. class FileDescriptorSetDefaultTypeInternal;
  92. PROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  93. class FileOptions;
  94. class FileOptionsDefaultTypeInternal;
  95. PROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  96. class GeneratedCodeInfo;
  97. class GeneratedCodeInfoDefaultTypeInternal;
  98. PROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  99. class GeneratedCodeInfo_Annotation;
  100. class GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  101. PROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  102. class MessageOptions;
  103. class MessageOptionsDefaultTypeInternal;
  104. PROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  105. class MethodDescriptorProto;
  106. class MethodDescriptorProtoDefaultTypeInternal;
  107. PROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  108. class MethodOptions;
  109. class MethodOptionsDefaultTypeInternal;
  110. PROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  111. class OneofDescriptorProto;
  112. class OneofDescriptorProtoDefaultTypeInternal;
  113. PROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  114. class OneofOptions;
  115. class OneofOptionsDefaultTypeInternal;
  116. PROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  117. class ServiceDescriptorProto;
  118. class ServiceDescriptorProtoDefaultTypeInternal;
  119. PROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  120. class ServiceOptions;
  121. class ServiceOptionsDefaultTypeInternal;
  122. PROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  123. class SourceCodeInfo;
  124. class SourceCodeInfoDefaultTypeInternal;
  125. PROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  126. class SourceCodeInfo_Location;
  127. class SourceCodeInfo_LocationDefaultTypeInternal;
  128. PROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  129. class UninterpretedOption;
  130. class UninterpretedOptionDefaultTypeInternal;
  131. PROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  132. class UninterpretedOption_NamePart;
  133. class UninterpretedOption_NamePartDefaultTypeInternal;
  134. PROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  135. PROTOBUF_NAMESPACE_CLOSE
  136. PROTOBUF_NAMESPACE_OPEN
  137. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::DescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::DescriptorProto>(Arena*);
  138. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>(Arena*);
  139. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>(Arena*);
  140. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>(Arena*);
  141. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>(Arena*);
  142. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::EnumOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumOptions>(Arena*);
  143. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>(Arena*);
  144. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::EnumValueOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumValueOptions>(Arena*);
  145. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(Arena*);
  146. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>(Arena*);
  147. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FieldOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FieldOptions>(Arena*);
  148. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FileDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FileDescriptorProto>(Arena*);
  149. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FileDescriptorSet* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FileDescriptorSet>(Arena*);
  150. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FileOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FileOptions>(Arena*);
  151. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(Arena*);
  152. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>(Arena*);
  153. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::MessageOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::MessageOptions>(Arena*);
  154. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>(Arena*);
  155. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::MethodOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::MethodOptions>(Arena*);
  156. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>(Arena*);
  157. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::OneofOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::OneofOptions>(Arena*);
  158. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>(Arena*);
  159. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::ServiceOptions* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::ServiceOptions>(Arena*);
  160. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceCodeInfo* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(Arena*);
  161. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>(Arena*);
  162. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::UninterpretedOption* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::UninterpretedOption>(Arena*);
  163. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>(Arena*);
  164. PROTOBUF_NAMESPACE_CLOSE
  165. PROTOBUF_NAMESPACE_OPEN
  166. enum FieldDescriptorProto_Type : int {
  167. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  168. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  169. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  170. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  171. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  172. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  173. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  174. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  175. FieldDescriptorProto_Type_TYPE_STRING = 9,
  176. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  177. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  178. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  179. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  180. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  181. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  182. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  183. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  184. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  185. };
  186. PROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  187. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  188. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  189. constexpr int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  190. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  191. template<typename T>
  192. inline const std::string& FieldDescriptorProto_Type_Name(T enum_t_value) {
  193. static_assert(::std::is_same<T, FieldDescriptorProto_Type>::value ||
  194. ::std::is_integral<T>::value,
  195. "Incorrect type passed to function FieldDescriptorProto_Type_Name.");
  196. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  197. FieldDescriptorProto_Type_descriptor(), enum_t_value);
  198. }
  199. inline bool FieldDescriptorProto_Type_Parse(
  200. const std::string& name, FieldDescriptorProto_Type* value) {
  201. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  202. FieldDescriptorProto_Type_descriptor(), name, value);
  203. }
  204. enum FieldDescriptorProto_Label : int {
  205. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  206. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  207. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  208. };
  209. PROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  210. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  211. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  212. constexpr int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  213. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  214. template<typename T>
  215. inline const std::string& FieldDescriptorProto_Label_Name(T enum_t_value) {
  216. static_assert(::std::is_same<T, FieldDescriptorProto_Label>::value ||
  217. ::std::is_integral<T>::value,
  218. "Incorrect type passed to function FieldDescriptorProto_Label_Name.");
  219. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  220. FieldDescriptorProto_Label_descriptor(), enum_t_value);
  221. }
  222. inline bool FieldDescriptorProto_Label_Parse(
  223. const std::string& name, FieldDescriptorProto_Label* value) {
  224. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  225. FieldDescriptorProto_Label_descriptor(), name, value);
  226. }
  227. enum FileOptions_OptimizeMode : int {
  228. FileOptions_OptimizeMode_SPEED = 1,
  229. FileOptions_OptimizeMode_CODE_SIZE = 2,
  230. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  231. };
  232. PROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  233. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  234. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  235. constexpr int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  236. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  237. template<typename T>
  238. inline const std::string& FileOptions_OptimizeMode_Name(T enum_t_value) {
  239. static_assert(::std::is_same<T, FileOptions_OptimizeMode>::value ||
  240. ::std::is_integral<T>::value,
  241. "Incorrect type passed to function FileOptions_OptimizeMode_Name.");
  242. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  243. FileOptions_OptimizeMode_descriptor(), enum_t_value);
  244. }
  245. inline bool FileOptions_OptimizeMode_Parse(
  246. const std::string& name, FileOptions_OptimizeMode* value) {
  247. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  248. FileOptions_OptimizeMode_descriptor(), name, value);
  249. }
  250. enum FieldOptions_CType : int {
  251. FieldOptions_CType_STRING = 0,
  252. FieldOptions_CType_CORD = 1,
  253. FieldOptions_CType_STRING_PIECE = 2
  254. };
  255. PROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  256. constexpr FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  257. constexpr FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  258. constexpr int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  259. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor();
  260. template<typename T>
  261. inline const std::string& FieldOptions_CType_Name(T enum_t_value) {
  262. static_assert(::std::is_same<T, FieldOptions_CType>::value ||
  263. ::std::is_integral<T>::value,
  264. "Incorrect type passed to function FieldOptions_CType_Name.");
  265. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  266. FieldOptions_CType_descriptor(), enum_t_value);
  267. }
  268. inline bool FieldOptions_CType_Parse(
  269. const std::string& name, FieldOptions_CType* value) {
  270. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_CType>(
  271. FieldOptions_CType_descriptor(), name, value);
  272. }
  273. enum FieldOptions_JSType : int {
  274. FieldOptions_JSType_JS_NORMAL = 0,
  275. FieldOptions_JSType_JS_STRING = 1,
  276. FieldOptions_JSType_JS_NUMBER = 2
  277. };
  278. PROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  279. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  280. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  281. constexpr int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  282. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor();
  283. template<typename T>
  284. inline const std::string& FieldOptions_JSType_Name(T enum_t_value) {
  285. static_assert(::std::is_same<T, FieldOptions_JSType>::value ||
  286. ::std::is_integral<T>::value,
  287. "Incorrect type passed to function FieldOptions_JSType_Name.");
  288. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  289. FieldOptions_JSType_descriptor(), enum_t_value);
  290. }
  291. inline bool FieldOptions_JSType_Parse(
  292. const std::string& name, FieldOptions_JSType* value) {
  293. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_JSType>(
  294. FieldOptions_JSType_descriptor(), name, value);
  295. }
  296. enum MethodOptions_IdempotencyLevel : int {
  297. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  298. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  299. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  300. };
  301. PROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  302. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  303. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  304. constexpr int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  305. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  306. template<typename T>
  307. inline const std::string& MethodOptions_IdempotencyLevel_Name(T enum_t_value) {
  308. static_assert(::std::is_same<T, MethodOptions_IdempotencyLevel>::value ||
  309. ::std::is_integral<T>::value,
  310. "Incorrect type passed to function MethodOptions_IdempotencyLevel_Name.");
  311. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  312. MethodOptions_IdempotencyLevel_descriptor(), enum_t_value);
  313. }
  314. inline bool MethodOptions_IdempotencyLevel_Parse(
  315. const std::string& name, MethodOptions_IdempotencyLevel* value) {
  316. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  317. MethodOptions_IdempotencyLevel_descriptor(), name, value);
  318. }
  319. // ===================================================================
  320. class PROTOBUF_EXPORT FileDescriptorSet :
  321. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */ {
  322. public:
  323. FileDescriptorSet();
  324. virtual ~FileDescriptorSet();
  325. FileDescriptorSet(const FileDescriptorSet& from);
  326. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  327. : FileDescriptorSet() {
  328. *this = ::std::move(from);
  329. }
  330. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  331. CopyFrom(from);
  332. return *this;
  333. }
  334. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept {
  335. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  336. if (this != &from) InternalSwap(&from);
  337. } else {
  338. CopyFrom(from);
  339. }
  340. return *this;
  341. }
  342. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  343. return _internal_metadata_.unknown_fields();
  344. }
  345. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  346. return _internal_metadata_.mutable_unknown_fields();
  347. }
  348. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  349. return GetArenaNoVirtual();
  350. }
  351. inline void* GetMaybeArenaPointer() const final {
  352. return MaybeArenaPtr();
  353. }
  354. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  355. return GetDescriptor();
  356. }
  357. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  358. return GetMetadataStatic().descriptor;
  359. }
  360. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  361. return GetMetadataStatic().reflection;
  362. }
  363. static const FileDescriptorSet& default_instance();
  364. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  365. static inline const FileDescriptorSet* internal_default_instance() {
  366. return reinterpret_cast<const FileDescriptorSet*>(
  367. &_FileDescriptorSet_default_instance_);
  368. }
  369. static constexpr int kIndexInFileMessages =
  370. 0;
  371. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b) {
  372. a.Swap(&b);
  373. }
  374. inline void Swap(FileDescriptorSet* other) {
  375. if (other == this) return;
  376. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  377. InternalSwap(other);
  378. } else {
  379. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  380. }
  381. }
  382. void UnsafeArenaSwap(FileDescriptorSet* other) {
  383. if (other == this) return;
  384. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  385. InternalSwap(other);
  386. }
  387. // implements Message ----------------------------------------------
  388. inline FileDescriptorSet* New() const final {
  389. return CreateMaybeMessage<FileDescriptorSet>(nullptr);
  390. }
  391. FileDescriptorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  392. return CreateMaybeMessage<FileDescriptorSet>(arena);
  393. }
  394. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  395. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  396. void CopyFrom(const FileDescriptorSet& from);
  397. void MergeFrom(const FileDescriptorSet& from);
  398. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  399. bool IsInitialized() const final;
  400. size_t ByteSizeLong() const final;
  401. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  402. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  403. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  404. int GetCachedSize() const final { return _cached_size_.Get(); }
  405. private:
  406. inline void SharedCtor();
  407. inline void SharedDtor();
  408. void SetCachedSize(int size) const final;
  409. void InternalSwap(FileDescriptorSet* other);
  410. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  411. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  412. return "google.protobuf.FileDescriptorSet";
  413. }
  414. protected:
  415. explicit FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  416. private:
  417. static void ArenaDtor(void* object);
  418. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  419. private:
  420. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  421. return _internal_metadata_.arena();
  422. }
  423. inline void* MaybeArenaPtr() const {
  424. return _internal_metadata_.raw_arena_ptr();
  425. }
  426. public:
  427. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  428. private:
  429. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  430. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  431. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  432. }
  433. public:
  434. // nested types ----------------------------------------------------
  435. // accessors -------------------------------------------------------
  436. enum : int {
  437. kFileFieldNumber = 1,
  438. };
  439. // repeated .google.protobuf.FileDescriptorProto file = 1;
  440. int file_size() const;
  441. private:
  442. int _internal_file_size() const;
  443. public:
  444. void clear_file();
  445. PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_file(int index);
  446. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  447. mutable_file();
  448. private:
  449. const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_file(int index) const;
  450. PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_file();
  451. public:
  452. const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& file(int index) const;
  453. PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_file();
  454. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  455. file() const;
  456. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  457. private:
  458. class _Internal;
  459. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  460. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  461. typedef void InternalArenaConstructable_;
  462. typedef void DestructorSkippable_;
  463. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  464. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  465. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto > file_;
  466. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  467. };
  468. // -------------------------------------------------------------------
  469. class PROTOBUF_EXPORT FileDescriptorProto :
  470. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */ {
  471. public:
  472. FileDescriptorProto();
  473. virtual ~FileDescriptorProto();
  474. FileDescriptorProto(const FileDescriptorProto& from);
  475. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  476. : FileDescriptorProto() {
  477. *this = ::std::move(from);
  478. }
  479. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  480. CopyFrom(from);
  481. return *this;
  482. }
  483. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept {
  484. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  485. if (this != &from) InternalSwap(&from);
  486. } else {
  487. CopyFrom(from);
  488. }
  489. return *this;
  490. }
  491. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  492. return _internal_metadata_.unknown_fields();
  493. }
  494. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  495. return _internal_metadata_.mutable_unknown_fields();
  496. }
  497. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  498. return GetArenaNoVirtual();
  499. }
  500. inline void* GetMaybeArenaPointer() const final {
  501. return MaybeArenaPtr();
  502. }
  503. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  504. return GetDescriptor();
  505. }
  506. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  507. return GetMetadataStatic().descriptor;
  508. }
  509. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  510. return GetMetadataStatic().reflection;
  511. }
  512. static const FileDescriptorProto& default_instance();
  513. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  514. static inline const FileDescriptorProto* internal_default_instance() {
  515. return reinterpret_cast<const FileDescriptorProto*>(
  516. &_FileDescriptorProto_default_instance_);
  517. }
  518. static constexpr int kIndexInFileMessages =
  519. 1;
  520. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b) {
  521. a.Swap(&b);
  522. }
  523. inline void Swap(FileDescriptorProto* other) {
  524. if (other == this) return;
  525. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  526. InternalSwap(other);
  527. } else {
  528. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  529. }
  530. }
  531. void UnsafeArenaSwap(FileDescriptorProto* other) {
  532. if (other == this) return;
  533. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  534. InternalSwap(other);
  535. }
  536. // implements Message ----------------------------------------------
  537. inline FileDescriptorProto* New() const final {
  538. return CreateMaybeMessage<FileDescriptorProto>(nullptr);
  539. }
  540. FileDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  541. return CreateMaybeMessage<FileDescriptorProto>(arena);
  542. }
  543. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  544. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  545. void CopyFrom(const FileDescriptorProto& from);
  546. void MergeFrom(const FileDescriptorProto& from);
  547. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  548. bool IsInitialized() const final;
  549. size_t ByteSizeLong() const final;
  550. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  551. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  552. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  553. int GetCachedSize() const final { return _cached_size_.Get(); }
  554. private:
  555. inline void SharedCtor();
  556. inline void SharedDtor();
  557. void SetCachedSize(int size) const final;
  558. void InternalSwap(FileDescriptorProto* other);
  559. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  560. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  561. return "google.protobuf.FileDescriptorProto";
  562. }
  563. protected:
  564. explicit FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  565. private:
  566. static void ArenaDtor(void* object);
  567. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  568. private:
  569. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  570. return _internal_metadata_.arena();
  571. }
  572. inline void* MaybeArenaPtr() const {
  573. return _internal_metadata_.raw_arena_ptr();
  574. }
  575. public:
  576. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  577. private:
  578. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  579. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  580. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  581. }
  582. public:
  583. // nested types ----------------------------------------------------
  584. // accessors -------------------------------------------------------
  585. enum : int {
  586. kDependencyFieldNumber = 3,
  587. kMessageTypeFieldNumber = 4,
  588. kEnumTypeFieldNumber = 5,
  589. kServiceFieldNumber = 6,
  590. kExtensionFieldNumber = 7,
  591. kPublicDependencyFieldNumber = 10,
  592. kWeakDependencyFieldNumber = 11,
  593. kNameFieldNumber = 1,
  594. kPackageFieldNumber = 2,
  595. kSyntaxFieldNumber = 12,
  596. kOptionsFieldNumber = 8,
  597. kSourceCodeInfoFieldNumber = 9,
  598. };
  599. // repeated string dependency = 3;
  600. int dependency_size() const;
  601. private:
  602. int _internal_dependency_size() const;
  603. public:
  604. void clear_dependency();
  605. const std::string& dependency(int index) const;
  606. std::string* mutable_dependency(int index);
  607. void set_dependency(int index, const std::string& value);
  608. void set_dependency(int index, std::string&& value);
  609. void set_dependency(int index, const char* value);
  610. void set_dependency(int index, const char* value, size_t size);
  611. std::string* add_dependency();
  612. void add_dependency(const std::string& value);
  613. void add_dependency(std::string&& value);
  614. void add_dependency(const char* value);
  615. void add_dependency(const char* value, size_t size);
  616. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& dependency() const;
  617. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_dependency();
  618. private:
  619. const std::string& _internal_dependency(int index) const;
  620. std::string* _internal_add_dependency();
  621. public:
  622. // repeated .google.protobuf.DescriptorProto message_type = 4;
  623. int message_type_size() const;
  624. private:
  625. int _internal_message_type_size() const;
  626. public:
  627. void clear_message_type();
  628. PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_message_type(int index);
  629. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  630. mutable_message_type();
  631. private:
  632. const PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_message_type(int index) const;
  633. PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_message_type();
  634. public:
  635. const PROTOBUF_NAMESPACE_ID::DescriptorProto& message_type(int index) const;
  636. PROTOBUF_NAMESPACE_ID::DescriptorProto* add_message_type();
  637. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  638. message_type() const;
  639. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  640. int enum_type_size() const;
  641. private:
  642. int _internal_enum_type_size() const;
  643. public:
  644. void clear_enum_type();
  645. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  646. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  647. mutable_enum_type();
  648. private:
  649. const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  650. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  651. public:
  652. const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  653. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  654. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  655. enum_type() const;
  656. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  657. int service_size() const;
  658. private:
  659. int _internal_service_size() const;
  660. public:
  661. void clear_service();
  662. PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* mutable_service(int index);
  663. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  664. mutable_service();
  665. private:
  666. const PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& _internal_service(int index) const;
  667. PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _internal_add_service();
  668. public:
  669. const PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& service(int index) const;
  670. PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* add_service();
  671. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  672. service() const;
  673. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  674. int extension_size() const;
  675. private:
  676. int _internal_extension_size() const;
  677. public:
  678. void clear_extension();
  679. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  680. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  681. mutable_extension();
  682. private:
  683. const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  684. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  685. public:
  686. const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  687. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  688. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  689. extension() const;
  690. // repeated int32 public_dependency = 10;
  691. int public_dependency_size() const;
  692. private:
  693. int _internal_public_dependency_size() const;
  694. public:
  695. void clear_public_dependency();
  696. private:
  697. ::PROTOBUF_NAMESPACE_ID::int32 _internal_public_dependency(int index) const;
  698. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  699. _internal_public_dependency() const;
  700. void _internal_add_public_dependency(::PROTOBUF_NAMESPACE_ID::int32 value);
  701. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  702. _internal_mutable_public_dependency();
  703. public:
  704. ::PROTOBUF_NAMESPACE_ID::int32 public_dependency(int index) const;
  705. void set_public_dependency(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  706. void add_public_dependency(::PROTOBUF_NAMESPACE_ID::int32 value);
  707. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  708. public_dependency() const;
  709. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  710. mutable_public_dependency();
  711. // repeated int32 weak_dependency = 11;
  712. int weak_dependency_size() const;
  713. private:
  714. int _internal_weak_dependency_size() const;
  715. public:
  716. void clear_weak_dependency();
  717. private:
  718. ::PROTOBUF_NAMESPACE_ID::int32 _internal_weak_dependency(int index) const;
  719. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  720. _internal_weak_dependency() const;
  721. void _internal_add_weak_dependency(::PROTOBUF_NAMESPACE_ID::int32 value);
  722. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  723. _internal_mutable_weak_dependency();
  724. public:
  725. ::PROTOBUF_NAMESPACE_ID::int32 weak_dependency(int index) const;
  726. void set_weak_dependency(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  727. void add_weak_dependency(::PROTOBUF_NAMESPACE_ID::int32 value);
  728. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  729. weak_dependency() const;
  730. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  731. mutable_weak_dependency();
  732. // optional string name = 1;
  733. bool has_name() const;
  734. private:
  735. bool _internal_has_name() const;
  736. public:
  737. void clear_name();
  738. const std::string& name() const;
  739. void set_name(const std::string& value);
  740. void set_name(std::string&& value);
  741. void set_name(const char* value);
  742. void set_name(const char* value, size_t size);
  743. std::string* mutable_name();
  744. std::string* release_name();
  745. void set_allocated_name(std::string* name);
  746. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  747. " string fields are deprecated and will be removed in a"
  748. " future release.")
  749. std::string* unsafe_arena_release_name();
  750. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  751. " string fields are deprecated and will be removed in a"
  752. " future release.")
  753. void unsafe_arena_set_allocated_name(
  754. std::string* name);
  755. private:
  756. const std::string& _internal_name() const;
  757. void _internal_set_name(const std::string& value);
  758. std::string* _internal_mutable_name();
  759. public:
  760. // optional string package = 2;
  761. bool has_package() const;
  762. private:
  763. bool _internal_has_package() const;
  764. public:
  765. void clear_package();
  766. const std::string& package() const;
  767. void set_package(const std::string& value);
  768. void set_package(std::string&& value);
  769. void set_package(const char* value);
  770. void set_package(const char* value, size_t size);
  771. std::string* mutable_package();
  772. std::string* release_package();
  773. void set_allocated_package(std::string* package);
  774. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  775. " string fields are deprecated and will be removed in a"
  776. " future release.")
  777. std::string* unsafe_arena_release_package();
  778. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  779. " string fields are deprecated and will be removed in a"
  780. " future release.")
  781. void unsafe_arena_set_allocated_package(
  782. std::string* package);
  783. private:
  784. const std::string& _internal_package() const;
  785. void _internal_set_package(const std::string& value);
  786. std::string* _internal_mutable_package();
  787. public:
  788. // optional string syntax = 12;
  789. bool has_syntax() const;
  790. private:
  791. bool _internal_has_syntax() const;
  792. public:
  793. void clear_syntax();
  794. const std::string& syntax() const;
  795. void set_syntax(const std::string& value);
  796. void set_syntax(std::string&& value);
  797. void set_syntax(const char* value);
  798. void set_syntax(const char* value, size_t size);
  799. std::string* mutable_syntax();
  800. std::string* release_syntax();
  801. void set_allocated_syntax(std::string* syntax);
  802. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  803. " string fields are deprecated and will be removed in a"
  804. " future release.")
  805. std::string* unsafe_arena_release_syntax();
  806. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  807. " string fields are deprecated and will be removed in a"
  808. " future release.")
  809. void unsafe_arena_set_allocated_syntax(
  810. std::string* syntax);
  811. private:
  812. const std::string& _internal_syntax() const;
  813. void _internal_set_syntax(const std::string& value);
  814. std::string* _internal_mutable_syntax();
  815. public:
  816. // optional .google.protobuf.FileOptions options = 8;
  817. bool has_options() const;
  818. private:
  819. bool _internal_has_options() const;
  820. public:
  821. void clear_options();
  822. const PROTOBUF_NAMESPACE_ID::FileOptions& options() const;
  823. PROTOBUF_NAMESPACE_ID::FileOptions* release_options();
  824. PROTOBUF_NAMESPACE_ID::FileOptions* mutable_options();
  825. void set_allocated_options(PROTOBUF_NAMESPACE_ID::FileOptions* options);
  826. private:
  827. const PROTOBUF_NAMESPACE_ID::FileOptions& _internal_options() const;
  828. PROTOBUF_NAMESPACE_ID::FileOptions* _internal_mutable_options();
  829. public:
  830. void unsafe_arena_set_allocated_options(
  831. PROTOBUF_NAMESPACE_ID::FileOptions* options);
  832. PROTOBUF_NAMESPACE_ID::FileOptions* unsafe_arena_release_options();
  833. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  834. bool has_source_code_info() const;
  835. private:
  836. bool _internal_has_source_code_info() const;
  837. public:
  838. void clear_source_code_info();
  839. const PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info() const;
  840. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* release_source_code_info();
  841. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* mutable_source_code_info();
  842. void set_allocated_source_code_info(PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  843. private:
  844. const PROTOBUF_NAMESPACE_ID::SourceCodeInfo& _internal_source_code_info() const;
  845. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _internal_mutable_source_code_info();
  846. public:
  847. void unsafe_arena_set_allocated_source_code_info(
  848. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  849. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* unsafe_arena_release_source_code_info();
  850. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  851. private:
  852. class _Internal;
  853. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  854. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  855. typedef void InternalArenaConstructable_;
  856. typedef void DestructorSkippable_;
  857. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  858. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  859. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> dependency_;
  860. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto > message_type_;
  861. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  862. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto > service_;
  863. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  864. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > public_dependency_;
  865. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > weak_dependency_;
  866. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  867. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_;
  868. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_;
  869. PROTOBUF_NAMESPACE_ID::FileOptions* options_;
  870. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info_;
  871. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  872. };
  873. // -------------------------------------------------------------------
  874. class PROTOBUF_EXPORT DescriptorProto_ExtensionRange :
  875. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */ {
  876. public:
  877. DescriptorProto_ExtensionRange();
  878. virtual ~DescriptorProto_ExtensionRange();
  879. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  880. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  881. : DescriptorProto_ExtensionRange() {
  882. *this = ::std::move(from);
  883. }
  884. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  885. CopyFrom(from);
  886. return *this;
  887. }
  888. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept {
  889. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  890. if (this != &from) InternalSwap(&from);
  891. } else {
  892. CopyFrom(from);
  893. }
  894. return *this;
  895. }
  896. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  897. return _internal_metadata_.unknown_fields();
  898. }
  899. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  900. return _internal_metadata_.mutable_unknown_fields();
  901. }
  902. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  903. return GetArenaNoVirtual();
  904. }
  905. inline void* GetMaybeArenaPointer() const final {
  906. return MaybeArenaPtr();
  907. }
  908. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  909. return GetDescriptor();
  910. }
  911. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  912. return GetMetadataStatic().descriptor;
  913. }
  914. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  915. return GetMetadataStatic().reflection;
  916. }
  917. static const DescriptorProto_ExtensionRange& default_instance();
  918. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  919. static inline const DescriptorProto_ExtensionRange* internal_default_instance() {
  920. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  921. &_DescriptorProto_ExtensionRange_default_instance_);
  922. }
  923. static constexpr int kIndexInFileMessages =
  924. 2;
  925. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b) {
  926. a.Swap(&b);
  927. }
  928. inline void Swap(DescriptorProto_ExtensionRange* other) {
  929. if (other == this) return;
  930. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  931. InternalSwap(other);
  932. } else {
  933. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  934. }
  935. }
  936. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other) {
  937. if (other == this) return;
  938. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  939. InternalSwap(other);
  940. }
  941. // implements Message ----------------------------------------------
  942. inline DescriptorProto_ExtensionRange* New() const final {
  943. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(nullptr);
  944. }
  945. DescriptorProto_ExtensionRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  946. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  947. }
  948. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  949. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  950. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  951. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  952. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  953. bool IsInitialized() const final;
  954. size_t ByteSizeLong() const final;
  955. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  956. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  957. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  958. int GetCachedSize() const final { return _cached_size_.Get(); }
  959. private:
  960. inline void SharedCtor();
  961. inline void SharedDtor();
  962. void SetCachedSize(int size) const final;
  963. void InternalSwap(DescriptorProto_ExtensionRange* other);
  964. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  965. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  966. return "google.protobuf.DescriptorProto.ExtensionRange";
  967. }
  968. protected:
  969. explicit DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  970. private:
  971. static void ArenaDtor(void* object);
  972. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  973. private:
  974. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  975. return _internal_metadata_.arena();
  976. }
  977. inline void* MaybeArenaPtr() const {
  978. return _internal_metadata_.raw_arena_ptr();
  979. }
  980. public:
  981. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  982. private:
  983. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  984. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  985. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  986. }
  987. public:
  988. // nested types ----------------------------------------------------
  989. // accessors -------------------------------------------------------
  990. enum : int {
  991. kOptionsFieldNumber = 3,
  992. kStartFieldNumber = 1,
  993. kEndFieldNumber = 2,
  994. };
  995. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  996. bool has_options() const;
  997. private:
  998. bool _internal_has_options() const;
  999. public:
  1000. void clear_options();
  1001. const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options() const;
  1002. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* release_options();
  1003. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* mutable_options();
  1004. void set_allocated_options(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  1005. private:
  1006. const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& _internal_options() const;
  1007. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _internal_mutable_options();
  1008. public:
  1009. void unsafe_arena_set_allocated_options(
  1010. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  1011. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* unsafe_arena_release_options();
  1012. // optional int32 start = 1;
  1013. bool has_start() const;
  1014. private:
  1015. bool _internal_has_start() const;
  1016. public:
  1017. void clear_start();
  1018. ::PROTOBUF_NAMESPACE_ID::int32 start() const;
  1019. void set_start(::PROTOBUF_NAMESPACE_ID::int32 value);
  1020. private:
  1021. ::PROTOBUF_NAMESPACE_ID::int32 _internal_start() const;
  1022. void _internal_set_start(::PROTOBUF_NAMESPACE_ID::int32 value);
  1023. public:
  1024. // optional int32 end = 2;
  1025. bool has_end() const;
  1026. private:
  1027. bool _internal_has_end() const;
  1028. public:
  1029. void clear_end();
  1030. ::PROTOBUF_NAMESPACE_ID::int32 end() const;
  1031. void set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  1032. private:
  1033. ::PROTOBUF_NAMESPACE_ID::int32 _internal_end() const;
  1034. void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  1035. public:
  1036. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  1037. private:
  1038. class _Internal;
  1039. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1040. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1041. typedef void InternalArenaConstructable_;
  1042. typedef void DestructorSkippable_;
  1043. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1044. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1045. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options_;
  1046. ::PROTOBUF_NAMESPACE_ID::int32 start_;
  1047. ::PROTOBUF_NAMESPACE_ID::int32 end_;
  1048. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1049. };
  1050. // -------------------------------------------------------------------
  1051. class PROTOBUF_EXPORT DescriptorProto_ReservedRange :
  1052. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */ {
  1053. public:
  1054. DescriptorProto_ReservedRange();
  1055. virtual ~DescriptorProto_ReservedRange();
  1056. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  1057. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  1058. : DescriptorProto_ReservedRange() {
  1059. *this = ::std::move(from);
  1060. }
  1061. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
  1062. CopyFrom(from);
  1063. return *this;
  1064. }
  1065. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept {
  1066. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1067. if (this != &from) InternalSwap(&from);
  1068. } else {
  1069. CopyFrom(from);
  1070. }
  1071. return *this;
  1072. }
  1073. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1074. return _internal_metadata_.unknown_fields();
  1075. }
  1076. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1077. return _internal_metadata_.mutable_unknown_fields();
  1078. }
  1079. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  1080. return GetArenaNoVirtual();
  1081. }
  1082. inline void* GetMaybeArenaPointer() const final {
  1083. return MaybeArenaPtr();
  1084. }
  1085. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1086. return GetDescriptor();
  1087. }
  1088. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1089. return GetMetadataStatic().descriptor;
  1090. }
  1091. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1092. return GetMetadataStatic().reflection;
  1093. }
  1094. static const DescriptorProto_ReservedRange& default_instance();
  1095. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1096. static inline const DescriptorProto_ReservedRange* internal_default_instance() {
  1097. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  1098. &_DescriptorProto_ReservedRange_default_instance_);
  1099. }
  1100. static constexpr int kIndexInFileMessages =
  1101. 3;
  1102. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b) {
  1103. a.Swap(&b);
  1104. }
  1105. inline void Swap(DescriptorProto_ReservedRange* other) {
  1106. if (other == this) return;
  1107. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  1108. InternalSwap(other);
  1109. } else {
  1110. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1111. }
  1112. }
  1113. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other) {
  1114. if (other == this) return;
  1115. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  1116. InternalSwap(other);
  1117. }
  1118. // implements Message ----------------------------------------------
  1119. inline DescriptorProto_ReservedRange* New() const final {
  1120. return CreateMaybeMessage<DescriptorProto_ReservedRange>(nullptr);
  1121. }
  1122. DescriptorProto_ReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1123. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  1124. }
  1125. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1126. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1127. void CopyFrom(const DescriptorProto_ReservedRange& from);
  1128. void MergeFrom(const DescriptorProto_ReservedRange& from);
  1129. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1130. bool IsInitialized() const final;
  1131. size_t ByteSizeLong() const final;
  1132. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1133. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1134. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1135. int GetCachedSize() const final { return _cached_size_.Get(); }
  1136. private:
  1137. inline void SharedCtor();
  1138. inline void SharedDtor();
  1139. void SetCachedSize(int size) const final;
  1140. void InternalSwap(DescriptorProto_ReservedRange* other);
  1141. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1142. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1143. return "google.protobuf.DescriptorProto.ReservedRange";
  1144. }
  1145. protected:
  1146. explicit DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1147. private:
  1148. static void ArenaDtor(void* object);
  1149. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1150. private:
  1151. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1152. return _internal_metadata_.arena();
  1153. }
  1154. inline void* MaybeArenaPtr() const {
  1155. return _internal_metadata_.raw_arena_ptr();
  1156. }
  1157. public:
  1158. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1159. private:
  1160. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1161. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  1162. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  1163. }
  1164. public:
  1165. // nested types ----------------------------------------------------
  1166. // accessors -------------------------------------------------------
  1167. enum : int {
  1168. kStartFieldNumber = 1,
  1169. kEndFieldNumber = 2,
  1170. };
  1171. // optional int32 start = 1;
  1172. bool has_start() const;
  1173. private:
  1174. bool _internal_has_start() const;
  1175. public:
  1176. void clear_start();
  1177. ::PROTOBUF_NAMESPACE_ID::int32 start() const;
  1178. void set_start(::PROTOBUF_NAMESPACE_ID::int32 value);
  1179. private:
  1180. ::PROTOBUF_NAMESPACE_ID::int32 _internal_start() const;
  1181. void _internal_set_start(::PROTOBUF_NAMESPACE_ID::int32 value);
  1182. public:
  1183. // optional int32 end = 2;
  1184. bool has_end() const;
  1185. private:
  1186. bool _internal_has_end() const;
  1187. public:
  1188. void clear_end();
  1189. ::PROTOBUF_NAMESPACE_ID::int32 end() const;
  1190. void set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  1191. private:
  1192. ::PROTOBUF_NAMESPACE_ID::int32 _internal_end() const;
  1193. void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  1194. public:
  1195. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  1196. private:
  1197. class _Internal;
  1198. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1199. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1200. typedef void InternalArenaConstructable_;
  1201. typedef void DestructorSkippable_;
  1202. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1203. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1204. ::PROTOBUF_NAMESPACE_ID::int32 start_;
  1205. ::PROTOBUF_NAMESPACE_ID::int32 end_;
  1206. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1207. };
  1208. // -------------------------------------------------------------------
  1209. class PROTOBUF_EXPORT DescriptorProto :
  1210. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */ {
  1211. public:
  1212. DescriptorProto();
  1213. virtual ~DescriptorProto();
  1214. DescriptorProto(const DescriptorProto& from);
  1215. DescriptorProto(DescriptorProto&& from) noexcept
  1216. : DescriptorProto() {
  1217. *this = ::std::move(from);
  1218. }
  1219. inline DescriptorProto& operator=(const DescriptorProto& from) {
  1220. CopyFrom(from);
  1221. return *this;
  1222. }
  1223. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept {
  1224. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1225. if (this != &from) InternalSwap(&from);
  1226. } else {
  1227. CopyFrom(from);
  1228. }
  1229. return *this;
  1230. }
  1231. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1232. return _internal_metadata_.unknown_fields();
  1233. }
  1234. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1235. return _internal_metadata_.mutable_unknown_fields();
  1236. }
  1237. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  1238. return GetArenaNoVirtual();
  1239. }
  1240. inline void* GetMaybeArenaPointer() const final {
  1241. return MaybeArenaPtr();
  1242. }
  1243. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1244. return GetDescriptor();
  1245. }
  1246. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1247. return GetMetadataStatic().descriptor;
  1248. }
  1249. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1250. return GetMetadataStatic().reflection;
  1251. }
  1252. static const DescriptorProto& default_instance();
  1253. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1254. static inline const DescriptorProto* internal_default_instance() {
  1255. return reinterpret_cast<const DescriptorProto*>(
  1256. &_DescriptorProto_default_instance_);
  1257. }
  1258. static constexpr int kIndexInFileMessages =
  1259. 4;
  1260. friend void swap(DescriptorProto& a, DescriptorProto& b) {
  1261. a.Swap(&b);
  1262. }
  1263. inline void Swap(DescriptorProto* other) {
  1264. if (other == this) return;
  1265. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  1266. InternalSwap(other);
  1267. } else {
  1268. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1269. }
  1270. }
  1271. void UnsafeArenaSwap(DescriptorProto* other) {
  1272. if (other == this) return;
  1273. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  1274. InternalSwap(other);
  1275. }
  1276. // implements Message ----------------------------------------------
  1277. inline DescriptorProto* New() const final {
  1278. return CreateMaybeMessage<DescriptorProto>(nullptr);
  1279. }
  1280. DescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1281. return CreateMaybeMessage<DescriptorProto>(arena);
  1282. }
  1283. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1284. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1285. void CopyFrom(const DescriptorProto& from);
  1286. void MergeFrom(const DescriptorProto& from);
  1287. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1288. bool IsInitialized() const final;
  1289. size_t ByteSizeLong() const final;
  1290. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1291. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1292. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1293. int GetCachedSize() const final { return _cached_size_.Get(); }
  1294. private:
  1295. inline void SharedCtor();
  1296. inline void SharedDtor();
  1297. void SetCachedSize(int size) const final;
  1298. void InternalSwap(DescriptorProto* other);
  1299. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1300. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1301. return "google.protobuf.DescriptorProto";
  1302. }
  1303. protected:
  1304. explicit DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1305. private:
  1306. static void ArenaDtor(void* object);
  1307. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1308. private:
  1309. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1310. return _internal_metadata_.arena();
  1311. }
  1312. inline void* MaybeArenaPtr() const {
  1313. return _internal_metadata_.raw_arena_ptr();
  1314. }
  1315. public:
  1316. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1317. private:
  1318. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1319. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  1320. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  1321. }
  1322. public:
  1323. // nested types ----------------------------------------------------
  1324. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1325. typedef DescriptorProto_ReservedRange ReservedRange;
  1326. // accessors -------------------------------------------------------
  1327. enum : int {
  1328. kFieldFieldNumber = 2,
  1329. kNestedTypeFieldNumber = 3,
  1330. kEnumTypeFieldNumber = 4,
  1331. kExtensionRangeFieldNumber = 5,
  1332. kExtensionFieldNumber = 6,
  1333. kOneofDeclFieldNumber = 8,
  1334. kReservedRangeFieldNumber = 9,
  1335. kReservedNameFieldNumber = 10,
  1336. kNameFieldNumber = 1,
  1337. kOptionsFieldNumber = 7,
  1338. };
  1339. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1340. int field_size() const;
  1341. private:
  1342. int _internal_field_size() const;
  1343. public:
  1344. void clear_field();
  1345. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_field(int index);
  1346. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1347. mutable_field();
  1348. private:
  1349. const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_field(int index) const;
  1350. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_field();
  1351. public:
  1352. const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& field(int index) const;
  1353. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_field();
  1354. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1355. field() const;
  1356. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1357. int nested_type_size() const;
  1358. private:
  1359. int _internal_nested_type_size() const;
  1360. public:
  1361. void clear_nested_type();
  1362. PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_nested_type(int index);
  1363. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  1364. mutable_nested_type();
  1365. private:
  1366. const PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_nested_type(int index) const;
  1367. PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_nested_type();
  1368. public:
  1369. const PROTOBUF_NAMESPACE_ID::DescriptorProto& nested_type(int index) const;
  1370. PROTOBUF_NAMESPACE_ID::DescriptorProto* add_nested_type();
  1371. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  1372. nested_type() const;
  1373. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1374. int enum_type_size() const;
  1375. private:
  1376. int _internal_enum_type_size() const;
  1377. public:
  1378. void clear_enum_type();
  1379. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  1380. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  1381. mutable_enum_type();
  1382. private:
  1383. const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  1384. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  1385. public:
  1386. const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  1387. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  1388. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  1389. enum_type() const;
  1390. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1391. int extension_range_size() const;
  1392. private:
  1393. int _internal_extension_range_size() const;
  1394. public:
  1395. void clear_extension_range();
  1396. PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1397. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  1398. mutable_extension_range();
  1399. private:
  1400. const PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& _internal_extension_range(int index) const;
  1401. PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _internal_add_extension_range();
  1402. public:
  1403. const PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1404. PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* add_extension_range();
  1405. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  1406. extension_range() const;
  1407. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1408. int extension_size() const;
  1409. private:
  1410. int _internal_extension_size() const;
  1411. public:
  1412. void clear_extension();
  1413. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  1414. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1415. mutable_extension();
  1416. private:
  1417. const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  1418. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  1419. public:
  1420. const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  1421. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  1422. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1423. extension() const;
  1424. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1425. int oneof_decl_size() const;
  1426. private:
  1427. int _internal_oneof_decl_size() const;
  1428. public:
  1429. void clear_oneof_decl();
  1430. PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* mutable_oneof_decl(int index);
  1431. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  1432. mutable_oneof_decl();
  1433. private:
  1434. const PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& _internal_oneof_decl(int index) const;
  1435. PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _internal_add_oneof_decl();
  1436. public:
  1437. const PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& oneof_decl(int index) const;
  1438. PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* add_oneof_decl();
  1439. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  1440. oneof_decl() const;
  1441. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1442. int reserved_range_size() const;
  1443. private:
  1444. int _internal_reserved_range_size() const;
  1445. public:
  1446. void clear_reserved_range();
  1447. PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1448. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  1449. mutable_reserved_range();
  1450. private:
  1451. const PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& _internal_reserved_range(int index) const;
  1452. PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _internal_add_reserved_range();
  1453. public:
  1454. const PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1455. PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* add_reserved_range();
  1456. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  1457. reserved_range() const;
  1458. // repeated string reserved_name = 10;
  1459. int reserved_name_size() const;
  1460. private:
  1461. int _internal_reserved_name_size() const;
  1462. public:
  1463. void clear_reserved_name();
  1464. const std::string& reserved_name(int index) const;
  1465. std::string* mutable_reserved_name(int index);
  1466. void set_reserved_name(int index, const std::string& value);
  1467. void set_reserved_name(int index, std::string&& value);
  1468. void set_reserved_name(int index, const char* value);
  1469. void set_reserved_name(int index, const char* value, size_t size);
  1470. std::string* add_reserved_name();
  1471. void add_reserved_name(const std::string& value);
  1472. void add_reserved_name(std::string&& value);
  1473. void add_reserved_name(const char* value);
  1474. void add_reserved_name(const char* value, size_t size);
  1475. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  1476. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  1477. private:
  1478. const std::string& _internal_reserved_name(int index) const;
  1479. std::string* _internal_add_reserved_name();
  1480. public:
  1481. // optional string name = 1;
  1482. bool has_name() const;
  1483. private:
  1484. bool _internal_has_name() const;
  1485. public:
  1486. void clear_name();
  1487. const std::string& name() const;
  1488. void set_name(const std::string& value);
  1489. void set_name(std::string&& value);
  1490. void set_name(const char* value);
  1491. void set_name(const char* value, size_t size);
  1492. std::string* mutable_name();
  1493. std::string* release_name();
  1494. void set_allocated_name(std::string* name);
  1495. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1496. " string fields are deprecated and will be removed in a"
  1497. " future release.")
  1498. std::string* unsafe_arena_release_name();
  1499. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1500. " string fields are deprecated and will be removed in a"
  1501. " future release.")
  1502. void unsafe_arena_set_allocated_name(
  1503. std::string* name);
  1504. private:
  1505. const std::string& _internal_name() const;
  1506. void _internal_set_name(const std::string& value);
  1507. std::string* _internal_mutable_name();
  1508. public:
  1509. // optional .google.protobuf.MessageOptions options = 7;
  1510. bool has_options() const;
  1511. private:
  1512. bool _internal_has_options() const;
  1513. public:
  1514. void clear_options();
  1515. const PROTOBUF_NAMESPACE_ID::MessageOptions& options() const;
  1516. PROTOBUF_NAMESPACE_ID::MessageOptions* release_options();
  1517. PROTOBUF_NAMESPACE_ID::MessageOptions* mutable_options();
  1518. void set_allocated_options(PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1519. private:
  1520. const PROTOBUF_NAMESPACE_ID::MessageOptions& _internal_options() const;
  1521. PROTOBUF_NAMESPACE_ID::MessageOptions* _internal_mutable_options();
  1522. public:
  1523. void unsafe_arena_set_allocated_options(
  1524. PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1525. PROTOBUF_NAMESPACE_ID::MessageOptions* unsafe_arena_release_options();
  1526. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1527. private:
  1528. class _Internal;
  1529. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1530. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1531. typedef void InternalArenaConstructable_;
  1532. typedef void DestructorSkippable_;
  1533. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1534. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1535. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > field_;
  1536. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto > nested_type_;
  1537. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  1538. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange > extension_range_;
  1539. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  1540. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto > oneof_decl_;
  1541. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange > reserved_range_;
  1542. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  1543. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1544. PROTOBUF_NAMESPACE_ID::MessageOptions* options_;
  1545. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1546. };
  1547. // -------------------------------------------------------------------
  1548. class PROTOBUF_EXPORT ExtensionRangeOptions :
  1549. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */ {
  1550. public:
  1551. ExtensionRangeOptions();
  1552. virtual ~ExtensionRangeOptions();
  1553. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1554. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1555. : ExtensionRangeOptions() {
  1556. *this = ::std::move(from);
  1557. }
  1558. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) {
  1559. CopyFrom(from);
  1560. return *this;
  1561. }
  1562. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept {
  1563. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1564. if (this != &from) InternalSwap(&from);
  1565. } else {
  1566. CopyFrom(from);
  1567. }
  1568. return *this;
  1569. }
  1570. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1571. return _internal_metadata_.unknown_fields();
  1572. }
  1573. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1574. return _internal_metadata_.mutable_unknown_fields();
  1575. }
  1576. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  1577. return GetArenaNoVirtual();
  1578. }
  1579. inline void* GetMaybeArenaPointer() const final {
  1580. return MaybeArenaPtr();
  1581. }
  1582. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1583. return GetDescriptor();
  1584. }
  1585. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1586. return GetMetadataStatic().descriptor;
  1587. }
  1588. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1589. return GetMetadataStatic().reflection;
  1590. }
  1591. static const ExtensionRangeOptions& default_instance();
  1592. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1593. static inline const ExtensionRangeOptions* internal_default_instance() {
  1594. return reinterpret_cast<const ExtensionRangeOptions*>(
  1595. &_ExtensionRangeOptions_default_instance_);
  1596. }
  1597. static constexpr int kIndexInFileMessages =
  1598. 5;
  1599. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b) {
  1600. a.Swap(&b);
  1601. }
  1602. inline void Swap(ExtensionRangeOptions* other) {
  1603. if (other == this) return;
  1604. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  1605. InternalSwap(other);
  1606. } else {
  1607. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1608. }
  1609. }
  1610. void UnsafeArenaSwap(ExtensionRangeOptions* other) {
  1611. if (other == this) return;
  1612. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  1613. InternalSwap(other);
  1614. }
  1615. // implements Message ----------------------------------------------
  1616. inline ExtensionRangeOptions* New() const final {
  1617. return CreateMaybeMessage<ExtensionRangeOptions>(nullptr);
  1618. }
  1619. ExtensionRangeOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1620. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1621. }
  1622. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1623. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1624. void CopyFrom(const ExtensionRangeOptions& from);
  1625. void MergeFrom(const ExtensionRangeOptions& from);
  1626. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1627. bool IsInitialized() const final;
  1628. size_t ByteSizeLong() const final;
  1629. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1630. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1631. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1632. int GetCachedSize() const final { return _cached_size_.Get(); }
  1633. private:
  1634. inline void SharedCtor();
  1635. inline void SharedDtor();
  1636. void SetCachedSize(int size) const final;
  1637. void InternalSwap(ExtensionRangeOptions* other);
  1638. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1639. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1640. return "google.protobuf.ExtensionRangeOptions";
  1641. }
  1642. protected:
  1643. explicit ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1644. private:
  1645. static void ArenaDtor(void* object);
  1646. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1647. private:
  1648. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1649. return _internal_metadata_.arena();
  1650. }
  1651. inline void* MaybeArenaPtr() const {
  1652. return _internal_metadata_.raw_arena_ptr();
  1653. }
  1654. public:
  1655. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1656. private:
  1657. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1658. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  1659. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  1660. }
  1661. public:
  1662. // nested types ----------------------------------------------------
  1663. // accessors -------------------------------------------------------
  1664. enum : int {
  1665. kUninterpretedOptionFieldNumber = 999,
  1666. };
  1667. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1668. int uninterpreted_option_size() const;
  1669. private:
  1670. int _internal_uninterpreted_option_size() const;
  1671. public:
  1672. void clear_uninterpreted_option();
  1673. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  1674. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  1675. mutable_uninterpreted_option();
  1676. private:
  1677. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  1678. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  1679. public:
  1680. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  1681. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  1682. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  1683. uninterpreted_option() const;
  1684. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ExtensionRangeOptions)
  1685. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  1686. private:
  1687. class _Internal;
  1688. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  1689. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  1690. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1691. typedef void InternalArenaConstructable_;
  1692. typedef void DestructorSkippable_;
  1693. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1694. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1695. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  1696. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1697. };
  1698. // -------------------------------------------------------------------
  1699. class PROTOBUF_EXPORT FieldDescriptorProto :
  1700. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */ {
  1701. public:
  1702. FieldDescriptorProto();
  1703. virtual ~FieldDescriptorProto();
  1704. FieldDescriptorProto(const FieldDescriptorProto& from);
  1705. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  1706. : FieldDescriptorProto() {
  1707. *this = ::std::move(from);
  1708. }
  1709. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  1710. CopyFrom(from);
  1711. return *this;
  1712. }
  1713. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept {
  1714. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1715. if (this != &from) InternalSwap(&from);
  1716. } else {
  1717. CopyFrom(from);
  1718. }
  1719. return *this;
  1720. }
  1721. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1722. return _internal_metadata_.unknown_fields();
  1723. }
  1724. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1725. return _internal_metadata_.mutable_unknown_fields();
  1726. }
  1727. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  1728. return GetArenaNoVirtual();
  1729. }
  1730. inline void* GetMaybeArenaPointer() const final {
  1731. return MaybeArenaPtr();
  1732. }
  1733. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1734. return GetDescriptor();
  1735. }
  1736. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1737. return GetMetadataStatic().descriptor;
  1738. }
  1739. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1740. return GetMetadataStatic().reflection;
  1741. }
  1742. static const FieldDescriptorProto& default_instance();
  1743. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1744. static inline const FieldDescriptorProto* internal_default_instance() {
  1745. return reinterpret_cast<const FieldDescriptorProto*>(
  1746. &_FieldDescriptorProto_default_instance_);
  1747. }
  1748. static constexpr int kIndexInFileMessages =
  1749. 6;
  1750. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b) {
  1751. a.Swap(&b);
  1752. }
  1753. inline void Swap(FieldDescriptorProto* other) {
  1754. if (other == this) return;
  1755. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  1756. InternalSwap(other);
  1757. } else {
  1758. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1759. }
  1760. }
  1761. void UnsafeArenaSwap(FieldDescriptorProto* other) {
  1762. if (other == this) return;
  1763. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  1764. InternalSwap(other);
  1765. }
  1766. // implements Message ----------------------------------------------
  1767. inline FieldDescriptorProto* New() const final {
  1768. return CreateMaybeMessage<FieldDescriptorProto>(nullptr);
  1769. }
  1770. FieldDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  1771. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  1772. }
  1773. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1774. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  1775. void CopyFrom(const FieldDescriptorProto& from);
  1776. void MergeFrom(const FieldDescriptorProto& from);
  1777. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1778. bool IsInitialized() const final;
  1779. size_t ByteSizeLong() const final;
  1780. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1781. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  1782. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1783. int GetCachedSize() const final { return _cached_size_.Get(); }
  1784. private:
  1785. inline void SharedCtor();
  1786. inline void SharedDtor();
  1787. void SetCachedSize(int size) const final;
  1788. void InternalSwap(FieldDescriptorProto* other);
  1789. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1790. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1791. return "google.protobuf.FieldDescriptorProto";
  1792. }
  1793. protected:
  1794. explicit FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1795. private:
  1796. static void ArenaDtor(void* object);
  1797. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1798. private:
  1799. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  1800. return _internal_metadata_.arena();
  1801. }
  1802. inline void* MaybeArenaPtr() const {
  1803. return _internal_metadata_.raw_arena_ptr();
  1804. }
  1805. public:
  1806. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1807. private:
  1808. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  1809. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  1810. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  1811. }
  1812. public:
  1813. // nested types ----------------------------------------------------
  1814. typedef FieldDescriptorProto_Type Type;
  1815. static constexpr Type TYPE_DOUBLE =
  1816. FieldDescriptorProto_Type_TYPE_DOUBLE;
  1817. static constexpr Type TYPE_FLOAT =
  1818. FieldDescriptorProto_Type_TYPE_FLOAT;
  1819. static constexpr Type TYPE_INT64 =
  1820. FieldDescriptorProto_Type_TYPE_INT64;
  1821. static constexpr Type TYPE_UINT64 =
  1822. FieldDescriptorProto_Type_TYPE_UINT64;
  1823. static constexpr Type TYPE_INT32 =
  1824. FieldDescriptorProto_Type_TYPE_INT32;
  1825. static constexpr Type TYPE_FIXED64 =
  1826. FieldDescriptorProto_Type_TYPE_FIXED64;
  1827. static constexpr Type TYPE_FIXED32 =
  1828. FieldDescriptorProto_Type_TYPE_FIXED32;
  1829. static constexpr Type TYPE_BOOL =
  1830. FieldDescriptorProto_Type_TYPE_BOOL;
  1831. static constexpr Type TYPE_STRING =
  1832. FieldDescriptorProto_Type_TYPE_STRING;
  1833. static constexpr Type TYPE_GROUP =
  1834. FieldDescriptorProto_Type_TYPE_GROUP;
  1835. static constexpr Type TYPE_MESSAGE =
  1836. FieldDescriptorProto_Type_TYPE_MESSAGE;
  1837. static constexpr Type TYPE_BYTES =
  1838. FieldDescriptorProto_Type_TYPE_BYTES;
  1839. static constexpr Type TYPE_UINT32 =
  1840. FieldDescriptorProto_Type_TYPE_UINT32;
  1841. static constexpr Type TYPE_ENUM =
  1842. FieldDescriptorProto_Type_TYPE_ENUM;
  1843. static constexpr Type TYPE_SFIXED32 =
  1844. FieldDescriptorProto_Type_TYPE_SFIXED32;
  1845. static constexpr Type TYPE_SFIXED64 =
  1846. FieldDescriptorProto_Type_TYPE_SFIXED64;
  1847. static constexpr Type TYPE_SINT32 =
  1848. FieldDescriptorProto_Type_TYPE_SINT32;
  1849. static constexpr Type TYPE_SINT64 =
  1850. FieldDescriptorProto_Type_TYPE_SINT64;
  1851. static inline bool Type_IsValid(int value) {
  1852. return FieldDescriptorProto_Type_IsValid(value);
  1853. }
  1854. static constexpr Type Type_MIN =
  1855. FieldDescriptorProto_Type_Type_MIN;
  1856. static constexpr Type Type_MAX =
  1857. FieldDescriptorProto_Type_Type_MAX;
  1858. static constexpr int Type_ARRAYSIZE =
  1859. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  1860. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1861. Type_descriptor() {
  1862. return FieldDescriptorProto_Type_descriptor();
  1863. }
  1864. template<typename T>
  1865. static inline const std::string& Type_Name(T enum_t_value) {
  1866. static_assert(::std::is_same<T, Type>::value ||
  1867. ::std::is_integral<T>::value,
  1868. "Incorrect type passed to function Type_Name.");
  1869. return FieldDescriptorProto_Type_Name(enum_t_value);
  1870. }
  1871. static inline bool Type_Parse(const std::string& name,
  1872. Type* value) {
  1873. return FieldDescriptorProto_Type_Parse(name, value);
  1874. }
  1875. typedef FieldDescriptorProto_Label Label;
  1876. static constexpr Label LABEL_OPTIONAL =
  1877. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  1878. static constexpr Label LABEL_REQUIRED =
  1879. FieldDescriptorProto_Label_LABEL_REQUIRED;
  1880. static constexpr Label LABEL_REPEATED =
  1881. FieldDescriptorProto_Label_LABEL_REPEATED;
  1882. static inline bool Label_IsValid(int value) {
  1883. return FieldDescriptorProto_Label_IsValid(value);
  1884. }
  1885. static constexpr Label Label_MIN =
  1886. FieldDescriptorProto_Label_Label_MIN;
  1887. static constexpr Label Label_MAX =
  1888. FieldDescriptorProto_Label_Label_MAX;
  1889. static constexpr int Label_ARRAYSIZE =
  1890. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  1891. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1892. Label_descriptor() {
  1893. return FieldDescriptorProto_Label_descriptor();
  1894. }
  1895. template<typename T>
  1896. static inline const std::string& Label_Name(T enum_t_value) {
  1897. static_assert(::std::is_same<T, Label>::value ||
  1898. ::std::is_integral<T>::value,
  1899. "Incorrect type passed to function Label_Name.");
  1900. return FieldDescriptorProto_Label_Name(enum_t_value);
  1901. }
  1902. static inline bool Label_Parse(const std::string& name,
  1903. Label* value) {
  1904. return FieldDescriptorProto_Label_Parse(name, value);
  1905. }
  1906. // accessors -------------------------------------------------------
  1907. enum : int {
  1908. kNameFieldNumber = 1,
  1909. kExtendeeFieldNumber = 2,
  1910. kTypeNameFieldNumber = 6,
  1911. kDefaultValueFieldNumber = 7,
  1912. kJsonNameFieldNumber = 10,
  1913. kOptionsFieldNumber = 8,
  1914. kNumberFieldNumber = 3,
  1915. kOneofIndexFieldNumber = 9,
  1916. kLabelFieldNumber = 4,
  1917. kTypeFieldNumber = 5,
  1918. };
  1919. // optional string name = 1;
  1920. bool has_name() const;
  1921. private:
  1922. bool _internal_has_name() const;
  1923. public:
  1924. void clear_name();
  1925. const std::string& name() const;
  1926. void set_name(const std::string& value);
  1927. void set_name(std::string&& value);
  1928. void set_name(const char* value);
  1929. void set_name(const char* value, size_t size);
  1930. std::string* mutable_name();
  1931. std::string* release_name();
  1932. void set_allocated_name(std::string* name);
  1933. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1934. " string fields are deprecated and will be removed in a"
  1935. " future release.")
  1936. std::string* unsafe_arena_release_name();
  1937. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1938. " string fields are deprecated and will be removed in a"
  1939. " future release.")
  1940. void unsafe_arena_set_allocated_name(
  1941. std::string* name);
  1942. private:
  1943. const std::string& _internal_name() const;
  1944. void _internal_set_name(const std::string& value);
  1945. std::string* _internal_mutable_name();
  1946. public:
  1947. // optional string extendee = 2;
  1948. bool has_extendee() const;
  1949. private:
  1950. bool _internal_has_extendee() const;
  1951. public:
  1952. void clear_extendee();
  1953. const std::string& extendee() const;
  1954. void set_extendee(const std::string& value);
  1955. void set_extendee(std::string&& value);
  1956. void set_extendee(const char* value);
  1957. void set_extendee(const char* value, size_t size);
  1958. std::string* mutable_extendee();
  1959. std::string* release_extendee();
  1960. void set_allocated_extendee(std::string* extendee);
  1961. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1962. " string fields are deprecated and will be removed in a"
  1963. " future release.")
  1964. std::string* unsafe_arena_release_extendee();
  1965. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1966. " string fields are deprecated and will be removed in a"
  1967. " future release.")
  1968. void unsafe_arena_set_allocated_extendee(
  1969. std::string* extendee);
  1970. private:
  1971. const std::string& _internal_extendee() const;
  1972. void _internal_set_extendee(const std::string& value);
  1973. std::string* _internal_mutable_extendee();
  1974. public:
  1975. // optional string type_name = 6;
  1976. bool has_type_name() const;
  1977. private:
  1978. bool _internal_has_type_name() const;
  1979. public:
  1980. void clear_type_name();
  1981. const std::string& type_name() const;
  1982. void set_type_name(const std::string& value);
  1983. void set_type_name(std::string&& value);
  1984. void set_type_name(const char* value);
  1985. void set_type_name(const char* value, size_t size);
  1986. std::string* mutable_type_name();
  1987. std::string* release_type_name();
  1988. void set_allocated_type_name(std::string* type_name);
  1989. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1990. " string fields are deprecated and will be removed in a"
  1991. " future release.")
  1992. std::string* unsafe_arena_release_type_name();
  1993. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1994. " string fields are deprecated and will be removed in a"
  1995. " future release.")
  1996. void unsafe_arena_set_allocated_type_name(
  1997. std::string* type_name);
  1998. private:
  1999. const std::string& _internal_type_name() const;
  2000. void _internal_set_type_name(const std::string& value);
  2001. std::string* _internal_mutable_type_name();
  2002. public:
  2003. // optional string default_value = 7;
  2004. bool has_default_value() const;
  2005. private:
  2006. bool _internal_has_default_value() const;
  2007. public:
  2008. void clear_default_value();
  2009. const std::string& default_value() const;
  2010. void set_default_value(const std::string& value);
  2011. void set_default_value(std::string&& value);
  2012. void set_default_value(const char* value);
  2013. void set_default_value(const char* value, size_t size);
  2014. std::string* mutable_default_value();
  2015. std::string* release_default_value();
  2016. void set_allocated_default_value(std::string* default_value);
  2017. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2018. " string fields are deprecated and will be removed in a"
  2019. " future release.")
  2020. std::string* unsafe_arena_release_default_value();
  2021. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2022. " string fields are deprecated and will be removed in a"
  2023. " future release.")
  2024. void unsafe_arena_set_allocated_default_value(
  2025. std::string* default_value);
  2026. private:
  2027. const std::string& _internal_default_value() const;
  2028. void _internal_set_default_value(const std::string& value);
  2029. std::string* _internal_mutable_default_value();
  2030. public:
  2031. // optional string json_name = 10;
  2032. bool has_json_name() const;
  2033. private:
  2034. bool _internal_has_json_name() const;
  2035. public:
  2036. void clear_json_name();
  2037. const std::string& json_name() const;
  2038. void set_json_name(const std::string& value);
  2039. void set_json_name(std::string&& value);
  2040. void set_json_name(const char* value);
  2041. void set_json_name(const char* value, size_t size);
  2042. std::string* mutable_json_name();
  2043. std::string* release_json_name();
  2044. void set_allocated_json_name(std::string* json_name);
  2045. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2046. " string fields are deprecated and will be removed in a"
  2047. " future release.")
  2048. std::string* unsafe_arena_release_json_name();
  2049. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2050. " string fields are deprecated and will be removed in a"
  2051. " future release.")
  2052. void unsafe_arena_set_allocated_json_name(
  2053. std::string* json_name);
  2054. private:
  2055. const std::string& _internal_json_name() const;
  2056. void _internal_set_json_name(const std::string& value);
  2057. std::string* _internal_mutable_json_name();
  2058. public:
  2059. // optional .google.protobuf.FieldOptions options = 8;
  2060. bool has_options() const;
  2061. private:
  2062. bool _internal_has_options() const;
  2063. public:
  2064. void clear_options();
  2065. const PROTOBUF_NAMESPACE_ID::FieldOptions& options() const;
  2066. PROTOBUF_NAMESPACE_ID::FieldOptions* release_options();
  2067. PROTOBUF_NAMESPACE_ID::FieldOptions* mutable_options();
  2068. void set_allocated_options(PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2069. private:
  2070. const PROTOBUF_NAMESPACE_ID::FieldOptions& _internal_options() const;
  2071. PROTOBUF_NAMESPACE_ID::FieldOptions* _internal_mutable_options();
  2072. public:
  2073. void unsafe_arena_set_allocated_options(
  2074. PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2075. PROTOBUF_NAMESPACE_ID::FieldOptions* unsafe_arena_release_options();
  2076. // optional int32 number = 3;
  2077. bool has_number() const;
  2078. private:
  2079. bool _internal_has_number() const;
  2080. public:
  2081. void clear_number();
  2082. ::PROTOBUF_NAMESPACE_ID::int32 number() const;
  2083. void set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
  2084. private:
  2085. ::PROTOBUF_NAMESPACE_ID::int32 _internal_number() const;
  2086. void _internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
  2087. public:
  2088. // optional int32 oneof_index = 9;
  2089. bool has_oneof_index() const;
  2090. private:
  2091. bool _internal_has_oneof_index() const;
  2092. public:
  2093. void clear_oneof_index();
  2094. ::PROTOBUF_NAMESPACE_ID::int32 oneof_index() const;
  2095. void set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value);
  2096. private:
  2097. ::PROTOBUF_NAMESPACE_ID::int32 _internal_oneof_index() const;
  2098. void _internal_set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value);
  2099. public:
  2100. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2101. bool has_label() const;
  2102. private:
  2103. bool _internal_has_label() const;
  2104. public:
  2105. void clear_label();
  2106. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label label() const;
  2107. void set_label(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2108. private:
  2109. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label _internal_label() const;
  2110. void _internal_set_label(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2111. public:
  2112. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2113. bool has_type() const;
  2114. private:
  2115. bool _internal_has_type() const;
  2116. public:
  2117. void clear_type();
  2118. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type type() const;
  2119. void set_type(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2120. private:
  2121. PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type _internal_type() const;
  2122. void _internal_set_type(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2123. public:
  2124. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  2125. private:
  2126. class _Internal;
  2127. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2128. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2129. typedef void InternalArenaConstructable_;
  2130. typedef void DestructorSkippable_;
  2131. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2132. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2133. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2134. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extendee_;
  2135. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_;
  2136. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_;
  2137. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_;
  2138. PROTOBUF_NAMESPACE_ID::FieldOptions* options_;
  2139. ::PROTOBUF_NAMESPACE_ID::int32 number_;
  2140. ::PROTOBUF_NAMESPACE_ID::int32 oneof_index_;
  2141. int label_;
  2142. int type_;
  2143. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2144. };
  2145. // -------------------------------------------------------------------
  2146. class PROTOBUF_EXPORT OneofDescriptorProto :
  2147. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */ {
  2148. public:
  2149. OneofDescriptorProto();
  2150. virtual ~OneofDescriptorProto();
  2151. OneofDescriptorProto(const OneofDescriptorProto& from);
  2152. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  2153. : OneofDescriptorProto() {
  2154. *this = ::std::move(from);
  2155. }
  2156. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  2157. CopyFrom(from);
  2158. return *this;
  2159. }
  2160. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept {
  2161. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2162. if (this != &from) InternalSwap(&from);
  2163. } else {
  2164. CopyFrom(from);
  2165. }
  2166. return *this;
  2167. }
  2168. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2169. return _internal_metadata_.unknown_fields();
  2170. }
  2171. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2172. return _internal_metadata_.mutable_unknown_fields();
  2173. }
  2174. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  2175. return GetArenaNoVirtual();
  2176. }
  2177. inline void* GetMaybeArenaPointer() const final {
  2178. return MaybeArenaPtr();
  2179. }
  2180. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2181. return GetDescriptor();
  2182. }
  2183. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2184. return GetMetadataStatic().descriptor;
  2185. }
  2186. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2187. return GetMetadataStatic().reflection;
  2188. }
  2189. static const OneofDescriptorProto& default_instance();
  2190. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2191. static inline const OneofDescriptorProto* internal_default_instance() {
  2192. return reinterpret_cast<const OneofDescriptorProto*>(
  2193. &_OneofDescriptorProto_default_instance_);
  2194. }
  2195. static constexpr int kIndexInFileMessages =
  2196. 7;
  2197. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b) {
  2198. a.Swap(&b);
  2199. }
  2200. inline void Swap(OneofDescriptorProto* other) {
  2201. if (other == this) return;
  2202. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2203. InternalSwap(other);
  2204. } else {
  2205. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2206. }
  2207. }
  2208. void UnsafeArenaSwap(OneofDescriptorProto* other) {
  2209. if (other == this) return;
  2210. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2211. InternalSwap(other);
  2212. }
  2213. // implements Message ----------------------------------------------
  2214. inline OneofDescriptorProto* New() const final {
  2215. return CreateMaybeMessage<OneofDescriptorProto>(nullptr);
  2216. }
  2217. OneofDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2218. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  2219. }
  2220. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2221. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2222. void CopyFrom(const OneofDescriptorProto& from);
  2223. void MergeFrom(const OneofDescriptorProto& from);
  2224. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2225. bool IsInitialized() const final;
  2226. size_t ByteSizeLong() const final;
  2227. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2228. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2229. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2230. int GetCachedSize() const final { return _cached_size_.Get(); }
  2231. private:
  2232. inline void SharedCtor();
  2233. inline void SharedDtor();
  2234. void SetCachedSize(int size) const final;
  2235. void InternalSwap(OneofDescriptorProto* other);
  2236. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2237. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2238. return "google.protobuf.OneofDescriptorProto";
  2239. }
  2240. protected:
  2241. explicit OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2242. private:
  2243. static void ArenaDtor(void* object);
  2244. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2245. private:
  2246. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2247. return _internal_metadata_.arena();
  2248. }
  2249. inline void* MaybeArenaPtr() const {
  2250. return _internal_metadata_.raw_arena_ptr();
  2251. }
  2252. public:
  2253. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2254. private:
  2255. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2256. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  2257. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  2258. }
  2259. public:
  2260. // nested types ----------------------------------------------------
  2261. // accessors -------------------------------------------------------
  2262. enum : int {
  2263. kNameFieldNumber = 1,
  2264. kOptionsFieldNumber = 2,
  2265. };
  2266. // optional string name = 1;
  2267. bool has_name() const;
  2268. private:
  2269. bool _internal_has_name() const;
  2270. public:
  2271. void clear_name();
  2272. const std::string& name() const;
  2273. void set_name(const std::string& value);
  2274. void set_name(std::string&& value);
  2275. void set_name(const char* value);
  2276. void set_name(const char* value, size_t size);
  2277. std::string* mutable_name();
  2278. std::string* release_name();
  2279. void set_allocated_name(std::string* name);
  2280. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2281. " string fields are deprecated and will be removed in a"
  2282. " future release.")
  2283. std::string* unsafe_arena_release_name();
  2284. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2285. " string fields are deprecated and will be removed in a"
  2286. " future release.")
  2287. void unsafe_arena_set_allocated_name(
  2288. std::string* name);
  2289. private:
  2290. const std::string& _internal_name() const;
  2291. void _internal_set_name(const std::string& value);
  2292. std::string* _internal_mutable_name();
  2293. public:
  2294. // optional .google.protobuf.OneofOptions options = 2;
  2295. bool has_options() const;
  2296. private:
  2297. bool _internal_has_options() const;
  2298. public:
  2299. void clear_options();
  2300. const PROTOBUF_NAMESPACE_ID::OneofOptions& options() const;
  2301. PROTOBUF_NAMESPACE_ID::OneofOptions* release_options();
  2302. PROTOBUF_NAMESPACE_ID::OneofOptions* mutable_options();
  2303. void set_allocated_options(PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2304. private:
  2305. const PROTOBUF_NAMESPACE_ID::OneofOptions& _internal_options() const;
  2306. PROTOBUF_NAMESPACE_ID::OneofOptions* _internal_mutable_options();
  2307. public:
  2308. void unsafe_arena_set_allocated_options(
  2309. PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2310. PROTOBUF_NAMESPACE_ID::OneofOptions* unsafe_arena_release_options();
  2311. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  2312. private:
  2313. class _Internal;
  2314. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2315. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2316. typedef void InternalArenaConstructable_;
  2317. typedef void DestructorSkippable_;
  2318. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2319. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2320. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2321. PROTOBUF_NAMESPACE_ID::OneofOptions* options_;
  2322. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2323. };
  2324. // -------------------------------------------------------------------
  2325. class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange :
  2326. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */ {
  2327. public:
  2328. EnumDescriptorProto_EnumReservedRange();
  2329. virtual ~EnumDescriptorProto_EnumReservedRange();
  2330. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  2331. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  2332. : EnumDescriptorProto_EnumReservedRange() {
  2333. *this = ::std::move(from);
  2334. }
  2335. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) {
  2336. CopyFrom(from);
  2337. return *this;
  2338. }
  2339. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept {
  2340. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2341. if (this != &from) InternalSwap(&from);
  2342. } else {
  2343. CopyFrom(from);
  2344. }
  2345. return *this;
  2346. }
  2347. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2348. return _internal_metadata_.unknown_fields();
  2349. }
  2350. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2351. return _internal_metadata_.mutable_unknown_fields();
  2352. }
  2353. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  2354. return GetArenaNoVirtual();
  2355. }
  2356. inline void* GetMaybeArenaPointer() const final {
  2357. return MaybeArenaPtr();
  2358. }
  2359. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2360. return GetDescriptor();
  2361. }
  2362. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2363. return GetMetadataStatic().descriptor;
  2364. }
  2365. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2366. return GetMetadataStatic().reflection;
  2367. }
  2368. static const EnumDescriptorProto_EnumReservedRange& default_instance();
  2369. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2370. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance() {
  2371. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  2372. &_EnumDescriptorProto_EnumReservedRange_default_instance_);
  2373. }
  2374. static constexpr int kIndexInFileMessages =
  2375. 8;
  2376. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b) {
  2377. a.Swap(&b);
  2378. }
  2379. inline void Swap(EnumDescriptorProto_EnumReservedRange* other) {
  2380. if (other == this) return;
  2381. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2382. InternalSwap(other);
  2383. } else {
  2384. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2385. }
  2386. }
  2387. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other) {
  2388. if (other == this) return;
  2389. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2390. InternalSwap(other);
  2391. }
  2392. // implements Message ----------------------------------------------
  2393. inline EnumDescriptorProto_EnumReservedRange* New() const final {
  2394. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(nullptr);
  2395. }
  2396. EnumDescriptorProto_EnumReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2397. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  2398. }
  2399. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2400. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2401. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2402. void MergeFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2403. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2404. bool IsInitialized() const final;
  2405. size_t ByteSizeLong() const final;
  2406. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2407. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2408. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2409. int GetCachedSize() const final { return _cached_size_.Get(); }
  2410. private:
  2411. inline void SharedCtor();
  2412. inline void SharedDtor();
  2413. void SetCachedSize(int size) const final;
  2414. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  2415. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2416. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2417. return "google.protobuf.EnumDescriptorProto.EnumReservedRange";
  2418. }
  2419. protected:
  2420. explicit EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2421. private:
  2422. static void ArenaDtor(void* object);
  2423. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2424. private:
  2425. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2426. return _internal_metadata_.arena();
  2427. }
  2428. inline void* MaybeArenaPtr() const {
  2429. return _internal_metadata_.raw_arena_ptr();
  2430. }
  2431. public:
  2432. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2433. private:
  2434. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2435. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  2436. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  2437. }
  2438. public:
  2439. // nested types ----------------------------------------------------
  2440. // accessors -------------------------------------------------------
  2441. enum : int {
  2442. kStartFieldNumber = 1,
  2443. kEndFieldNumber = 2,
  2444. };
  2445. // optional int32 start = 1;
  2446. bool has_start() const;
  2447. private:
  2448. bool _internal_has_start() const;
  2449. public:
  2450. void clear_start();
  2451. ::PROTOBUF_NAMESPACE_ID::int32 start() const;
  2452. void set_start(::PROTOBUF_NAMESPACE_ID::int32 value);
  2453. private:
  2454. ::PROTOBUF_NAMESPACE_ID::int32 _internal_start() const;
  2455. void _internal_set_start(::PROTOBUF_NAMESPACE_ID::int32 value);
  2456. public:
  2457. // optional int32 end = 2;
  2458. bool has_end() const;
  2459. private:
  2460. bool _internal_has_end() const;
  2461. public:
  2462. void clear_end();
  2463. ::PROTOBUF_NAMESPACE_ID::int32 end() const;
  2464. void set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  2465. private:
  2466. ::PROTOBUF_NAMESPACE_ID::int32 _internal_end() const;
  2467. void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  2468. public:
  2469. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  2470. private:
  2471. class _Internal;
  2472. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2473. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2474. typedef void InternalArenaConstructable_;
  2475. typedef void DestructorSkippable_;
  2476. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2477. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2478. ::PROTOBUF_NAMESPACE_ID::int32 start_;
  2479. ::PROTOBUF_NAMESPACE_ID::int32 end_;
  2480. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2481. };
  2482. // -------------------------------------------------------------------
  2483. class PROTOBUF_EXPORT EnumDescriptorProto :
  2484. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */ {
  2485. public:
  2486. EnumDescriptorProto();
  2487. virtual ~EnumDescriptorProto();
  2488. EnumDescriptorProto(const EnumDescriptorProto& from);
  2489. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  2490. : EnumDescriptorProto() {
  2491. *this = ::std::move(from);
  2492. }
  2493. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  2494. CopyFrom(from);
  2495. return *this;
  2496. }
  2497. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept {
  2498. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2499. if (this != &from) InternalSwap(&from);
  2500. } else {
  2501. CopyFrom(from);
  2502. }
  2503. return *this;
  2504. }
  2505. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2506. return _internal_metadata_.unknown_fields();
  2507. }
  2508. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2509. return _internal_metadata_.mutable_unknown_fields();
  2510. }
  2511. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  2512. return GetArenaNoVirtual();
  2513. }
  2514. inline void* GetMaybeArenaPointer() const final {
  2515. return MaybeArenaPtr();
  2516. }
  2517. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2518. return GetDescriptor();
  2519. }
  2520. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2521. return GetMetadataStatic().descriptor;
  2522. }
  2523. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2524. return GetMetadataStatic().reflection;
  2525. }
  2526. static const EnumDescriptorProto& default_instance();
  2527. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2528. static inline const EnumDescriptorProto* internal_default_instance() {
  2529. return reinterpret_cast<const EnumDescriptorProto*>(
  2530. &_EnumDescriptorProto_default_instance_);
  2531. }
  2532. static constexpr int kIndexInFileMessages =
  2533. 9;
  2534. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b) {
  2535. a.Swap(&b);
  2536. }
  2537. inline void Swap(EnumDescriptorProto* other) {
  2538. if (other == this) return;
  2539. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2540. InternalSwap(other);
  2541. } else {
  2542. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2543. }
  2544. }
  2545. void UnsafeArenaSwap(EnumDescriptorProto* other) {
  2546. if (other == this) return;
  2547. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2548. InternalSwap(other);
  2549. }
  2550. // implements Message ----------------------------------------------
  2551. inline EnumDescriptorProto* New() const final {
  2552. return CreateMaybeMessage<EnumDescriptorProto>(nullptr);
  2553. }
  2554. EnumDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2555. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  2556. }
  2557. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2558. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2559. void CopyFrom(const EnumDescriptorProto& from);
  2560. void MergeFrom(const EnumDescriptorProto& from);
  2561. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2562. bool IsInitialized() const final;
  2563. size_t ByteSizeLong() const final;
  2564. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2565. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2566. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2567. int GetCachedSize() const final { return _cached_size_.Get(); }
  2568. private:
  2569. inline void SharedCtor();
  2570. inline void SharedDtor();
  2571. void SetCachedSize(int size) const final;
  2572. void InternalSwap(EnumDescriptorProto* other);
  2573. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2574. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2575. return "google.protobuf.EnumDescriptorProto";
  2576. }
  2577. protected:
  2578. explicit EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2579. private:
  2580. static void ArenaDtor(void* object);
  2581. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2582. private:
  2583. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2584. return _internal_metadata_.arena();
  2585. }
  2586. inline void* MaybeArenaPtr() const {
  2587. return _internal_metadata_.raw_arena_ptr();
  2588. }
  2589. public:
  2590. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2591. private:
  2592. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2593. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  2594. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  2595. }
  2596. public:
  2597. // nested types ----------------------------------------------------
  2598. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  2599. // accessors -------------------------------------------------------
  2600. enum : int {
  2601. kValueFieldNumber = 2,
  2602. kReservedRangeFieldNumber = 4,
  2603. kReservedNameFieldNumber = 5,
  2604. kNameFieldNumber = 1,
  2605. kOptionsFieldNumber = 3,
  2606. };
  2607. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2608. int value_size() const;
  2609. private:
  2610. int _internal_value_size() const;
  2611. public:
  2612. void clear_value();
  2613. PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* mutable_value(int index);
  2614. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  2615. mutable_value();
  2616. private:
  2617. const PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& _internal_value(int index) const;
  2618. PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _internal_add_value();
  2619. public:
  2620. const PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& value(int index) const;
  2621. PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* add_value();
  2622. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  2623. value() const;
  2624. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  2625. int reserved_range_size() const;
  2626. private:
  2627. int _internal_reserved_range_size() const;
  2628. public:
  2629. void clear_reserved_range();
  2630. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  2631. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  2632. mutable_reserved_range();
  2633. private:
  2634. const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& _internal_reserved_range(int index) const;
  2635. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _internal_add_reserved_range();
  2636. public:
  2637. const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  2638. PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  2639. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  2640. reserved_range() const;
  2641. // repeated string reserved_name = 5;
  2642. int reserved_name_size() const;
  2643. private:
  2644. int _internal_reserved_name_size() const;
  2645. public:
  2646. void clear_reserved_name();
  2647. const std::string& reserved_name(int index) const;
  2648. std::string* mutable_reserved_name(int index);
  2649. void set_reserved_name(int index, const std::string& value);
  2650. void set_reserved_name(int index, std::string&& value);
  2651. void set_reserved_name(int index, const char* value);
  2652. void set_reserved_name(int index, const char* value, size_t size);
  2653. std::string* add_reserved_name();
  2654. void add_reserved_name(const std::string& value);
  2655. void add_reserved_name(std::string&& value);
  2656. void add_reserved_name(const char* value);
  2657. void add_reserved_name(const char* value, size_t size);
  2658. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  2659. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  2660. private:
  2661. const std::string& _internal_reserved_name(int index) const;
  2662. std::string* _internal_add_reserved_name();
  2663. public:
  2664. // optional string name = 1;
  2665. bool has_name() const;
  2666. private:
  2667. bool _internal_has_name() const;
  2668. public:
  2669. void clear_name();
  2670. const std::string& name() const;
  2671. void set_name(const std::string& value);
  2672. void set_name(std::string&& value);
  2673. void set_name(const char* value);
  2674. void set_name(const char* value, size_t size);
  2675. std::string* mutable_name();
  2676. std::string* release_name();
  2677. void set_allocated_name(std::string* name);
  2678. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2679. " string fields are deprecated and will be removed in a"
  2680. " future release.")
  2681. std::string* unsafe_arena_release_name();
  2682. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2683. " string fields are deprecated and will be removed in a"
  2684. " future release.")
  2685. void unsafe_arena_set_allocated_name(
  2686. std::string* name);
  2687. private:
  2688. const std::string& _internal_name() const;
  2689. void _internal_set_name(const std::string& value);
  2690. std::string* _internal_mutable_name();
  2691. public:
  2692. // optional .google.protobuf.EnumOptions options = 3;
  2693. bool has_options() const;
  2694. private:
  2695. bool _internal_has_options() const;
  2696. public:
  2697. void clear_options();
  2698. const PROTOBUF_NAMESPACE_ID::EnumOptions& options() const;
  2699. PROTOBUF_NAMESPACE_ID::EnumOptions* release_options();
  2700. PROTOBUF_NAMESPACE_ID::EnumOptions* mutable_options();
  2701. void set_allocated_options(PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2702. private:
  2703. const PROTOBUF_NAMESPACE_ID::EnumOptions& _internal_options() const;
  2704. PROTOBUF_NAMESPACE_ID::EnumOptions* _internal_mutable_options();
  2705. public:
  2706. void unsafe_arena_set_allocated_options(
  2707. PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2708. PROTOBUF_NAMESPACE_ID::EnumOptions* unsafe_arena_release_options();
  2709. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  2710. private:
  2711. class _Internal;
  2712. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2713. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2714. typedef void InternalArenaConstructable_;
  2715. typedef void DestructorSkippable_;
  2716. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2717. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2718. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto > value_;
  2719. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange > reserved_range_;
  2720. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  2721. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2722. PROTOBUF_NAMESPACE_ID::EnumOptions* options_;
  2723. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2724. };
  2725. // -------------------------------------------------------------------
  2726. class PROTOBUF_EXPORT EnumValueDescriptorProto :
  2727. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */ {
  2728. public:
  2729. EnumValueDescriptorProto();
  2730. virtual ~EnumValueDescriptorProto();
  2731. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  2732. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  2733. : EnumValueDescriptorProto() {
  2734. *this = ::std::move(from);
  2735. }
  2736. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  2737. CopyFrom(from);
  2738. return *this;
  2739. }
  2740. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept {
  2741. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2742. if (this != &from) InternalSwap(&from);
  2743. } else {
  2744. CopyFrom(from);
  2745. }
  2746. return *this;
  2747. }
  2748. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2749. return _internal_metadata_.unknown_fields();
  2750. }
  2751. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2752. return _internal_metadata_.mutable_unknown_fields();
  2753. }
  2754. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  2755. return GetArenaNoVirtual();
  2756. }
  2757. inline void* GetMaybeArenaPointer() const final {
  2758. return MaybeArenaPtr();
  2759. }
  2760. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2761. return GetDescriptor();
  2762. }
  2763. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2764. return GetMetadataStatic().descriptor;
  2765. }
  2766. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2767. return GetMetadataStatic().reflection;
  2768. }
  2769. static const EnumValueDescriptorProto& default_instance();
  2770. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2771. static inline const EnumValueDescriptorProto* internal_default_instance() {
  2772. return reinterpret_cast<const EnumValueDescriptorProto*>(
  2773. &_EnumValueDescriptorProto_default_instance_);
  2774. }
  2775. static constexpr int kIndexInFileMessages =
  2776. 10;
  2777. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b) {
  2778. a.Swap(&b);
  2779. }
  2780. inline void Swap(EnumValueDescriptorProto* other) {
  2781. if (other == this) return;
  2782. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2783. InternalSwap(other);
  2784. } else {
  2785. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2786. }
  2787. }
  2788. void UnsafeArenaSwap(EnumValueDescriptorProto* other) {
  2789. if (other == this) return;
  2790. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2791. InternalSwap(other);
  2792. }
  2793. // implements Message ----------------------------------------------
  2794. inline EnumValueDescriptorProto* New() const final {
  2795. return CreateMaybeMessage<EnumValueDescriptorProto>(nullptr);
  2796. }
  2797. EnumValueDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2798. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  2799. }
  2800. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2801. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2802. void CopyFrom(const EnumValueDescriptorProto& from);
  2803. void MergeFrom(const EnumValueDescriptorProto& from);
  2804. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2805. bool IsInitialized() const final;
  2806. size_t ByteSizeLong() const final;
  2807. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2808. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  2809. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2810. int GetCachedSize() const final { return _cached_size_.Get(); }
  2811. private:
  2812. inline void SharedCtor();
  2813. inline void SharedDtor();
  2814. void SetCachedSize(int size) const final;
  2815. void InternalSwap(EnumValueDescriptorProto* other);
  2816. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2817. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2818. return "google.protobuf.EnumValueDescriptorProto";
  2819. }
  2820. protected:
  2821. explicit EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2822. private:
  2823. static void ArenaDtor(void* object);
  2824. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2825. private:
  2826. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  2827. return _internal_metadata_.arena();
  2828. }
  2829. inline void* MaybeArenaPtr() const {
  2830. return _internal_metadata_.raw_arena_ptr();
  2831. }
  2832. public:
  2833. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2834. private:
  2835. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  2836. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  2837. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  2838. }
  2839. public:
  2840. // nested types ----------------------------------------------------
  2841. // accessors -------------------------------------------------------
  2842. enum : int {
  2843. kNameFieldNumber = 1,
  2844. kOptionsFieldNumber = 3,
  2845. kNumberFieldNumber = 2,
  2846. };
  2847. // optional string name = 1;
  2848. bool has_name() const;
  2849. private:
  2850. bool _internal_has_name() const;
  2851. public:
  2852. void clear_name();
  2853. const std::string& name() const;
  2854. void set_name(const std::string& value);
  2855. void set_name(std::string&& value);
  2856. void set_name(const char* value);
  2857. void set_name(const char* value, size_t size);
  2858. std::string* mutable_name();
  2859. std::string* release_name();
  2860. void set_allocated_name(std::string* name);
  2861. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2862. " string fields are deprecated and will be removed in a"
  2863. " future release.")
  2864. std::string* unsafe_arena_release_name();
  2865. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2866. " string fields are deprecated and will be removed in a"
  2867. " future release.")
  2868. void unsafe_arena_set_allocated_name(
  2869. std::string* name);
  2870. private:
  2871. const std::string& _internal_name() const;
  2872. void _internal_set_name(const std::string& value);
  2873. std::string* _internal_mutable_name();
  2874. public:
  2875. // optional .google.protobuf.EnumValueOptions options = 3;
  2876. bool has_options() const;
  2877. private:
  2878. bool _internal_has_options() const;
  2879. public:
  2880. void clear_options();
  2881. const PROTOBUF_NAMESPACE_ID::EnumValueOptions& options() const;
  2882. PROTOBUF_NAMESPACE_ID::EnumValueOptions* release_options();
  2883. PROTOBUF_NAMESPACE_ID::EnumValueOptions* mutable_options();
  2884. void set_allocated_options(PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2885. private:
  2886. const PROTOBUF_NAMESPACE_ID::EnumValueOptions& _internal_options() const;
  2887. PROTOBUF_NAMESPACE_ID::EnumValueOptions* _internal_mutable_options();
  2888. public:
  2889. void unsafe_arena_set_allocated_options(
  2890. PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2891. PROTOBUF_NAMESPACE_ID::EnumValueOptions* unsafe_arena_release_options();
  2892. // optional int32 number = 2;
  2893. bool has_number() const;
  2894. private:
  2895. bool _internal_has_number() const;
  2896. public:
  2897. void clear_number();
  2898. ::PROTOBUF_NAMESPACE_ID::int32 number() const;
  2899. void set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
  2900. private:
  2901. ::PROTOBUF_NAMESPACE_ID::int32 _internal_number() const;
  2902. void _internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
  2903. public:
  2904. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  2905. private:
  2906. class _Internal;
  2907. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  2908. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2909. typedef void InternalArenaConstructable_;
  2910. typedef void DestructorSkippable_;
  2911. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2912. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2913. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2914. PROTOBUF_NAMESPACE_ID::EnumValueOptions* options_;
  2915. ::PROTOBUF_NAMESPACE_ID::int32 number_;
  2916. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2917. };
  2918. // -------------------------------------------------------------------
  2919. class PROTOBUF_EXPORT ServiceDescriptorProto :
  2920. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */ {
  2921. public:
  2922. ServiceDescriptorProto();
  2923. virtual ~ServiceDescriptorProto();
  2924. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  2925. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  2926. : ServiceDescriptorProto() {
  2927. *this = ::std::move(from);
  2928. }
  2929. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  2930. CopyFrom(from);
  2931. return *this;
  2932. }
  2933. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept {
  2934. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2935. if (this != &from) InternalSwap(&from);
  2936. } else {
  2937. CopyFrom(from);
  2938. }
  2939. return *this;
  2940. }
  2941. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2942. return _internal_metadata_.unknown_fields();
  2943. }
  2944. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2945. return _internal_metadata_.mutable_unknown_fields();
  2946. }
  2947. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  2948. return GetArenaNoVirtual();
  2949. }
  2950. inline void* GetMaybeArenaPointer() const final {
  2951. return MaybeArenaPtr();
  2952. }
  2953. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2954. return GetDescriptor();
  2955. }
  2956. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2957. return GetMetadataStatic().descriptor;
  2958. }
  2959. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2960. return GetMetadataStatic().reflection;
  2961. }
  2962. static const ServiceDescriptorProto& default_instance();
  2963. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2964. static inline const ServiceDescriptorProto* internal_default_instance() {
  2965. return reinterpret_cast<const ServiceDescriptorProto*>(
  2966. &_ServiceDescriptorProto_default_instance_);
  2967. }
  2968. static constexpr int kIndexInFileMessages =
  2969. 11;
  2970. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b) {
  2971. a.Swap(&b);
  2972. }
  2973. inline void Swap(ServiceDescriptorProto* other) {
  2974. if (other == this) return;
  2975. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  2976. InternalSwap(other);
  2977. } else {
  2978. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2979. }
  2980. }
  2981. void UnsafeArenaSwap(ServiceDescriptorProto* other) {
  2982. if (other == this) return;
  2983. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  2984. InternalSwap(other);
  2985. }
  2986. // implements Message ----------------------------------------------
  2987. inline ServiceDescriptorProto* New() const final {
  2988. return CreateMaybeMessage<ServiceDescriptorProto>(nullptr);
  2989. }
  2990. ServiceDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  2991. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  2992. }
  2993. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2994. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  2995. void CopyFrom(const ServiceDescriptorProto& from);
  2996. void MergeFrom(const ServiceDescriptorProto& from);
  2997. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2998. bool IsInitialized() const final;
  2999. size_t ByteSizeLong() const final;
  3000. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3001. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3002. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3003. int GetCachedSize() const final { return _cached_size_.Get(); }
  3004. private:
  3005. inline void SharedCtor();
  3006. inline void SharedDtor();
  3007. void SetCachedSize(int size) const final;
  3008. void InternalSwap(ServiceDescriptorProto* other);
  3009. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3010. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3011. return "google.protobuf.ServiceDescriptorProto";
  3012. }
  3013. protected:
  3014. explicit ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3015. private:
  3016. static void ArenaDtor(void* object);
  3017. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3018. private:
  3019. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3020. return _internal_metadata_.arena();
  3021. }
  3022. inline void* MaybeArenaPtr() const {
  3023. return _internal_metadata_.raw_arena_ptr();
  3024. }
  3025. public:
  3026. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3027. private:
  3028. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3029. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  3030. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  3031. }
  3032. public:
  3033. // nested types ----------------------------------------------------
  3034. // accessors -------------------------------------------------------
  3035. enum : int {
  3036. kMethodFieldNumber = 2,
  3037. kNameFieldNumber = 1,
  3038. kOptionsFieldNumber = 3,
  3039. };
  3040. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3041. int method_size() const;
  3042. private:
  3043. int _internal_method_size() const;
  3044. public:
  3045. void clear_method();
  3046. PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* mutable_method(int index);
  3047. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  3048. mutable_method();
  3049. private:
  3050. const PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& _internal_method(int index) const;
  3051. PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _internal_add_method();
  3052. public:
  3053. const PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& method(int index) const;
  3054. PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* add_method();
  3055. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  3056. method() const;
  3057. // optional string name = 1;
  3058. bool has_name() const;
  3059. private:
  3060. bool _internal_has_name() const;
  3061. public:
  3062. void clear_name();
  3063. const std::string& name() const;
  3064. void set_name(const std::string& value);
  3065. void set_name(std::string&& value);
  3066. void set_name(const char* value);
  3067. void set_name(const char* value, size_t size);
  3068. std::string* mutable_name();
  3069. std::string* release_name();
  3070. void set_allocated_name(std::string* name);
  3071. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3072. " string fields are deprecated and will be removed in a"
  3073. " future release.")
  3074. std::string* unsafe_arena_release_name();
  3075. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3076. " string fields are deprecated and will be removed in a"
  3077. " future release.")
  3078. void unsafe_arena_set_allocated_name(
  3079. std::string* name);
  3080. private:
  3081. const std::string& _internal_name() const;
  3082. void _internal_set_name(const std::string& value);
  3083. std::string* _internal_mutable_name();
  3084. public:
  3085. // optional .google.protobuf.ServiceOptions options = 3;
  3086. bool has_options() const;
  3087. private:
  3088. bool _internal_has_options() const;
  3089. public:
  3090. void clear_options();
  3091. const PROTOBUF_NAMESPACE_ID::ServiceOptions& options() const;
  3092. PROTOBUF_NAMESPACE_ID::ServiceOptions* release_options();
  3093. PROTOBUF_NAMESPACE_ID::ServiceOptions* mutable_options();
  3094. void set_allocated_options(PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3095. private:
  3096. const PROTOBUF_NAMESPACE_ID::ServiceOptions& _internal_options() const;
  3097. PROTOBUF_NAMESPACE_ID::ServiceOptions* _internal_mutable_options();
  3098. public:
  3099. void unsafe_arena_set_allocated_options(
  3100. PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3101. PROTOBUF_NAMESPACE_ID::ServiceOptions* unsafe_arena_release_options();
  3102. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  3103. private:
  3104. class _Internal;
  3105. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3106. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3107. typedef void InternalArenaConstructable_;
  3108. typedef void DestructorSkippable_;
  3109. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3110. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3111. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto > method_;
  3112. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3113. PROTOBUF_NAMESPACE_ID::ServiceOptions* options_;
  3114. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3115. };
  3116. // -------------------------------------------------------------------
  3117. class PROTOBUF_EXPORT MethodDescriptorProto :
  3118. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */ {
  3119. public:
  3120. MethodDescriptorProto();
  3121. virtual ~MethodDescriptorProto();
  3122. MethodDescriptorProto(const MethodDescriptorProto& from);
  3123. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  3124. : MethodDescriptorProto() {
  3125. *this = ::std::move(from);
  3126. }
  3127. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  3128. CopyFrom(from);
  3129. return *this;
  3130. }
  3131. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept {
  3132. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3133. if (this != &from) InternalSwap(&from);
  3134. } else {
  3135. CopyFrom(from);
  3136. }
  3137. return *this;
  3138. }
  3139. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3140. return _internal_metadata_.unknown_fields();
  3141. }
  3142. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3143. return _internal_metadata_.mutable_unknown_fields();
  3144. }
  3145. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  3146. return GetArenaNoVirtual();
  3147. }
  3148. inline void* GetMaybeArenaPointer() const final {
  3149. return MaybeArenaPtr();
  3150. }
  3151. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3152. return GetDescriptor();
  3153. }
  3154. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3155. return GetMetadataStatic().descriptor;
  3156. }
  3157. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3158. return GetMetadataStatic().reflection;
  3159. }
  3160. static const MethodDescriptorProto& default_instance();
  3161. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3162. static inline const MethodDescriptorProto* internal_default_instance() {
  3163. return reinterpret_cast<const MethodDescriptorProto*>(
  3164. &_MethodDescriptorProto_default_instance_);
  3165. }
  3166. static constexpr int kIndexInFileMessages =
  3167. 12;
  3168. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b) {
  3169. a.Swap(&b);
  3170. }
  3171. inline void Swap(MethodDescriptorProto* other) {
  3172. if (other == this) return;
  3173. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  3174. InternalSwap(other);
  3175. } else {
  3176. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3177. }
  3178. }
  3179. void UnsafeArenaSwap(MethodDescriptorProto* other) {
  3180. if (other == this) return;
  3181. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  3182. InternalSwap(other);
  3183. }
  3184. // implements Message ----------------------------------------------
  3185. inline MethodDescriptorProto* New() const final {
  3186. return CreateMaybeMessage<MethodDescriptorProto>(nullptr);
  3187. }
  3188. MethodDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3189. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  3190. }
  3191. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3192. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3193. void CopyFrom(const MethodDescriptorProto& from);
  3194. void MergeFrom(const MethodDescriptorProto& from);
  3195. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3196. bool IsInitialized() const final;
  3197. size_t ByteSizeLong() const final;
  3198. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3199. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3200. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3201. int GetCachedSize() const final { return _cached_size_.Get(); }
  3202. private:
  3203. inline void SharedCtor();
  3204. inline void SharedDtor();
  3205. void SetCachedSize(int size) const final;
  3206. void InternalSwap(MethodDescriptorProto* other);
  3207. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3208. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3209. return "google.protobuf.MethodDescriptorProto";
  3210. }
  3211. protected:
  3212. explicit MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3213. private:
  3214. static void ArenaDtor(void* object);
  3215. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3216. private:
  3217. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3218. return _internal_metadata_.arena();
  3219. }
  3220. inline void* MaybeArenaPtr() const {
  3221. return _internal_metadata_.raw_arena_ptr();
  3222. }
  3223. public:
  3224. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3225. private:
  3226. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3227. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  3228. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  3229. }
  3230. public:
  3231. // nested types ----------------------------------------------------
  3232. // accessors -------------------------------------------------------
  3233. enum : int {
  3234. kNameFieldNumber = 1,
  3235. kInputTypeFieldNumber = 2,
  3236. kOutputTypeFieldNumber = 3,
  3237. kOptionsFieldNumber = 4,
  3238. kClientStreamingFieldNumber = 5,
  3239. kServerStreamingFieldNumber = 6,
  3240. };
  3241. // optional string name = 1;
  3242. bool has_name() const;
  3243. private:
  3244. bool _internal_has_name() const;
  3245. public:
  3246. void clear_name();
  3247. const std::string& name() const;
  3248. void set_name(const std::string& value);
  3249. void set_name(std::string&& value);
  3250. void set_name(const char* value);
  3251. void set_name(const char* value, size_t size);
  3252. std::string* mutable_name();
  3253. std::string* release_name();
  3254. void set_allocated_name(std::string* name);
  3255. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3256. " string fields are deprecated and will be removed in a"
  3257. " future release.")
  3258. std::string* unsafe_arena_release_name();
  3259. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3260. " string fields are deprecated and will be removed in a"
  3261. " future release.")
  3262. void unsafe_arena_set_allocated_name(
  3263. std::string* name);
  3264. private:
  3265. const std::string& _internal_name() const;
  3266. void _internal_set_name(const std::string& value);
  3267. std::string* _internal_mutable_name();
  3268. public:
  3269. // optional string input_type = 2;
  3270. bool has_input_type() const;
  3271. private:
  3272. bool _internal_has_input_type() const;
  3273. public:
  3274. void clear_input_type();
  3275. const std::string& input_type() const;
  3276. void set_input_type(const std::string& value);
  3277. void set_input_type(std::string&& value);
  3278. void set_input_type(const char* value);
  3279. void set_input_type(const char* value, size_t size);
  3280. std::string* mutable_input_type();
  3281. std::string* release_input_type();
  3282. void set_allocated_input_type(std::string* input_type);
  3283. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3284. " string fields are deprecated and will be removed in a"
  3285. " future release.")
  3286. std::string* unsafe_arena_release_input_type();
  3287. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3288. " string fields are deprecated and will be removed in a"
  3289. " future release.")
  3290. void unsafe_arena_set_allocated_input_type(
  3291. std::string* input_type);
  3292. private:
  3293. const std::string& _internal_input_type() const;
  3294. void _internal_set_input_type(const std::string& value);
  3295. std::string* _internal_mutable_input_type();
  3296. public:
  3297. // optional string output_type = 3;
  3298. bool has_output_type() const;
  3299. private:
  3300. bool _internal_has_output_type() const;
  3301. public:
  3302. void clear_output_type();
  3303. const std::string& output_type() const;
  3304. void set_output_type(const std::string& value);
  3305. void set_output_type(std::string&& value);
  3306. void set_output_type(const char* value);
  3307. void set_output_type(const char* value, size_t size);
  3308. std::string* mutable_output_type();
  3309. std::string* release_output_type();
  3310. void set_allocated_output_type(std::string* output_type);
  3311. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3312. " string fields are deprecated and will be removed in a"
  3313. " future release.")
  3314. std::string* unsafe_arena_release_output_type();
  3315. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3316. " string fields are deprecated and will be removed in a"
  3317. " future release.")
  3318. void unsafe_arena_set_allocated_output_type(
  3319. std::string* output_type);
  3320. private:
  3321. const std::string& _internal_output_type() const;
  3322. void _internal_set_output_type(const std::string& value);
  3323. std::string* _internal_mutable_output_type();
  3324. public:
  3325. // optional .google.protobuf.MethodOptions options = 4;
  3326. bool has_options() const;
  3327. private:
  3328. bool _internal_has_options() const;
  3329. public:
  3330. void clear_options();
  3331. const PROTOBUF_NAMESPACE_ID::MethodOptions& options() const;
  3332. PROTOBUF_NAMESPACE_ID::MethodOptions* release_options();
  3333. PROTOBUF_NAMESPACE_ID::MethodOptions* mutable_options();
  3334. void set_allocated_options(PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3335. private:
  3336. const PROTOBUF_NAMESPACE_ID::MethodOptions& _internal_options() const;
  3337. PROTOBUF_NAMESPACE_ID::MethodOptions* _internal_mutable_options();
  3338. public:
  3339. void unsafe_arena_set_allocated_options(
  3340. PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3341. PROTOBUF_NAMESPACE_ID::MethodOptions* unsafe_arena_release_options();
  3342. // optional bool client_streaming = 5 [default = false];
  3343. bool has_client_streaming() const;
  3344. private:
  3345. bool _internal_has_client_streaming() const;
  3346. public:
  3347. void clear_client_streaming();
  3348. bool client_streaming() const;
  3349. void set_client_streaming(bool value);
  3350. private:
  3351. bool _internal_client_streaming() const;
  3352. void _internal_set_client_streaming(bool value);
  3353. public:
  3354. // optional bool server_streaming = 6 [default = false];
  3355. bool has_server_streaming() const;
  3356. private:
  3357. bool _internal_has_server_streaming() const;
  3358. public:
  3359. void clear_server_streaming();
  3360. bool server_streaming() const;
  3361. void set_server_streaming(bool value);
  3362. private:
  3363. bool _internal_server_streaming() const;
  3364. void _internal_set_server_streaming(bool value);
  3365. public:
  3366. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  3367. private:
  3368. class _Internal;
  3369. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3370. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3371. typedef void InternalArenaConstructable_;
  3372. typedef void DestructorSkippable_;
  3373. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3374. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3375. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3376. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_type_;
  3377. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_type_;
  3378. PROTOBUF_NAMESPACE_ID::MethodOptions* options_;
  3379. bool client_streaming_;
  3380. bool server_streaming_;
  3381. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3382. };
  3383. // -------------------------------------------------------------------
  3384. class PROTOBUF_EXPORT FileOptions :
  3385. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */ {
  3386. public:
  3387. FileOptions();
  3388. virtual ~FileOptions();
  3389. FileOptions(const FileOptions& from);
  3390. FileOptions(FileOptions&& from) noexcept
  3391. : FileOptions() {
  3392. *this = ::std::move(from);
  3393. }
  3394. inline FileOptions& operator=(const FileOptions& from) {
  3395. CopyFrom(from);
  3396. return *this;
  3397. }
  3398. inline FileOptions& operator=(FileOptions&& from) noexcept {
  3399. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3400. if (this != &from) InternalSwap(&from);
  3401. } else {
  3402. CopyFrom(from);
  3403. }
  3404. return *this;
  3405. }
  3406. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3407. return _internal_metadata_.unknown_fields();
  3408. }
  3409. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3410. return _internal_metadata_.mutable_unknown_fields();
  3411. }
  3412. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  3413. return GetArenaNoVirtual();
  3414. }
  3415. inline void* GetMaybeArenaPointer() const final {
  3416. return MaybeArenaPtr();
  3417. }
  3418. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3419. return GetDescriptor();
  3420. }
  3421. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3422. return GetMetadataStatic().descriptor;
  3423. }
  3424. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3425. return GetMetadataStatic().reflection;
  3426. }
  3427. static const FileOptions& default_instance();
  3428. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3429. static inline const FileOptions* internal_default_instance() {
  3430. return reinterpret_cast<const FileOptions*>(
  3431. &_FileOptions_default_instance_);
  3432. }
  3433. static constexpr int kIndexInFileMessages =
  3434. 13;
  3435. friend void swap(FileOptions& a, FileOptions& b) {
  3436. a.Swap(&b);
  3437. }
  3438. inline void Swap(FileOptions* other) {
  3439. if (other == this) return;
  3440. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  3441. InternalSwap(other);
  3442. } else {
  3443. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3444. }
  3445. }
  3446. void UnsafeArenaSwap(FileOptions* other) {
  3447. if (other == this) return;
  3448. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  3449. InternalSwap(other);
  3450. }
  3451. // implements Message ----------------------------------------------
  3452. inline FileOptions* New() const final {
  3453. return CreateMaybeMessage<FileOptions>(nullptr);
  3454. }
  3455. FileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  3456. return CreateMaybeMessage<FileOptions>(arena);
  3457. }
  3458. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3459. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  3460. void CopyFrom(const FileOptions& from);
  3461. void MergeFrom(const FileOptions& from);
  3462. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3463. bool IsInitialized() const final;
  3464. size_t ByteSizeLong() const final;
  3465. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3466. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  3467. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3468. int GetCachedSize() const final { return _cached_size_.Get(); }
  3469. private:
  3470. inline void SharedCtor();
  3471. inline void SharedDtor();
  3472. void SetCachedSize(int size) const final;
  3473. void InternalSwap(FileOptions* other);
  3474. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3475. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3476. return "google.protobuf.FileOptions";
  3477. }
  3478. protected:
  3479. explicit FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3480. private:
  3481. static void ArenaDtor(void* object);
  3482. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3483. private:
  3484. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  3485. return _internal_metadata_.arena();
  3486. }
  3487. inline void* MaybeArenaPtr() const {
  3488. return _internal_metadata_.raw_arena_ptr();
  3489. }
  3490. public:
  3491. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3492. private:
  3493. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  3494. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  3495. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  3496. }
  3497. public:
  3498. // nested types ----------------------------------------------------
  3499. typedef FileOptions_OptimizeMode OptimizeMode;
  3500. static constexpr OptimizeMode SPEED =
  3501. FileOptions_OptimizeMode_SPEED;
  3502. static constexpr OptimizeMode CODE_SIZE =
  3503. FileOptions_OptimizeMode_CODE_SIZE;
  3504. static constexpr OptimizeMode LITE_RUNTIME =
  3505. FileOptions_OptimizeMode_LITE_RUNTIME;
  3506. static inline bool OptimizeMode_IsValid(int value) {
  3507. return FileOptions_OptimizeMode_IsValid(value);
  3508. }
  3509. static constexpr OptimizeMode OptimizeMode_MIN =
  3510. FileOptions_OptimizeMode_OptimizeMode_MIN;
  3511. static constexpr OptimizeMode OptimizeMode_MAX =
  3512. FileOptions_OptimizeMode_OptimizeMode_MAX;
  3513. static constexpr int OptimizeMode_ARRAYSIZE =
  3514. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  3515. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  3516. OptimizeMode_descriptor() {
  3517. return FileOptions_OptimizeMode_descriptor();
  3518. }
  3519. template<typename T>
  3520. static inline const std::string& OptimizeMode_Name(T enum_t_value) {
  3521. static_assert(::std::is_same<T, OptimizeMode>::value ||
  3522. ::std::is_integral<T>::value,
  3523. "Incorrect type passed to function OptimizeMode_Name.");
  3524. return FileOptions_OptimizeMode_Name(enum_t_value);
  3525. }
  3526. static inline bool OptimizeMode_Parse(const std::string& name,
  3527. OptimizeMode* value) {
  3528. return FileOptions_OptimizeMode_Parse(name, value);
  3529. }
  3530. // accessors -------------------------------------------------------
  3531. enum : int {
  3532. kUninterpretedOptionFieldNumber = 999,
  3533. kJavaPackageFieldNumber = 1,
  3534. kJavaOuterClassnameFieldNumber = 8,
  3535. kGoPackageFieldNumber = 11,
  3536. kObjcClassPrefixFieldNumber = 36,
  3537. kCsharpNamespaceFieldNumber = 37,
  3538. kSwiftPrefixFieldNumber = 39,
  3539. kPhpClassPrefixFieldNumber = 40,
  3540. kPhpNamespaceFieldNumber = 41,
  3541. kPhpMetadataNamespaceFieldNumber = 44,
  3542. kRubyPackageFieldNumber = 45,
  3543. kJavaMultipleFilesFieldNumber = 10,
  3544. kJavaGenerateEqualsAndHashFieldNumber = 20,
  3545. kJavaStringCheckUtf8FieldNumber = 27,
  3546. kCcGenericServicesFieldNumber = 16,
  3547. kJavaGenericServicesFieldNumber = 17,
  3548. kPyGenericServicesFieldNumber = 18,
  3549. kPhpGenericServicesFieldNumber = 42,
  3550. kDeprecatedFieldNumber = 23,
  3551. kCcEnableArenasFieldNumber = 31,
  3552. kOptimizeForFieldNumber = 9,
  3553. };
  3554. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3555. int uninterpreted_option_size() const;
  3556. private:
  3557. int _internal_uninterpreted_option_size() const;
  3558. public:
  3559. void clear_uninterpreted_option();
  3560. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  3561. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  3562. mutable_uninterpreted_option();
  3563. private:
  3564. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  3565. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  3566. public:
  3567. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  3568. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  3569. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  3570. uninterpreted_option() const;
  3571. // optional string java_package = 1;
  3572. bool has_java_package() const;
  3573. private:
  3574. bool _internal_has_java_package() const;
  3575. public:
  3576. void clear_java_package();
  3577. const std::string& java_package() const;
  3578. void set_java_package(const std::string& value);
  3579. void set_java_package(std::string&& value);
  3580. void set_java_package(const char* value);
  3581. void set_java_package(const char* value, size_t size);
  3582. std::string* mutable_java_package();
  3583. std::string* release_java_package();
  3584. void set_allocated_java_package(std::string* java_package);
  3585. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3586. " string fields are deprecated and will be removed in a"
  3587. " future release.")
  3588. std::string* unsafe_arena_release_java_package();
  3589. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3590. " string fields are deprecated and will be removed in a"
  3591. " future release.")
  3592. void unsafe_arena_set_allocated_java_package(
  3593. std::string* java_package);
  3594. private:
  3595. const std::string& _internal_java_package() const;
  3596. void _internal_set_java_package(const std::string& value);
  3597. std::string* _internal_mutable_java_package();
  3598. public:
  3599. // optional string java_outer_classname = 8;
  3600. bool has_java_outer_classname() const;
  3601. private:
  3602. bool _internal_has_java_outer_classname() const;
  3603. public:
  3604. void clear_java_outer_classname();
  3605. const std::string& java_outer_classname() const;
  3606. void set_java_outer_classname(const std::string& value);
  3607. void set_java_outer_classname(std::string&& value);
  3608. void set_java_outer_classname(const char* value);
  3609. void set_java_outer_classname(const char* value, size_t size);
  3610. std::string* mutable_java_outer_classname();
  3611. std::string* release_java_outer_classname();
  3612. void set_allocated_java_outer_classname(std::string* java_outer_classname);
  3613. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3614. " string fields are deprecated and will be removed in a"
  3615. " future release.")
  3616. std::string* unsafe_arena_release_java_outer_classname();
  3617. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3618. " string fields are deprecated and will be removed in a"
  3619. " future release.")
  3620. void unsafe_arena_set_allocated_java_outer_classname(
  3621. std::string* java_outer_classname);
  3622. private:
  3623. const std::string& _internal_java_outer_classname() const;
  3624. void _internal_set_java_outer_classname(const std::string& value);
  3625. std::string* _internal_mutable_java_outer_classname();
  3626. public:
  3627. // optional string go_package = 11;
  3628. bool has_go_package() const;
  3629. private:
  3630. bool _internal_has_go_package() const;
  3631. public:
  3632. void clear_go_package();
  3633. const std::string& go_package() const;
  3634. void set_go_package(const std::string& value);
  3635. void set_go_package(std::string&& value);
  3636. void set_go_package(const char* value);
  3637. void set_go_package(const char* value, size_t size);
  3638. std::string* mutable_go_package();
  3639. std::string* release_go_package();
  3640. void set_allocated_go_package(std::string* go_package);
  3641. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3642. " string fields are deprecated and will be removed in a"
  3643. " future release.")
  3644. std::string* unsafe_arena_release_go_package();
  3645. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3646. " string fields are deprecated and will be removed in a"
  3647. " future release.")
  3648. void unsafe_arena_set_allocated_go_package(
  3649. std::string* go_package);
  3650. private:
  3651. const std::string& _internal_go_package() const;
  3652. void _internal_set_go_package(const std::string& value);
  3653. std::string* _internal_mutable_go_package();
  3654. public:
  3655. // optional string objc_class_prefix = 36;
  3656. bool has_objc_class_prefix() const;
  3657. private:
  3658. bool _internal_has_objc_class_prefix() const;
  3659. public:
  3660. void clear_objc_class_prefix();
  3661. const std::string& objc_class_prefix() const;
  3662. void set_objc_class_prefix(const std::string& value);
  3663. void set_objc_class_prefix(std::string&& value);
  3664. void set_objc_class_prefix(const char* value);
  3665. void set_objc_class_prefix(const char* value, size_t size);
  3666. std::string* mutable_objc_class_prefix();
  3667. std::string* release_objc_class_prefix();
  3668. void set_allocated_objc_class_prefix(std::string* objc_class_prefix);
  3669. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3670. " string fields are deprecated and will be removed in a"
  3671. " future release.")
  3672. std::string* unsafe_arena_release_objc_class_prefix();
  3673. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3674. " string fields are deprecated and will be removed in a"
  3675. " future release.")
  3676. void unsafe_arena_set_allocated_objc_class_prefix(
  3677. std::string* objc_class_prefix);
  3678. private:
  3679. const std::string& _internal_objc_class_prefix() const;
  3680. void _internal_set_objc_class_prefix(const std::string& value);
  3681. std::string* _internal_mutable_objc_class_prefix();
  3682. public:
  3683. // optional string csharp_namespace = 37;
  3684. bool has_csharp_namespace() const;
  3685. private:
  3686. bool _internal_has_csharp_namespace() const;
  3687. public:
  3688. void clear_csharp_namespace();
  3689. const std::string& csharp_namespace() const;
  3690. void set_csharp_namespace(const std::string& value);
  3691. void set_csharp_namespace(std::string&& value);
  3692. void set_csharp_namespace(const char* value);
  3693. void set_csharp_namespace(const char* value, size_t size);
  3694. std::string* mutable_csharp_namespace();
  3695. std::string* release_csharp_namespace();
  3696. void set_allocated_csharp_namespace(std::string* csharp_namespace);
  3697. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3698. " string fields are deprecated and will be removed in a"
  3699. " future release.")
  3700. std::string* unsafe_arena_release_csharp_namespace();
  3701. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3702. " string fields are deprecated and will be removed in a"
  3703. " future release.")
  3704. void unsafe_arena_set_allocated_csharp_namespace(
  3705. std::string* csharp_namespace);
  3706. private:
  3707. const std::string& _internal_csharp_namespace() const;
  3708. void _internal_set_csharp_namespace(const std::string& value);
  3709. std::string* _internal_mutable_csharp_namespace();
  3710. public:
  3711. // optional string swift_prefix = 39;
  3712. bool has_swift_prefix() const;
  3713. private:
  3714. bool _internal_has_swift_prefix() const;
  3715. public:
  3716. void clear_swift_prefix();
  3717. const std::string& swift_prefix() const;
  3718. void set_swift_prefix(const std::string& value);
  3719. void set_swift_prefix(std::string&& value);
  3720. void set_swift_prefix(const char* value);
  3721. void set_swift_prefix(const char* value, size_t size);
  3722. std::string* mutable_swift_prefix();
  3723. std::string* release_swift_prefix();
  3724. void set_allocated_swift_prefix(std::string* swift_prefix);
  3725. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3726. " string fields are deprecated and will be removed in a"
  3727. " future release.")
  3728. std::string* unsafe_arena_release_swift_prefix();
  3729. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3730. " string fields are deprecated and will be removed in a"
  3731. " future release.")
  3732. void unsafe_arena_set_allocated_swift_prefix(
  3733. std::string* swift_prefix);
  3734. private:
  3735. const std::string& _internal_swift_prefix() const;
  3736. void _internal_set_swift_prefix(const std::string& value);
  3737. std::string* _internal_mutable_swift_prefix();
  3738. public:
  3739. // optional string php_class_prefix = 40;
  3740. bool has_php_class_prefix() const;
  3741. private:
  3742. bool _internal_has_php_class_prefix() const;
  3743. public:
  3744. void clear_php_class_prefix();
  3745. const std::string& php_class_prefix() const;
  3746. void set_php_class_prefix(const std::string& value);
  3747. void set_php_class_prefix(std::string&& value);
  3748. void set_php_class_prefix(const char* value);
  3749. void set_php_class_prefix(const char* value, size_t size);
  3750. std::string* mutable_php_class_prefix();
  3751. std::string* release_php_class_prefix();
  3752. void set_allocated_php_class_prefix(std::string* php_class_prefix);
  3753. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3754. " string fields are deprecated and will be removed in a"
  3755. " future release.")
  3756. std::string* unsafe_arena_release_php_class_prefix();
  3757. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3758. " string fields are deprecated and will be removed in a"
  3759. " future release.")
  3760. void unsafe_arena_set_allocated_php_class_prefix(
  3761. std::string* php_class_prefix);
  3762. private:
  3763. const std::string& _internal_php_class_prefix() const;
  3764. void _internal_set_php_class_prefix(const std::string& value);
  3765. std::string* _internal_mutable_php_class_prefix();
  3766. public:
  3767. // optional string php_namespace = 41;
  3768. bool has_php_namespace() const;
  3769. private:
  3770. bool _internal_has_php_namespace() const;
  3771. public:
  3772. void clear_php_namespace();
  3773. const std::string& php_namespace() const;
  3774. void set_php_namespace(const std::string& value);
  3775. void set_php_namespace(std::string&& value);
  3776. void set_php_namespace(const char* value);
  3777. void set_php_namespace(const char* value, size_t size);
  3778. std::string* mutable_php_namespace();
  3779. std::string* release_php_namespace();
  3780. void set_allocated_php_namespace(std::string* php_namespace);
  3781. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3782. " string fields are deprecated and will be removed in a"
  3783. " future release.")
  3784. std::string* unsafe_arena_release_php_namespace();
  3785. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3786. " string fields are deprecated and will be removed in a"
  3787. " future release.")
  3788. void unsafe_arena_set_allocated_php_namespace(
  3789. std::string* php_namespace);
  3790. private:
  3791. const std::string& _internal_php_namespace() const;
  3792. void _internal_set_php_namespace(const std::string& value);
  3793. std::string* _internal_mutable_php_namespace();
  3794. public:
  3795. // optional string php_metadata_namespace = 44;
  3796. bool has_php_metadata_namespace() const;
  3797. private:
  3798. bool _internal_has_php_metadata_namespace() const;
  3799. public:
  3800. void clear_php_metadata_namespace();
  3801. const std::string& php_metadata_namespace() const;
  3802. void set_php_metadata_namespace(const std::string& value);
  3803. void set_php_metadata_namespace(std::string&& value);
  3804. void set_php_metadata_namespace(const char* value);
  3805. void set_php_metadata_namespace(const char* value, size_t size);
  3806. std::string* mutable_php_metadata_namespace();
  3807. std::string* release_php_metadata_namespace();
  3808. void set_allocated_php_metadata_namespace(std::string* php_metadata_namespace);
  3809. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3810. " string fields are deprecated and will be removed in a"
  3811. " future release.")
  3812. std::string* unsafe_arena_release_php_metadata_namespace();
  3813. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3814. " string fields are deprecated and will be removed in a"
  3815. " future release.")
  3816. void unsafe_arena_set_allocated_php_metadata_namespace(
  3817. std::string* php_metadata_namespace);
  3818. private:
  3819. const std::string& _internal_php_metadata_namespace() const;
  3820. void _internal_set_php_metadata_namespace(const std::string& value);
  3821. std::string* _internal_mutable_php_metadata_namespace();
  3822. public:
  3823. // optional string ruby_package = 45;
  3824. bool has_ruby_package() const;
  3825. private:
  3826. bool _internal_has_ruby_package() const;
  3827. public:
  3828. void clear_ruby_package();
  3829. const std::string& ruby_package() const;
  3830. void set_ruby_package(const std::string& value);
  3831. void set_ruby_package(std::string&& value);
  3832. void set_ruby_package(const char* value);
  3833. void set_ruby_package(const char* value, size_t size);
  3834. std::string* mutable_ruby_package();
  3835. std::string* release_ruby_package();
  3836. void set_allocated_ruby_package(std::string* ruby_package);
  3837. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3838. " string fields are deprecated and will be removed in a"
  3839. " future release.")
  3840. std::string* unsafe_arena_release_ruby_package();
  3841. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3842. " string fields are deprecated and will be removed in a"
  3843. " future release.")
  3844. void unsafe_arena_set_allocated_ruby_package(
  3845. std::string* ruby_package);
  3846. private:
  3847. const std::string& _internal_ruby_package() const;
  3848. void _internal_set_ruby_package(const std::string& value);
  3849. std::string* _internal_mutable_ruby_package();
  3850. public:
  3851. // optional bool java_multiple_files = 10 [default = false];
  3852. bool has_java_multiple_files() const;
  3853. private:
  3854. bool _internal_has_java_multiple_files() const;
  3855. public:
  3856. void clear_java_multiple_files();
  3857. bool java_multiple_files() const;
  3858. void set_java_multiple_files(bool value);
  3859. private:
  3860. bool _internal_java_multiple_files() const;
  3861. void _internal_set_java_multiple_files(bool value);
  3862. public:
  3863. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  3864. PROTOBUF_DEPRECATED bool has_java_generate_equals_and_hash() const;
  3865. private:
  3866. bool _internal_has_java_generate_equals_and_hash() const;
  3867. public:
  3868. PROTOBUF_DEPRECATED void clear_java_generate_equals_and_hash();
  3869. PROTOBUF_DEPRECATED bool java_generate_equals_and_hash() const;
  3870. PROTOBUF_DEPRECATED void set_java_generate_equals_and_hash(bool value);
  3871. private:
  3872. bool _internal_java_generate_equals_and_hash() const;
  3873. void _internal_set_java_generate_equals_and_hash(bool value);
  3874. public:
  3875. // optional bool java_string_check_utf8 = 27 [default = false];
  3876. bool has_java_string_check_utf8() const;
  3877. private:
  3878. bool _internal_has_java_string_check_utf8() const;
  3879. public:
  3880. void clear_java_string_check_utf8();
  3881. bool java_string_check_utf8() const;
  3882. void set_java_string_check_utf8(bool value);
  3883. private:
  3884. bool _internal_java_string_check_utf8() const;
  3885. void _internal_set_java_string_check_utf8(bool value);
  3886. public:
  3887. // optional bool cc_generic_services = 16 [default = false];
  3888. bool has_cc_generic_services() const;
  3889. private:
  3890. bool _internal_has_cc_generic_services() const;
  3891. public:
  3892. void clear_cc_generic_services();
  3893. bool cc_generic_services() const;
  3894. void set_cc_generic_services(bool value);
  3895. private:
  3896. bool _internal_cc_generic_services() const;
  3897. void _internal_set_cc_generic_services(bool value);
  3898. public:
  3899. // optional bool java_generic_services = 17 [default = false];
  3900. bool has_java_generic_services() const;
  3901. private:
  3902. bool _internal_has_java_generic_services() const;
  3903. public:
  3904. void clear_java_generic_services();
  3905. bool java_generic_services() const;
  3906. void set_java_generic_services(bool value);
  3907. private:
  3908. bool _internal_java_generic_services() const;
  3909. void _internal_set_java_generic_services(bool value);
  3910. public:
  3911. // optional bool py_generic_services = 18 [default = false];
  3912. bool has_py_generic_services() const;
  3913. private:
  3914. bool _internal_has_py_generic_services() const;
  3915. public:
  3916. void clear_py_generic_services();
  3917. bool py_generic_services() const;
  3918. void set_py_generic_services(bool value);
  3919. private:
  3920. bool _internal_py_generic_services() const;
  3921. void _internal_set_py_generic_services(bool value);
  3922. public:
  3923. // optional bool php_generic_services = 42 [default = false];
  3924. bool has_php_generic_services() const;
  3925. private:
  3926. bool _internal_has_php_generic_services() const;
  3927. public:
  3928. void clear_php_generic_services();
  3929. bool php_generic_services() const;
  3930. void set_php_generic_services(bool value);
  3931. private:
  3932. bool _internal_php_generic_services() const;
  3933. void _internal_set_php_generic_services(bool value);
  3934. public:
  3935. // optional bool deprecated = 23 [default = false];
  3936. bool has_deprecated() const;
  3937. private:
  3938. bool _internal_has_deprecated() const;
  3939. public:
  3940. void clear_deprecated();
  3941. bool deprecated() const;
  3942. void set_deprecated(bool value);
  3943. private:
  3944. bool _internal_deprecated() const;
  3945. void _internal_set_deprecated(bool value);
  3946. public:
  3947. // optional bool cc_enable_arenas = 31 [default = false];
  3948. bool has_cc_enable_arenas() const;
  3949. private:
  3950. bool _internal_has_cc_enable_arenas() const;
  3951. public:
  3952. void clear_cc_enable_arenas();
  3953. bool cc_enable_arenas() const;
  3954. void set_cc_enable_arenas(bool value);
  3955. private:
  3956. bool _internal_cc_enable_arenas() const;
  3957. void _internal_set_cc_enable_arenas(bool value);
  3958. public:
  3959. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3960. bool has_optimize_for() const;
  3961. private:
  3962. bool _internal_has_optimize_for() const;
  3963. public:
  3964. void clear_optimize_for();
  3965. PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode optimize_for() const;
  3966. void set_optimize_for(PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3967. private:
  3968. PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode _internal_optimize_for() const;
  3969. void _internal_set_optimize_for(PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3970. public:
  3971. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
  3972. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  3973. private:
  3974. class _Internal;
  3975. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  3976. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  3977. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3978. typedef void InternalArenaConstructable_;
  3979. typedef void DestructorSkippable_;
  3980. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3981. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3982. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  3983. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_package_;
  3984. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_outer_classname_;
  3985. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr go_package_;
  3986. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr objc_class_prefix_;
  3987. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr csharp_namespace_;
  3988. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr swift_prefix_;
  3989. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_class_prefix_;
  3990. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_namespace_;
  3991. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_metadata_namespace_;
  3992. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ruby_package_;
  3993. bool java_multiple_files_;
  3994. bool java_generate_equals_and_hash_;
  3995. bool java_string_check_utf8_;
  3996. bool cc_generic_services_;
  3997. bool java_generic_services_;
  3998. bool py_generic_services_;
  3999. bool php_generic_services_;
  4000. bool deprecated_;
  4001. bool cc_enable_arenas_;
  4002. int optimize_for_;
  4003. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4004. };
  4005. // -------------------------------------------------------------------
  4006. class PROTOBUF_EXPORT MessageOptions :
  4007. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */ {
  4008. public:
  4009. MessageOptions();
  4010. virtual ~MessageOptions();
  4011. MessageOptions(const MessageOptions& from);
  4012. MessageOptions(MessageOptions&& from) noexcept
  4013. : MessageOptions() {
  4014. *this = ::std::move(from);
  4015. }
  4016. inline MessageOptions& operator=(const MessageOptions& from) {
  4017. CopyFrom(from);
  4018. return *this;
  4019. }
  4020. inline MessageOptions& operator=(MessageOptions&& from) noexcept {
  4021. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4022. if (this != &from) InternalSwap(&from);
  4023. } else {
  4024. CopyFrom(from);
  4025. }
  4026. return *this;
  4027. }
  4028. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4029. return _internal_metadata_.unknown_fields();
  4030. }
  4031. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4032. return _internal_metadata_.mutable_unknown_fields();
  4033. }
  4034. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  4035. return GetArenaNoVirtual();
  4036. }
  4037. inline void* GetMaybeArenaPointer() const final {
  4038. return MaybeArenaPtr();
  4039. }
  4040. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4041. return GetDescriptor();
  4042. }
  4043. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4044. return GetMetadataStatic().descriptor;
  4045. }
  4046. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4047. return GetMetadataStatic().reflection;
  4048. }
  4049. static const MessageOptions& default_instance();
  4050. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4051. static inline const MessageOptions* internal_default_instance() {
  4052. return reinterpret_cast<const MessageOptions*>(
  4053. &_MessageOptions_default_instance_);
  4054. }
  4055. static constexpr int kIndexInFileMessages =
  4056. 14;
  4057. friend void swap(MessageOptions& a, MessageOptions& b) {
  4058. a.Swap(&b);
  4059. }
  4060. inline void Swap(MessageOptions* other) {
  4061. if (other == this) return;
  4062. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4063. InternalSwap(other);
  4064. } else {
  4065. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4066. }
  4067. }
  4068. void UnsafeArenaSwap(MessageOptions* other) {
  4069. if (other == this) return;
  4070. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4071. InternalSwap(other);
  4072. }
  4073. // implements Message ----------------------------------------------
  4074. inline MessageOptions* New() const final {
  4075. return CreateMaybeMessage<MessageOptions>(nullptr);
  4076. }
  4077. MessageOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4078. return CreateMaybeMessage<MessageOptions>(arena);
  4079. }
  4080. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4081. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4082. void CopyFrom(const MessageOptions& from);
  4083. void MergeFrom(const MessageOptions& from);
  4084. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4085. bool IsInitialized() const final;
  4086. size_t ByteSizeLong() const final;
  4087. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4088. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  4089. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4090. int GetCachedSize() const final { return _cached_size_.Get(); }
  4091. private:
  4092. inline void SharedCtor();
  4093. inline void SharedDtor();
  4094. void SetCachedSize(int size) const final;
  4095. void InternalSwap(MessageOptions* other);
  4096. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4097. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4098. return "google.protobuf.MessageOptions";
  4099. }
  4100. protected:
  4101. explicit MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4102. private:
  4103. static void ArenaDtor(void* object);
  4104. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4105. private:
  4106. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4107. return _internal_metadata_.arena();
  4108. }
  4109. inline void* MaybeArenaPtr() const {
  4110. return _internal_metadata_.raw_arena_ptr();
  4111. }
  4112. public:
  4113. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4114. private:
  4115. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4116. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  4117. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  4118. }
  4119. public:
  4120. // nested types ----------------------------------------------------
  4121. // accessors -------------------------------------------------------
  4122. enum : int {
  4123. kUninterpretedOptionFieldNumber = 999,
  4124. kMessageSetWireFormatFieldNumber = 1,
  4125. kNoStandardDescriptorAccessorFieldNumber = 2,
  4126. kDeprecatedFieldNumber = 3,
  4127. kMapEntryFieldNumber = 7,
  4128. };
  4129. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4130. int uninterpreted_option_size() const;
  4131. private:
  4132. int _internal_uninterpreted_option_size() const;
  4133. public:
  4134. void clear_uninterpreted_option();
  4135. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4136. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4137. mutable_uninterpreted_option();
  4138. private:
  4139. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4140. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4141. public:
  4142. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4143. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4144. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4145. uninterpreted_option() const;
  4146. // optional bool message_set_wire_format = 1 [default = false];
  4147. bool has_message_set_wire_format() const;
  4148. private:
  4149. bool _internal_has_message_set_wire_format() const;
  4150. public:
  4151. void clear_message_set_wire_format();
  4152. bool message_set_wire_format() const;
  4153. void set_message_set_wire_format(bool value);
  4154. private:
  4155. bool _internal_message_set_wire_format() const;
  4156. void _internal_set_message_set_wire_format(bool value);
  4157. public:
  4158. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4159. bool has_no_standard_descriptor_accessor() const;
  4160. private:
  4161. bool _internal_has_no_standard_descriptor_accessor() const;
  4162. public:
  4163. void clear_no_standard_descriptor_accessor();
  4164. bool no_standard_descriptor_accessor() const;
  4165. void set_no_standard_descriptor_accessor(bool value);
  4166. private:
  4167. bool _internal_no_standard_descriptor_accessor() const;
  4168. void _internal_set_no_standard_descriptor_accessor(bool value);
  4169. public:
  4170. // optional bool deprecated = 3 [default = false];
  4171. bool has_deprecated() const;
  4172. private:
  4173. bool _internal_has_deprecated() const;
  4174. public:
  4175. void clear_deprecated();
  4176. bool deprecated() const;
  4177. void set_deprecated(bool value);
  4178. private:
  4179. bool _internal_deprecated() const;
  4180. void _internal_set_deprecated(bool value);
  4181. public:
  4182. // optional bool map_entry = 7;
  4183. bool has_map_entry() const;
  4184. private:
  4185. bool _internal_has_map_entry() const;
  4186. public:
  4187. void clear_map_entry();
  4188. bool map_entry() const;
  4189. void set_map_entry(bool value);
  4190. private:
  4191. bool _internal_map_entry() const;
  4192. void _internal_set_map_entry(bool value);
  4193. public:
  4194. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
  4195. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  4196. private:
  4197. class _Internal;
  4198. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4199. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4200. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4201. typedef void InternalArenaConstructable_;
  4202. typedef void DestructorSkippable_;
  4203. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4204. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4205. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4206. bool message_set_wire_format_;
  4207. bool no_standard_descriptor_accessor_;
  4208. bool deprecated_;
  4209. bool map_entry_;
  4210. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4211. };
  4212. // -------------------------------------------------------------------
  4213. class PROTOBUF_EXPORT FieldOptions :
  4214. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */ {
  4215. public:
  4216. FieldOptions();
  4217. virtual ~FieldOptions();
  4218. FieldOptions(const FieldOptions& from);
  4219. FieldOptions(FieldOptions&& from) noexcept
  4220. : FieldOptions() {
  4221. *this = ::std::move(from);
  4222. }
  4223. inline FieldOptions& operator=(const FieldOptions& from) {
  4224. CopyFrom(from);
  4225. return *this;
  4226. }
  4227. inline FieldOptions& operator=(FieldOptions&& from) noexcept {
  4228. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4229. if (this != &from) InternalSwap(&from);
  4230. } else {
  4231. CopyFrom(from);
  4232. }
  4233. return *this;
  4234. }
  4235. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4236. return _internal_metadata_.unknown_fields();
  4237. }
  4238. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4239. return _internal_metadata_.mutable_unknown_fields();
  4240. }
  4241. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  4242. return GetArenaNoVirtual();
  4243. }
  4244. inline void* GetMaybeArenaPointer() const final {
  4245. return MaybeArenaPtr();
  4246. }
  4247. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4248. return GetDescriptor();
  4249. }
  4250. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4251. return GetMetadataStatic().descriptor;
  4252. }
  4253. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4254. return GetMetadataStatic().reflection;
  4255. }
  4256. static const FieldOptions& default_instance();
  4257. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4258. static inline const FieldOptions* internal_default_instance() {
  4259. return reinterpret_cast<const FieldOptions*>(
  4260. &_FieldOptions_default_instance_);
  4261. }
  4262. static constexpr int kIndexInFileMessages =
  4263. 15;
  4264. friend void swap(FieldOptions& a, FieldOptions& b) {
  4265. a.Swap(&b);
  4266. }
  4267. inline void Swap(FieldOptions* other) {
  4268. if (other == this) return;
  4269. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4270. InternalSwap(other);
  4271. } else {
  4272. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4273. }
  4274. }
  4275. void UnsafeArenaSwap(FieldOptions* other) {
  4276. if (other == this) return;
  4277. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4278. InternalSwap(other);
  4279. }
  4280. // implements Message ----------------------------------------------
  4281. inline FieldOptions* New() const final {
  4282. return CreateMaybeMessage<FieldOptions>(nullptr);
  4283. }
  4284. FieldOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4285. return CreateMaybeMessage<FieldOptions>(arena);
  4286. }
  4287. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4288. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4289. void CopyFrom(const FieldOptions& from);
  4290. void MergeFrom(const FieldOptions& from);
  4291. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4292. bool IsInitialized() const final;
  4293. size_t ByteSizeLong() const final;
  4294. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4295. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  4296. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4297. int GetCachedSize() const final { return _cached_size_.Get(); }
  4298. private:
  4299. inline void SharedCtor();
  4300. inline void SharedDtor();
  4301. void SetCachedSize(int size) const final;
  4302. void InternalSwap(FieldOptions* other);
  4303. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4304. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4305. return "google.protobuf.FieldOptions";
  4306. }
  4307. protected:
  4308. explicit FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4309. private:
  4310. static void ArenaDtor(void* object);
  4311. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4312. private:
  4313. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4314. return _internal_metadata_.arena();
  4315. }
  4316. inline void* MaybeArenaPtr() const {
  4317. return _internal_metadata_.raw_arena_ptr();
  4318. }
  4319. public:
  4320. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4321. private:
  4322. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4323. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  4324. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  4325. }
  4326. public:
  4327. // nested types ----------------------------------------------------
  4328. typedef FieldOptions_CType CType;
  4329. static constexpr CType STRING =
  4330. FieldOptions_CType_STRING;
  4331. static constexpr CType CORD =
  4332. FieldOptions_CType_CORD;
  4333. static constexpr CType STRING_PIECE =
  4334. FieldOptions_CType_STRING_PIECE;
  4335. static inline bool CType_IsValid(int value) {
  4336. return FieldOptions_CType_IsValid(value);
  4337. }
  4338. static constexpr CType CType_MIN =
  4339. FieldOptions_CType_CType_MIN;
  4340. static constexpr CType CType_MAX =
  4341. FieldOptions_CType_CType_MAX;
  4342. static constexpr int CType_ARRAYSIZE =
  4343. FieldOptions_CType_CType_ARRAYSIZE;
  4344. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4345. CType_descriptor() {
  4346. return FieldOptions_CType_descriptor();
  4347. }
  4348. template<typename T>
  4349. static inline const std::string& CType_Name(T enum_t_value) {
  4350. static_assert(::std::is_same<T, CType>::value ||
  4351. ::std::is_integral<T>::value,
  4352. "Incorrect type passed to function CType_Name.");
  4353. return FieldOptions_CType_Name(enum_t_value);
  4354. }
  4355. static inline bool CType_Parse(const std::string& name,
  4356. CType* value) {
  4357. return FieldOptions_CType_Parse(name, value);
  4358. }
  4359. typedef FieldOptions_JSType JSType;
  4360. static constexpr JSType JS_NORMAL =
  4361. FieldOptions_JSType_JS_NORMAL;
  4362. static constexpr JSType JS_STRING =
  4363. FieldOptions_JSType_JS_STRING;
  4364. static constexpr JSType JS_NUMBER =
  4365. FieldOptions_JSType_JS_NUMBER;
  4366. static inline bool JSType_IsValid(int value) {
  4367. return FieldOptions_JSType_IsValid(value);
  4368. }
  4369. static constexpr JSType JSType_MIN =
  4370. FieldOptions_JSType_JSType_MIN;
  4371. static constexpr JSType JSType_MAX =
  4372. FieldOptions_JSType_JSType_MAX;
  4373. static constexpr int JSType_ARRAYSIZE =
  4374. FieldOptions_JSType_JSType_ARRAYSIZE;
  4375. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4376. JSType_descriptor() {
  4377. return FieldOptions_JSType_descriptor();
  4378. }
  4379. template<typename T>
  4380. static inline const std::string& JSType_Name(T enum_t_value) {
  4381. static_assert(::std::is_same<T, JSType>::value ||
  4382. ::std::is_integral<T>::value,
  4383. "Incorrect type passed to function JSType_Name.");
  4384. return FieldOptions_JSType_Name(enum_t_value);
  4385. }
  4386. static inline bool JSType_Parse(const std::string& name,
  4387. JSType* value) {
  4388. return FieldOptions_JSType_Parse(name, value);
  4389. }
  4390. // accessors -------------------------------------------------------
  4391. enum : int {
  4392. kUninterpretedOptionFieldNumber = 999,
  4393. kCtypeFieldNumber = 1,
  4394. kPackedFieldNumber = 2,
  4395. kLazyFieldNumber = 5,
  4396. kDeprecatedFieldNumber = 3,
  4397. kWeakFieldNumber = 10,
  4398. kJstypeFieldNumber = 6,
  4399. };
  4400. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4401. int uninterpreted_option_size() const;
  4402. private:
  4403. int _internal_uninterpreted_option_size() const;
  4404. public:
  4405. void clear_uninterpreted_option();
  4406. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4407. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4408. mutable_uninterpreted_option();
  4409. private:
  4410. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4411. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4412. public:
  4413. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4414. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4415. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4416. uninterpreted_option() const;
  4417. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  4418. bool has_ctype() const;
  4419. private:
  4420. bool _internal_has_ctype() const;
  4421. public:
  4422. void clear_ctype();
  4423. PROTOBUF_NAMESPACE_ID::FieldOptions_CType ctype() const;
  4424. void set_ctype(PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4425. private:
  4426. PROTOBUF_NAMESPACE_ID::FieldOptions_CType _internal_ctype() const;
  4427. void _internal_set_ctype(PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4428. public:
  4429. // optional bool packed = 2;
  4430. bool has_packed() const;
  4431. private:
  4432. bool _internal_has_packed() const;
  4433. public:
  4434. void clear_packed();
  4435. bool packed() const;
  4436. void set_packed(bool value);
  4437. private:
  4438. bool _internal_packed() const;
  4439. void _internal_set_packed(bool value);
  4440. public:
  4441. // optional bool lazy = 5 [default = false];
  4442. bool has_lazy() const;
  4443. private:
  4444. bool _internal_has_lazy() const;
  4445. public:
  4446. void clear_lazy();
  4447. bool lazy() const;
  4448. void set_lazy(bool value);
  4449. private:
  4450. bool _internal_lazy() const;
  4451. void _internal_set_lazy(bool value);
  4452. public:
  4453. // optional bool deprecated = 3 [default = false];
  4454. bool has_deprecated() const;
  4455. private:
  4456. bool _internal_has_deprecated() const;
  4457. public:
  4458. void clear_deprecated();
  4459. bool deprecated() const;
  4460. void set_deprecated(bool value);
  4461. private:
  4462. bool _internal_deprecated() const;
  4463. void _internal_set_deprecated(bool value);
  4464. public:
  4465. // optional bool weak = 10 [default = false];
  4466. bool has_weak() const;
  4467. private:
  4468. bool _internal_has_weak() const;
  4469. public:
  4470. void clear_weak();
  4471. bool weak() const;
  4472. void set_weak(bool value);
  4473. private:
  4474. bool _internal_weak() const;
  4475. void _internal_set_weak(bool value);
  4476. public:
  4477. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  4478. bool has_jstype() const;
  4479. private:
  4480. bool _internal_has_jstype() const;
  4481. public:
  4482. void clear_jstype();
  4483. PROTOBUF_NAMESPACE_ID::FieldOptions_JSType jstype() const;
  4484. void set_jstype(PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4485. private:
  4486. PROTOBUF_NAMESPACE_ID::FieldOptions_JSType _internal_jstype() const;
  4487. void _internal_set_jstype(PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4488. public:
  4489. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
  4490. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  4491. private:
  4492. class _Internal;
  4493. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4494. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4495. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4496. typedef void InternalArenaConstructable_;
  4497. typedef void DestructorSkippable_;
  4498. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4499. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4500. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4501. int ctype_;
  4502. bool packed_;
  4503. bool lazy_;
  4504. bool deprecated_;
  4505. bool weak_;
  4506. int jstype_;
  4507. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4508. };
  4509. // -------------------------------------------------------------------
  4510. class PROTOBUF_EXPORT OneofOptions :
  4511. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */ {
  4512. public:
  4513. OneofOptions();
  4514. virtual ~OneofOptions();
  4515. OneofOptions(const OneofOptions& from);
  4516. OneofOptions(OneofOptions&& from) noexcept
  4517. : OneofOptions() {
  4518. *this = ::std::move(from);
  4519. }
  4520. inline OneofOptions& operator=(const OneofOptions& from) {
  4521. CopyFrom(from);
  4522. return *this;
  4523. }
  4524. inline OneofOptions& operator=(OneofOptions&& from) noexcept {
  4525. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4526. if (this != &from) InternalSwap(&from);
  4527. } else {
  4528. CopyFrom(from);
  4529. }
  4530. return *this;
  4531. }
  4532. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4533. return _internal_metadata_.unknown_fields();
  4534. }
  4535. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4536. return _internal_metadata_.mutable_unknown_fields();
  4537. }
  4538. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  4539. return GetArenaNoVirtual();
  4540. }
  4541. inline void* GetMaybeArenaPointer() const final {
  4542. return MaybeArenaPtr();
  4543. }
  4544. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4545. return GetDescriptor();
  4546. }
  4547. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4548. return GetMetadataStatic().descriptor;
  4549. }
  4550. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4551. return GetMetadataStatic().reflection;
  4552. }
  4553. static const OneofOptions& default_instance();
  4554. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4555. static inline const OneofOptions* internal_default_instance() {
  4556. return reinterpret_cast<const OneofOptions*>(
  4557. &_OneofOptions_default_instance_);
  4558. }
  4559. static constexpr int kIndexInFileMessages =
  4560. 16;
  4561. friend void swap(OneofOptions& a, OneofOptions& b) {
  4562. a.Swap(&b);
  4563. }
  4564. inline void Swap(OneofOptions* other) {
  4565. if (other == this) return;
  4566. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4567. InternalSwap(other);
  4568. } else {
  4569. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4570. }
  4571. }
  4572. void UnsafeArenaSwap(OneofOptions* other) {
  4573. if (other == this) return;
  4574. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4575. InternalSwap(other);
  4576. }
  4577. // implements Message ----------------------------------------------
  4578. inline OneofOptions* New() const final {
  4579. return CreateMaybeMessage<OneofOptions>(nullptr);
  4580. }
  4581. OneofOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4582. return CreateMaybeMessage<OneofOptions>(arena);
  4583. }
  4584. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4585. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4586. void CopyFrom(const OneofOptions& from);
  4587. void MergeFrom(const OneofOptions& from);
  4588. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4589. bool IsInitialized() const final;
  4590. size_t ByteSizeLong() const final;
  4591. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4592. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  4593. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4594. int GetCachedSize() const final { return _cached_size_.Get(); }
  4595. private:
  4596. inline void SharedCtor();
  4597. inline void SharedDtor();
  4598. void SetCachedSize(int size) const final;
  4599. void InternalSwap(OneofOptions* other);
  4600. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4601. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4602. return "google.protobuf.OneofOptions";
  4603. }
  4604. protected:
  4605. explicit OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4606. private:
  4607. static void ArenaDtor(void* object);
  4608. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4609. private:
  4610. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4611. return _internal_metadata_.arena();
  4612. }
  4613. inline void* MaybeArenaPtr() const {
  4614. return _internal_metadata_.raw_arena_ptr();
  4615. }
  4616. public:
  4617. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4618. private:
  4619. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4620. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  4621. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  4622. }
  4623. public:
  4624. // nested types ----------------------------------------------------
  4625. // accessors -------------------------------------------------------
  4626. enum : int {
  4627. kUninterpretedOptionFieldNumber = 999,
  4628. };
  4629. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4630. int uninterpreted_option_size() const;
  4631. private:
  4632. int _internal_uninterpreted_option_size() const;
  4633. public:
  4634. void clear_uninterpreted_option();
  4635. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4636. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4637. mutable_uninterpreted_option();
  4638. private:
  4639. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4640. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4641. public:
  4642. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4643. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4644. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4645. uninterpreted_option() const;
  4646. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(OneofOptions)
  4647. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  4648. private:
  4649. class _Internal;
  4650. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4651. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4652. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4653. typedef void InternalArenaConstructable_;
  4654. typedef void DestructorSkippable_;
  4655. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4656. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4657. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4658. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4659. };
  4660. // -------------------------------------------------------------------
  4661. class PROTOBUF_EXPORT EnumOptions :
  4662. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */ {
  4663. public:
  4664. EnumOptions();
  4665. virtual ~EnumOptions();
  4666. EnumOptions(const EnumOptions& from);
  4667. EnumOptions(EnumOptions&& from) noexcept
  4668. : EnumOptions() {
  4669. *this = ::std::move(from);
  4670. }
  4671. inline EnumOptions& operator=(const EnumOptions& from) {
  4672. CopyFrom(from);
  4673. return *this;
  4674. }
  4675. inline EnumOptions& operator=(EnumOptions&& from) noexcept {
  4676. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4677. if (this != &from) InternalSwap(&from);
  4678. } else {
  4679. CopyFrom(from);
  4680. }
  4681. return *this;
  4682. }
  4683. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4684. return _internal_metadata_.unknown_fields();
  4685. }
  4686. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4687. return _internal_metadata_.mutable_unknown_fields();
  4688. }
  4689. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  4690. return GetArenaNoVirtual();
  4691. }
  4692. inline void* GetMaybeArenaPointer() const final {
  4693. return MaybeArenaPtr();
  4694. }
  4695. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4696. return GetDescriptor();
  4697. }
  4698. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4699. return GetMetadataStatic().descriptor;
  4700. }
  4701. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4702. return GetMetadataStatic().reflection;
  4703. }
  4704. static const EnumOptions& default_instance();
  4705. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4706. static inline const EnumOptions* internal_default_instance() {
  4707. return reinterpret_cast<const EnumOptions*>(
  4708. &_EnumOptions_default_instance_);
  4709. }
  4710. static constexpr int kIndexInFileMessages =
  4711. 17;
  4712. friend void swap(EnumOptions& a, EnumOptions& b) {
  4713. a.Swap(&b);
  4714. }
  4715. inline void Swap(EnumOptions* other) {
  4716. if (other == this) return;
  4717. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4718. InternalSwap(other);
  4719. } else {
  4720. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4721. }
  4722. }
  4723. void UnsafeArenaSwap(EnumOptions* other) {
  4724. if (other == this) return;
  4725. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4726. InternalSwap(other);
  4727. }
  4728. // implements Message ----------------------------------------------
  4729. inline EnumOptions* New() const final {
  4730. return CreateMaybeMessage<EnumOptions>(nullptr);
  4731. }
  4732. EnumOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4733. return CreateMaybeMessage<EnumOptions>(arena);
  4734. }
  4735. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4736. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4737. void CopyFrom(const EnumOptions& from);
  4738. void MergeFrom(const EnumOptions& from);
  4739. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4740. bool IsInitialized() const final;
  4741. size_t ByteSizeLong() const final;
  4742. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4743. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  4744. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4745. int GetCachedSize() const final { return _cached_size_.Get(); }
  4746. private:
  4747. inline void SharedCtor();
  4748. inline void SharedDtor();
  4749. void SetCachedSize(int size) const final;
  4750. void InternalSwap(EnumOptions* other);
  4751. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4752. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4753. return "google.protobuf.EnumOptions";
  4754. }
  4755. protected:
  4756. explicit EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4757. private:
  4758. static void ArenaDtor(void* object);
  4759. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4760. private:
  4761. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4762. return _internal_metadata_.arena();
  4763. }
  4764. inline void* MaybeArenaPtr() const {
  4765. return _internal_metadata_.raw_arena_ptr();
  4766. }
  4767. public:
  4768. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4769. private:
  4770. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4771. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  4772. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  4773. }
  4774. public:
  4775. // nested types ----------------------------------------------------
  4776. // accessors -------------------------------------------------------
  4777. enum : int {
  4778. kUninterpretedOptionFieldNumber = 999,
  4779. kAllowAliasFieldNumber = 2,
  4780. kDeprecatedFieldNumber = 3,
  4781. };
  4782. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4783. int uninterpreted_option_size() const;
  4784. private:
  4785. int _internal_uninterpreted_option_size() const;
  4786. public:
  4787. void clear_uninterpreted_option();
  4788. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4789. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4790. mutable_uninterpreted_option();
  4791. private:
  4792. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4793. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4794. public:
  4795. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4796. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4797. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4798. uninterpreted_option() const;
  4799. // optional bool allow_alias = 2;
  4800. bool has_allow_alias() const;
  4801. private:
  4802. bool _internal_has_allow_alias() const;
  4803. public:
  4804. void clear_allow_alias();
  4805. bool allow_alias() const;
  4806. void set_allow_alias(bool value);
  4807. private:
  4808. bool _internal_allow_alias() const;
  4809. void _internal_set_allow_alias(bool value);
  4810. public:
  4811. // optional bool deprecated = 3 [default = false];
  4812. bool has_deprecated() const;
  4813. private:
  4814. bool _internal_has_deprecated() const;
  4815. public:
  4816. void clear_deprecated();
  4817. bool deprecated() const;
  4818. void set_deprecated(bool value);
  4819. private:
  4820. bool _internal_deprecated() const;
  4821. void _internal_set_deprecated(bool value);
  4822. public:
  4823. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
  4824. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  4825. private:
  4826. class _Internal;
  4827. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4828. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4829. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4830. typedef void InternalArenaConstructable_;
  4831. typedef void DestructorSkippable_;
  4832. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4833. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4834. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4835. bool allow_alias_;
  4836. bool deprecated_;
  4837. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4838. };
  4839. // -------------------------------------------------------------------
  4840. class PROTOBUF_EXPORT EnumValueOptions :
  4841. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */ {
  4842. public:
  4843. EnumValueOptions();
  4844. virtual ~EnumValueOptions();
  4845. EnumValueOptions(const EnumValueOptions& from);
  4846. EnumValueOptions(EnumValueOptions&& from) noexcept
  4847. : EnumValueOptions() {
  4848. *this = ::std::move(from);
  4849. }
  4850. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  4851. CopyFrom(from);
  4852. return *this;
  4853. }
  4854. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept {
  4855. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4856. if (this != &from) InternalSwap(&from);
  4857. } else {
  4858. CopyFrom(from);
  4859. }
  4860. return *this;
  4861. }
  4862. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4863. return _internal_metadata_.unknown_fields();
  4864. }
  4865. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4866. return _internal_metadata_.mutable_unknown_fields();
  4867. }
  4868. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  4869. return GetArenaNoVirtual();
  4870. }
  4871. inline void* GetMaybeArenaPointer() const final {
  4872. return MaybeArenaPtr();
  4873. }
  4874. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4875. return GetDescriptor();
  4876. }
  4877. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4878. return GetMetadataStatic().descriptor;
  4879. }
  4880. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4881. return GetMetadataStatic().reflection;
  4882. }
  4883. static const EnumValueOptions& default_instance();
  4884. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4885. static inline const EnumValueOptions* internal_default_instance() {
  4886. return reinterpret_cast<const EnumValueOptions*>(
  4887. &_EnumValueOptions_default_instance_);
  4888. }
  4889. static constexpr int kIndexInFileMessages =
  4890. 18;
  4891. friend void swap(EnumValueOptions& a, EnumValueOptions& b) {
  4892. a.Swap(&b);
  4893. }
  4894. inline void Swap(EnumValueOptions* other) {
  4895. if (other == this) return;
  4896. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4897. InternalSwap(other);
  4898. } else {
  4899. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4900. }
  4901. }
  4902. void UnsafeArenaSwap(EnumValueOptions* other) {
  4903. if (other == this) return;
  4904. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4905. InternalSwap(other);
  4906. }
  4907. // implements Message ----------------------------------------------
  4908. inline EnumValueOptions* New() const final {
  4909. return CreateMaybeMessage<EnumValueOptions>(nullptr);
  4910. }
  4911. EnumValueOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  4912. return CreateMaybeMessage<EnumValueOptions>(arena);
  4913. }
  4914. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4915. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  4916. void CopyFrom(const EnumValueOptions& from);
  4917. void MergeFrom(const EnumValueOptions& from);
  4918. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4919. bool IsInitialized() const final;
  4920. size_t ByteSizeLong() const final;
  4921. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4922. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  4923. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4924. int GetCachedSize() const final { return _cached_size_.Get(); }
  4925. private:
  4926. inline void SharedCtor();
  4927. inline void SharedDtor();
  4928. void SetCachedSize(int size) const final;
  4929. void InternalSwap(EnumValueOptions* other);
  4930. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4931. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4932. return "google.protobuf.EnumValueOptions";
  4933. }
  4934. protected:
  4935. explicit EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4936. private:
  4937. static void ArenaDtor(void* object);
  4938. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4939. private:
  4940. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  4941. return _internal_metadata_.arena();
  4942. }
  4943. inline void* MaybeArenaPtr() const {
  4944. return _internal_metadata_.raw_arena_ptr();
  4945. }
  4946. public:
  4947. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4948. private:
  4949. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  4950. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  4951. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  4952. }
  4953. public:
  4954. // nested types ----------------------------------------------------
  4955. // accessors -------------------------------------------------------
  4956. enum : int {
  4957. kUninterpretedOptionFieldNumber = 999,
  4958. kDeprecatedFieldNumber = 1,
  4959. };
  4960. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4961. int uninterpreted_option_size() const;
  4962. private:
  4963. int _internal_uninterpreted_option_size() const;
  4964. public:
  4965. void clear_uninterpreted_option();
  4966. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4967. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4968. mutable_uninterpreted_option();
  4969. private:
  4970. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4971. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4972. public:
  4973. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4974. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4975. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4976. uninterpreted_option() const;
  4977. // optional bool deprecated = 1 [default = false];
  4978. bool has_deprecated() const;
  4979. private:
  4980. bool _internal_has_deprecated() const;
  4981. public:
  4982. void clear_deprecated();
  4983. bool deprecated() const;
  4984. void set_deprecated(bool value);
  4985. private:
  4986. bool _internal_deprecated() const;
  4987. void _internal_set_deprecated(bool value);
  4988. public:
  4989. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
  4990. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  4991. private:
  4992. class _Internal;
  4993. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4994. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  4995. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4996. typedef void InternalArenaConstructable_;
  4997. typedef void DestructorSkippable_;
  4998. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4999. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5000. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5001. bool deprecated_;
  5002. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5003. };
  5004. // -------------------------------------------------------------------
  5005. class PROTOBUF_EXPORT ServiceOptions :
  5006. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */ {
  5007. public:
  5008. ServiceOptions();
  5009. virtual ~ServiceOptions();
  5010. ServiceOptions(const ServiceOptions& from);
  5011. ServiceOptions(ServiceOptions&& from) noexcept
  5012. : ServiceOptions() {
  5013. *this = ::std::move(from);
  5014. }
  5015. inline ServiceOptions& operator=(const ServiceOptions& from) {
  5016. CopyFrom(from);
  5017. return *this;
  5018. }
  5019. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept {
  5020. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5021. if (this != &from) InternalSwap(&from);
  5022. } else {
  5023. CopyFrom(from);
  5024. }
  5025. return *this;
  5026. }
  5027. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5028. return _internal_metadata_.unknown_fields();
  5029. }
  5030. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5031. return _internal_metadata_.mutable_unknown_fields();
  5032. }
  5033. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  5034. return GetArenaNoVirtual();
  5035. }
  5036. inline void* GetMaybeArenaPointer() const final {
  5037. return MaybeArenaPtr();
  5038. }
  5039. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5040. return GetDescriptor();
  5041. }
  5042. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5043. return GetMetadataStatic().descriptor;
  5044. }
  5045. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5046. return GetMetadataStatic().reflection;
  5047. }
  5048. static const ServiceOptions& default_instance();
  5049. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5050. static inline const ServiceOptions* internal_default_instance() {
  5051. return reinterpret_cast<const ServiceOptions*>(
  5052. &_ServiceOptions_default_instance_);
  5053. }
  5054. static constexpr int kIndexInFileMessages =
  5055. 19;
  5056. friend void swap(ServiceOptions& a, ServiceOptions& b) {
  5057. a.Swap(&b);
  5058. }
  5059. inline void Swap(ServiceOptions* other) {
  5060. if (other == this) return;
  5061. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5062. InternalSwap(other);
  5063. } else {
  5064. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5065. }
  5066. }
  5067. void UnsafeArenaSwap(ServiceOptions* other) {
  5068. if (other == this) return;
  5069. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5070. InternalSwap(other);
  5071. }
  5072. // implements Message ----------------------------------------------
  5073. inline ServiceOptions* New() const final {
  5074. return CreateMaybeMessage<ServiceOptions>(nullptr);
  5075. }
  5076. ServiceOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  5077. return CreateMaybeMessage<ServiceOptions>(arena);
  5078. }
  5079. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5080. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5081. void CopyFrom(const ServiceOptions& from);
  5082. void MergeFrom(const ServiceOptions& from);
  5083. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5084. bool IsInitialized() const final;
  5085. size_t ByteSizeLong() const final;
  5086. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5087. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  5088. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5089. int GetCachedSize() const final { return _cached_size_.Get(); }
  5090. private:
  5091. inline void SharedCtor();
  5092. inline void SharedDtor();
  5093. void SetCachedSize(int size) const final;
  5094. void InternalSwap(ServiceOptions* other);
  5095. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5096. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5097. return "google.protobuf.ServiceOptions";
  5098. }
  5099. protected:
  5100. explicit ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5101. private:
  5102. static void ArenaDtor(void* object);
  5103. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5104. private:
  5105. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  5106. return _internal_metadata_.arena();
  5107. }
  5108. inline void* MaybeArenaPtr() const {
  5109. return _internal_metadata_.raw_arena_ptr();
  5110. }
  5111. public:
  5112. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5113. private:
  5114. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  5115. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  5116. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  5117. }
  5118. public:
  5119. // nested types ----------------------------------------------------
  5120. // accessors -------------------------------------------------------
  5121. enum : int {
  5122. kUninterpretedOptionFieldNumber = 999,
  5123. kDeprecatedFieldNumber = 33,
  5124. };
  5125. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5126. int uninterpreted_option_size() const;
  5127. private:
  5128. int _internal_uninterpreted_option_size() const;
  5129. public:
  5130. void clear_uninterpreted_option();
  5131. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5132. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5133. mutable_uninterpreted_option();
  5134. private:
  5135. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5136. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5137. public:
  5138. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5139. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5140. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5141. uninterpreted_option() const;
  5142. // optional bool deprecated = 33 [default = false];
  5143. bool has_deprecated() const;
  5144. private:
  5145. bool _internal_has_deprecated() const;
  5146. public:
  5147. void clear_deprecated();
  5148. bool deprecated() const;
  5149. void set_deprecated(bool value);
  5150. private:
  5151. bool _internal_deprecated() const;
  5152. void _internal_set_deprecated(bool value);
  5153. public:
  5154. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
  5155. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  5156. private:
  5157. class _Internal;
  5158. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5159. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  5160. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5161. typedef void InternalArenaConstructable_;
  5162. typedef void DestructorSkippable_;
  5163. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5164. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5165. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5166. bool deprecated_;
  5167. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5168. };
  5169. // -------------------------------------------------------------------
  5170. class PROTOBUF_EXPORT MethodOptions :
  5171. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */ {
  5172. public:
  5173. MethodOptions();
  5174. virtual ~MethodOptions();
  5175. MethodOptions(const MethodOptions& from);
  5176. MethodOptions(MethodOptions&& from) noexcept
  5177. : MethodOptions() {
  5178. *this = ::std::move(from);
  5179. }
  5180. inline MethodOptions& operator=(const MethodOptions& from) {
  5181. CopyFrom(from);
  5182. return *this;
  5183. }
  5184. inline MethodOptions& operator=(MethodOptions&& from) noexcept {
  5185. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5186. if (this != &from) InternalSwap(&from);
  5187. } else {
  5188. CopyFrom(from);
  5189. }
  5190. return *this;
  5191. }
  5192. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5193. return _internal_metadata_.unknown_fields();
  5194. }
  5195. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5196. return _internal_metadata_.mutable_unknown_fields();
  5197. }
  5198. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  5199. return GetArenaNoVirtual();
  5200. }
  5201. inline void* GetMaybeArenaPointer() const final {
  5202. return MaybeArenaPtr();
  5203. }
  5204. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5205. return GetDescriptor();
  5206. }
  5207. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5208. return GetMetadataStatic().descriptor;
  5209. }
  5210. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5211. return GetMetadataStatic().reflection;
  5212. }
  5213. static const MethodOptions& default_instance();
  5214. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5215. static inline const MethodOptions* internal_default_instance() {
  5216. return reinterpret_cast<const MethodOptions*>(
  5217. &_MethodOptions_default_instance_);
  5218. }
  5219. static constexpr int kIndexInFileMessages =
  5220. 20;
  5221. friend void swap(MethodOptions& a, MethodOptions& b) {
  5222. a.Swap(&b);
  5223. }
  5224. inline void Swap(MethodOptions* other) {
  5225. if (other == this) return;
  5226. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5227. InternalSwap(other);
  5228. } else {
  5229. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5230. }
  5231. }
  5232. void UnsafeArenaSwap(MethodOptions* other) {
  5233. if (other == this) return;
  5234. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5235. InternalSwap(other);
  5236. }
  5237. // implements Message ----------------------------------------------
  5238. inline MethodOptions* New() const final {
  5239. return CreateMaybeMessage<MethodOptions>(nullptr);
  5240. }
  5241. MethodOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  5242. return CreateMaybeMessage<MethodOptions>(arena);
  5243. }
  5244. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5245. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5246. void CopyFrom(const MethodOptions& from);
  5247. void MergeFrom(const MethodOptions& from);
  5248. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5249. bool IsInitialized() const final;
  5250. size_t ByteSizeLong() const final;
  5251. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5252. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  5253. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5254. int GetCachedSize() const final { return _cached_size_.Get(); }
  5255. private:
  5256. inline void SharedCtor();
  5257. inline void SharedDtor();
  5258. void SetCachedSize(int size) const final;
  5259. void InternalSwap(MethodOptions* other);
  5260. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5261. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5262. return "google.protobuf.MethodOptions";
  5263. }
  5264. protected:
  5265. explicit MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5266. private:
  5267. static void ArenaDtor(void* object);
  5268. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5269. private:
  5270. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  5271. return _internal_metadata_.arena();
  5272. }
  5273. inline void* MaybeArenaPtr() const {
  5274. return _internal_metadata_.raw_arena_ptr();
  5275. }
  5276. public:
  5277. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5278. private:
  5279. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  5280. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  5281. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  5282. }
  5283. public:
  5284. // nested types ----------------------------------------------------
  5285. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  5286. static constexpr IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  5287. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  5288. static constexpr IdempotencyLevel NO_SIDE_EFFECTS =
  5289. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  5290. static constexpr IdempotencyLevel IDEMPOTENT =
  5291. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  5292. static inline bool IdempotencyLevel_IsValid(int value) {
  5293. return MethodOptions_IdempotencyLevel_IsValid(value);
  5294. }
  5295. static constexpr IdempotencyLevel IdempotencyLevel_MIN =
  5296. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  5297. static constexpr IdempotencyLevel IdempotencyLevel_MAX =
  5298. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  5299. static constexpr int IdempotencyLevel_ARRAYSIZE =
  5300. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  5301. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  5302. IdempotencyLevel_descriptor() {
  5303. return MethodOptions_IdempotencyLevel_descriptor();
  5304. }
  5305. template<typename T>
  5306. static inline const std::string& IdempotencyLevel_Name(T enum_t_value) {
  5307. static_assert(::std::is_same<T, IdempotencyLevel>::value ||
  5308. ::std::is_integral<T>::value,
  5309. "Incorrect type passed to function IdempotencyLevel_Name.");
  5310. return MethodOptions_IdempotencyLevel_Name(enum_t_value);
  5311. }
  5312. static inline bool IdempotencyLevel_Parse(const std::string& name,
  5313. IdempotencyLevel* value) {
  5314. return MethodOptions_IdempotencyLevel_Parse(name, value);
  5315. }
  5316. // accessors -------------------------------------------------------
  5317. enum : int {
  5318. kUninterpretedOptionFieldNumber = 999,
  5319. kDeprecatedFieldNumber = 33,
  5320. kIdempotencyLevelFieldNumber = 34,
  5321. };
  5322. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5323. int uninterpreted_option_size() const;
  5324. private:
  5325. int _internal_uninterpreted_option_size() const;
  5326. public:
  5327. void clear_uninterpreted_option();
  5328. PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5329. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5330. mutable_uninterpreted_option();
  5331. private:
  5332. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5333. PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5334. public:
  5335. const PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5336. PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5337. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5338. uninterpreted_option() const;
  5339. // optional bool deprecated = 33 [default = false];
  5340. bool has_deprecated() const;
  5341. private:
  5342. bool _internal_has_deprecated() const;
  5343. public:
  5344. void clear_deprecated();
  5345. bool deprecated() const;
  5346. void set_deprecated(bool value);
  5347. private:
  5348. bool _internal_deprecated() const;
  5349. void _internal_set_deprecated(bool value);
  5350. public:
  5351. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  5352. bool has_idempotency_level() const;
  5353. private:
  5354. bool _internal_has_idempotency_level() const;
  5355. public:
  5356. void clear_idempotency_level();
  5357. PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel idempotency_level() const;
  5358. void set_idempotency_level(PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  5359. private:
  5360. PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel _internal_idempotency_level() const;
  5361. void _internal_set_idempotency_level(PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  5362. public:
  5363. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
  5364. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  5365. private:
  5366. class _Internal;
  5367. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5368. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  5369. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5370. typedef void InternalArenaConstructable_;
  5371. typedef void DestructorSkippable_;
  5372. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5373. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5374. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5375. bool deprecated_;
  5376. int idempotency_level_;
  5377. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5378. };
  5379. // -------------------------------------------------------------------
  5380. class PROTOBUF_EXPORT UninterpretedOption_NamePart :
  5381. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */ {
  5382. public:
  5383. UninterpretedOption_NamePart();
  5384. virtual ~UninterpretedOption_NamePart();
  5385. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  5386. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  5387. : UninterpretedOption_NamePart() {
  5388. *this = ::std::move(from);
  5389. }
  5390. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  5391. CopyFrom(from);
  5392. return *this;
  5393. }
  5394. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept {
  5395. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5396. if (this != &from) InternalSwap(&from);
  5397. } else {
  5398. CopyFrom(from);
  5399. }
  5400. return *this;
  5401. }
  5402. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5403. return _internal_metadata_.unknown_fields();
  5404. }
  5405. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5406. return _internal_metadata_.mutable_unknown_fields();
  5407. }
  5408. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  5409. return GetArenaNoVirtual();
  5410. }
  5411. inline void* GetMaybeArenaPointer() const final {
  5412. return MaybeArenaPtr();
  5413. }
  5414. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5415. return GetDescriptor();
  5416. }
  5417. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5418. return GetMetadataStatic().descriptor;
  5419. }
  5420. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5421. return GetMetadataStatic().reflection;
  5422. }
  5423. static const UninterpretedOption_NamePart& default_instance();
  5424. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5425. static inline const UninterpretedOption_NamePart* internal_default_instance() {
  5426. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  5427. &_UninterpretedOption_NamePart_default_instance_);
  5428. }
  5429. static constexpr int kIndexInFileMessages =
  5430. 21;
  5431. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b) {
  5432. a.Swap(&b);
  5433. }
  5434. inline void Swap(UninterpretedOption_NamePart* other) {
  5435. if (other == this) return;
  5436. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5437. InternalSwap(other);
  5438. } else {
  5439. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5440. }
  5441. }
  5442. void UnsafeArenaSwap(UninterpretedOption_NamePart* other) {
  5443. if (other == this) return;
  5444. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5445. InternalSwap(other);
  5446. }
  5447. // implements Message ----------------------------------------------
  5448. inline UninterpretedOption_NamePart* New() const final {
  5449. return CreateMaybeMessage<UninterpretedOption_NamePart>(nullptr);
  5450. }
  5451. UninterpretedOption_NamePart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  5452. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  5453. }
  5454. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5455. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5456. void CopyFrom(const UninterpretedOption_NamePart& from);
  5457. void MergeFrom(const UninterpretedOption_NamePart& from);
  5458. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5459. bool IsInitialized() const final;
  5460. size_t ByteSizeLong() const final;
  5461. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5462. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  5463. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5464. int GetCachedSize() const final { return _cached_size_.Get(); }
  5465. private:
  5466. inline void SharedCtor();
  5467. inline void SharedDtor();
  5468. void SetCachedSize(int size) const final;
  5469. void InternalSwap(UninterpretedOption_NamePart* other);
  5470. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5471. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5472. return "google.protobuf.UninterpretedOption.NamePart";
  5473. }
  5474. protected:
  5475. explicit UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5476. private:
  5477. static void ArenaDtor(void* object);
  5478. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5479. private:
  5480. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  5481. return _internal_metadata_.arena();
  5482. }
  5483. inline void* MaybeArenaPtr() const {
  5484. return _internal_metadata_.raw_arena_ptr();
  5485. }
  5486. public:
  5487. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5488. private:
  5489. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  5490. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  5491. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  5492. }
  5493. public:
  5494. // nested types ----------------------------------------------------
  5495. // accessors -------------------------------------------------------
  5496. enum : int {
  5497. kNamePartFieldNumber = 1,
  5498. kIsExtensionFieldNumber = 2,
  5499. };
  5500. // required string name_part = 1;
  5501. bool has_name_part() const;
  5502. private:
  5503. bool _internal_has_name_part() const;
  5504. public:
  5505. void clear_name_part();
  5506. const std::string& name_part() const;
  5507. void set_name_part(const std::string& value);
  5508. void set_name_part(std::string&& value);
  5509. void set_name_part(const char* value);
  5510. void set_name_part(const char* value, size_t size);
  5511. std::string* mutable_name_part();
  5512. std::string* release_name_part();
  5513. void set_allocated_name_part(std::string* name_part);
  5514. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5515. " string fields are deprecated and will be removed in a"
  5516. " future release.")
  5517. std::string* unsafe_arena_release_name_part();
  5518. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5519. " string fields are deprecated and will be removed in a"
  5520. " future release.")
  5521. void unsafe_arena_set_allocated_name_part(
  5522. std::string* name_part);
  5523. private:
  5524. const std::string& _internal_name_part() const;
  5525. void _internal_set_name_part(const std::string& value);
  5526. std::string* _internal_mutable_name_part();
  5527. public:
  5528. // required bool is_extension = 2;
  5529. bool has_is_extension() const;
  5530. private:
  5531. bool _internal_has_is_extension() const;
  5532. public:
  5533. void clear_is_extension();
  5534. bool is_extension() const;
  5535. void set_is_extension(bool value);
  5536. private:
  5537. bool _internal_is_extension() const;
  5538. void _internal_set_is_extension(bool value);
  5539. public:
  5540. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  5541. private:
  5542. class _Internal;
  5543. // helper for ByteSizeLong()
  5544. size_t RequiredFieldsByteSizeFallback() const;
  5545. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  5546. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5547. typedef void InternalArenaConstructable_;
  5548. typedef void DestructorSkippable_;
  5549. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5550. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5551. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_part_;
  5552. bool is_extension_;
  5553. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5554. };
  5555. // -------------------------------------------------------------------
  5556. class PROTOBUF_EXPORT UninterpretedOption :
  5557. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */ {
  5558. public:
  5559. UninterpretedOption();
  5560. virtual ~UninterpretedOption();
  5561. UninterpretedOption(const UninterpretedOption& from);
  5562. UninterpretedOption(UninterpretedOption&& from) noexcept
  5563. : UninterpretedOption() {
  5564. *this = ::std::move(from);
  5565. }
  5566. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  5567. CopyFrom(from);
  5568. return *this;
  5569. }
  5570. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept {
  5571. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5572. if (this != &from) InternalSwap(&from);
  5573. } else {
  5574. CopyFrom(from);
  5575. }
  5576. return *this;
  5577. }
  5578. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5579. return _internal_metadata_.unknown_fields();
  5580. }
  5581. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5582. return _internal_metadata_.mutable_unknown_fields();
  5583. }
  5584. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  5585. return GetArenaNoVirtual();
  5586. }
  5587. inline void* GetMaybeArenaPointer() const final {
  5588. return MaybeArenaPtr();
  5589. }
  5590. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5591. return GetDescriptor();
  5592. }
  5593. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5594. return GetMetadataStatic().descriptor;
  5595. }
  5596. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5597. return GetMetadataStatic().reflection;
  5598. }
  5599. static const UninterpretedOption& default_instance();
  5600. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5601. static inline const UninterpretedOption* internal_default_instance() {
  5602. return reinterpret_cast<const UninterpretedOption*>(
  5603. &_UninterpretedOption_default_instance_);
  5604. }
  5605. static constexpr int kIndexInFileMessages =
  5606. 22;
  5607. friend void swap(UninterpretedOption& a, UninterpretedOption& b) {
  5608. a.Swap(&b);
  5609. }
  5610. inline void Swap(UninterpretedOption* other) {
  5611. if (other == this) return;
  5612. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5613. InternalSwap(other);
  5614. } else {
  5615. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5616. }
  5617. }
  5618. void UnsafeArenaSwap(UninterpretedOption* other) {
  5619. if (other == this) return;
  5620. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5621. InternalSwap(other);
  5622. }
  5623. // implements Message ----------------------------------------------
  5624. inline UninterpretedOption* New() const final {
  5625. return CreateMaybeMessage<UninterpretedOption>(nullptr);
  5626. }
  5627. UninterpretedOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  5628. return CreateMaybeMessage<UninterpretedOption>(arena);
  5629. }
  5630. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5631. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5632. void CopyFrom(const UninterpretedOption& from);
  5633. void MergeFrom(const UninterpretedOption& from);
  5634. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5635. bool IsInitialized() const final;
  5636. size_t ByteSizeLong() const final;
  5637. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5638. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  5639. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5640. int GetCachedSize() const final { return _cached_size_.Get(); }
  5641. private:
  5642. inline void SharedCtor();
  5643. inline void SharedDtor();
  5644. void SetCachedSize(int size) const final;
  5645. void InternalSwap(UninterpretedOption* other);
  5646. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5647. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5648. return "google.protobuf.UninterpretedOption";
  5649. }
  5650. protected:
  5651. explicit UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5652. private:
  5653. static void ArenaDtor(void* object);
  5654. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5655. private:
  5656. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  5657. return _internal_metadata_.arena();
  5658. }
  5659. inline void* MaybeArenaPtr() const {
  5660. return _internal_metadata_.raw_arena_ptr();
  5661. }
  5662. public:
  5663. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5664. private:
  5665. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  5666. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  5667. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  5668. }
  5669. public:
  5670. // nested types ----------------------------------------------------
  5671. typedef UninterpretedOption_NamePart NamePart;
  5672. // accessors -------------------------------------------------------
  5673. enum : int {
  5674. kNameFieldNumber = 2,
  5675. kIdentifierValueFieldNumber = 3,
  5676. kStringValueFieldNumber = 7,
  5677. kAggregateValueFieldNumber = 8,
  5678. kPositiveIntValueFieldNumber = 4,
  5679. kNegativeIntValueFieldNumber = 5,
  5680. kDoubleValueFieldNumber = 6,
  5681. };
  5682. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  5683. int name_size() const;
  5684. private:
  5685. int _internal_name_size() const;
  5686. public:
  5687. void clear_name();
  5688. PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* mutable_name(int index);
  5689. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  5690. mutable_name();
  5691. private:
  5692. const PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& _internal_name(int index) const;
  5693. PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _internal_add_name();
  5694. public:
  5695. const PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& name(int index) const;
  5696. PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* add_name();
  5697. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  5698. name() const;
  5699. // optional string identifier_value = 3;
  5700. bool has_identifier_value() const;
  5701. private:
  5702. bool _internal_has_identifier_value() const;
  5703. public:
  5704. void clear_identifier_value();
  5705. const std::string& identifier_value() const;
  5706. void set_identifier_value(const std::string& value);
  5707. void set_identifier_value(std::string&& value);
  5708. void set_identifier_value(const char* value);
  5709. void set_identifier_value(const char* value, size_t size);
  5710. std::string* mutable_identifier_value();
  5711. std::string* release_identifier_value();
  5712. void set_allocated_identifier_value(std::string* identifier_value);
  5713. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5714. " string fields are deprecated and will be removed in a"
  5715. " future release.")
  5716. std::string* unsafe_arena_release_identifier_value();
  5717. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5718. " string fields are deprecated and will be removed in a"
  5719. " future release.")
  5720. void unsafe_arena_set_allocated_identifier_value(
  5721. std::string* identifier_value);
  5722. private:
  5723. const std::string& _internal_identifier_value() const;
  5724. void _internal_set_identifier_value(const std::string& value);
  5725. std::string* _internal_mutable_identifier_value();
  5726. public:
  5727. // optional bytes string_value = 7;
  5728. bool has_string_value() const;
  5729. private:
  5730. bool _internal_has_string_value() const;
  5731. public:
  5732. void clear_string_value();
  5733. const std::string& string_value() const;
  5734. void set_string_value(const std::string& value);
  5735. void set_string_value(std::string&& value);
  5736. void set_string_value(const char* value);
  5737. void set_string_value(const void* value, size_t size);
  5738. std::string* mutable_string_value();
  5739. std::string* release_string_value();
  5740. void set_allocated_string_value(std::string* string_value);
  5741. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5742. " string fields are deprecated and will be removed in a"
  5743. " future release.")
  5744. std::string* unsafe_arena_release_string_value();
  5745. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5746. " string fields are deprecated and will be removed in a"
  5747. " future release.")
  5748. void unsafe_arena_set_allocated_string_value(
  5749. std::string* string_value);
  5750. private:
  5751. const std::string& _internal_string_value() const;
  5752. void _internal_set_string_value(const std::string& value);
  5753. std::string* _internal_mutable_string_value();
  5754. public:
  5755. // optional string aggregate_value = 8;
  5756. bool has_aggregate_value() const;
  5757. private:
  5758. bool _internal_has_aggregate_value() const;
  5759. public:
  5760. void clear_aggregate_value();
  5761. const std::string& aggregate_value() const;
  5762. void set_aggregate_value(const std::string& value);
  5763. void set_aggregate_value(std::string&& value);
  5764. void set_aggregate_value(const char* value);
  5765. void set_aggregate_value(const char* value, size_t size);
  5766. std::string* mutable_aggregate_value();
  5767. std::string* release_aggregate_value();
  5768. void set_allocated_aggregate_value(std::string* aggregate_value);
  5769. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5770. " string fields are deprecated and will be removed in a"
  5771. " future release.")
  5772. std::string* unsafe_arena_release_aggregate_value();
  5773. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5774. " string fields are deprecated and will be removed in a"
  5775. " future release.")
  5776. void unsafe_arena_set_allocated_aggregate_value(
  5777. std::string* aggregate_value);
  5778. private:
  5779. const std::string& _internal_aggregate_value() const;
  5780. void _internal_set_aggregate_value(const std::string& value);
  5781. std::string* _internal_mutable_aggregate_value();
  5782. public:
  5783. // optional uint64 positive_int_value = 4;
  5784. bool has_positive_int_value() const;
  5785. private:
  5786. bool _internal_has_positive_int_value() const;
  5787. public:
  5788. void clear_positive_int_value();
  5789. ::PROTOBUF_NAMESPACE_ID::uint64 positive_int_value() const;
  5790. void set_positive_int_value(::PROTOBUF_NAMESPACE_ID::uint64 value);
  5791. private:
  5792. ::PROTOBUF_NAMESPACE_ID::uint64 _internal_positive_int_value() const;
  5793. void _internal_set_positive_int_value(::PROTOBUF_NAMESPACE_ID::uint64 value);
  5794. public:
  5795. // optional int64 negative_int_value = 5;
  5796. bool has_negative_int_value() const;
  5797. private:
  5798. bool _internal_has_negative_int_value() const;
  5799. public:
  5800. void clear_negative_int_value();
  5801. ::PROTOBUF_NAMESPACE_ID::int64 negative_int_value() const;
  5802. void set_negative_int_value(::PROTOBUF_NAMESPACE_ID::int64 value);
  5803. private:
  5804. ::PROTOBUF_NAMESPACE_ID::int64 _internal_negative_int_value() const;
  5805. void _internal_set_negative_int_value(::PROTOBUF_NAMESPACE_ID::int64 value);
  5806. public:
  5807. // optional double double_value = 6;
  5808. bool has_double_value() const;
  5809. private:
  5810. bool _internal_has_double_value() const;
  5811. public:
  5812. void clear_double_value();
  5813. double double_value() const;
  5814. void set_double_value(double value);
  5815. private:
  5816. double _internal_double_value() const;
  5817. void _internal_set_double_value(double value);
  5818. public:
  5819. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  5820. private:
  5821. class _Internal;
  5822. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  5823. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5824. typedef void InternalArenaConstructable_;
  5825. typedef void DestructorSkippable_;
  5826. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5827. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5828. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart > name_;
  5829. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identifier_value_;
  5830. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  5831. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aggregate_value_;
  5832. ::PROTOBUF_NAMESPACE_ID::uint64 positive_int_value_;
  5833. ::PROTOBUF_NAMESPACE_ID::int64 negative_int_value_;
  5834. double double_value_;
  5835. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5836. };
  5837. // -------------------------------------------------------------------
  5838. class PROTOBUF_EXPORT SourceCodeInfo_Location :
  5839. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */ {
  5840. public:
  5841. SourceCodeInfo_Location();
  5842. virtual ~SourceCodeInfo_Location();
  5843. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  5844. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  5845. : SourceCodeInfo_Location() {
  5846. *this = ::std::move(from);
  5847. }
  5848. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  5849. CopyFrom(from);
  5850. return *this;
  5851. }
  5852. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept {
  5853. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5854. if (this != &from) InternalSwap(&from);
  5855. } else {
  5856. CopyFrom(from);
  5857. }
  5858. return *this;
  5859. }
  5860. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5861. return _internal_metadata_.unknown_fields();
  5862. }
  5863. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5864. return _internal_metadata_.mutable_unknown_fields();
  5865. }
  5866. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  5867. return GetArenaNoVirtual();
  5868. }
  5869. inline void* GetMaybeArenaPointer() const final {
  5870. return MaybeArenaPtr();
  5871. }
  5872. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5873. return GetDescriptor();
  5874. }
  5875. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5876. return GetMetadataStatic().descriptor;
  5877. }
  5878. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5879. return GetMetadataStatic().reflection;
  5880. }
  5881. static const SourceCodeInfo_Location& default_instance();
  5882. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5883. static inline const SourceCodeInfo_Location* internal_default_instance() {
  5884. return reinterpret_cast<const SourceCodeInfo_Location*>(
  5885. &_SourceCodeInfo_Location_default_instance_);
  5886. }
  5887. static constexpr int kIndexInFileMessages =
  5888. 23;
  5889. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b) {
  5890. a.Swap(&b);
  5891. }
  5892. inline void Swap(SourceCodeInfo_Location* other) {
  5893. if (other == this) return;
  5894. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5895. InternalSwap(other);
  5896. } else {
  5897. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5898. }
  5899. }
  5900. void UnsafeArenaSwap(SourceCodeInfo_Location* other) {
  5901. if (other == this) return;
  5902. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5903. InternalSwap(other);
  5904. }
  5905. // implements Message ----------------------------------------------
  5906. inline SourceCodeInfo_Location* New() const final {
  5907. return CreateMaybeMessage<SourceCodeInfo_Location>(nullptr);
  5908. }
  5909. SourceCodeInfo_Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  5910. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  5911. }
  5912. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5913. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  5914. void CopyFrom(const SourceCodeInfo_Location& from);
  5915. void MergeFrom(const SourceCodeInfo_Location& from);
  5916. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5917. bool IsInitialized() const final;
  5918. size_t ByteSizeLong() const final;
  5919. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5920. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  5921. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5922. int GetCachedSize() const final { return _cached_size_.Get(); }
  5923. private:
  5924. inline void SharedCtor();
  5925. inline void SharedDtor();
  5926. void SetCachedSize(int size) const final;
  5927. void InternalSwap(SourceCodeInfo_Location* other);
  5928. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5929. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5930. return "google.protobuf.SourceCodeInfo.Location";
  5931. }
  5932. protected:
  5933. explicit SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5934. private:
  5935. static void ArenaDtor(void* object);
  5936. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5937. private:
  5938. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  5939. return _internal_metadata_.arena();
  5940. }
  5941. inline void* MaybeArenaPtr() const {
  5942. return _internal_metadata_.raw_arena_ptr();
  5943. }
  5944. public:
  5945. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5946. private:
  5947. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  5948. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  5949. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  5950. }
  5951. public:
  5952. // nested types ----------------------------------------------------
  5953. // accessors -------------------------------------------------------
  5954. enum : int {
  5955. kPathFieldNumber = 1,
  5956. kSpanFieldNumber = 2,
  5957. kLeadingDetachedCommentsFieldNumber = 6,
  5958. kLeadingCommentsFieldNumber = 3,
  5959. kTrailingCommentsFieldNumber = 4,
  5960. };
  5961. // repeated int32 path = 1 [packed = true];
  5962. int path_size() const;
  5963. private:
  5964. int _internal_path_size() const;
  5965. public:
  5966. void clear_path();
  5967. private:
  5968. ::PROTOBUF_NAMESPACE_ID::int32 _internal_path(int index) const;
  5969. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  5970. _internal_path() const;
  5971. void _internal_add_path(::PROTOBUF_NAMESPACE_ID::int32 value);
  5972. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  5973. _internal_mutable_path();
  5974. public:
  5975. ::PROTOBUF_NAMESPACE_ID::int32 path(int index) const;
  5976. void set_path(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  5977. void add_path(::PROTOBUF_NAMESPACE_ID::int32 value);
  5978. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  5979. path() const;
  5980. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  5981. mutable_path();
  5982. // repeated int32 span = 2 [packed = true];
  5983. int span_size() const;
  5984. private:
  5985. int _internal_span_size() const;
  5986. public:
  5987. void clear_span();
  5988. private:
  5989. ::PROTOBUF_NAMESPACE_ID::int32 _internal_span(int index) const;
  5990. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  5991. _internal_span() const;
  5992. void _internal_add_span(::PROTOBUF_NAMESPACE_ID::int32 value);
  5993. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  5994. _internal_mutable_span();
  5995. public:
  5996. ::PROTOBUF_NAMESPACE_ID::int32 span(int index) const;
  5997. void set_span(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  5998. void add_span(::PROTOBUF_NAMESPACE_ID::int32 value);
  5999. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6000. span() const;
  6001. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  6002. mutable_span();
  6003. // repeated string leading_detached_comments = 6;
  6004. int leading_detached_comments_size() const;
  6005. private:
  6006. int _internal_leading_detached_comments_size() const;
  6007. public:
  6008. void clear_leading_detached_comments();
  6009. const std::string& leading_detached_comments(int index) const;
  6010. std::string* mutable_leading_detached_comments(int index);
  6011. void set_leading_detached_comments(int index, const std::string& value);
  6012. void set_leading_detached_comments(int index, std::string&& value);
  6013. void set_leading_detached_comments(int index, const char* value);
  6014. void set_leading_detached_comments(int index, const char* value, size_t size);
  6015. std::string* add_leading_detached_comments();
  6016. void add_leading_detached_comments(const std::string& value);
  6017. void add_leading_detached_comments(std::string&& value);
  6018. void add_leading_detached_comments(const char* value);
  6019. void add_leading_detached_comments(const char* value, size_t size);
  6020. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_detached_comments() const;
  6021. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_detached_comments();
  6022. private:
  6023. const std::string& _internal_leading_detached_comments(int index) const;
  6024. std::string* _internal_add_leading_detached_comments();
  6025. public:
  6026. // optional string leading_comments = 3;
  6027. bool has_leading_comments() const;
  6028. private:
  6029. bool _internal_has_leading_comments() const;
  6030. public:
  6031. void clear_leading_comments();
  6032. const std::string& leading_comments() const;
  6033. void set_leading_comments(const std::string& value);
  6034. void set_leading_comments(std::string&& value);
  6035. void set_leading_comments(const char* value);
  6036. void set_leading_comments(const char* value, size_t size);
  6037. std::string* mutable_leading_comments();
  6038. std::string* release_leading_comments();
  6039. void set_allocated_leading_comments(std::string* leading_comments);
  6040. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6041. " string fields are deprecated and will be removed in a"
  6042. " future release.")
  6043. std::string* unsafe_arena_release_leading_comments();
  6044. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6045. " string fields are deprecated and will be removed in a"
  6046. " future release.")
  6047. void unsafe_arena_set_allocated_leading_comments(
  6048. std::string* leading_comments);
  6049. private:
  6050. const std::string& _internal_leading_comments() const;
  6051. void _internal_set_leading_comments(const std::string& value);
  6052. std::string* _internal_mutable_leading_comments();
  6053. public:
  6054. // optional string trailing_comments = 4;
  6055. bool has_trailing_comments() const;
  6056. private:
  6057. bool _internal_has_trailing_comments() const;
  6058. public:
  6059. void clear_trailing_comments();
  6060. const std::string& trailing_comments() const;
  6061. void set_trailing_comments(const std::string& value);
  6062. void set_trailing_comments(std::string&& value);
  6063. void set_trailing_comments(const char* value);
  6064. void set_trailing_comments(const char* value, size_t size);
  6065. std::string* mutable_trailing_comments();
  6066. std::string* release_trailing_comments();
  6067. void set_allocated_trailing_comments(std::string* trailing_comments);
  6068. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6069. " string fields are deprecated and will be removed in a"
  6070. " future release.")
  6071. std::string* unsafe_arena_release_trailing_comments();
  6072. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6073. " string fields are deprecated and will be removed in a"
  6074. " future release.")
  6075. void unsafe_arena_set_allocated_trailing_comments(
  6076. std::string* trailing_comments);
  6077. private:
  6078. const std::string& _internal_trailing_comments() const;
  6079. void _internal_set_trailing_comments(const std::string& value);
  6080. std::string* _internal_mutable_trailing_comments();
  6081. public:
  6082. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  6083. private:
  6084. class _Internal;
  6085. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  6086. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6087. typedef void InternalArenaConstructable_;
  6088. typedef void DestructorSkippable_;
  6089. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6090. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6091. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > path_;
  6092. mutable std::atomic<int> _path_cached_byte_size_;
  6093. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > span_;
  6094. mutable std::atomic<int> _span_cached_byte_size_;
  6095. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_detached_comments_;
  6096. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_comments_;
  6097. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trailing_comments_;
  6098. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6099. };
  6100. // -------------------------------------------------------------------
  6101. class PROTOBUF_EXPORT SourceCodeInfo :
  6102. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */ {
  6103. public:
  6104. SourceCodeInfo();
  6105. virtual ~SourceCodeInfo();
  6106. SourceCodeInfo(const SourceCodeInfo& from);
  6107. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  6108. : SourceCodeInfo() {
  6109. *this = ::std::move(from);
  6110. }
  6111. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  6112. CopyFrom(from);
  6113. return *this;
  6114. }
  6115. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept {
  6116. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6117. if (this != &from) InternalSwap(&from);
  6118. } else {
  6119. CopyFrom(from);
  6120. }
  6121. return *this;
  6122. }
  6123. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6124. return _internal_metadata_.unknown_fields();
  6125. }
  6126. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6127. return _internal_metadata_.mutable_unknown_fields();
  6128. }
  6129. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  6130. return GetArenaNoVirtual();
  6131. }
  6132. inline void* GetMaybeArenaPointer() const final {
  6133. return MaybeArenaPtr();
  6134. }
  6135. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6136. return GetDescriptor();
  6137. }
  6138. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6139. return GetMetadataStatic().descriptor;
  6140. }
  6141. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6142. return GetMetadataStatic().reflection;
  6143. }
  6144. static const SourceCodeInfo& default_instance();
  6145. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6146. static inline const SourceCodeInfo* internal_default_instance() {
  6147. return reinterpret_cast<const SourceCodeInfo*>(
  6148. &_SourceCodeInfo_default_instance_);
  6149. }
  6150. static constexpr int kIndexInFileMessages =
  6151. 24;
  6152. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b) {
  6153. a.Swap(&b);
  6154. }
  6155. inline void Swap(SourceCodeInfo* other) {
  6156. if (other == this) return;
  6157. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  6158. InternalSwap(other);
  6159. } else {
  6160. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6161. }
  6162. }
  6163. void UnsafeArenaSwap(SourceCodeInfo* other) {
  6164. if (other == this) return;
  6165. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  6166. InternalSwap(other);
  6167. }
  6168. // implements Message ----------------------------------------------
  6169. inline SourceCodeInfo* New() const final {
  6170. return CreateMaybeMessage<SourceCodeInfo>(nullptr);
  6171. }
  6172. SourceCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  6173. return CreateMaybeMessage<SourceCodeInfo>(arena);
  6174. }
  6175. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  6176. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  6177. void CopyFrom(const SourceCodeInfo& from);
  6178. void MergeFrom(const SourceCodeInfo& from);
  6179. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6180. bool IsInitialized() const final;
  6181. size_t ByteSizeLong() const final;
  6182. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6183. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  6184. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6185. int GetCachedSize() const final { return _cached_size_.Get(); }
  6186. private:
  6187. inline void SharedCtor();
  6188. inline void SharedDtor();
  6189. void SetCachedSize(int size) const final;
  6190. void InternalSwap(SourceCodeInfo* other);
  6191. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6192. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6193. return "google.protobuf.SourceCodeInfo";
  6194. }
  6195. protected:
  6196. explicit SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6197. private:
  6198. static void ArenaDtor(void* object);
  6199. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6200. private:
  6201. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  6202. return _internal_metadata_.arena();
  6203. }
  6204. inline void* MaybeArenaPtr() const {
  6205. return _internal_metadata_.raw_arena_ptr();
  6206. }
  6207. public:
  6208. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6209. private:
  6210. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  6211. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  6212. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  6213. }
  6214. public:
  6215. // nested types ----------------------------------------------------
  6216. typedef SourceCodeInfo_Location Location;
  6217. // accessors -------------------------------------------------------
  6218. enum : int {
  6219. kLocationFieldNumber = 1,
  6220. };
  6221. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  6222. int location_size() const;
  6223. private:
  6224. int _internal_location_size() const;
  6225. public:
  6226. void clear_location();
  6227. PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* mutable_location(int index);
  6228. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  6229. mutable_location();
  6230. private:
  6231. const PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& _internal_location(int index) const;
  6232. PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _internal_add_location();
  6233. public:
  6234. const PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& location(int index) const;
  6235. PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* add_location();
  6236. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  6237. location() const;
  6238. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  6239. private:
  6240. class _Internal;
  6241. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  6242. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6243. typedef void InternalArenaConstructable_;
  6244. typedef void DestructorSkippable_;
  6245. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6246. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6247. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location > location_;
  6248. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6249. };
  6250. // -------------------------------------------------------------------
  6251. class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation :
  6252. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */ {
  6253. public:
  6254. GeneratedCodeInfo_Annotation();
  6255. virtual ~GeneratedCodeInfo_Annotation();
  6256. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  6257. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  6258. : GeneratedCodeInfo_Annotation() {
  6259. *this = ::std::move(from);
  6260. }
  6261. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
  6262. CopyFrom(from);
  6263. return *this;
  6264. }
  6265. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept {
  6266. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6267. if (this != &from) InternalSwap(&from);
  6268. } else {
  6269. CopyFrom(from);
  6270. }
  6271. return *this;
  6272. }
  6273. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6274. return _internal_metadata_.unknown_fields();
  6275. }
  6276. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6277. return _internal_metadata_.mutable_unknown_fields();
  6278. }
  6279. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  6280. return GetArenaNoVirtual();
  6281. }
  6282. inline void* GetMaybeArenaPointer() const final {
  6283. return MaybeArenaPtr();
  6284. }
  6285. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6286. return GetDescriptor();
  6287. }
  6288. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6289. return GetMetadataStatic().descriptor;
  6290. }
  6291. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6292. return GetMetadataStatic().reflection;
  6293. }
  6294. static const GeneratedCodeInfo_Annotation& default_instance();
  6295. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6296. static inline const GeneratedCodeInfo_Annotation* internal_default_instance() {
  6297. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  6298. &_GeneratedCodeInfo_Annotation_default_instance_);
  6299. }
  6300. static constexpr int kIndexInFileMessages =
  6301. 25;
  6302. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b) {
  6303. a.Swap(&b);
  6304. }
  6305. inline void Swap(GeneratedCodeInfo_Annotation* other) {
  6306. if (other == this) return;
  6307. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  6308. InternalSwap(other);
  6309. } else {
  6310. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6311. }
  6312. }
  6313. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other) {
  6314. if (other == this) return;
  6315. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  6316. InternalSwap(other);
  6317. }
  6318. // implements Message ----------------------------------------------
  6319. inline GeneratedCodeInfo_Annotation* New() const final {
  6320. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(nullptr);
  6321. }
  6322. GeneratedCodeInfo_Annotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  6323. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  6324. }
  6325. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  6326. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  6327. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  6328. void MergeFrom(const GeneratedCodeInfo_Annotation& from);
  6329. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6330. bool IsInitialized() const final;
  6331. size_t ByteSizeLong() const final;
  6332. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6333. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  6334. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6335. int GetCachedSize() const final { return _cached_size_.Get(); }
  6336. private:
  6337. inline void SharedCtor();
  6338. inline void SharedDtor();
  6339. void SetCachedSize(int size) const final;
  6340. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  6341. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6342. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6343. return "google.protobuf.GeneratedCodeInfo.Annotation";
  6344. }
  6345. protected:
  6346. explicit GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6347. private:
  6348. static void ArenaDtor(void* object);
  6349. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6350. private:
  6351. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  6352. return _internal_metadata_.arena();
  6353. }
  6354. inline void* MaybeArenaPtr() const {
  6355. return _internal_metadata_.raw_arena_ptr();
  6356. }
  6357. public:
  6358. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6359. private:
  6360. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  6361. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  6362. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  6363. }
  6364. public:
  6365. // nested types ----------------------------------------------------
  6366. // accessors -------------------------------------------------------
  6367. enum : int {
  6368. kPathFieldNumber = 1,
  6369. kSourceFileFieldNumber = 2,
  6370. kBeginFieldNumber = 3,
  6371. kEndFieldNumber = 4,
  6372. };
  6373. // repeated int32 path = 1 [packed = true];
  6374. int path_size() const;
  6375. private:
  6376. int _internal_path_size() const;
  6377. public:
  6378. void clear_path();
  6379. private:
  6380. ::PROTOBUF_NAMESPACE_ID::int32 _internal_path(int index) const;
  6381. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6382. _internal_path() const;
  6383. void _internal_add_path(::PROTOBUF_NAMESPACE_ID::int32 value);
  6384. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  6385. _internal_mutable_path();
  6386. public:
  6387. ::PROTOBUF_NAMESPACE_ID::int32 path(int index) const;
  6388. void set_path(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
  6389. void add_path(::PROTOBUF_NAMESPACE_ID::int32 value);
  6390. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6391. path() const;
  6392. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  6393. mutable_path();
  6394. // optional string source_file = 2;
  6395. bool has_source_file() const;
  6396. private:
  6397. bool _internal_has_source_file() const;
  6398. public:
  6399. void clear_source_file();
  6400. const std::string& source_file() const;
  6401. void set_source_file(const std::string& value);
  6402. void set_source_file(std::string&& value);
  6403. void set_source_file(const char* value);
  6404. void set_source_file(const char* value, size_t size);
  6405. std::string* mutable_source_file();
  6406. std::string* release_source_file();
  6407. void set_allocated_source_file(std::string* source_file);
  6408. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6409. " string fields are deprecated and will be removed in a"
  6410. " future release.")
  6411. std::string* unsafe_arena_release_source_file();
  6412. GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6413. " string fields are deprecated and will be removed in a"
  6414. " future release.")
  6415. void unsafe_arena_set_allocated_source_file(
  6416. std::string* source_file);
  6417. private:
  6418. const std::string& _internal_source_file() const;
  6419. void _internal_set_source_file(const std::string& value);
  6420. std::string* _internal_mutable_source_file();
  6421. public:
  6422. // optional int32 begin = 3;
  6423. bool has_begin() const;
  6424. private:
  6425. bool _internal_has_begin() const;
  6426. public:
  6427. void clear_begin();
  6428. ::PROTOBUF_NAMESPACE_ID::int32 begin() const;
  6429. void set_begin(::PROTOBUF_NAMESPACE_ID::int32 value);
  6430. private:
  6431. ::PROTOBUF_NAMESPACE_ID::int32 _internal_begin() const;
  6432. void _internal_set_begin(::PROTOBUF_NAMESPACE_ID::int32 value);
  6433. public:
  6434. // optional int32 end = 4;
  6435. bool has_end() const;
  6436. private:
  6437. bool _internal_has_end() const;
  6438. public:
  6439. void clear_end();
  6440. ::PROTOBUF_NAMESPACE_ID::int32 end() const;
  6441. void set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  6442. private:
  6443. ::PROTOBUF_NAMESPACE_ID::int32 _internal_end() const;
  6444. void _internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value);
  6445. public:
  6446. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  6447. private:
  6448. class _Internal;
  6449. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  6450. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6451. typedef void InternalArenaConstructable_;
  6452. typedef void DestructorSkippable_;
  6453. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6454. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6455. ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > path_;
  6456. mutable std::atomic<int> _path_cached_byte_size_;
  6457. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_file_;
  6458. ::PROTOBUF_NAMESPACE_ID::int32 begin_;
  6459. ::PROTOBUF_NAMESPACE_ID::int32 end_;
  6460. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6461. };
  6462. // -------------------------------------------------------------------
  6463. class PROTOBUF_EXPORT GeneratedCodeInfo :
  6464. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */ {
  6465. public:
  6466. GeneratedCodeInfo();
  6467. virtual ~GeneratedCodeInfo();
  6468. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  6469. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  6470. : GeneratedCodeInfo() {
  6471. *this = ::std::move(from);
  6472. }
  6473. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
  6474. CopyFrom(from);
  6475. return *this;
  6476. }
  6477. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept {
  6478. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6479. if (this != &from) InternalSwap(&from);
  6480. } else {
  6481. CopyFrom(from);
  6482. }
  6483. return *this;
  6484. }
  6485. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6486. return _internal_metadata_.unknown_fields();
  6487. }
  6488. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6489. return _internal_metadata_.mutable_unknown_fields();
  6490. }
  6491. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
  6492. return GetArenaNoVirtual();
  6493. }
  6494. inline void* GetMaybeArenaPointer() const final {
  6495. return MaybeArenaPtr();
  6496. }
  6497. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6498. return GetDescriptor();
  6499. }
  6500. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6501. return GetMetadataStatic().descriptor;
  6502. }
  6503. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6504. return GetMetadataStatic().reflection;
  6505. }
  6506. static const GeneratedCodeInfo& default_instance();
  6507. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6508. static inline const GeneratedCodeInfo* internal_default_instance() {
  6509. return reinterpret_cast<const GeneratedCodeInfo*>(
  6510. &_GeneratedCodeInfo_default_instance_);
  6511. }
  6512. static constexpr int kIndexInFileMessages =
  6513. 26;
  6514. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b) {
  6515. a.Swap(&b);
  6516. }
  6517. inline void Swap(GeneratedCodeInfo* other) {
  6518. if (other == this) return;
  6519. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  6520. InternalSwap(other);
  6521. } else {
  6522. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6523. }
  6524. }
  6525. void UnsafeArenaSwap(GeneratedCodeInfo* other) {
  6526. if (other == this) return;
  6527. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  6528. InternalSwap(other);
  6529. }
  6530. // implements Message ----------------------------------------------
  6531. inline GeneratedCodeInfo* New() const final {
  6532. return CreateMaybeMessage<GeneratedCodeInfo>(nullptr);
  6533. }
  6534. GeneratedCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  6535. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  6536. }
  6537. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  6538. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  6539. void CopyFrom(const GeneratedCodeInfo& from);
  6540. void MergeFrom(const GeneratedCodeInfo& from);
  6541. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6542. bool IsInitialized() const final;
  6543. size_t ByteSizeLong() const final;
  6544. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6545. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  6546. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6547. int GetCachedSize() const final { return _cached_size_.Get(); }
  6548. private:
  6549. inline void SharedCtor();
  6550. inline void SharedDtor();
  6551. void SetCachedSize(int size) const final;
  6552. void InternalSwap(GeneratedCodeInfo* other);
  6553. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6554. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6555. return "google.protobuf.GeneratedCodeInfo";
  6556. }
  6557. protected:
  6558. explicit GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6559. private:
  6560. static void ArenaDtor(void* object);
  6561. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6562. private:
  6563. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  6564. return _internal_metadata_.arena();
  6565. }
  6566. inline void* MaybeArenaPtr() const {
  6567. return _internal_metadata_.raw_arena_ptr();
  6568. }
  6569. public:
  6570. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6571. private:
  6572. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  6573. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto);
  6574. return ::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto.file_level_metadata[kIndexInFileMessages];
  6575. }
  6576. public:
  6577. // nested types ----------------------------------------------------
  6578. typedef GeneratedCodeInfo_Annotation Annotation;
  6579. // accessors -------------------------------------------------------
  6580. enum : int {
  6581. kAnnotationFieldNumber = 1,
  6582. };
  6583. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  6584. int annotation_size() const;
  6585. private:
  6586. int _internal_annotation_size() const;
  6587. public:
  6588. void clear_annotation();
  6589. PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  6590. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  6591. mutable_annotation();
  6592. private:
  6593. const PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& _internal_annotation(int index) const;
  6594. PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _internal_add_annotation();
  6595. public:
  6596. const PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& annotation(int index) const;
  6597. PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* add_annotation();
  6598. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  6599. annotation() const;
  6600. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  6601. private:
  6602. class _Internal;
  6603. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  6604. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6605. typedef void InternalArenaConstructable_;
  6606. typedef void DestructorSkippable_;
  6607. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6608. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6609. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation > annotation_;
  6610. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6611. };
  6612. // ===================================================================
  6613. // ===================================================================
  6614. #ifdef __GNUC__
  6615. #pragma GCC diagnostic push
  6616. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  6617. #endif // __GNUC__
  6618. // FileDescriptorSet
  6619. // repeated .google.protobuf.FileDescriptorProto file = 1;
  6620. inline int FileDescriptorSet::_internal_file_size() const {
  6621. return file_.size();
  6622. }
  6623. inline int FileDescriptorSet::file_size() const {
  6624. return _internal_file_size();
  6625. }
  6626. inline void FileDescriptorSet::clear_file() {
  6627. file_.Clear();
  6628. }
  6629. inline PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  6630. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  6631. return file_.Mutable(index);
  6632. }
  6633. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  6634. FileDescriptorSet::mutable_file() {
  6635. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  6636. return &file_;
  6637. }
  6638. inline const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::_internal_file(int index) const {
  6639. return file_.Get(index);
  6640. }
  6641. inline const PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  6642. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  6643. return _internal_file(index);
  6644. }
  6645. inline PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::_internal_add_file() {
  6646. return file_.Add();
  6647. }
  6648. inline PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::add_file() {
  6649. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  6650. return _internal_add_file();
  6651. }
  6652. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  6653. FileDescriptorSet::file() const {
  6654. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  6655. return file_;
  6656. }
  6657. // -------------------------------------------------------------------
  6658. // FileDescriptorProto
  6659. // optional string name = 1;
  6660. inline bool FileDescriptorProto::_internal_has_name() const {
  6661. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  6662. return value;
  6663. }
  6664. inline bool FileDescriptorProto::has_name() const {
  6665. return _internal_has_name();
  6666. }
  6667. inline void FileDescriptorProto::clear_name() {
  6668. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6669. _has_bits_[0] &= ~0x00000001u;
  6670. }
  6671. inline const std::string& FileDescriptorProto::name() const {
  6672. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  6673. return _internal_name();
  6674. }
  6675. inline void FileDescriptorProto::set_name(const std::string& value) {
  6676. _internal_set_name(value);
  6677. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  6678. }
  6679. inline std::string* FileDescriptorProto::mutable_name() {
  6680. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  6681. return _internal_mutable_name();
  6682. }
  6683. inline const std::string& FileDescriptorProto::_internal_name() const {
  6684. return name_.Get();
  6685. }
  6686. inline void FileDescriptorProto::_internal_set_name(const std::string& value) {
  6687. _has_bits_[0] |= 0x00000001u;
  6688. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6689. }
  6690. inline void FileDescriptorProto::set_name(std::string&& value) {
  6691. _has_bits_[0] |= 0x00000001u;
  6692. name_.Set(
  6693. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6694. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.name)
  6695. }
  6696. inline void FileDescriptorProto::set_name(const char* value) {
  6697. GOOGLE_DCHECK(value != nullptr);
  6698. _has_bits_[0] |= 0x00000001u;
  6699. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6700. GetArenaNoVirtual());
  6701. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
  6702. }
  6703. inline void FileDescriptorProto::set_name(const char* value,
  6704. size_t size) {
  6705. _has_bits_[0] |= 0x00000001u;
  6706. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6707. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6708. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
  6709. }
  6710. inline std::string* FileDescriptorProto::_internal_mutable_name() {
  6711. _has_bits_[0] |= 0x00000001u;
  6712. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6713. }
  6714. inline std::string* FileDescriptorProto::release_name() {
  6715. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  6716. if (!has_name()) {
  6717. return nullptr;
  6718. }
  6719. _has_bits_[0] &= ~0x00000001u;
  6720. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6721. }
  6722. inline void FileDescriptorProto::set_allocated_name(std::string* name) {
  6723. if (name != nullptr) {
  6724. _has_bits_[0] |= 0x00000001u;
  6725. } else {
  6726. _has_bits_[0] &= ~0x00000001u;
  6727. }
  6728. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  6729. GetArenaNoVirtual());
  6730. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  6731. }
  6732. inline std::string* FileDescriptorProto::unsafe_arena_release_name() {
  6733. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.name)
  6734. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  6735. _has_bits_[0] &= ~0x00000001u;
  6736. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6737. GetArenaNoVirtual());
  6738. }
  6739. inline void FileDescriptorProto::unsafe_arena_set_allocated_name(
  6740. std::string* name) {
  6741. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  6742. if (name != nullptr) {
  6743. _has_bits_[0] |= 0x00000001u;
  6744. } else {
  6745. _has_bits_[0] &= ~0x00000001u;
  6746. }
  6747. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6748. name, GetArenaNoVirtual());
  6749. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.name)
  6750. }
  6751. // optional string package = 2;
  6752. inline bool FileDescriptorProto::_internal_has_package() const {
  6753. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  6754. return value;
  6755. }
  6756. inline bool FileDescriptorProto::has_package() const {
  6757. return _internal_has_package();
  6758. }
  6759. inline void FileDescriptorProto::clear_package() {
  6760. package_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6761. _has_bits_[0] &= ~0x00000002u;
  6762. }
  6763. inline const std::string& FileDescriptorProto::package() const {
  6764. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  6765. return _internal_package();
  6766. }
  6767. inline void FileDescriptorProto::set_package(const std::string& value) {
  6768. _internal_set_package(value);
  6769. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  6770. }
  6771. inline std::string* FileDescriptorProto::mutable_package() {
  6772. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  6773. return _internal_mutable_package();
  6774. }
  6775. inline const std::string& FileDescriptorProto::_internal_package() const {
  6776. return package_.Get();
  6777. }
  6778. inline void FileDescriptorProto::_internal_set_package(const std::string& value) {
  6779. _has_bits_[0] |= 0x00000002u;
  6780. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6781. }
  6782. inline void FileDescriptorProto::set_package(std::string&& value) {
  6783. _has_bits_[0] |= 0x00000002u;
  6784. package_.Set(
  6785. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6786. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.package)
  6787. }
  6788. inline void FileDescriptorProto::set_package(const char* value) {
  6789. GOOGLE_DCHECK(value != nullptr);
  6790. _has_bits_[0] |= 0x00000002u;
  6791. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6792. GetArenaNoVirtual());
  6793. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
  6794. }
  6795. inline void FileDescriptorProto::set_package(const char* value,
  6796. size_t size) {
  6797. _has_bits_[0] |= 0x00000002u;
  6798. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6799. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6800. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
  6801. }
  6802. inline std::string* FileDescriptorProto::_internal_mutable_package() {
  6803. _has_bits_[0] |= 0x00000002u;
  6804. return package_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6805. }
  6806. inline std::string* FileDescriptorProto::release_package() {
  6807. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  6808. if (!has_package()) {
  6809. return nullptr;
  6810. }
  6811. _has_bits_[0] &= ~0x00000002u;
  6812. return package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6813. }
  6814. inline void FileDescriptorProto::set_allocated_package(std::string* package) {
  6815. if (package != nullptr) {
  6816. _has_bits_[0] |= 0x00000002u;
  6817. } else {
  6818. _has_bits_[0] &= ~0x00000002u;
  6819. }
  6820. package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), package,
  6821. GetArenaNoVirtual());
  6822. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  6823. }
  6824. inline std::string* FileDescriptorProto::unsafe_arena_release_package() {
  6825. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.package)
  6826. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  6827. _has_bits_[0] &= ~0x00000002u;
  6828. return package_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6829. GetArenaNoVirtual());
  6830. }
  6831. inline void FileDescriptorProto::unsafe_arena_set_allocated_package(
  6832. std::string* package) {
  6833. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  6834. if (package != nullptr) {
  6835. _has_bits_[0] |= 0x00000002u;
  6836. } else {
  6837. _has_bits_[0] &= ~0x00000002u;
  6838. }
  6839. package_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  6840. package, GetArenaNoVirtual());
  6841. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.package)
  6842. }
  6843. // repeated string dependency = 3;
  6844. inline int FileDescriptorProto::_internal_dependency_size() const {
  6845. return dependency_.size();
  6846. }
  6847. inline int FileDescriptorProto::dependency_size() const {
  6848. return _internal_dependency_size();
  6849. }
  6850. inline void FileDescriptorProto::clear_dependency() {
  6851. dependency_.Clear();
  6852. }
  6853. inline std::string* FileDescriptorProto::add_dependency() {
  6854. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  6855. return _internal_add_dependency();
  6856. }
  6857. inline const std::string& FileDescriptorProto::_internal_dependency(int index) const {
  6858. return dependency_.Get(index);
  6859. }
  6860. inline const std::string& FileDescriptorProto::dependency(int index) const {
  6861. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  6862. return _internal_dependency(index);
  6863. }
  6864. inline std::string* FileDescriptorProto::mutable_dependency(int index) {
  6865. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  6866. return dependency_.Mutable(index);
  6867. }
  6868. inline void FileDescriptorProto::set_dependency(int index, const std::string& value) {
  6869. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  6870. dependency_.Mutable(index)->assign(value);
  6871. }
  6872. inline void FileDescriptorProto::set_dependency(int index, std::string&& value) {
  6873. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  6874. dependency_.Mutable(index)->assign(std::move(value));
  6875. }
  6876. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  6877. GOOGLE_DCHECK(value != nullptr);
  6878. dependency_.Mutable(index)->assign(value);
  6879. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  6880. }
  6881. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  6882. dependency_.Mutable(index)->assign(
  6883. reinterpret_cast<const char*>(value), size);
  6884. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  6885. }
  6886. inline std::string* FileDescriptorProto::_internal_add_dependency() {
  6887. return dependency_.Add();
  6888. }
  6889. inline void FileDescriptorProto::add_dependency(const std::string& value) {
  6890. dependency_.Add()->assign(value);
  6891. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  6892. }
  6893. inline void FileDescriptorProto::add_dependency(std::string&& value) {
  6894. dependency_.Add(std::move(value));
  6895. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  6896. }
  6897. inline void FileDescriptorProto::add_dependency(const char* value) {
  6898. GOOGLE_DCHECK(value != nullptr);
  6899. dependency_.Add()->assign(value);
  6900. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  6901. }
  6902. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  6903. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6904. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  6905. }
  6906. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  6907. FileDescriptorProto::dependency() const {
  6908. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  6909. return dependency_;
  6910. }
  6911. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  6912. FileDescriptorProto::mutable_dependency() {
  6913. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  6914. return &dependency_;
  6915. }
  6916. // repeated int32 public_dependency = 10;
  6917. inline int FileDescriptorProto::_internal_public_dependency_size() const {
  6918. return public_dependency_.size();
  6919. }
  6920. inline int FileDescriptorProto::public_dependency_size() const {
  6921. return _internal_public_dependency_size();
  6922. }
  6923. inline void FileDescriptorProto::clear_public_dependency() {
  6924. public_dependency_.Clear();
  6925. }
  6926. inline ::PROTOBUF_NAMESPACE_ID::int32 FileDescriptorProto::_internal_public_dependency(int index) const {
  6927. return public_dependency_.Get(index);
  6928. }
  6929. inline ::PROTOBUF_NAMESPACE_ID::int32 FileDescriptorProto::public_dependency(int index) const {
  6930. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  6931. return _internal_public_dependency(index);
  6932. }
  6933. inline void FileDescriptorProto::set_public_dependency(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  6934. public_dependency_.Set(index, value);
  6935. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  6936. }
  6937. inline void FileDescriptorProto::_internal_add_public_dependency(::PROTOBUF_NAMESPACE_ID::int32 value) {
  6938. public_dependency_.Add(value);
  6939. }
  6940. inline void FileDescriptorProto::add_public_dependency(::PROTOBUF_NAMESPACE_ID::int32 value) {
  6941. _internal_add_public_dependency(value);
  6942. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  6943. }
  6944. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6945. FileDescriptorProto::_internal_public_dependency() const {
  6946. return public_dependency_;
  6947. }
  6948. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6949. FileDescriptorProto::public_dependency() const {
  6950. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  6951. return _internal_public_dependency();
  6952. }
  6953. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  6954. FileDescriptorProto::_internal_mutable_public_dependency() {
  6955. return &public_dependency_;
  6956. }
  6957. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  6958. FileDescriptorProto::mutable_public_dependency() {
  6959. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  6960. return _internal_mutable_public_dependency();
  6961. }
  6962. // repeated int32 weak_dependency = 11;
  6963. inline int FileDescriptorProto::_internal_weak_dependency_size() const {
  6964. return weak_dependency_.size();
  6965. }
  6966. inline int FileDescriptorProto::weak_dependency_size() const {
  6967. return _internal_weak_dependency_size();
  6968. }
  6969. inline void FileDescriptorProto::clear_weak_dependency() {
  6970. weak_dependency_.Clear();
  6971. }
  6972. inline ::PROTOBUF_NAMESPACE_ID::int32 FileDescriptorProto::_internal_weak_dependency(int index) const {
  6973. return weak_dependency_.Get(index);
  6974. }
  6975. inline ::PROTOBUF_NAMESPACE_ID::int32 FileDescriptorProto::weak_dependency(int index) const {
  6976. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  6977. return _internal_weak_dependency(index);
  6978. }
  6979. inline void FileDescriptorProto::set_weak_dependency(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  6980. weak_dependency_.Set(index, value);
  6981. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  6982. }
  6983. inline void FileDescriptorProto::_internal_add_weak_dependency(::PROTOBUF_NAMESPACE_ID::int32 value) {
  6984. weak_dependency_.Add(value);
  6985. }
  6986. inline void FileDescriptorProto::add_weak_dependency(::PROTOBUF_NAMESPACE_ID::int32 value) {
  6987. _internal_add_weak_dependency(value);
  6988. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  6989. }
  6990. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6991. FileDescriptorProto::_internal_weak_dependency() const {
  6992. return weak_dependency_;
  6993. }
  6994. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  6995. FileDescriptorProto::weak_dependency() const {
  6996. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  6997. return _internal_weak_dependency();
  6998. }
  6999. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  7000. FileDescriptorProto::_internal_mutable_weak_dependency() {
  7001. return &weak_dependency_;
  7002. }
  7003. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  7004. FileDescriptorProto::mutable_weak_dependency() {
  7005. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7006. return _internal_mutable_weak_dependency();
  7007. }
  7008. // repeated .google.protobuf.DescriptorProto message_type = 4;
  7009. inline int FileDescriptorProto::_internal_message_type_size() const {
  7010. return message_type_.size();
  7011. }
  7012. inline int FileDescriptorProto::message_type_size() const {
  7013. return _internal_message_type_size();
  7014. }
  7015. inline void FileDescriptorProto::clear_message_type() {
  7016. message_type_.Clear();
  7017. }
  7018. inline PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  7019. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  7020. return message_type_.Mutable(index);
  7021. }
  7022. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  7023. FileDescriptorProto::mutable_message_type() {
  7024. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  7025. return &message_type_;
  7026. }
  7027. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::_internal_message_type(int index) const {
  7028. return message_type_.Get(index);
  7029. }
  7030. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  7031. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  7032. return _internal_message_type(index);
  7033. }
  7034. inline PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::_internal_add_message_type() {
  7035. return message_type_.Add();
  7036. }
  7037. inline PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::add_message_type() {
  7038. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  7039. return _internal_add_message_type();
  7040. }
  7041. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  7042. FileDescriptorProto::message_type() const {
  7043. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  7044. return message_type_;
  7045. }
  7046. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  7047. inline int FileDescriptorProto::_internal_enum_type_size() const {
  7048. return enum_type_.size();
  7049. }
  7050. inline int FileDescriptorProto::enum_type_size() const {
  7051. return _internal_enum_type_size();
  7052. }
  7053. inline void FileDescriptorProto::clear_enum_type() {
  7054. enum_type_.Clear();
  7055. }
  7056. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  7057. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  7058. return enum_type_.Mutable(index);
  7059. }
  7060. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  7061. FileDescriptorProto::mutable_enum_type() {
  7062. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  7063. return &enum_type_;
  7064. }
  7065. inline const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::_internal_enum_type(int index) const {
  7066. return enum_type_.Get(index);
  7067. }
  7068. inline const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  7069. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  7070. return _internal_enum_type(index);
  7071. }
  7072. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::_internal_add_enum_type() {
  7073. return enum_type_.Add();
  7074. }
  7075. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  7076. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  7077. return _internal_add_enum_type();
  7078. }
  7079. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  7080. FileDescriptorProto::enum_type() const {
  7081. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  7082. return enum_type_;
  7083. }
  7084. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  7085. inline int FileDescriptorProto::_internal_service_size() const {
  7086. return service_.size();
  7087. }
  7088. inline int FileDescriptorProto::service_size() const {
  7089. return _internal_service_size();
  7090. }
  7091. inline void FileDescriptorProto::clear_service() {
  7092. service_.Clear();
  7093. }
  7094. inline PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  7095. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  7096. return service_.Mutable(index);
  7097. }
  7098. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  7099. FileDescriptorProto::mutable_service() {
  7100. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  7101. return &service_;
  7102. }
  7103. inline const PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::_internal_service(int index) const {
  7104. return service_.Get(index);
  7105. }
  7106. inline const PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  7107. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  7108. return _internal_service(index);
  7109. }
  7110. inline PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::_internal_add_service() {
  7111. return service_.Add();
  7112. }
  7113. inline PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  7114. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  7115. return _internal_add_service();
  7116. }
  7117. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  7118. FileDescriptorProto::service() const {
  7119. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  7120. return service_;
  7121. }
  7122. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  7123. inline int FileDescriptorProto::_internal_extension_size() const {
  7124. return extension_.size();
  7125. }
  7126. inline int FileDescriptorProto::extension_size() const {
  7127. return _internal_extension_size();
  7128. }
  7129. inline void FileDescriptorProto::clear_extension() {
  7130. extension_.Clear();
  7131. }
  7132. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  7133. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  7134. return extension_.Mutable(index);
  7135. }
  7136. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  7137. FileDescriptorProto::mutable_extension() {
  7138. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  7139. return &extension_;
  7140. }
  7141. inline const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::_internal_extension(int index) const {
  7142. return extension_.Get(index);
  7143. }
  7144. inline const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  7145. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  7146. return _internal_extension(index);
  7147. }
  7148. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::_internal_add_extension() {
  7149. return extension_.Add();
  7150. }
  7151. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  7152. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  7153. return _internal_add_extension();
  7154. }
  7155. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  7156. FileDescriptorProto::extension() const {
  7157. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  7158. return extension_;
  7159. }
  7160. // optional .google.protobuf.FileOptions options = 8;
  7161. inline bool FileDescriptorProto::_internal_has_options() const {
  7162. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  7163. PROTOBUF_ASSUME(!value || options_ != nullptr);
  7164. return value;
  7165. }
  7166. inline bool FileDescriptorProto::has_options() const {
  7167. return _internal_has_options();
  7168. }
  7169. inline void FileDescriptorProto::clear_options() {
  7170. if (options_ != nullptr) options_->Clear();
  7171. _has_bits_[0] &= ~0x00000008u;
  7172. }
  7173. inline const PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::_internal_options() const {
  7174. const PROTOBUF_NAMESPACE_ID::FileOptions* p = options_;
  7175. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::FileOptions*>(
  7176. &PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_);
  7177. }
  7178. inline const PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::options() const {
  7179. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  7180. return _internal_options();
  7181. }
  7182. inline PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::release_options() {
  7183. auto temp = unsafe_arena_release_options();
  7184. if (GetArenaNoVirtual() != nullptr) {
  7185. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  7186. }
  7187. return temp;
  7188. }
  7189. inline PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::unsafe_arena_release_options() {
  7190. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  7191. _has_bits_[0] &= ~0x00000008u;
  7192. PROTOBUF_NAMESPACE_ID::FileOptions* temp = options_;
  7193. options_ = nullptr;
  7194. return temp;
  7195. }
  7196. inline PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::_internal_mutable_options() {
  7197. _has_bits_[0] |= 0x00000008u;
  7198. if (options_ == nullptr) {
  7199. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FileOptions>(GetArenaNoVirtual());
  7200. options_ = p;
  7201. }
  7202. return options_;
  7203. }
  7204. inline PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::mutable_options() {
  7205. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  7206. return _internal_mutable_options();
  7207. }
  7208. inline void FileDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  7209. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7210. if (message_arena == nullptr) {
  7211. delete options_;
  7212. }
  7213. if (options) {
  7214. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7215. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  7216. if (message_arena != submessage_arena) {
  7217. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7218. message_arena, options, submessage_arena);
  7219. }
  7220. _has_bits_[0] |= 0x00000008u;
  7221. } else {
  7222. _has_bits_[0] &= ~0x00000008u;
  7223. }
  7224. options_ = options;
  7225. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  7226. }
  7227. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  7228. inline bool FileDescriptorProto::_internal_has_source_code_info() const {
  7229. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  7230. PROTOBUF_ASSUME(!value || source_code_info_ != nullptr);
  7231. return value;
  7232. }
  7233. inline bool FileDescriptorProto::has_source_code_info() const {
  7234. return _internal_has_source_code_info();
  7235. }
  7236. inline void FileDescriptorProto::clear_source_code_info() {
  7237. if (source_code_info_ != nullptr) source_code_info_->Clear();
  7238. _has_bits_[0] &= ~0x00000010u;
  7239. }
  7240. inline const PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const {
  7241. const PROTOBUF_NAMESPACE_ID::SourceCodeInfo* p = source_code_info_;
  7242. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::SourceCodeInfo*>(
  7243. &PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_);
  7244. }
  7245. inline const PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  7246. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  7247. return _internal_source_code_info();
  7248. }
  7249. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  7250. auto temp = unsafe_arena_release_source_code_info();
  7251. if (GetArenaNoVirtual() != nullptr) {
  7252. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  7253. }
  7254. return temp;
  7255. }
  7256. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info() {
  7257. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  7258. _has_bits_[0] &= ~0x00000010u;
  7259. PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = source_code_info_;
  7260. source_code_info_ = nullptr;
  7261. return temp;
  7262. }
  7263. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::_internal_mutable_source_code_info() {
  7264. _has_bits_[0] |= 0x00000010u;
  7265. if (source_code_info_ == nullptr) {
  7266. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(GetArenaNoVirtual());
  7267. source_code_info_ = p;
  7268. }
  7269. return source_code_info_;
  7270. }
  7271. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  7272. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  7273. return _internal_mutable_source_code_info();
  7274. }
  7275. inline void FileDescriptorProto::set_allocated_source_code_info(PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  7276. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7277. if (message_arena == nullptr) {
  7278. delete source_code_info_;
  7279. }
  7280. if (source_code_info) {
  7281. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7282. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(source_code_info);
  7283. if (message_arena != submessage_arena) {
  7284. source_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7285. message_arena, source_code_info, submessage_arena);
  7286. }
  7287. _has_bits_[0] |= 0x00000010u;
  7288. } else {
  7289. _has_bits_[0] &= ~0x00000010u;
  7290. }
  7291. source_code_info_ = source_code_info;
  7292. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  7293. }
  7294. // optional string syntax = 12;
  7295. inline bool FileDescriptorProto::_internal_has_syntax() const {
  7296. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  7297. return value;
  7298. }
  7299. inline bool FileDescriptorProto::has_syntax() const {
  7300. return _internal_has_syntax();
  7301. }
  7302. inline void FileDescriptorProto::clear_syntax() {
  7303. syntax_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7304. _has_bits_[0] &= ~0x00000004u;
  7305. }
  7306. inline const std::string& FileDescriptorProto::syntax() const {
  7307. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  7308. return _internal_syntax();
  7309. }
  7310. inline void FileDescriptorProto::set_syntax(const std::string& value) {
  7311. _internal_set_syntax(value);
  7312. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  7313. }
  7314. inline std::string* FileDescriptorProto::mutable_syntax() {
  7315. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  7316. return _internal_mutable_syntax();
  7317. }
  7318. inline const std::string& FileDescriptorProto::_internal_syntax() const {
  7319. return syntax_.Get();
  7320. }
  7321. inline void FileDescriptorProto::_internal_set_syntax(const std::string& value) {
  7322. _has_bits_[0] |= 0x00000004u;
  7323. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7324. }
  7325. inline void FileDescriptorProto::set_syntax(std::string&& value) {
  7326. _has_bits_[0] |= 0x00000004u;
  7327. syntax_.Set(
  7328. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7329. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.syntax)
  7330. }
  7331. inline void FileDescriptorProto::set_syntax(const char* value) {
  7332. GOOGLE_DCHECK(value != nullptr);
  7333. _has_bits_[0] |= 0x00000004u;
  7334. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7335. GetArenaNoVirtual());
  7336. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
  7337. }
  7338. inline void FileDescriptorProto::set_syntax(const char* value,
  7339. size_t size) {
  7340. _has_bits_[0] |= 0x00000004u;
  7341. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7342. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7343. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
  7344. }
  7345. inline std::string* FileDescriptorProto::_internal_mutable_syntax() {
  7346. _has_bits_[0] |= 0x00000004u;
  7347. return syntax_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7348. }
  7349. inline std::string* FileDescriptorProto::release_syntax() {
  7350. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  7351. if (!has_syntax()) {
  7352. return nullptr;
  7353. }
  7354. _has_bits_[0] &= ~0x00000004u;
  7355. return syntax_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7356. }
  7357. inline void FileDescriptorProto::set_allocated_syntax(std::string* syntax) {
  7358. if (syntax != nullptr) {
  7359. _has_bits_[0] |= 0x00000004u;
  7360. } else {
  7361. _has_bits_[0] &= ~0x00000004u;
  7362. }
  7363. syntax_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), syntax,
  7364. GetArenaNoVirtual());
  7365. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  7366. }
  7367. inline std::string* FileDescriptorProto::unsafe_arena_release_syntax() {
  7368. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.syntax)
  7369. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  7370. _has_bits_[0] &= ~0x00000004u;
  7371. return syntax_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7372. GetArenaNoVirtual());
  7373. }
  7374. inline void FileDescriptorProto::unsafe_arena_set_allocated_syntax(
  7375. std::string* syntax) {
  7376. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  7377. if (syntax != nullptr) {
  7378. _has_bits_[0] |= 0x00000004u;
  7379. } else {
  7380. _has_bits_[0] &= ~0x00000004u;
  7381. }
  7382. syntax_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7383. syntax, GetArenaNoVirtual());
  7384. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  7385. }
  7386. // -------------------------------------------------------------------
  7387. // DescriptorProto_ExtensionRange
  7388. // optional int32 start = 1;
  7389. inline bool DescriptorProto_ExtensionRange::_internal_has_start() const {
  7390. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  7391. return value;
  7392. }
  7393. inline bool DescriptorProto_ExtensionRange::has_start() const {
  7394. return _internal_has_start();
  7395. }
  7396. inline void DescriptorProto_ExtensionRange::clear_start() {
  7397. start_ = 0;
  7398. _has_bits_[0] &= ~0x00000002u;
  7399. }
  7400. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ExtensionRange::_internal_start() const {
  7401. return start_;
  7402. }
  7403. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ExtensionRange::start() const {
  7404. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  7405. return _internal_start();
  7406. }
  7407. inline void DescriptorProto_ExtensionRange::_internal_set_start(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7408. _has_bits_[0] |= 0x00000002u;
  7409. start_ = value;
  7410. }
  7411. inline void DescriptorProto_ExtensionRange::set_start(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7412. _internal_set_start(value);
  7413. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  7414. }
  7415. // optional int32 end = 2;
  7416. inline bool DescriptorProto_ExtensionRange::_internal_has_end() const {
  7417. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  7418. return value;
  7419. }
  7420. inline bool DescriptorProto_ExtensionRange::has_end() const {
  7421. return _internal_has_end();
  7422. }
  7423. inline void DescriptorProto_ExtensionRange::clear_end() {
  7424. end_ = 0;
  7425. _has_bits_[0] &= ~0x00000004u;
  7426. }
  7427. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ExtensionRange::_internal_end() const {
  7428. return end_;
  7429. }
  7430. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ExtensionRange::end() const {
  7431. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  7432. return _internal_end();
  7433. }
  7434. inline void DescriptorProto_ExtensionRange::_internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7435. _has_bits_[0] |= 0x00000004u;
  7436. end_ = value;
  7437. }
  7438. inline void DescriptorProto_ExtensionRange::set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7439. _internal_set_end(value);
  7440. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  7441. }
  7442. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  7443. inline bool DescriptorProto_ExtensionRange::_internal_has_options() const {
  7444. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  7445. PROTOBUF_ASSUME(!value || options_ != nullptr);
  7446. return value;
  7447. }
  7448. inline bool DescriptorProto_ExtensionRange::has_options() const {
  7449. return _internal_has_options();
  7450. }
  7451. inline void DescriptorProto_ExtensionRange::clear_options() {
  7452. if (options_ != nullptr) options_->Clear();
  7453. _has_bits_[0] &= ~0x00000001u;
  7454. }
  7455. inline const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const {
  7456. const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* p = options_;
  7457. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions*>(
  7458. &PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_);
  7459. }
  7460. inline const PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const {
  7461. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  7462. return _internal_options();
  7463. }
  7464. inline PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options() {
  7465. auto temp = unsafe_arena_release_options();
  7466. if (GetArenaNoVirtual() != nullptr) {
  7467. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  7468. }
  7469. return temp;
  7470. }
  7471. inline PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options() {
  7472. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  7473. _has_bits_[0] &= ~0x00000001u;
  7474. PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = options_;
  7475. options_ = nullptr;
  7476. return temp;
  7477. }
  7478. inline PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::_internal_mutable_options() {
  7479. _has_bits_[0] |= 0x00000001u;
  7480. if (options_ == nullptr) {
  7481. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(GetArenaNoVirtual());
  7482. options_ = p;
  7483. }
  7484. return options_;
  7485. }
  7486. inline PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options() {
  7487. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  7488. return _internal_mutable_options();
  7489. }
  7490. inline void DescriptorProto_ExtensionRange::set_allocated_options(PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  7491. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7492. if (message_arena == nullptr) {
  7493. delete options_;
  7494. }
  7495. if (options) {
  7496. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7497. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  7498. if (message_arena != submessage_arena) {
  7499. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7500. message_arena, options, submessage_arena);
  7501. }
  7502. _has_bits_[0] |= 0x00000001u;
  7503. } else {
  7504. _has_bits_[0] &= ~0x00000001u;
  7505. }
  7506. options_ = options;
  7507. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  7508. }
  7509. // -------------------------------------------------------------------
  7510. // DescriptorProto_ReservedRange
  7511. // optional int32 start = 1;
  7512. inline bool DescriptorProto_ReservedRange::_internal_has_start() const {
  7513. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  7514. return value;
  7515. }
  7516. inline bool DescriptorProto_ReservedRange::has_start() const {
  7517. return _internal_has_start();
  7518. }
  7519. inline void DescriptorProto_ReservedRange::clear_start() {
  7520. start_ = 0;
  7521. _has_bits_[0] &= ~0x00000001u;
  7522. }
  7523. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ReservedRange::_internal_start() const {
  7524. return start_;
  7525. }
  7526. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ReservedRange::start() const {
  7527. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  7528. return _internal_start();
  7529. }
  7530. inline void DescriptorProto_ReservedRange::_internal_set_start(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7531. _has_bits_[0] |= 0x00000001u;
  7532. start_ = value;
  7533. }
  7534. inline void DescriptorProto_ReservedRange::set_start(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7535. _internal_set_start(value);
  7536. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  7537. }
  7538. // optional int32 end = 2;
  7539. inline bool DescriptorProto_ReservedRange::_internal_has_end() const {
  7540. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  7541. return value;
  7542. }
  7543. inline bool DescriptorProto_ReservedRange::has_end() const {
  7544. return _internal_has_end();
  7545. }
  7546. inline void DescriptorProto_ReservedRange::clear_end() {
  7547. end_ = 0;
  7548. _has_bits_[0] &= ~0x00000002u;
  7549. }
  7550. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ReservedRange::_internal_end() const {
  7551. return end_;
  7552. }
  7553. inline ::PROTOBUF_NAMESPACE_ID::int32 DescriptorProto_ReservedRange::end() const {
  7554. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  7555. return _internal_end();
  7556. }
  7557. inline void DescriptorProto_ReservedRange::_internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7558. _has_bits_[0] |= 0x00000002u;
  7559. end_ = value;
  7560. }
  7561. inline void DescriptorProto_ReservedRange::set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  7562. _internal_set_end(value);
  7563. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  7564. }
  7565. // -------------------------------------------------------------------
  7566. // DescriptorProto
  7567. // optional string name = 1;
  7568. inline bool DescriptorProto::_internal_has_name() const {
  7569. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  7570. return value;
  7571. }
  7572. inline bool DescriptorProto::has_name() const {
  7573. return _internal_has_name();
  7574. }
  7575. inline void DescriptorProto::clear_name() {
  7576. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7577. _has_bits_[0] &= ~0x00000001u;
  7578. }
  7579. inline const std::string& DescriptorProto::name() const {
  7580. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  7581. return _internal_name();
  7582. }
  7583. inline void DescriptorProto::set_name(const std::string& value) {
  7584. _internal_set_name(value);
  7585. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  7586. }
  7587. inline std::string* DescriptorProto::mutable_name() {
  7588. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  7589. return _internal_mutable_name();
  7590. }
  7591. inline const std::string& DescriptorProto::_internal_name() const {
  7592. return name_.Get();
  7593. }
  7594. inline void DescriptorProto::_internal_set_name(const std::string& value) {
  7595. _has_bits_[0] |= 0x00000001u;
  7596. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7597. }
  7598. inline void DescriptorProto::set_name(std::string&& value) {
  7599. _has_bits_[0] |= 0x00000001u;
  7600. name_.Set(
  7601. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7602. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.DescriptorProto.name)
  7603. }
  7604. inline void DescriptorProto::set_name(const char* value) {
  7605. GOOGLE_DCHECK(value != nullptr);
  7606. _has_bits_[0] |= 0x00000001u;
  7607. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7608. GetArenaNoVirtual());
  7609. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
  7610. }
  7611. inline void DescriptorProto::set_name(const char* value,
  7612. size_t size) {
  7613. _has_bits_[0] |= 0x00000001u;
  7614. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7615. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7616. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
  7617. }
  7618. inline std::string* DescriptorProto::_internal_mutable_name() {
  7619. _has_bits_[0] |= 0x00000001u;
  7620. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7621. }
  7622. inline std::string* DescriptorProto::release_name() {
  7623. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  7624. if (!has_name()) {
  7625. return nullptr;
  7626. }
  7627. _has_bits_[0] &= ~0x00000001u;
  7628. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7629. }
  7630. inline void DescriptorProto::set_allocated_name(std::string* name) {
  7631. if (name != nullptr) {
  7632. _has_bits_[0] |= 0x00000001u;
  7633. } else {
  7634. _has_bits_[0] &= ~0x00000001u;
  7635. }
  7636. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  7637. GetArenaNoVirtual());
  7638. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  7639. }
  7640. inline std::string* DescriptorProto::unsafe_arena_release_name() {
  7641. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.name)
  7642. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  7643. _has_bits_[0] &= ~0x00000001u;
  7644. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7645. GetArenaNoVirtual());
  7646. }
  7647. inline void DescriptorProto::unsafe_arena_set_allocated_name(
  7648. std::string* name) {
  7649. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  7650. if (name != nullptr) {
  7651. _has_bits_[0] |= 0x00000001u;
  7652. } else {
  7653. _has_bits_[0] &= ~0x00000001u;
  7654. }
  7655. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  7656. name, GetArenaNoVirtual());
  7657. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.name)
  7658. }
  7659. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  7660. inline int DescriptorProto::_internal_field_size() const {
  7661. return field_.size();
  7662. }
  7663. inline int DescriptorProto::field_size() const {
  7664. return _internal_field_size();
  7665. }
  7666. inline void DescriptorProto::clear_field() {
  7667. field_.Clear();
  7668. }
  7669. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  7670. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  7671. return field_.Mutable(index);
  7672. }
  7673. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  7674. DescriptorProto::mutable_field() {
  7675. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  7676. return &field_;
  7677. }
  7678. inline const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_field(int index) const {
  7679. return field_.Get(index);
  7680. }
  7681. inline const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::field(int index) const {
  7682. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  7683. return _internal_field(index);
  7684. }
  7685. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_field() {
  7686. return field_.Add();
  7687. }
  7688. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_field() {
  7689. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  7690. return _internal_add_field();
  7691. }
  7692. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  7693. DescriptorProto::field() const {
  7694. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  7695. return field_;
  7696. }
  7697. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  7698. inline int DescriptorProto::_internal_extension_size() const {
  7699. return extension_.size();
  7700. }
  7701. inline int DescriptorProto::extension_size() const {
  7702. return _internal_extension_size();
  7703. }
  7704. inline void DescriptorProto::clear_extension() {
  7705. extension_.Clear();
  7706. }
  7707. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  7708. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  7709. return extension_.Mutable(index);
  7710. }
  7711. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  7712. DescriptorProto::mutable_extension() {
  7713. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  7714. return &extension_;
  7715. }
  7716. inline const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_extension(int index) const {
  7717. return extension_.Get(index);
  7718. }
  7719. inline const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  7720. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  7721. return _internal_extension(index);
  7722. }
  7723. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_extension() {
  7724. return extension_.Add();
  7725. }
  7726. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_extension() {
  7727. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  7728. return _internal_add_extension();
  7729. }
  7730. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  7731. DescriptorProto::extension() const {
  7732. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  7733. return extension_;
  7734. }
  7735. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  7736. inline int DescriptorProto::_internal_nested_type_size() const {
  7737. return nested_type_.size();
  7738. }
  7739. inline int DescriptorProto::nested_type_size() const {
  7740. return _internal_nested_type_size();
  7741. }
  7742. inline void DescriptorProto::clear_nested_type() {
  7743. nested_type_.Clear();
  7744. }
  7745. inline PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  7746. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  7747. return nested_type_.Mutable(index);
  7748. }
  7749. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  7750. DescriptorProto::mutable_nested_type() {
  7751. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  7752. return &nested_type_;
  7753. }
  7754. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::_internal_nested_type(int index) const {
  7755. return nested_type_.Get(index);
  7756. }
  7757. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::nested_type(int index) const {
  7758. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  7759. return _internal_nested_type(index);
  7760. }
  7761. inline PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::_internal_add_nested_type() {
  7762. return nested_type_.Add();
  7763. }
  7764. inline PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::add_nested_type() {
  7765. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  7766. return _internal_add_nested_type();
  7767. }
  7768. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  7769. DescriptorProto::nested_type() const {
  7770. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  7771. return nested_type_;
  7772. }
  7773. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  7774. inline int DescriptorProto::_internal_enum_type_size() const {
  7775. return enum_type_.size();
  7776. }
  7777. inline int DescriptorProto::enum_type_size() const {
  7778. return _internal_enum_type_size();
  7779. }
  7780. inline void DescriptorProto::clear_enum_type() {
  7781. enum_type_.Clear();
  7782. }
  7783. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  7784. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  7785. return enum_type_.Mutable(index);
  7786. }
  7787. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  7788. DescriptorProto::mutable_enum_type() {
  7789. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  7790. return &enum_type_;
  7791. }
  7792. inline const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::_internal_enum_type(int index) const {
  7793. return enum_type_.Get(index);
  7794. }
  7795. inline const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  7796. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  7797. return _internal_enum_type(index);
  7798. }
  7799. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::_internal_add_enum_type() {
  7800. return enum_type_.Add();
  7801. }
  7802. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  7803. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  7804. return _internal_add_enum_type();
  7805. }
  7806. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  7807. DescriptorProto::enum_type() const {
  7808. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  7809. return enum_type_;
  7810. }
  7811. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  7812. inline int DescriptorProto::_internal_extension_range_size() const {
  7813. return extension_range_.size();
  7814. }
  7815. inline int DescriptorProto::extension_range_size() const {
  7816. return _internal_extension_range_size();
  7817. }
  7818. inline void DescriptorProto::clear_extension_range() {
  7819. extension_range_.Clear();
  7820. }
  7821. inline PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  7822. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  7823. return extension_range_.Mutable(index);
  7824. }
  7825. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  7826. DescriptorProto::mutable_extension_range() {
  7827. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  7828. return &extension_range_;
  7829. }
  7830. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::_internal_extension_range(int index) const {
  7831. return extension_range_.Get(index);
  7832. }
  7833. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  7834. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  7835. return _internal_extension_range(index);
  7836. }
  7837. inline PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::_internal_add_extension_range() {
  7838. return extension_range_.Add();
  7839. }
  7840. inline PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  7841. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  7842. return _internal_add_extension_range();
  7843. }
  7844. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  7845. DescriptorProto::extension_range() const {
  7846. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  7847. return extension_range_;
  7848. }
  7849. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  7850. inline int DescriptorProto::_internal_oneof_decl_size() const {
  7851. return oneof_decl_.size();
  7852. }
  7853. inline int DescriptorProto::oneof_decl_size() const {
  7854. return _internal_oneof_decl_size();
  7855. }
  7856. inline void DescriptorProto::clear_oneof_decl() {
  7857. oneof_decl_.Clear();
  7858. }
  7859. inline PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  7860. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  7861. return oneof_decl_.Mutable(index);
  7862. }
  7863. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  7864. DescriptorProto::mutable_oneof_decl() {
  7865. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  7866. return &oneof_decl_;
  7867. }
  7868. inline const PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::_internal_oneof_decl(int index) const {
  7869. return oneof_decl_.Get(index);
  7870. }
  7871. inline const PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  7872. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  7873. return _internal_oneof_decl(index);
  7874. }
  7875. inline PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::_internal_add_oneof_decl() {
  7876. return oneof_decl_.Add();
  7877. }
  7878. inline PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  7879. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  7880. return _internal_add_oneof_decl();
  7881. }
  7882. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  7883. DescriptorProto::oneof_decl() const {
  7884. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  7885. return oneof_decl_;
  7886. }
  7887. // optional .google.protobuf.MessageOptions options = 7;
  7888. inline bool DescriptorProto::_internal_has_options() const {
  7889. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  7890. PROTOBUF_ASSUME(!value || options_ != nullptr);
  7891. return value;
  7892. }
  7893. inline bool DescriptorProto::has_options() const {
  7894. return _internal_has_options();
  7895. }
  7896. inline void DescriptorProto::clear_options() {
  7897. if (options_ != nullptr) options_->Clear();
  7898. _has_bits_[0] &= ~0x00000002u;
  7899. }
  7900. inline const PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::_internal_options() const {
  7901. const PROTOBUF_NAMESPACE_ID::MessageOptions* p = options_;
  7902. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::MessageOptions*>(
  7903. &PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_);
  7904. }
  7905. inline const PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::options() const {
  7906. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  7907. return _internal_options();
  7908. }
  7909. inline PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::release_options() {
  7910. auto temp = unsafe_arena_release_options();
  7911. if (GetArenaNoVirtual() != nullptr) {
  7912. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  7913. }
  7914. return temp;
  7915. }
  7916. inline PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::unsafe_arena_release_options() {
  7917. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  7918. _has_bits_[0] &= ~0x00000002u;
  7919. PROTOBUF_NAMESPACE_ID::MessageOptions* temp = options_;
  7920. options_ = nullptr;
  7921. return temp;
  7922. }
  7923. inline PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::_internal_mutable_options() {
  7924. _has_bits_[0] |= 0x00000002u;
  7925. if (options_ == nullptr) {
  7926. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::MessageOptions>(GetArenaNoVirtual());
  7927. options_ = p;
  7928. }
  7929. return options_;
  7930. }
  7931. inline PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::mutable_options() {
  7932. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  7933. return _internal_mutable_options();
  7934. }
  7935. inline void DescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  7936. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  7937. if (message_arena == nullptr) {
  7938. delete options_;
  7939. }
  7940. if (options) {
  7941. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  7942. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  7943. if (message_arena != submessage_arena) {
  7944. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  7945. message_arena, options, submessage_arena);
  7946. }
  7947. _has_bits_[0] |= 0x00000002u;
  7948. } else {
  7949. _has_bits_[0] &= ~0x00000002u;
  7950. }
  7951. options_ = options;
  7952. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  7953. }
  7954. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  7955. inline int DescriptorProto::_internal_reserved_range_size() const {
  7956. return reserved_range_.size();
  7957. }
  7958. inline int DescriptorProto::reserved_range_size() const {
  7959. return _internal_reserved_range_size();
  7960. }
  7961. inline void DescriptorProto::clear_reserved_range() {
  7962. reserved_range_.Clear();
  7963. }
  7964. inline PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  7965. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  7966. return reserved_range_.Mutable(index);
  7967. }
  7968. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  7969. DescriptorProto::mutable_reserved_range() {
  7970. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  7971. return &reserved_range_;
  7972. }
  7973. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::_internal_reserved_range(int index) const {
  7974. return reserved_range_.Get(index);
  7975. }
  7976. inline const PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  7977. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  7978. return _internal_reserved_range(index);
  7979. }
  7980. inline PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::_internal_add_reserved_range() {
  7981. return reserved_range_.Add();
  7982. }
  7983. inline PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  7984. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  7985. return _internal_add_reserved_range();
  7986. }
  7987. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  7988. DescriptorProto::reserved_range() const {
  7989. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  7990. return reserved_range_;
  7991. }
  7992. // repeated string reserved_name = 10;
  7993. inline int DescriptorProto::_internal_reserved_name_size() const {
  7994. return reserved_name_.size();
  7995. }
  7996. inline int DescriptorProto::reserved_name_size() const {
  7997. return _internal_reserved_name_size();
  7998. }
  7999. inline void DescriptorProto::clear_reserved_name() {
  8000. reserved_name_.Clear();
  8001. }
  8002. inline std::string* DescriptorProto::add_reserved_name() {
  8003. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  8004. return _internal_add_reserved_name();
  8005. }
  8006. inline const std::string& DescriptorProto::_internal_reserved_name(int index) const {
  8007. return reserved_name_.Get(index);
  8008. }
  8009. inline const std::string& DescriptorProto::reserved_name(int index) const {
  8010. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  8011. return _internal_reserved_name(index);
  8012. }
  8013. inline std::string* DescriptorProto::mutable_reserved_name(int index) {
  8014. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  8015. return reserved_name_.Mutable(index);
  8016. }
  8017. inline void DescriptorProto::set_reserved_name(int index, const std::string& value) {
  8018. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  8019. reserved_name_.Mutable(index)->assign(value);
  8020. }
  8021. inline void DescriptorProto::set_reserved_name(int index, std::string&& value) {
  8022. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  8023. reserved_name_.Mutable(index)->assign(std::move(value));
  8024. }
  8025. inline void DescriptorProto::set_reserved_name(int index, const char* value) {
  8026. GOOGLE_DCHECK(value != nullptr);
  8027. reserved_name_.Mutable(index)->assign(value);
  8028. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  8029. }
  8030. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  8031. reserved_name_.Mutable(index)->assign(
  8032. reinterpret_cast<const char*>(value), size);
  8033. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  8034. }
  8035. inline std::string* DescriptorProto::_internal_add_reserved_name() {
  8036. return reserved_name_.Add();
  8037. }
  8038. inline void DescriptorProto::add_reserved_name(const std::string& value) {
  8039. reserved_name_.Add()->assign(value);
  8040. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  8041. }
  8042. inline void DescriptorProto::add_reserved_name(std::string&& value) {
  8043. reserved_name_.Add(std::move(value));
  8044. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  8045. }
  8046. inline void DescriptorProto::add_reserved_name(const char* value) {
  8047. GOOGLE_DCHECK(value != nullptr);
  8048. reserved_name_.Add()->assign(value);
  8049. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  8050. }
  8051. inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  8052. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  8053. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  8054. }
  8055. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  8056. DescriptorProto::reserved_name() const {
  8057. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  8058. return reserved_name_;
  8059. }
  8060. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  8061. DescriptorProto::mutable_reserved_name() {
  8062. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  8063. return &reserved_name_;
  8064. }
  8065. // -------------------------------------------------------------------
  8066. // ExtensionRangeOptions
  8067. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  8068. inline int ExtensionRangeOptions::_internal_uninterpreted_option_size() const {
  8069. return uninterpreted_option_.size();
  8070. }
  8071. inline int ExtensionRangeOptions::uninterpreted_option_size() const {
  8072. return _internal_uninterpreted_option_size();
  8073. }
  8074. inline void ExtensionRangeOptions::clear_uninterpreted_option() {
  8075. uninterpreted_option_.Clear();
  8076. }
  8077. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index) {
  8078. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  8079. return uninterpreted_option_.Mutable(index);
  8080. }
  8081. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  8082. ExtensionRangeOptions::mutable_uninterpreted_option() {
  8083. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  8084. return &uninterpreted_option_;
  8085. }
  8086. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::_internal_uninterpreted_option(int index) const {
  8087. return uninterpreted_option_.Get(index);
  8088. }
  8089. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const {
  8090. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  8091. return _internal_uninterpreted_option(index);
  8092. }
  8093. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::_internal_add_uninterpreted_option() {
  8094. return uninterpreted_option_.Add();
  8095. }
  8096. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option() {
  8097. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  8098. return _internal_add_uninterpreted_option();
  8099. }
  8100. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  8101. ExtensionRangeOptions::uninterpreted_option() const {
  8102. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  8103. return uninterpreted_option_;
  8104. }
  8105. // -------------------------------------------------------------------
  8106. // FieldDescriptorProto
  8107. // optional string name = 1;
  8108. inline bool FieldDescriptorProto::_internal_has_name() const {
  8109. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8110. return value;
  8111. }
  8112. inline bool FieldDescriptorProto::has_name() const {
  8113. return _internal_has_name();
  8114. }
  8115. inline void FieldDescriptorProto::clear_name() {
  8116. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8117. _has_bits_[0] &= ~0x00000001u;
  8118. }
  8119. inline const std::string& FieldDescriptorProto::name() const {
  8120. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  8121. return _internal_name();
  8122. }
  8123. inline void FieldDescriptorProto::set_name(const std::string& value) {
  8124. _internal_set_name(value);
  8125. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  8126. }
  8127. inline std::string* FieldDescriptorProto::mutable_name() {
  8128. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  8129. return _internal_mutable_name();
  8130. }
  8131. inline const std::string& FieldDescriptorProto::_internal_name() const {
  8132. return name_.Get();
  8133. }
  8134. inline void FieldDescriptorProto::_internal_set_name(const std::string& value) {
  8135. _has_bits_[0] |= 0x00000001u;
  8136. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8137. }
  8138. inline void FieldDescriptorProto::set_name(std::string&& value) {
  8139. _has_bits_[0] |= 0x00000001u;
  8140. name_.Set(
  8141. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8142. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.name)
  8143. }
  8144. inline void FieldDescriptorProto::set_name(const char* value) {
  8145. GOOGLE_DCHECK(value != nullptr);
  8146. _has_bits_[0] |= 0x00000001u;
  8147. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8148. GetArenaNoVirtual());
  8149. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
  8150. }
  8151. inline void FieldDescriptorProto::set_name(const char* value,
  8152. size_t size) {
  8153. _has_bits_[0] |= 0x00000001u;
  8154. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8155. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8156. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
  8157. }
  8158. inline std::string* FieldDescriptorProto::_internal_mutable_name() {
  8159. _has_bits_[0] |= 0x00000001u;
  8160. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8161. }
  8162. inline std::string* FieldDescriptorProto::release_name() {
  8163. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  8164. if (!has_name()) {
  8165. return nullptr;
  8166. }
  8167. _has_bits_[0] &= ~0x00000001u;
  8168. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8169. }
  8170. inline void FieldDescriptorProto::set_allocated_name(std::string* name) {
  8171. if (name != nullptr) {
  8172. _has_bits_[0] |= 0x00000001u;
  8173. } else {
  8174. _has_bits_[0] &= ~0x00000001u;
  8175. }
  8176. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  8177. GetArenaNoVirtual());
  8178. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  8179. }
  8180. inline std::string* FieldDescriptorProto::unsafe_arena_release_name() {
  8181. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.name)
  8182. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8183. _has_bits_[0] &= ~0x00000001u;
  8184. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8185. GetArenaNoVirtual());
  8186. }
  8187. inline void FieldDescriptorProto::unsafe_arena_set_allocated_name(
  8188. std::string* name) {
  8189. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8190. if (name != nullptr) {
  8191. _has_bits_[0] |= 0x00000001u;
  8192. } else {
  8193. _has_bits_[0] &= ~0x00000001u;
  8194. }
  8195. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8196. name, GetArenaNoVirtual());
  8197. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.name)
  8198. }
  8199. // optional int32 number = 3;
  8200. inline bool FieldDescriptorProto::_internal_has_number() const {
  8201. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  8202. return value;
  8203. }
  8204. inline bool FieldDescriptorProto::has_number() const {
  8205. return _internal_has_number();
  8206. }
  8207. inline void FieldDescriptorProto::clear_number() {
  8208. number_ = 0;
  8209. _has_bits_[0] &= ~0x00000040u;
  8210. }
  8211. inline ::PROTOBUF_NAMESPACE_ID::int32 FieldDescriptorProto::_internal_number() const {
  8212. return number_;
  8213. }
  8214. inline ::PROTOBUF_NAMESPACE_ID::int32 FieldDescriptorProto::number() const {
  8215. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  8216. return _internal_number();
  8217. }
  8218. inline void FieldDescriptorProto::_internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8219. _has_bits_[0] |= 0x00000040u;
  8220. number_ = value;
  8221. }
  8222. inline void FieldDescriptorProto::set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8223. _internal_set_number(value);
  8224. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  8225. }
  8226. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  8227. inline bool FieldDescriptorProto::_internal_has_label() const {
  8228. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  8229. return value;
  8230. }
  8231. inline bool FieldDescriptorProto::has_label() const {
  8232. return _internal_has_label();
  8233. }
  8234. inline void FieldDescriptorProto::clear_label() {
  8235. label_ = 1;
  8236. _has_bits_[0] &= ~0x00000100u;
  8237. }
  8238. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::_internal_label() const {
  8239. return static_cast< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label >(label_);
  8240. }
  8241. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  8242. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  8243. return _internal_label();
  8244. }
  8245. inline void FieldDescriptorProto::_internal_set_label(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  8246. assert(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(value));
  8247. _has_bits_[0] |= 0x00000100u;
  8248. label_ = value;
  8249. }
  8250. inline void FieldDescriptorProto::set_label(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  8251. _internal_set_label(value);
  8252. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  8253. }
  8254. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  8255. inline bool FieldDescriptorProto::_internal_has_type() const {
  8256. bool value = (_has_bits_[0] & 0x00000200u) != 0;
  8257. return value;
  8258. }
  8259. inline bool FieldDescriptorProto::has_type() const {
  8260. return _internal_has_type();
  8261. }
  8262. inline void FieldDescriptorProto::clear_type() {
  8263. type_ = 1;
  8264. _has_bits_[0] &= ~0x00000200u;
  8265. }
  8266. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::_internal_type() const {
  8267. return static_cast< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type >(type_);
  8268. }
  8269. inline PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  8270. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  8271. return _internal_type();
  8272. }
  8273. inline void FieldDescriptorProto::_internal_set_type(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  8274. assert(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(value));
  8275. _has_bits_[0] |= 0x00000200u;
  8276. type_ = value;
  8277. }
  8278. inline void FieldDescriptorProto::set_type(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  8279. _internal_set_type(value);
  8280. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  8281. }
  8282. // optional string type_name = 6;
  8283. inline bool FieldDescriptorProto::_internal_has_type_name() const {
  8284. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  8285. return value;
  8286. }
  8287. inline bool FieldDescriptorProto::has_type_name() const {
  8288. return _internal_has_type_name();
  8289. }
  8290. inline void FieldDescriptorProto::clear_type_name() {
  8291. type_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8292. _has_bits_[0] &= ~0x00000004u;
  8293. }
  8294. inline const std::string& FieldDescriptorProto::type_name() const {
  8295. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  8296. return _internal_type_name();
  8297. }
  8298. inline void FieldDescriptorProto::set_type_name(const std::string& value) {
  8299. _internal_set_type_name(value);
  8300. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  8301. }
  8302. inline std::string* FieldDescriptorProto::mutable_type_name() {
  8303. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  8304. return _internal_mutable_type_name();
  8305. }
  8306. inline const std::string& FieldDescriptorProto::_internal_type_name() const {
  8307. return type_name_.Get();
  8308. }
  8309. inline void FieldDescriptorProto::_internal_set_type_name(const std::string& value) {
  8310. _has_bits_[0] |= 0x00000004u;
  8311. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8312. }
  8313. inline void FieldDescriptorProto::set_type_name(std::string&& value) {
  8314. _has_bits_[0] |= 0x00000004u;
  8315. type_name_.Set(
  8316. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8317. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.type_name)
  8318. }
  8319. inline void FieldDescriptorProto::set_type_name(const char* value) {
  8320. GOOGLE_DCHECK(value != nullptr);
  8321. _has_bits_[0] |= 0x00000004u;
  8322. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8323. GetArenaNoVirtual());
  8324. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
  8325. }
  8326. inline void FieldDescriptorProto::set_type_name(const char* value,
  8327. size_t size) {
  8328. _has_bits_[0] |= 0x00000004u;
  8329. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8330. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8331. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
  8332. }
  8333. inline std::string* FieldDescriptorProto::_internal_mutable_type_name() {
  8334. _has_bits_[0] |= 0x00000004u;
  8335. return type_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8336. }
  8337. inline std::string* FieldDescriptorProto::release_type_name() {
  8338. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  8339. if (!has_type_name()) {
  8340. return nullptr;
  8341. }
  8342. _has_bits_[0] &= ~0x00000004u;
  8343. return type_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8344. }
  8345. inline void FieldDescriptorProto::set_allocated_type_name(std::string* type_name) {
  8346. if (type_name != nullptr) {
  8347. _has_bits_[0] |= 0x00000004u;
  8348. } else {
  8349. _has_bits_[0] &= ~0x00000004u;
  8350. }
  8351. type_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_name,
  8352. GetArenaNoVirtual());
  8353. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  8354. }
  8355. inline std::string* FieldDescriptorProto::unsafe_arena_release_type_name() {
  8356. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.type_name)
  8357. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8358. _has_bits_[0] &= ~0x00000004u;
  8359. return type_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8360. GetArenaNoVirtual());
  8361. }
  8362. inline void FieldDescriptorProto::unsafe_arena_set_allocated_type_name(
  8363. std::string* type_name) {
  8364. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8365. if (type_name != nullptr) {
  8366. _has_bits_[0] |= 0x00000004u;
  8367. } else {
  8368. _has_bits_[0] &= ~0x00000004u;
  8369. }
  8370. type_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8371. type_name, GetArenaNoVirtual());
  8372. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  8373. }
  8374. // optional string extendee = 2;
  8375. inline bool FieldDescriptorProto::_internal_has_extendee() const {
  8376. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8377. return value;
  8378. }
  8379. inline bool FieldDescriptorProto::has_extendee() const {
  8380. return _internal_has_extendee();
  8381. }
  8382. inline void FieldDescriptorProto::clear_extendee() {
  8383. extendee_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8384. _has_bits_[0] &= ~0x00000002u;
  8385. }
  8386. inline const std::string& FieldDescriptorProto::extendee() const {
  8387. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  8388. return _internal_extendee();
  8389. }
  8390. inline void FieldDescriptorProto::set_extendee(const std::string& value) {
  8391. _internal_set_extendee(value);
  8392. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  8393. }
  8394. inline std::string* FieldDescriptorProto::mutable_extendee() {
  8395. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  8396. return _internal_mutable_extendee();
  8397. }
  8398. inline const std::string& FieldDescriptorProto::_internal_extendee() const {
  8399. return extendee_.Get();
  8400. }
  8401. inline void FieldDescriptorProto::_internal_set_extendee(const std::string& value) {
  8402. _has_bits_[0] |= 0x00000002u;
  8403. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8404. }
  8405. inline void FieldDescriptorProto::set_extendee(std::string&& value) {
  8406. _has_bits_[0] |= 0x00000002u;
  8407. extendee_.Set(
  8408. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8409. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.extendee)
  8410. }
  8411. inline void FieldDescriptorProto::set_extendee(const char* value) {
  8412. GOOGLE_DCHECK(value != nullptr);
  8413. _has_bits_[0] |= 0x00000002u;
  8414. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8415. GetArenaNoVirtual());
  8416. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
  8417. }
  8418. inline void FieldDescriptorProto::set_extendee(const char* value,
  8419. size_t size) {
  8420. _has_bits_[0] |= 0x00000002u;
  8421. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8422. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8423. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
  8424. }
  8425. inline std::string* FieldDescriptorProto::_internal_mutable_extendee() {
  8426. _has_bits_[0] |= 0x00000002u;
  8427. return extendee_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8428. }
  8429. inline std::string* FieldDescriptorProto::release_extendee() {
  8430. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  8431. if (!has_extendee()) {
  8432. return nullptr;
  8433. }
  8434. _has_bits_[0] &= ~0x00000002u;
  8435. return extendee_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8436. }
  8437. inline void FieldDescriptorProto::set_allocated_extendee(std::string* extendee) {
  8438. if (extendee != nullptr) {
  8439. _has_bits_[0] |= 0x00000002u;
  8440. } else {
  8441. _has_bits_[0] &= ~0x00000002u;
  8442. }
  8443. extendee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extendee,
  8444. GetArenaNoVirtual());
  8445. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  8446. }
  8447. inline std::string* FieldDescriptorProto::unsafe_arena_release_extendee() {
  8448. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.extendee)
  8449. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8450. _has_bits_[0] &= ~0x00000002u;
  8451. return extendee_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8452. GetArenaNoVirtual());
  8453. }
  8454. inline void FieldDescriptorProto::unsafe_arena_set_allocated_extendee(
  8455. std::string* extendee) {
  8456. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8457. if (extendee != nullptr) {
  8458. _has_bits_[0] |= 0x00000002u;
  8459. } else {
  8460. _has_bits_[0] &= ~0x00000002u;
  8461. }
  8462. extendee_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8463. extendee, GetArenaNoVirtual());
  8464. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  8465. }
  8466. // optional string default_value = 7;
  8467. inline bool FieldDescriptorProto::_internal_has_default_value() const {
  8468. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  8469. return value;
  8470. }
  8471. inline bool FieldDescriptorProto::has_default_value() const {
  8472. return _internal_has_default_value();
  8473. }
  8474. inline void FieldDescriptorProto::clear_default_value() {
  8475. default_value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8476. _has_bits_[0] &= ~0x00000008u;
  8477. }
  8478. inline const std::string& FieldDescriptorProto::default_value() const {
  8479. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  8480. return _internal_default_value();
  8481. }
  8482. inline void FieldDescriptorProto::set_default_value(const std::string& value) {
  8483. _internal_set_default_value(value);
  8484. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  8485. }
  8486. inline std::string* FieldDescriptorProto::mutable_default_value() {
  8487. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  8488. return _internal_mutable_default_value();
  8489. }
  8490. inline const std::string& FieldDescriptorProto::_internal_default_value() const {
  8491. return default_value_.Get();
  8492. }
  8493. inline void FieldDescriptorProto::_internal_set_default_value(const std::string& value) {
  8494. _has_bits_[0] |= 0x00000008u;
  8495. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8496. }
  8497. inline void FieldDescriptorProto::set_default_value(std::string&& value) {
  8498. _has_bits_[0] |= 0x00000008u;
  8499. default_value_.Set(
  8500. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8501. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.default_value)
  8502. }
  8503. inline void FieldDescriptorProto::set_default_value(const char* value) {
  8504. GOOGLE_DCHECK(value != nullptr);
  8505. _has_bits_[0] |= 0x00000008u;
  8506. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8507. GetArenaNoVirtual());
  8508. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
  8509. }
  8510. inline void FieldDescriptorProto::set_default_value(const char* value,
  8511. size_t size) {
  8512. _has_bits_[0] |= 0x00000008u;
  8513. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8514. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8515. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
  8516. }
  8517. inline std::string* FieldDescriptorProto::_internal_mutable_default_value() {
  8518. _has_bits_[0] |= 0x00000008u;
  8519. return default_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8520. }
  8521. inline std::string* FieldDescriptorProto::release_default_value() {
  8522. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  8523. if (!has_default_value()) {
  8524. return nullptr;
  8525. }
  8526. _has_bits_[0] &= ~0x00000008u;
  8527. return default_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8528. }
  8529. inline void FieldDescriptorProto::set_allocated_default_value(std::string* default_value) {
  8530. if (default_value != nullptr) {
  8531. _has_bits_[0] |= 0x00000008u;
  8532. } else {
  8533. _has_bits_[0] &= ~0x00000008u;
  8534. }
  8535. default_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), default_value,
  8536. GetArenaNoVirtual());
  8537. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  8538. }
  8539. inline std::string* FieldDescriptorProto::unsafe_arena_release_default_value() {
  8540. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.default_value)
  8541. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8542. _has_bits_[0] &= ~0x00000008u;
  8543. return default_value_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8544. GetArenaNoVirtual());
  8545. }
  8546. inline void FieldDescriptorProto::unsafe_arena_set_allocated_default_value(
  8547. std::string* default_value) {
  8548. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8549. if (default_value != nullptr) {
  8550. _has_bits_[0] |= 0x00000008u;
  8551. } else {
  8552. _has_bits_[0] &= ~0x00000008u;
  8553. }
  8554. default_value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8555. default_value, GetArenaNoVirtual());
  8556. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  8557. }
  8558. // optional int32 oneof_index = 9;
  8559. inline bool FieldDescriptorProto::_internal_has_oneof_index() const {
  8560. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  8561. return value;
  8562. }
  8563. inline bool FieldDescriptorProto::has_oneof_index() const {
  8564. return _internal_has_oneof_index();
  8565. }
  8566. inline void FieldDescriptorProto::clear_oneof_index() {
  8567. oneof_index_ = 0;
  8568. _has_bits_[0] &= ~0x00000080u;
  8569. }
  8570. inline ::PROTOBUF_NAMESPACE_ID::int32 FieldDescriptorProto::_internal_oneof_index() const {
  8571. return oneof_index_;
  8572. }
  8573. inline ::PROTOBUF_NAMESPACE_ID::int32 FieldDescriptorProto::oneof_index() const {
  8574. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  8575. return _internal_oneof_index();
  8576. }
  8577. inline void FieldDescriptorProto::_internal_set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8578. _has_bits_[0] |= 0x00000080u;
  8579. oneof_index_ = value;
  8580. }
  8581. inline void FieldDescriptorProto::set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8582. _internal_set_oneof_index(value);
  8583. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  8584. }
  8585. // optional string json_name = 10;
  8586. inline bool FieldDescriptorProto::_internal_has_json_name() const {
  8587. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  8588. return value;
  8589. }
  8590. inline bool FieldDescriptorProto::has_json_name() const {
  8591. return _internal_has_json_name();
  8592. }
  8593. inline void FieldDescriptorProto::clear_json_name() {
  8594. json_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8595. _has_bits_[0] &= ~0x00000010u;
  8596. }
  8597. inline const std::string& FieldDescriptorProto::json_name() const {
  8598. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  8599. return _internal_json_name();
  8600. }
  8601. inline void FieldDescriptorProto::set_json_name(const std::string& value) {
  8602. _internal_set_json_name(value);
  8603. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  8604. }
  8605. inline std::string* FieldDescriptorProto::mutable_json_name() {
  8606. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  8607. return _internal_mutable_json_name();
  8608. }
  8609. inline const std::string& FieldDescriptorProto::_internal_json_name() const {
  8610. return json_name_.Get();
  8611. }
  8612. inline void FieldDescriptorProto::_internal_set_json_name(const std::string& value) {
  8613. _has_bits_[0] |= 0x00000010u;
  8614. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8615. }
  8616. inline void FieldDescriptorProto::set_json_name(std::string&& value) {
  8617. _has_bits_[0] |= 0x00000010u;
  8618. json_name_.Set(
  8619. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8620. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.json_name)
  8621. }
  8622. inline void FieldDescriptorProto::set_json_name(const char* value) {
  8623. GOOGLE_DCHECK(value != nullptr);
  8624. _has_bits_[0] |= 0x00000010u;
  8625. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8626. GetArenaNoVirtual());
  8627. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
  8628. }
  8629. inline void FieldDescriptorProto::set_json_name(const char* value,
  8630. size_t size) {
  8631. _has_bits_[0] |= 0x00000010u;
  8632. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8633. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8634. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
  8635. }
  8636. inline std::string* FieldDescriptorProto::_internal_mutable_json_name() {
  8637. _has_bits_[0] |= 0x00000010u;
  8638. return json_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8639. }
  8640. inline std::string* FieldDescriptorProto::release_json_name() {
  8641. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  8642. if (!has_json_name()) {
  8643. return nullptr;
  8644. }
  8645. _has_bits_[0] &= ~0x00000010u;
  8646. return json_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8647. }
  8648. inline void FieldDescriptorProto::set_allocated_json_name(std::string* json_name) {
  8649. if (json_name != nullptr) {
  8650. _has_bits_[0] |= 0x00000010u;
  8651. } else {
  8652. _has_bits_[0] &= ~0x00000010u;
  8653. }
  8654. json_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_name,
  8655. GetArenaNoVirtual());
  8656. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  8657. }
  8658. inline std::string* FieldDescriptorProto::unsafe_arena_release_json_name() {
  8659. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.json_name)
  8660. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8661. _has_bits_[0] &= ~0x00000010u;
  8662. return json_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8663. GetArenaNoVirtual());
  8664. }
  8665. inline void FieldDescriptorProto::unsafe_arena_set_allocated_json_name(
  8666. std::string* json_name) {
  8667. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8668. if (json_name != nullptr) {
  8669. _has_bits_[0] |= 0x00000010u;
  8670. } else {
  8671. _has_bits_[0] &= ~0x00000010u;
  8672. }
  8673. json_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8674. json_name, GetArenaNoVirtual());
  8675. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  8676. }
  8677. // optional .google.protobuf.FieldOptions options = 8;
  8678. inline bool FieldDescriptorProto::_internal_has_options() const {
  8679. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  8680. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8681. return value;
  8682. }
  8683. inline bool FieldDescriptorProto::has_options() const {
  8684. return _internal_has_options();
  8685. }
  8686. inline void FieldDescriptorProto::clear_options() {
  8687. if (options_ != nullptr) options_->Clear();
  8688. _has_bits_[0] &= ~0x00000020u;
  8689. }
  8690. inline const PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::_internal_options() const {
  8691. const PROTOBUF_NAMESPACE_ID::FieldOptions* p = options_;
  8692. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::FieldOptions*>(
  8693. &PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_);
  8694. }
  8695. inline const PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::options() const {
  8696. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  8697. return _internal_options();
  8698. }
  8699. inline PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::release_options() {
  8700. auto temp = unsafe_arena_release_options();
  8701. if (GetArenaNoVirtual() != nullptr) {
  8702. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8703. }
  8704. return temp;
  8705. }
  8706. inline PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options() {
  8707. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  8708. _has_bits_[0] &= ~0x00000020u;
  8709. PROTOBUF_NAMESPACE_ID::FieldOptions* temp = options_;
  8710. options_ = nullptr;
  8711. return temp;
  8712. }
  8713. inline PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::_internal_mutable_options() {
  8714. _has_bits_[0] |= 0x00000020u;
  8715. if (options_ == nullptr) {
  8716. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FieldOptions>(GetArenaNoVirtual());
  8717. options_ = p;
  8718. }
  8719. return options_;
  8720. }
  8721. inline PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::mutable_options() {
  8722. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  8723. return _internal_mutable_options();
  8724. }
  8725. inline void FieldDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  8726. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8727. if (message_arena == nullptr) {
  8728. delete options_;
  8729. }
  8730. if (options) {
  8731. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8732. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  8733. if (message_arena != submessage_arena) {
  8734. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8735. message_arena, options, submessage_arena);
  8736. }
  8737. _has_bits_[0] |= 0x00000020u;
  8738. } else {
  8739. _has_bits_[0] &= ~0x00000020u;
  8740. }
  8741. options_ = options;
  8742. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  8743. }
  8744. // -------------------------------------------------------------------
  8745. // OneofDescriptorProto
  8746. // optional string name = 1;
  8747. inline bool OneofDescriptorProto::_internal_has_name() const {
  8748. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8749. return value;
  8750. }
  8751. inline bool OneofDescriptorProto::has_name() const {
  8752. return _internal_has_name();
  8753. }
  8754. inline void OneofDescriptorProto::clear_name() {
  8755. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8756. _has_bits_[0] &= ~0x00000001u;
  8757. }
  8758. inline const std::string& OneofDescriptorProto::name() const {
  8759. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  8760. return _internal_name();
  8761. }
  8762. inline void OneofDescriptorProto::set_name(const std::string& value) {
  8763. _internal_set_name(value);
  8764. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  8765. }
  8766. inline std::string* OneofDescriptorProto::mutable_name() {
  8767. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  8768. return _internal_mutable_name();
  8769. }
  8770. inline const std::string& OneofDescriptorProto::_internal_name() const {
  8771. return name_.Get();
  8772. }
  8773. inline void OneofDescriptorProto::_internal_set_name(const std::string& value) {
  8774. _has_bits_[0] |= 0x00000001u;
  8775. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8776. }
  8777. inline void OneofDescriptorProto::set_name(std::string&& value) {
  8778. _has_bits_[0] |= 0x00000001u;
  8779. name_.Set(
  8780. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8781. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.OneofDescriptorProto.name)
  8782. }
  8783. inline void OneofDescriptorProto::set_name(const char* value) {
  8784. GOOGLE_DCHECK(value != nullptr);
  8785. _has_bits_[0] |= 0x00000001u;
  8786. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8787. GetArenaNoVirtual());
  8788. // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
  8789. }
  8790. inline void OneofDescriptorProto::set_name(const char* value,
  8791. size_t size) {
  8792. _has_bits_[0] |= 0x00000001u;
  8793. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8794. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8795. // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
  8796. }
  8797. inline std::string* OneofDescriptorProto::_internal_mutable_name() {
  8798. _has_bits_[0] |= 0x00000001u;
  8799. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8800. }
  8801. inline std::string* OneofDescriptorProto::release_name() {
  8802. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  8803. if (!has_name()) {
  8804. return nullptr;
  8805. }
  8806. _has_bits_[0] &= ~0x00000001u;
  8807. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8808. }
  8809. inline void OneofDescriptorProto::set_allocated_name(std::string* name) {
  8810. if (name != nullptr) {
  8811. _has_bits_[0] |= 0x00000001u;
  8812. } else {
  8813. _has_bits_[0] &= ~0x00000001u;
  8814. }
  8815. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  8816. GetArenaNoVirtual());
  8817. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  8818. }
  8819. inline std::string* OneofDescriptorProto::unsafe_arena_release_name() {
  8820. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.OneofDescriptorProto.name)
  8821. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8822. _has_bits_[0] &= ~0x00000001u;
  8823. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8824. GetArenaNoVirtual());
  8825. }
  8826. inline void OneofDescriptorProto::unsafe_arena_set_allocated_name(
  8827. std::string* name) {
  8828. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  8829. if (name != nullptr) {
  8830. _has_bits_[0] |= 0x00000001u;
  8831. } else {
  8832. _has_bits_[0] &= ~0x00000001u;
  8833. }
  8834. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  8835. name, GetArenaNoVirtual());
  8836. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.name)
  8837. }
  8838. // optional .google.protobuf.OneofOptions options = 2;
  8839. inline bool OneofDescriptorProto::_internal_has_options() const {
  8840. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8841. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8842. return value;
  8843. }
  8844. inline bool OneofDescriptorProto::has_options() const {
  8845. return _internal_has_options();
  8846. }
  8847. inline void OneofDescriptorProto::clear_options() {
  8848. if (options_ != nullptr) options_->Clear();
  8849. _has_bits_[0] &= ~0x00000002u;
  8850. }
  8851. inline const PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::_internal_options() const {
  8852. const PROTOBUF_NAMESPACE_ID::OneofOptions* p = options_;
  8853. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::OneofOptions*>(
  8854. &PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_);
  8855. }
  8856. inline const PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::options() const {
  8857. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  8858. return _internal_options();
  8859. }
  8860. inline PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::release_options() {
  8861. auto temp = unsafe_arena_release_options();
  8862. if (GetArenaNoVirtual() != nullptr) {
  8863. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8864. }
  8865. return temp;
  8866. }
  8867. inline PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options() {
  8868. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  8869. _has_bits_[0] &= ~0x00000002u;
  8870. PROTOBUF_NAMESPACE_ID::OneofOptions* temp = options_;
  8871. options_ = nullptr;
  8872. return temp;
  8873. }
  8874. inline PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::_internal_mutable_options() {
  8875. _has_bits_[0] |= 0x00000002u;
  8876. if (options_ == nullptr) {
  8877. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::OneofOptions>(GetArenaNoVirtual());
  8878. options_ = p;
  8879. }
  8880. return options_;
  8881. }
  8882. inline PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::mutable_options() {
  8883. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  8884. return _internal_mutable_options();
  8885. }
  8886. inline void OneofDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  8887. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  8888. if (message_arena == nullptr) {
  8889. delete options_;
  8890. }
  8891. if (options) {
  8892. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8893. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  8894. if (message_arena != submessage_arena) {
  8895. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8896. message_arena, options, submessage_arena);
  8897. }
  8898. _has_bits_[0] |= 0x00000002u;
  8899. } else {
  8900. _has_bits_[0] &= ~0x00000002u;
  8901. }
  8902. options_ = options;
  8903. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  8904. }
  8905. // -------------------------------------------------------------------
  8906. // EnumDescriptorProto_EnumReservedRange
  8907. // optional int32 start = 1;
  8908. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_start() const {
  8909. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8910. return value;
  8911. }
  8912. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const {
  8913. return _internal_has_start();
  8914. }
  8915. inline void EnumDescriptorProto_EnumReservedRange::clear_start() {
  8916. start_ = 0;
  8917. _has_bits_[0] &= ~0x00000001u;
  8918. }
  8919. inline ::PROTOBUF_NAMESPACE_ID::int32 EnumDescriptorProto_EnumReservedRange::_internal_start() const {
  8920. return start_;
  8921. }
  8922. inline ::PROTOBUF_NAMESPACE_ID::int32 EnumDescriptorProto_EnumReservedRange::start() const {
  8923. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  8924. return _internal_start();
  8925. }
  8926. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_start(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8927. _has_bits_[0] |= 0x00000001u;
  8928. start_ = value;
  8929. }
  8930. inline void EnumDescriptorProto_EnumReservedRange::set_start(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8931. _internal_set_start(value);
  8932. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  8933. }
  8934. // optional int32 end = 2;
  8935. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_end() const {
  8936. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8937. return value;
  8938. }
  8939. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const {
  8940. return _internal_has_end();
  8941. }
  8942. inline void EnumDescriptorProto_EnumReservedRange::clear_end() {
  8943. end_ = 0;
  8944. _has_bits_[0] &= ~0x00000002u;
  8945. }
  8946. inline ::PROTOBUF_NAMESPACE_ID::int32 EnumDescriptorProto_EnumReservedRange::_internal_end() const {
  8947. return end_;
  8948. }
  8949. inline ::PROTOBUF_NAMESPACE_ID::int32 EnumDescriptorProto_EnumReservedRange::end() const {
  8950. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  8951. return _internal_end();
  8952. }
  8953. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8954. _has_bits_[0] |= 0x00000002u;
  8955. end_ = value;
  8956. }
  8957. inline void EnumDescriptorProto_EnumReservedRange::set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  8958. _internal_set_end(value);
  8959. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  8960. }
  8961. // -------------------------------------------------------------------
  8962. // EnumDescriptorProto
  8963. // optional string name = 1;
  8964. inline bool EnumDescriptorProto::_internal_has_name() const {
  8965. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8966. return value;
  8967. }
  8968. inline bool EnumDescriptorProto::has_name() const {
  8969. return _internal_has_name();
  8970. }
  8971. inline void EnumDescriptorProto::clear_name() {
  8972. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8973. _has_bits_[0] &= ~0x00000001u;
  8974. }
  8975. inline const std::string& EnumDescriptorProto::name() const {
  8976. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  8977. return _internal_name();
  8978. }
  8979. inline void EnumDescriptorProto::set_name(const std::string& value) {
  8980. _internal_set_name(value);
  8981. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  8982. }
  8983. inline std::string* EnumDescriptorProto::mutable_name() {
  8984. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  8985. return _internal_mutable_name();
  8986. }
  8987. inline const std::string& EnumDescriptorProto::_internal_name() const {
  8988. return name_.Get();
  8989. }
  8990. inline void EnumDescriptorProto::_internal_set_name(const std::string& value) {
  8991. _has_bits_[0] |= 0x00000001u;
  8992. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8993. }
  8994. inline void EnumDescriptorProto::set_name(std::string&& value) {
  8995. _has_bits_[0] |= 0x00000001u;
  8996. name_.Set(
  8997. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8998. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumDescriptorProto.name)
  8999. }
  9000. inline void EnumDescriptorProto::set_name(const char* value) {
  9001. GOOGLE_DCHECK(value != nullptr);
  9002. _has_bits_[0] |= 0x00000001u;
  9003. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9004. GetArenaNoVirtual());
  9005. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
  9006. }
  9007. inline void EnumDescriptorProto::set_name(const char* value,
  9008. size_t size) {
  9009. _has_bits_[0] |= 0x00000001u;
  9010. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9011. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9012. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
  9013. }
  9014. inline std::string* EnumDescriptorProto::_internal_mutable_name() {
  9015. _has_bits_[0] |= 0x00000001u;
  9016. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9017. }
  9018. inline std::string* EnumDescriptorProto::release_name() {
  9019. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  9020. if (!has_name()) {
  9021. return nullptr;
  9022. }
  9023. _has_bits_[0] &= ~0x00000001u;
  9024. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9025. }
  9026. inline void EnumDescriptorProto::set_allocated_name(std::string* name) {
  9027. if (name != nullptr) {
  9028. _has_bits_[0] |= 0x00000001u;
  9029. } else {
  9030. _has_bits_[0] &= ~0x00000001u;
  9031. }
  9032. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9033. GetArenaNoVirtual());
  9034. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  9035. }
  9036. inline std::string* EnumDescriptorProto::unsafe_arena_release_name() {
  9037. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumDescriptorProto.name)
  9038. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9039. _has_bits_[0] &= ~0x00000001u;
  9040. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9041. GetArenaNoVirtual());
  9042. }
  9043. inline void EnumDescriptorProto::unsafe_arena_set_allocated_name(
  9044. std::string* name) {
  9045. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9046. if (name != nullptr) {
  9047. _has_bits_[0] |= 0x00000001u;
  9048. } else {
  9049. _has_bits_[0] &= ~0x00000001u;
  9050. }
  9051. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9052. name, GetArenaNoVirtual());
  9053. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.name)
  9054. }
  9055. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  9056. inline int EnumDescriptorProto::_internal_value_size() const {
  9057. return value_.size();
  9058. }
  9059. inline int EnumDescriptorProto::value_size() const {
  9060. return _internal_value_size();
  9061. }
  9062. inline void EnumDescriptorProto::clear_value() {
  9063. value_.Clear();
  9064. }
  9065. inline PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  9066. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  9067. return value_.Mutable(index);
  9068. }
  9069. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  9070. EnumDescriptorProto::mutable_value() {
  9071. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  9072. return &value_;
  9073. }
  9074. inline const PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::_internal_value(int index) const {
  9075. return value_.Get(index);
  9076. }
  9077. inline const PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  9078. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  9079. return _internal_value(index);
  9080. }
  9081. inline PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::_internal_add_value() {
  9082. return value_.Add();
  9083. }
  9084. inline PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  9085. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  9086. return _internal_add_value();
  9087. }
  9088. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  9089. EnumDescriptorProto::value() const {
  9090. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  9091. return value_;
  9092. }
  9093. // optional .google.protobuf.EnumOptions options = 3;
  9094. inline bool EnumDescriptorProto::_internal_has_options() const {
  9095. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9096. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9097. return value;
  9098. }
  9099. inline bool EnumDescriptorProto::has_options() const {
  9100. return _internal_has_options();
  9101. }
  9102. inline void EnumDescriptorProto::clear_options() {
  9103. if (options_ != nullptr) options_->Clear();
  9104. _has_bits_[0] &= ~0x00000002u;
  9105. }
  9106. inline const PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::_internal_options() const {
  9107. const PROTOBUF_NAMESPACE_ID::EnumOptions* p = options_;
  9108. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::EnumOptions*>(
  9109. &PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_);
  9110. }
  9111. inline const PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::options() const {
  9112. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  9113. return _internal_options();
  9114. }
  9115. inline PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::release_options() {
  9116. auto temp = unsafe_arena_release_options();
  9117. if (GetArenaNoVirtual() != nullptr) {
  9118. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9119. }
  9120. return temp;
  9121. }
  9122. inline PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options() {
  9123. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  9124. _has_bits_[0] &= ~0x00000002u;
  9125. PROTOBUF_NAMESPACE_ID::EnumOptions* temp = options_;
  9126. options_ = nullptr;
  9127. return temp;
  9128. }
  9129. inline PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::_internal_mutable_options() {
  9130. _has_bits_[0] |= 0x00000002u;
  9131. if (options_ == nullptr) {
  9132. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumOptions>(GetArenaNoVirtual());
  9133. options_ = p;
  9134. }
  9135. return options_;
  9136. }
  9137. inline PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::mutable_options() {
  9138. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  9139. return _internal_mutable_options();
  9140. }
  9141. inline void EnumDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  9142. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9143. if (message_arena == nullptr) {
  9144. delete options_;
  9145. }
  9146. if (options) {
  9147. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9148. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  9149. if (message_arena != submessage_arena) {
  9150. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9151. message_arena, options, submessage_arena);
  9152. }
  9153. _has_bits_[0] |= 0x00000002u;
  9154. } else {
  9155. _has_bits_[0] &= ~0x00000002u;
  9156. }
  9157. options_ = options;
  9158. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  9159. }
  9160. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  9161. inline int EnumDescriptorProto::_internal_reserved_range_size() const {
  9162. return reserved_range_.size();
  9163. }
  9164. inline int EnumDescriptorProto::reserved_range_size() const {
  9165. return _internal_reserved_range_size();
  9166. }
  9167. inline void EnumDescriptorProto::clear_reserved_range() {
  9168. reserved_range_.Clear();
  9169. }
  9170. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index) {
  9171. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  9172. return reserved_range_.Mutable(index);
  9173. }
  9174. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  9175. EnumDescriptorProto::mutable_reserved_range() {
  9176. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  9177. return &reserved_range_;
  9178. }
  9179. inline const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::_internal_reserved_range(int index) const {
  9180. return reserved_range_.Get(index);
  9181. }
  9182. inline const PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const {
  9183. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  9184. return _internal_reserved_range(index);
  9185. }
  9186. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::_internal_add_reserved_range() {
  9187. return reserved_range_.Add();
  9188. }
  9189. inline PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range() {
  9190. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  9191. return _internal_add_reserved_range();
  9192. }
  9193. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  9194. EnumDescriptorProto::reserved_range() const {
  9195. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  9196. return reserved_range_;
  9197. }
  9198. // repeated string reserved_name = 5;
  9199. inline int EnumDescriptorProto::_internal_reserved_name_size() const {
  9200. return reserved_name_.size();
  9201. }
  9202. inline int EnumDescriptorProto::reserved_name_size() const {
  9203. return _internal_reserved_name_size();
  9204. }
  9205. inline void EnumDescriptorProto::clear_reserved_name() {
  9206. reserved_name_.Clear();
  9207. }
  9208. inline std::string* EnumDescriptorProto::add_reserved_name() {
  9209. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  9210. return _internal_add_reserved_name();
  9211. }
  9212. inline const std::string& EnumDescriptorProto::_internal_reserved_name(int index) const {
  9213. return reserved_name_.Get(index);
  9214. }
  9215. inline const std::string& EnumDescriptorProto::reserved_name(int index) const {
  9216. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  9217. return _internal_reserved_name(index);
  9218. }
  9219. inline std::string* EnumDescriptorProto::mutable_reserved_name(int index) {
  9220. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  9221. return reserved_name_.Mutable(index);
  9222. }
  9223. inline void EnumDescriptorProto::set_reserved_name(int index, const std::string& value) {
  9224. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  9225. reserved_name_.Mutable(index)->assign(value);
  9226. }
  9227. inline void EnumDescriptorProto::set_reserved_name(int index, std::string&& value) {
  9228. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  9229. reserved_name_.Mutable(index)->assign(std::move(value));
  9230. }
  9231. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value) {
  9232. GOOGLE_DCHECK(value != nullptr);
  9233. reserved_name_.Mutable(index)->assign(value);
  9234. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  9235. }
  9236. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  9237. reserved_name_.Mutable(index)->assign(
  9238. reinterpret_cast<const char*>(value), size);
  9239. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  9240. }
  9241. inline std::string* EnumDescriptorProto::_internal_add_reserved_name() {
  9242. return reserved_name_.Add();
  9243. }
  9244. inline void EnumDescriptorProto::add_reserved_name(const std::string& value) {
  9245. reserved_name_.Add()->assign(value);
  9246. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  9247. }
  9248. inline void EnumDescriptorProto::add_reserved_name(std::string&& value) {
  9249. reserved_name_.Add(std::move(value));
  9250. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  9251. }
  9252. inline void EnumDescriptorProto::add_reserved_name(const char* value) {
  9253. GOOGLE_DCHECK(value != nullptr);
  9254. reserved_name_.Add()->assign(value);
  9255. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  9256. }
  9257. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size) {
  9258. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9259. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  9260. }
  9261. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9262. EnumDescriptorProto::reserved_name() const {
  9263. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  9264. return reserved_name_;
  9265. }
  9266. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9267. EnumDescriptorProto::mutable_reserved_name() {
  9268. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  9269. return &reserved_name_;
  9270. }
  9271. // -------------------------------------------------------------------
  9272. // EnumValueDescriptorProto
  9273. // optional string name = 1;
  9274. inline bool EnumValueDescriptorProto::_internal_has_name() const {
  9275. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9276. return value;
  9277. }
  9278. inline bool EnumValueDescriptorProto::has_name() const {
  9279. return _internal_has_name();
  9280. }
  9281. inline void EnumValueDescriptorProto::clear_name() {
  9282. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9283. _has_bits_[0] &= ~0x00000001u;
  9284. }
  9285. inline const std::string& EnumValueDescriptorProto::name() const {
  9286. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  9287. return _internal_name();
  9288. }
  9289. inline void EnumValueDescriptorProto::set_name(const std::string& value) {
  9290. _internal_set_name(value);
  9291. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  9292. }
  9293. inline std::string* EnumValueDescriptorProto::mutable_name() {
  9294. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  9295. return _internal_mutable_name();
  9296. }
  9297. inline const std::string& EnumValueDescriptorProto::_internal_name() const {
  9298. return name_.Get();
  9299. }
  9300. inline void EnumValueDescriptorProto::_internal_set_name(const std::string& value) {
  9301. _has_bits_[0] |= 0x00000001u;
  9302. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9303. }
  9304. inline void EnumValueDescriptorProto::set_name(std::string&& value) {
  9305. _has_bits_[0] |= 0x00000001u;
  9306. name_.Set(
  9307. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9308. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValueDescriptorProto.name)
  9309. }
  9310. inline void EnumValueDescriptorProto::set_name(const char* value) {
  9311. GOOGLE_DCHECK(value != nullptr);
  9312. _has_bits_[0] |= 0x00000001u;
  9313. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9314. GetArenaNoVirtual());
  9315. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
  9316. }
  9317. inline void EnumValueDescriptorProto::set_name(const char* value,
  9318. size_t size) {
  9319. _has_bits_[0] |= 0x00000001u;
  9320. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9321. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9322. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
  9323. }
  9324. inline std::string* EnumValueDescriptorProto::_internal_mutable_name() {
  9325. _has_bits_[0] |= 0x00000001u;
  9326. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9327. }
  9328. inline std::string* EnumValueDescriptorProto::release_name() {
  9329. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  9330. if (!has_name()) {
  9331. return nullptr;
  9332. }
  9333. _has_bits_[0] &= ~0x00000001u;
  9334. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9335. }
  9336. inline void EnumValueDescriptorProto::set_allocated_name(std::string* name) {
  9337. if (name != nullptr) {
  9338. _has_bits_[0] |= 0x00000001u;
  9339. } else {
  9340. _has_bits_[0] &= ~0x00000001u;
  9341. }
  9342. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9343. GetArenaNoVirtual());
  9344. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  9345. }
  9346. inline std::string* EnumValueDescriptorProto::unsafe_arena_release_name() {
  9347. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValueDescriptorProto.name)
  9348. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9349. _has_bits_[0] &= ~0x00000001u;
  9350. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9351. GetArenaNoVirtual());
  9352. }
  9353. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_name(
  9354. std::string* name) {
  9355. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9356. if (name != nullptr) {
  9357. _has_bits_[0] |= 0x00000001u;
  9358. } else {
  9359. _has_bits_[0] &= ~0x00000001u;
  9360. }
  9361. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9362. name, GetArenaNoVirtual());
  9363. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  9364. }
  9365. // optional int32 number = 2;
  9366. inline bool EnumValueDescriptorProto::_internal_has_number() const {
  9367. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  9368. return value;
  9369. }
  9370. inline bool EnumValueDescriptorProto::has_number() const {
  9371. return _internal_has_number();
  9372. }
  9373. inline void EnumValueDescriptorProto::clear_number() {
  9374. number_ = 0;
  9375. _has_bits_[0] &= ~0x00000004u;
  9376. }
  9377. inline ::PROTOBUF_NAMESPACE_ID::int32 EnumValueDescriptorProto::_internal_number() const {
  9378. return number_;
  9379. }
  9380. inline ::PROTOBUF_NAMESPACE_ID::int32 EnumValueDescriptorProto::number() const {
  9381. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  9382. return _internal_number();
  9383. }
  9384. inline void EnumValueDescriptorProto::_internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9385. _has_bits_[0] |= 0x00000004u;
  9386. number_ = value;
  9387. }
  9388. inline void EnumValueDescriptorProto::set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
  9389. _internal_set_number(value);
  9390. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  9391. }
  9392. // optional .google.protobuf.EnumValueOptions options = 3;
  9393. inline bool EnumValueDescriptorProto::_internal_has_options() const {
  9394. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9395. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9396. return value;
  9397. }
  9398. inline bool EnumValueDescriptorProto::has_options() const {
  9399. return _internal_has_options();
  9400. }
  9401. inline void EnumValueDescriptorProto::clear_options() {
  9402. if (options_ != nullptr) options_->Clear();
  9403. _has_bits_[0] &= ~0x00000002u;
  9404. }
  9405. inline const PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const {
  9406. const PROTOBUF_NAMESPACE_ID::EnumValueOptions* p = options_;
  9407. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::EnumValueOptions*>(
  9408. &PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_);
  9409. }
  9410. inline const PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::options() const {
  9411. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  9412. return _internal_options();
  9413. }
  9414. inline PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  9415. auto temp = unsafe_arena_release_options();
  9416. if (GetArenaNoVirtual() != nullptr) {
  9417. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9418. }
  9419. return temp;
  9420. }
  9421. inline PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options() {
  9422. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  9423. _has_bits_[0] &= ~0x00000002u;
  9424. PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = options_;
  9425. options_ = nullptr;
  9426. return temp;
  9427. }
  9428. inline PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::_internal_mutable_options() {
  9429. _has_bits_[0] |= 0x00000002u;
  9430. if (options_ == nullptr) {
  9431. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumValueOptions>(GetArenaNoVirtual());
  9432. options_ = p;
  9433. }
  9434. return options_;
  9435. }
  9436. inline PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  9437. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  9438. return _internal_mutable_options();
  9439. }
  9440. inline void EnumValueDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  9441. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9442. if (message_arena == nullptr) {
  9443. delete options_;
  9444. }
  9445. if (options) {
  9446. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9447. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  9448. if (message_arena != submessage_arena) {
  9449. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9450. message_arena, options, submessage_arena);
  9451. }
  9452. _has_bits_[0] |= 0x00000002u;
  9453. } else {
  9454. _has_bits_[0] &= ~0x00000002u;
  9455. }
  9456. options_ = options;
  9457. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  9458. }
  9459. // -------------------------------------------------------------------
  9460. // ServiceDescriptorProto
  9461. // optional string name = 1;
  9462. inline bool ServiceDescriptorProto::_internal_has_name() const {
  9463. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9464. return value;
  9465. }
  9466. inline bool ServiceDescriptorProto::has_name() const {
  9467. return _internal_has_name();
  9468. }
  9469. inline void ServiceDescriptorProto::clear_name() {
  9470. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9471. _has_bits_[0] &= ~0x00000001u;
  9472. }
  9473. inline const std::string& ServiceDescriptorProto::name() const {
  9474. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  9475. return _internal_name();
  9476. }
  9477. inline void ServiceDescriptorProto::set_name(const std::string& value) {
  9478. _internal_set_name(value);
  9479. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  9480. }
  9481. inline std::string* ServiceDescriptorProto::mutable_name() {
  9482. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  9483. return _internal_mutable_name();
  9484. }
  9485. inline const std::string& ServiceDescriptorProto::_internal_name() const {
  9486. return name_.Get();
  9487. }
  9488. inline void ServiceDescriptorProto::_internal_set_name(const std::string& value) {
  9489. _has_bits_[0] |= 0x00000001u;
  9490. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9491. }
  9492. inline void ServiceDescriptorProto::set_name(std::string&& value) {
  9493. _has_bits_[0] |= 0x00000001u;
  9494. name_.Set(
  9495. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9496. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.ServiceDescriptorProto.name)
  9497. }
  9498. inline void ServiceDescriptorProto::set_name(const char* value) {
  9499. GOOGLE_DCHECK(value != nullptr);
  9500. _has_bits_[0] |= 0x00000001u;
  9501. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9502. GetArenaNoVirtual());
  9503. // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
  9504. }
  9505. inline void ServiceDescriptorProto::set_name(const char* value,
  9506. size_t size) {
  9507. _has_bits_[0] |= 0x00000001u;
  9508. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9509. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9510. // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
  9511. }
  9512. inline std::string* ServiceDescriptorProto::_internal_mutable_name() {
  9513. _has_bits_[0] |= 0x00000001u;
  9514. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9515. }
  9516. inline std::string* ServiceDescriptorProto::release_name() {
  9517. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  9518. if (!has_name()) {
  9519. return nullptr;
  9520. }
  9521. _has_bits_[0] &= ~0x00000001u;
  9522. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9523. }
  9524. inline void ServiceDescriptorProto::set_allocated_name(std::string* name) {
  9525. if (name != nullptr) {
  9526. _has_bits_[0] |= 0x00000001u;
  9527. } else {
  9528. _has_bits_[0] &= ~0x00000001u;
  9529. }
  9530. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9531. GetArenaNoVirtual());
  9532. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  9533. }
  9534. inline std::string* ServiceDescriptorProto::unsafe_arena_release_name() {
  9535. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.ServiceDescriptorProto.name)
  9536. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9537. _has_bits_[0] &= ~0x00000001u;
  9538. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9539. GetArenaNoVirtual());
  9540. }
  9541. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_name(
  9542. std::string* name) {
  9543. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9544. if (name != nullptr) {
  9545. _has_bits_[0] |= 0x00000001u;
  9546. } else {
  9547. _has_bits_[0] &= ~0x00000001u;
  9548. }
  9549. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9550. name, GetArenaNoVirtual());
  9551. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  9552. }
  9553. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  9554. inline int ServiceDescriptorProto::_internal_method_size() const {
  9555. return method_.size();
  9556. }
  9557. inline int ServiceDescriptorProto::method_size() const {
  9558. return _internal_method_size();
  9559. }
  9560. inline void ServiceDescriptorProto::clear_method() {
  9561. method_.Clear();
  9562. }
  9563. inline PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  9564. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  9565. return method_.Mutable(index);
  9566. }
  9567. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  9568. ServiceDescriptorProto::mutable_method() {
  9569. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  9570. return &method_;
  9571. }
  9572. inline const PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::_internal_method(int index) const {
  9573. return method_.Get(index);
  9574. }
  9575. inline const PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  9576. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  9577. return _internal_method(index);
  9578. }
  9579. inline PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::_internal_add_method() {
  9580. return method_.Add();
  9581. }
  9582. inline PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  9583. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  9584. return _internal_add_method();
  9585. }
  9586. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  9587. ServiceDescriptorProto::method() const {
  9588. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  9589. return method_;
  9590. }
  9591. // optional .google.protobuf.ServiceOptions options = 3;
  9592. inline bool ServiceDescriptorProto::_internal_has_options() const {
  9593. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9594. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9595. return value;
  9596. }
  9597. inline bool ServiceDescriptorProto::has_options() const {
  9598. return _internal_has_options();
  9599. }
  9600. inline void ServiceDescriptorProto::clear_options() {
  9601. if (options_ != nullptr) options_->Clear();
  9602. _has_bits_[0] &= ~0x00000002u;
  9603. }
  9604. inline const PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::_internal_options() const {
  9605. const PROTOBUF_NAMESPACE_ID::ServiceOptions* p = options_;
  9606. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::ServiceOptions*>(
  9607. &PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_);
  9608. }
  9609. inline const PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::options() const {
  9610. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  9611. return _internal_options();
  9612. }
  9613. inline PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::release_options() {
  9614. auto temp = unsafe_arena_release_options();
  9615. if (GetArenaNoVirtual() != nullptr) {
  9616. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9617. }
  9618. return temp;
  9619. }
  9620. inline PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options() {
  9621. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  9622. _has_bits_[0] &= ~0x00000002u;
  9623. PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = options_;
  9624. options_ = nullptr;
  9625. return temp;
  9626. }
  9627. inline PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::_internal_mutable_options() {
  9628. _has_bits_[0] |= 0x00000002u;
  9629. if (options_ == nullptr) {
  9630. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::ServiceOptions>(GetArenaNoVirtual());
  9631. options_ = p;
  9632. }
  9633. return options_;
  9634. }
  9635. inline PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  9636. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  9637. return _internal_mutable_options();
  9638. }
  9639. inline void ServiceDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  9640. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9641. if (message_arena == nullptr) {
  9642. delete options_;
  9643. }
  9644. if (options) {
  9645. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9646. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  9647. if (message_arena != submessage_arena) {
  9648. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9649. message_arena, options, submessage_arena);
  9650. }
  9651. _has_bits_[0] |= 0x00000002u;
  9652. } else {
  9653. _has_bits_[0] &= ~0x00000002u;
  9654. }
  9655. options_ = options;
  9656. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  9657. }
  9658. // -------------------------------------------------------------------
  9659. // MethodDescriptorProto
  9660. // optional string name = 1;
  9661. inline bool MethodDescriptorProto::_internal_has_name() const {
  9662. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9663. return value;
  9664. }
  9665. inline bool MethodDescriptorProto::has_name() const {
  9666. return _internal_has_name();
  9667. }
  9668. inline void MethodDescriptorProto::clear_name() {
  9669. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9670. _has_bits_[0] &= ~0x00000001u;
  9671. }
  9672. inline const std::string& MethodDescriptorProto::name() const {
  9673. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  9674. return _internal_name();
  9675. }
  9676. inline void MethodDescriptorProto::set_name(const std::string& value) {
  9677. _internal_set_name(value);
  9678. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  9679. }
  9680. inline std::string* MethodDescriptorProto::mutable_name() {
  9681. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  9682. return _internal_mutable_name();
  9683. }
  9684. inline const std::string& MethodDescriptorProto::_internal_name() const {
  9685. return name_.Get();
  9686. }
  9687. inline void MethodDescriptorProto::_internal_set_name(const std::string& value) {
  9688. _has_bits_[0] |= 0x00000001u;
  9689. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9690. }
  9691. inline void MethodDescriptorProto::set_name(std::string&& value) {
  9692. _has_bits_[0] |= 0x00000001u;
  9693. name_.Set(
  9694. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9695. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.name)
  9696. }
  9697. inline void MethodDescriptorProto::set_name(const char* value) {
  9698. GOOGLE_DCHECK(value != nullptr);
  9699. _has_bits_[0] |= 0x00000001u;
  9700. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9701. GetArenaNoVirtual());
  9702. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
  9703. }
  9704. inline void MethodDescriptorProto::set_name(const char* value,
  9705. size_t size) {
  9706. _has_bits_[0] |= 0x00000001u;
  9707. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9708. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9709. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
  9710. }
  9711. inline std::string* MethodDescriptorProto::_internal_mutable_name() {
  9712. _has_bits_[0] |= 0x00000001u;
  9713. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9714. }
  9715. inline std::string* MethodDescriptorProto::release_name() {
  9716. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  9717. if (!has_name()) {
  9718. return nullptr;
  9719. }
  9720. _has_bits_[0] &= ~0x00000001u;
  9721. return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9722. }
  9723. inline void MethodDescriptorProto::set_allocated_name(std::string* name) {
  9724. if (name != nullptr) {
  9725. _has_bits_[0] |= 0x00000001u;
  9726. } else {
  9727. _has_bits_[0] &= ~0x00000001u;
  9728. }
  9729. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9730. GetArenaNoVirtual());
  9731. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  9732. }
  9733. inline std::string* MethodDescriptorProto::unsafe_arena_release_name() {
  9734. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.name)
  9735. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9736. _has_bits_[0] &= ~0x00000001u;
  9737. return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9738. GetArenaNoVirtual());
  9739. }
  9740. inline void MethodDescriptorProto::unsafe_arena_set_allocated_name(
  9741. std::string* name) {
  9742. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9743. if (name != nullptr) {
  9744. _has_bits_[0] |= 0x00000001u;
  9745. } else {
  9746. _has_bits_[0] &= ~0x00000001u;
  9747. }
  9748. name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9749. name, GetArenaNoVirtual());
  9750. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.name)
  9751. }
  9752. // optional string input_type = 2;
  9753. inline bool MethodDescriptorProto::_internal_has_input_type() const {
  9754. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9755. return value;
  9756. }
  9757. inline bool MethodDescriptorProto::has_input_type() const {
  9758. return _internal_has_input_type();
  9759. }
  9760. inline void MethodDescriptorProto::clear_input_type() {
  9761. input_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9762. _has_bits_[0] &= ~0x00000002u;
  9763. }
  9764. inline const std::string& MethodDescriptorProto::input_type() const {
  9765. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  9766. return _internal_input_type();
  9767. }
  9768. inline void MethodDescriptorProto::set_input_type(const std::string& value) {
  9769. _internal_set_input_type(value);
  9770. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  9771. }
  9772. inline std::string* MethodDescriptorProto::mutable_input_type() {
  9773. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  9774. return _internal_mutable_input_type();
  9775. }
  9776. inline const std::string& MethodDescriptorProto::_internal_input_type() const {
  9777. return input_type_.Get();
  9778. }
  9779. inline void MethodDescriptorProto::_internal_set_input_type(const std::string& value) {
  9780. _has_bits_[0] |= 0x00000002u;
  9781. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9782. }
  9783. inline void MethodDescriptorProto::set_input_type(std::string&& value) {
  9784. _has_bits_[0] |= 0x00000002u;
  9785. input_type_.Set(
  9786. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9787. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.input_type)
  9788. }
  9789. inline void MethodDescriptorProto::set_input_type(const char* value) {
  9790. GOOGLE_DCHECK(value != nullptr);
  9791. _has_bits_[0] |= 0x00000002u;
  9792. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9793. GetArenaNoVirtual());
  9794. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
  9795. }
  9796. inline void MethodDescriptorProto::set_input_type(const char* value,
  9797. size_t size) {
  9798. _has_bits_[0] |= 0x00000002u;
  9799. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9800. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9801. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
  9802. }
  9803. inline std::string* MethodDescriptorProto::_internal_mutable_input_type() {
  9804. _has_bits_[0] |= 0x00000002u;
  9805. return input_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9806. }
  9807. inline std::string* MethodDescriptorProto::release_input_type() {
  9808. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  9809. if (!has_input_type()) {
  9810. return nullptr;
  9811. }
  9812. _has_bits_[0] &= ~0x00000002u;
  9813. return input_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9814. }
  9815. inline void MethodDescriptorProto::set_allocated_input_type(std::string* input_type) {
  9816. if (input_type != nullptr) {
  9817. _has_bits_[0] |= 0x00000002u;
  9818. } else {
  9819. _has_bits_[0] &= ~0x00000002u;
  9820. }
  9821. input_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), input_type,
  9822. GetArenaNoVirtual());
  9823. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  9824. }
  9825. inline std::string* MethodDescriptorProto::unsafe_arena_release_input_type() {
  9826. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.input_type)
  9827. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9828. _has_bits_[0] &= ~0x00000002u;
  9829. return input_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9830. GetArenaNoVirtual());
  9831. }
  9832. inline void MethodDescriptorProto::unsafe_arena_set_allocated_input_type(
  9833. std::string* input_type) {
  9834. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9835. if (input_type != nullptr) {
  9836. _has_bits_[0] |= 0x00000002u;
  9837. } else {
  9838. _has_bits_[0] &= ~0x00000002u;
  9839. }
  9840. input_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9841. input_type, GetArenaNoVirtual());
  9842. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  9843. }
  9844. // optional string output_type = 3;
  9845. inline bool MethodDescriptorProto::_internal_has_output_type() const {
  9846. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  9847. return value;
  9848. }
  9849. inline bool MethodDescriptorProto::has_output_type() const {
  9850. return _internal_has_output_type();
  9851. }
  9852. inline void MethodDescriptorProto::clear_output_type() {
  9853. output_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9854. _has_bits_[0] &= ~0x00000004u;
  9855. }
  9856. inline const std::string& MethodDescriptorProto::output_type() const {
  9857. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  9858. return _internal_output_type();
  9859. }
  9860. inline void MethodDescriptorProto::set_output_type(const std::string& value) {
  9861. _internal_set_output_type(value);
  9862. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  9863. }
  9864. inline std::string* MethodDescriptorProto::mutable_output_type() {
  9865. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  9866. return _internal_mutable_output_type();
  9867. }
  9868. inline const std::string& MethodDescriptorProto::_internal_output_type() const {
  9869. return output_type_.Get();
  9870. }
  9871. inline void MethodDescriptorProto::_internal_set_output_type(const std::string& value) {
  9872. _has_bits_[0] |= 0x00000004u;
  9873. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9874. }
  9875. inline void MethodDescriptorProto::set_output_type(std::string&& value) {
  9876. _has_bits_[0] |= 0x00000004u;
  9877. output_type_.Set(
  9878. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9879. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.output_type)
  9880. }
  9881. inline void MethodDescriptorProto::set_output_type(const char* value) {
  9882. GOOGLE_DCHECK(value != nullptr);
  9883. _has_bits_[0] |= 0x00000004u;
  9884. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9885. GetArenaNoVirtual());
  9886. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
  9887. }
  9888. inline void MethodDescriptorProto::set_output_type(const char* value,
  9889. size_t size) {
  9890. _has_bits_[0] |= 0x00000004u;
  9891. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9892. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9893. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
  9894. }
  9895. inline std::string* MethodDescriptorProto::_internal_mutable_output_type() {
  9896. _has_bits_[0] |= 0x00000004u;
  9897. return output_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9898. }
  9899. inline std::string* MethodDescriptorProto::release_output_type() {
  9900. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  9901. if (!has_output_type()) {
  9902. return nullptr;
  9903. }
  9904. _has_bits_[0] &= ~0x00000004u;
  9905. return output_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9906. }
  9907. inline void MethodDescriptorProto::set_allocated_output_type(std::string* output_type) {
  9908. if (output_type != nullptr) {
  9909. _has_bits_[0] |= 0x00000004u;
  9910. } else {
  9911. _has_bits_[0] &= ~0x00000004u;
  9912. }
  9913. output_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), output_type,
  9914. GetArenaNoVirtual());
  9915. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  9916. }
  9917. inline std::string* MethodDescriptorProto::unsafe_arena_release_output_type() {
  9918. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.output_type)
  9919. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9920. _has_bits_[0] &= ~0x00000004u;
  9921. return output_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9922. GetArenaNoVirtual());
  9923. }
  9924. inline void MethodDescriptorProto::unsafe_arena_set_allocated_output_type(
  9925. std::string* output_type) {
  9926. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  9927. if (output_type != nullptr) {
  9928. _has_bits_[0] |= 0x00000004u;
  9929. } else {
  9930. _has_bits_[0] &= ~0x00000004u;
  9931. }
  9932. output_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  9933. output_type, GetArenaNoVirtual());
  9934. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  9935. }
  9936. // optional .google.protobuf.MethodOptions options = 4;
  9937. inline bool MethodDescriptorProto::_internal_has_options() const {
  9938. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  9939. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9940. return value;
  9941. }
  9942. inline bool MethodDescriptorProto::has_options() const {
  9943. return _internal_has_options();
  9944. }
  9945. inline void MethodDescriptorProto::clear_options() {
  9946. if (options_ != nullptr) options_->Clear();
  9947. _has_bits_[0] &= ~0x00000008u;
  9948. }
  9949. inline const PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::_internal_options() const {
  9950. const PROTOBUF_NAMESPACE_ID::MethodOptions* p = options_;
  9951. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::MethodOptions*>(
  9952. &PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_);
  9953. }
  9954. inline const PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::options() const {
  9955. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  9956. return _internal_options();
  9957. }
  9958. inline PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::release_options() {
  9959. auto temp = unsafe_arena_release_options();
  9960. if (GetArenaNoVirtual() != nullptr) {
  9961. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9962. }
  9963. return temp;
  9964. }
  9965. inline PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options() {
  9966. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  9967. _has_bits_[0] &= ~0x00000008u;
  9968. PROTOBUF_NAMESPACE_ID::MethodOptions* temp = options_;
  9969. options_ = nullptr;
  9970. return temp;
  9971. }
  9972. inline PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::_internal_mutable_options() {
  9973. _has_bits_[0] |= 0x00000008u;
  9974. if (options_ == nullptr) {
  9975. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::MethodOptions>(GetArenaNoVirtual());
  9976. options_ = p;
  9977. }
  9978. return options_;
  9979. }
  9980. inline PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::mutable_options() {
  9981. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  9982. return _internal_mutable_options();
  9983. }
  9984. inline void MethodDescriptorProto::set_allocated_options(PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  9985. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  9986. if (message_arena == nullptr) {
  9987. delete options_;
  9988. }
  9989. if (options) {
  9990. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9991. ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options);
  9992. if (message_arena != submessage_arena) {
  9993. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9994. message_arena, options, submessage_arena);
  9995. }
  9996. _has_bits_[0] |= 0x00000008u;
  9997. } else {
  9998. _has_bits_[0] &= ~0x00000008u;
  9999. }
  10000. options_ = options;
  10001. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10002. }
  10003. // optional bool client_streaming = 5 [default = false];
  10004. inline bool MethodDescriptorProto::_internal_has_client_streaming() const {
  10005. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  10006. return value;
  10007. }
  10008. inline bool MethodDescriptorProto::has_client_streaming() const {
  10009. return _internal_has_client_streaming();
  10010. }
  10011. inline void MethodDescriptorProto::clear_client_streaming() {
  10012. client_streaming_ = false;
  10013. _has_bits_[0] &= ~0x00000010u;
  10014. }
  10015. inline bool MethodDescriptorProto::_internal_client_streaming() const {
  10016. return client_streaming_;
  10017. }
  10018. inline bool MethodDescriptorProto::client_streaming() const {
  10019. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  10020. return _internal_client_streaming();
  10021. }
  10022. inline void MethodDescriptorProto::_internal_set_client_streaming(bool value) {
  10023. _has_bits_[0] |= 0x00000010u;
  10024. client_streaming_ = value;
  10025. }
  10026. inline void MethodDescriptorProto::set_client_streaming(bool value) {
  10027. _internal_set_client_streaming(value);
  10028. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  10029. }
  10030. // optional bool server_streaming = 6 [default = false];
  10031. inline bool MethodDescriptorProto::_internal_has_server_streaming() const {
  10032. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  10033. return value;
  10034. }
  10035. inline bool MethodDescriptorProto::has_server_streaming() const {
  10036. return _internal_has_server_streaming();
  10037. }
  10038. inline void MethodDescriptorProto::clear_server_streaming() {
  10039. server_streaming_ = false;
  10040. _has_bits_[0] &= ~0x00000020u;
  10041. }
  10042. inline bool MethodDescriptorProto::_internal_server_streaming() const {
  10043. return server_streaming_;
  10044. }
  10045. inline bool MethodDescriptorProto::server_streaming() const {
  10046. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  10047. return _internal_server_streaming();
  10048. }
  10049. inline void MethodDescriptorProto::_internal_set_server_streaming(bool value) {
  10050. _has_bits_[0] |= 0x00000020u;
  10051. server_streaming_ = value;
  10052. }
  10053. inline void MethodDescriptorProto::set_server_streaming(bool value) {
  10054. _internal_set_server_streaming(value);
  10055. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  10056. }
  10057. // -------------------------------------------------------------------
  10058. // FileOptions
  10059. // optional string java_package = 1;
  10060. inline bool FileOptions::_internal_has_java_package() const {
  10061. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10062. return value;
  10063. }
  10064. inline bool FileOptions::has_java_package() const {
  10065. return _internal_has_java_package();
  10066. }
  10067. inline void FileOptions::clear_java_package() {
  10068. java_package_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10069. _has_bits_[0] &= ~0x00000001u;
  10070. }
  10071. inline const std::string& FileOptions::java_package() const {
  10072. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  10073. return _internal_java_package();
  10074. }
  10075. inline void FileOptions::set_java_package(const std::string& value) {
  10076. _internal_set_java_package(value);
  10077. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  10078. }
  10079. inline std::string* FileOptions::mutable_java_package() {
  10080. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  10081. return _internal_mutable_java_package();
  10082. }
  10083. inline const std::string& FileOptions::_internal_java_package() const {
  10084. return java_package_.Get();
  10085. }
  10086. inline void FileOptions::_internal_set_java_package(const std::string& value) {
  10087. _has_bits_[0] |= 0x00000001u;
  10088. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10089. }
  10090. inline void FileOptions::set_java_package(std::string&& value) {
  10091. _has_bits_[0] |= 0x00000001u;
  10092. java_package_.Set(
  10093. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10094. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_package)
  10095. }
  10096. inline void FileOptions::set_java_package(const char* value) {
  10097. GOOGLE_DCHECK(value != nullptr);
  10098. _has_bits_[0] |= 0x00000001u;
  10099. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10100. GetArenaNoVirtual());
  10101. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
  10102. }
  10103. inline void FileOptions::set_java_package(const char* value,
  10104. size_t size) {
  10105. _has_bits_[0] |= 0x00000001u;
  10106. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10107. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10108. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
  10109. }
  10110. inline std::string* FileOptions::_internal_mutable_java_package() {
  10111. _has_bits_[0] |= 0x00000001u;
  10112. return java_package_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10113. }
  10114. inline std::string* FileOptions::release_java_package() {
  10115. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  10116. if (!has_java_package()) {
  10117. return nullptr;
  10118. }
  10119. _has_bits_[0] &= ~0x00000001u;
  10120. return java_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10121. }
  10122. inline void FileOptions::set_allocated_java_package(std::string* java_package) {
  10123. if (java_package != nullptr) {
  10124. _has_bits_[0] |= 0x00000001u;
  10125. } else {
  10126. _has_bits_[0] &= ~0x00000001u;
  10127. }
  10128. java_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), java_package,
  10129. GetArenaNoVirtual());
  10130. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  10131. }
  10132. inline std::string* FileOptions::unsafe_arena_release_java_package() {
  10133. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.java_package)
  10134. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10135. _has_bits_[0] &= ~0x00000001u;
  10136. return java_package_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10137. GetArenaNoVirtual());
  10138. }
  10139. inline void FileOptions::unsafe_arena_set_allocated_java_package(
  10140. std::string* java_package) {
  10141. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10142. if (java_package != nullptr) {
  10143. _has_bits_[0] |= 0x00000001u;
  10144. } else {
  10145. _has_bits_[0] &= ~0x00000001u;
  10146. }
  10147. java_package_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10148. java_package, GetArenaNoVirtual());
  10149. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.java_package)
  10150. }
  10151. // optional string java_outer_classname = 8;
  10152. inline bool FileOptions::_internal_has_java_outer_classname() const {
  10153. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10154. return value;
  10155. }
  10156. inline bool FileOptions::has_java_outer_classname() const {
  10157. return _internal_has_java_outer_classname();
  10158. }
  10159. inline void FileOptions::clear_java_outer_classname() {
  10160. java_outer_classname_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10161. _has_bits_[0] &= ~0x00000002u;
  10162. }
  10163. inline const std::string& FileOptions::java_outer_classname() const {
  10164. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  10165. return _internal_java_outer_classname();
  10166. }
  10167. inline void FileOptions::set_java_outer_classname(const std::string& value) {
  10168. _internal_set_java_outer_classname(value);
  10169. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  10170. }
  10171. inline std::string* FileOptions::mutable_java_outer_classname() {
  10172. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  10173. return _internal_mutable_java_outer_classname();
  10174. }
  10175. inline const std::string& FileOptions::_internal_java_outer_classname() const {
  10176. return java_outer_classname_.Get();
  10177. }
  10178. inline void FileOptions::_internal_set_java_outer_classname(const std::string& value) {
  10179. _has_bits_[0] |= 0x00000002u;
  10180. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10181. }
  10182. inline void FileOptions::set_java_outer_classname(std::string&& value) {
  10183. _has_bits_[0] |= 0x00000002u;
  10184. java_outer_classname_.Set(
  10185. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10186. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_outer_classname)
  10187. }
  10188. inline void FileOptions::set_java_outer_classname(const char* value) {
  10189. GOOGLE_DCHECK(value != nullptr);
  10190. _has_bits_[0] |= 0x00000002u;
  10191. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10192. GetArenaNoVirtual());
  10193. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
  10194. }
  10195. inline void FileOptions::set_java_outer_classname(const char* value,
  10196. size_t size) {
  10197. _has_bits_[0] |= 0x00000002u;
  10198. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10199. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10200. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
  10201. }
  10202. inline std::string* FileOptions::_internal_mutable_java_outer_classname() {
  10203. _has_bits_[0] |= 0x00000002u;
  10204. return java_outer_classname_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10205. }
  10206. inline std::string* FileOptions::release_java_outer_classname() {
  10207. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  10208. if (!has_java_outer_classname()) {
  10209. return nullptr;
  10210. }
  10211. _has_bits_[0] &= ~0x00000002u;
  10212. return java_outer_classname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10213. }
  10214. inline void FileOptions::set_allocated_java_outer_classname(std::string* java_outer_classname) {
  10215. if (java_outer_classname != nullptr) {
  10216. _has_bits_[0] |= 0x00000002u;
  10217. } else {
  10218. _has_bits_[0] &= ~0x00000002u;
  10219. }
  10220. java_outer_classname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), java_outer_classname,
  10221. GetArenaNoVirtual());
  10222. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  10223. }
  10224. inline std::string* FileOptions::unsafe_arena_release_java_outer_classname() {
  10225. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.java_outer_classname)
  10226. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10227. _has_bits_[0] &= ~0x00000002u;
  10228. return java_outer_classname_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10229. GetArenaNoVirtual());
  10230. }
  10231. inline void FileOptions::unsafe_arena_set_allocated_java_outer_classname(
  10232. std::string* java_outer_classname) {
  10233. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10234. if (java_outer_classname != nullptr) {
  10235. _has_bits_[0] |= 0x00000002u;
  10236. } else {
  10237. _has_bits_[0] &= ~0x00000002u;
  10238. }
  10239. java_outer_classname_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10240. java_outer_classname, GetArenaNoVirtual());
  10241. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  10242. }
  10243. // optional bool java_multiple_files = 10 [default = false];
  10244. inline bool FileOptions::_internal_has_java_multiple_files() const {
  10245. bool value = (_has_bits_[0] & 0x00000400u) != 0;
  10246. return value;
  10247. }
  10248. inline bool FileOptions::has_java_multiple_files() const {
  10249. return _internal_has_java_multiple_files();
  10250. }
  10251. inline void FileOptions::clear_java_multiple_files() {
  10252. java_multiple_files_ = false;
  10253. _has_bits_[0] &= ~0x00000400u;
  10254. }
  10255. inline bool FileOptions::_internal_java_multiple_files() const {
  10256. return java_multiple_files_;
  10257. }
  10258. inline bool FileOptions::java_multiple_files() const {
  10259. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  10260. return _internal_java_multiple_files();
  10261. }
  10262. inline void FileOptions::_internal_set_java_multiple_files(bool value) {
  10263. _has_bits_[0] |= 0x00000400u;
  10264. java_multiple_files_ = value;
  10265. }
  10266. inline void FileOptions::set_java_multiple_files(bool value) {
  10267. _internal_set_java_multiple_files(value);
  10268. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  10269. }
  10270. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  10271. inline bool FileOptions::_internal_has_java_generate_equals_and_hash() const {
  10272. bool value = (_has_bits_[0] & 0x00000800u) != 0;
  10273. return value;
  10274. }
  10275. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  10276. return _internal_has_java_generate_equals_and_hash();
  10277. }
  10278. inline void FileOptions::clear_java_generate_equals_and_hash() {
  10279. java_generate_equals_and_hash_ = false;
  10280. _has_bits_[0] &= ~0x00000800u;
  10281. }
  10282. inline bool FileOptions::_internal_java_generate_equals_and_hash() const {
  10283. return java_generate_equals_and_hash_;
  10284. }
  10285. inline bool FileOptions::java_generate_equals_and_hash() const {
  10286. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  10287. return _internal_java_generate_equals_and_hash();
  10288. }
  10289. inline void FileOptions::_internal_set_java_generate_equals_and_hash(bool value) {
  10290. _has_bits_[0] |= 0x00000800u;
  10291. java_generate_equals_and_hash_ = value;
  10292. }
  10293. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  10294. _internal_set_java_generate_equals_and_hash(value);
  10295. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  10296. }
  10297. // optional bool java_string_check_utf8 = 27 [default = false];
  10298. inline bool FileOptions::_internal_has_java_string_check_utf8() const {
  10299. bool value = (_has_bits_[0] & 0x00001000u) != 0;
  10300. return value;
  10301. }
  10302. inline bool FileOptions::has_java_string_check_utf8() const {
  10303. return _internal_has_java_string_check_utf8();
  10304. }
  10305. inline void FileOptions::clear_java_string_check_utf8() {
  10306. java_string_check_utf8_ = false;
  10307. _has_bits_[0] &= ~0x00001000u;
  10308. }
  10309. inline bool FileOptions::_internal_java_string_check_utf8() const {
  10310. return java_string_check_utf8_;
  10311. }
  10312. inline bool FileOptions::java_string_check_utf8() const {
  10313. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  10314. return _internal_java_string_check_utf8();
  10315. }
  10316. inline void FileOptions::_internal_set_java_string_check_utf8(bool value) {
  10317. _has_bits_[0] |= 0x00001000u;
  10318. java_string_check_utf8_ = value;
  10319. }
  10320. inline void FileOptions::set_java_string_check_utf8(bool value) {
  10321. _internal_set_java_string_check_utf8(value);
  10322. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  10323. }
  10324. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  10325. inline bool FileOptions::_internal_has_optimize_for() const {
  10326. bool value = (_has_bits_[0] & 0x00080000u) != 0;
  10327. return value;
  10328. }
  10329. inline bool FileOptions::has_optimize_for() const {
  10330. return _internal_has_optimize_for();
  10331. }
  10332. inline void FileOptions::clear_optimize_for() {
  10333. optimize_for_ = 1;
  10334. _has_bits_[0] &= ~0x00080000u;
  10335. }
  10336. inline PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::_internal_optimize_for() const {
  10337. return static_cast< PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode >(optimize_for_);
  10338. }
  10339. inline PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  10340. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  10341. return _internal_optimize_for();
  10342. }
  10343. inline void FileOptions::_internal_set_optimize_for(PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  10344. assert(PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(value));
  10345. _has_bits_[0] |= 0x00080000u;
  10346. optimize_for_ = value;
  10347. }
  10348. inline void FileOptions::set_optimize_for(PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  10349. _internal_set_optimize_for(value);
  10350. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  10351. }
  10352. // optional string go_package = 11;
  10353. inline bool FileOptions::_internal_has_go_package() const {
  10354. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  10355. return value;
  10356. }
  10357. inline bool FileOptions::has_go_package() const {
  10358. return _internal_has_go_package();
  10359. }
  10360. inline void FileOptions::clear_go_package() {
  10361. go_package_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10362. _has_bits_[0] &= ~0x00000004u;
  10363. }
  10364. inline const std::string& FileOptions::go_package() const {
  10365. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  10366. return _internal_go_package();
  10367. }
  10368. inline void FileOptions::set_go_package(const std::string& value) {
  10369. _internal_set_go_package(value);
  10370. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  10371. }
  10372. inline std::string* FileOptions::mutable_go_package() {
  10373. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  10374. return _internal_mutable_go_package();
  10375. }
  10376. inline const std::string& FileOptions::_internal_go_package() const {
  10377. return go_package_.Get();
  10378. }
  10379. inline void FileOptions::_internal_set_go_package(const std::string& value) {
  10380. _has_bits_[0] |= 0x00000004u;
  10381. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10382. }
  10383. inline void FileOptions::set_go_package(std::string&& value) {
  10384. _has_bits_[0] |= 0x00000004u;
  10385. go_package_.Set(
  10386. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10387. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.go_package)
  10388. }
  10389. inline void FileOptions::set_go_package(const char* value) {
  10390. GOOGLE_DCHECK(value != nullptr);
  10391. _has_bits_[0] |= 0x00000004u;
  10392. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10393. GetArenaNoVirtual());
  10394. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
  10395. }
  10396. inline void FileOptions::set_go_package(const char* value,
  10397. size_t size) {
  10398. _has_bits_[0] |= 0x00000004u;
  10399. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10400. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10401. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
  10402. }
  10403. inline std::string* FileOptions::_internal_mutable_go_package() {
  10404. _has_bits_[0] |= 0x00000004u;
  10405. return go_package_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10406. }
  10407. inline std::string* FileOptions::release_go_package() {
  10408. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  10409. if (!has_go_package()) {
  10410. return nullptr;
  10411. }
  10412. _has_bits_[0] &= ~0x00000004u;
  10413. return go_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10414. }
  10415. inline void FileOptions::set_allocated_go_package(std::string* go_package) {
  10416. if (go_package != nullptr) {
  10417. _has_bits_[0] |= 0x00000004u;
  10418. } else {
  10419. _has_bits_[0] &= ~0x00000004u;
  10420. }
  10421. go_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), go_package,
  10422. GetArenaNoVirtual());
  10423. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  10424. }
  10425. inline std::string* FileOptions::unsafe_arena_release_go_package() {
  10426. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.go_package)
  10427. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10428. _has_bits_[0] &= ~0x00000004u;
  10429. return go_package_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10430. GetArenaNoVirtual());
  10431. }
  10432. inline void FileOptions::unsafe_arena_set_allocated_go_package(
  10433. std::string* go_package) {
  10434. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10435. if (go_package != nullptr) {
  10436. _has_bits_[0] |= 0x00000004u;
  10437. } else {
  10438. _has_bits_[0] &= ~0x00000004u;
  10439. }
  10440. go_package_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10441. go_package, GetArenaNoVirtual());
  10442. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.go_package)
  10443. }
  10444. // optional bool cc_generic_services = 16 [default = false];
  10445. inline bool FileOptions::_internal_has_cc_generic_services() const {
  10446. bool value = (_has_bits_[0] & 0x00002000u) != 0;
  10447. return value;
  10448. }
  10449. inline bool FileOptions::has_cc_generic_services() const {
  10450. return _internal_has_cc_generic_services();
  10451. }
  10452. inline void FileOptions::clear_cc_generic_services() {
  10453. cc_generic_services_ = false;
  10454. _has_bits_[0] &= ~0x00002000u;
  10455. }
  10456. inline bool FileOptions::_internal_cc_generic_services() const {
  10457. return cc_generic_services_;
  10458. }
  10459. inline bool FileOptions::cc_generic_services() const {
  10460. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  10461. return _internal_cc_generic_services();
  10462. }
  10463. inline void FileOptions::_internal_set_cc_generic_services(bool value) {
  10464. _has_bits_[0] |= 0x00002000u;
  10465. cc_generic_services_ = value;
  10466. }
  10467. inline void FileOptions::set_cc_generic_services(bool value) {
  10468. _internal_set_cc_generic_services(value);
  10469. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  10470. }
  10471. // optional bool java_generic_services = 17 [default = false];
  10472. inline bool FileOptions::_internal_has_java_generic_services() const {
  10473. bool value = (_has_bits_[0] & 0x00004000u) != 0;
  10474. return value;
  10475. }
  10476. inline bool FileOptions::has_java_generic_services() const {
  10477. return _internal_has_java_generic_services();
  10478. }
  10479. inline void FileOptions::clear_java_generic_services() {
  10480. java_generic_services_ = false;
  10481. _has_bits_[0] &= ~0x00004000u;
  10482. }
  10483. inline bool FileOptions::_internal_java_generic_services() const {
  10484. return java_generic_services_;
  10485. }
  10486. inline bool FileOptions::java_generic_services() const {
  10487. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  10488. return _internal_java_generic_services();
  10489. }
  10490. inline void FileOptions::_internal_set_java_generic_services(bool value) {
  10491. _has_bits_[0] |= 0x00004000u;
  10492. java_generic_services_ = value;
  10493. }
  10494. inline void FileOptions::set_java_generic_services(bool value) {
  10495. _internal_set_java_generic_services(value);
  10496. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  10497. }
  10498. // optional bool py_generic_services = 18 [default = false];
  10499. inline bool FileOptions::_internal_has_py_generic_services() const {
  10500. bool value = (_has_bits_[0] & 0x00008000u) != 0;
  10501. return value;
  10502. }
  10503. inline bool FileOptions::has_py_generic_services() const {
  10504. return _internal_has_py_generic_services();
  10505. }
  10506. inline void FileOptions::clear_py_generic_services() {
  10507. py_generic_services_ = false;
  10508. _has_bits_[0] &= ~0x00008000u;
  10509. }
  10510. inline bool FileOptions::_internal_py_generic_services() const {
  10511. return py_generic_services_;
  10512. }
  10513. inline bool FileOptions::py_generic_services() const {
  10514. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  10515. return _internal_py_generic_services();
  10516. }
  10517. inline void FileOptions::_internal_set_py_generic_services(bool value) {
  10518. _has_bits_[0] |= 0x00008000u;
  10519. py_generic_services_ = value;
  10520. }
  10521. inline void FileOptions::set_py_generic_services(bool value) {
  10522. _internal_set_py_generic_services(value);
  10523. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  10524. }
  10525. // optional bool php_generic_services = 42 [default = false];
  10526. inline bool FileOptions::_internal_has_php_generic_services() const {
  10527. bool value = (_has_bits_[0] & 0x00010000u) != 0;
  10528. return value;
  10529. }
  10530. inline bool FileOptions::has_php_generic_services() const {
  10531. return _internal_has_php_generic_services();
  10532. }
  10533. inline void FileOptions::clear_php_generic_services() {
  10534. php_generic_services_ = false;
  10535. _has_bits_[0] &= ~0x00010000u;
  10536. }
  10537. inline bool FileOptions::_internal_php_generic_services() const {
  10538. return php_generic_services_;
  10539. }
  10540. inline bool FileOptions::php_generic_services() const {
  10541. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  10542. return _internal_php_generic_services();
  10543. }
  10544. inline void FileOptions::_internal_set_php_generic_services(bool value) {
  10545. _has_bits_[0] |= 0x00010000u;
  10546. php_generic_services_ = value;
  10547. }
  10548. inline void FileOptions::set_php_generic_services(bool value) {
  10549. _internal_set_php_generic_services(value);
  10550. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  10551. }
  10552. // optional bool deprecated = 23 [default = false];
  10553. inline bool FileOptions::_internal_has_deprecated() const {
  10554. bool value = (_has_bits_[0] & 0x00020000u) != 0;
  10555. return value;
  10556. }
  10557. inline bool FileOptions::has_deprecated() const {
  10558. return _internal_has_deprecated();
  10559. }
  10560. inline void FileOptions::clear_deprecated() {
  10561. deprecated_ = false;
  10562. _has_bits_[0] &= ~0x00020000u;
  10563. }
  10564. inline bool FileOptions::_internal_deprecated() const {
  10565. return deprecated_;
  10566. }
  10567. inline bool FileOptions::deprecated() const {
  10568. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  10569. return _internal_deprecated();
  10570. }
  10571. inline void FileOptions::_internal_set_deprecated(bool value) {
  10572. _has_bits_[0] |= 0x00020000u;
  10573. deprecated_ = value;
  10574. }
  10575. inline void FileOptions::set_deprecated(bool value) {
  10576. _internal_set_deprecated(value);
  10577. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  10578. }
  10579. // optional bool cc_enable_arenas = 31 [default = false];
  10580. inline bool FileOptions::_internal_has_cc_enable_arenas() const {
  10581. bool value = (_has_bits_[0] & 0x00040000u) != 0;
  10582. return value;
  10583. }
  10584. inline bool FileOptions::has_cc_enable_arenas() const {
  10585. return _internal_has_cc_enable_arenas();
  10586. }
  10587. inline void FileOptions::clear_cc_enable_arenas() {
  10588. cc_enable_arenas_ = false;
  10589. _has_bits_[0] &= ~0x00040000u;
  10590. }
  10591. inline bool FileOptions::_internal_cc_enable_arenas() const {
  10592. return cc_enable_arenas_;
  10593. }
  10594. inline bool FileOptions::cc_enable_arenas() const {
  10595. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  10596. return _internal_cc_enable_arenas();
  10597. }
  10598. inline void FileOptions::_internal_set_cc_enable_arenas(bool value) {
  10599. _has_bits_[0] |= 0x00040000u;
  10600. cc_enable_arenas_ = value;
  10601. }
  10602. inline void FileOptions::set_cc_enable_arenas(bool value) {
  10603. _internal_set_cc_enable_arenas(value);
  10604. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  10605. }
  10606. // optional string objc_class_prefix = 36;
  10607. inline bool FileOptions::_internal_has_objc_class_prefix() const {
  10608. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  10609. return value;
  10610. }
  10611. inline bool FileOptions::has_objc_class_prefix() const {
  10612. return _internal_has_objc_class_prefix();
  10613. }
  10614. inline void FileOptions::clear_objc_class_prefix() {
  10615. objc_class_prefix_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10616. _has_bits_[0] &= ~0x00000008u;
  10617. }
  10618. inline const std::string& FileOptions::objc_class_prefix() const {
  10619. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  10620. return _internal_objc_class_prefix();
  10621. }
  10622. inline void FileOptions::set_objc_class_prefix(const std::string& value) {
  10623. _internal_set_objc_class_prefix(value);
  10624. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  10625. }
  10626. inline std::string* FileOptions::mutable_objc_class_prefix() {
  10627. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  10628. return _internal_mutable_objc_class_prefix();
  10629. }
  10630. inline const std::string& FileOptions::_internal_objc_class_prefix() const {
  10631. return objc_class_prefix_.Get();
  10632. }
  10633. inline void FileOptions::_internal_set_objc_class_prefix(const std::string& value) {
  10634. _has_bits_[0] |= 0x00000008u;
  10635. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10636. }
  10637. inline void FileOptions::set_objc_class_prefix(std::string&& value) {
  10638. _has_bits_[0] |= 0x00000008u;
  10639. objc_class_prefix_.Set(
  10640. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10641. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.objc_class_prefix)
  10642. }
  10643. inline void FileOptions::set_objc_class_prefix(const char* value) {
  10644. GOOGLE_DCHECK(value != nullptr);
  10645. _has_bits_[0] |= 0x00000008u;
  10646. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10647. GetArenaNoVirtual());
  10648. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
  10649. }
  10650. inline void FileOptions::set_objc_class_prefix(const char* value,
  10651. size_t size) {
  10652. _has_bits_[0] |= 0x00000008u;
  10653. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10654. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10655. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
  10656. }
  10657. inline std::string* FileOptions::_internal_mutable_objc_class_prefix() {
  10658. _has_bits_[0] |= 0x00000008u;
  10659. return objc_class_prefix_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10660. }
  10661. inline std::string* FileOptions::release_objc_class_prefix() {
  10662. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  10663. if (!has_objc_class_prefix()) {
  10664. return nullptr;
  10665. }
  10666. _has_bits_[0] &= ~0x00000008u;
  10667. return objc_class_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10668. }
  10669. inline void FileOptions::set_allocated_objc_class_prefix(std::string* objc_class_prefix) {
  10670. if (objc_class_prefix != nullptr) {
  10671. _has_bits_[0] |= 0x00000008u;
  10672. } else {
  10673. _has_bits_[0] &= ~0x00000008u;
  10674. }
  10675. objc_class_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), objc_class_prefix,
  10676. GetArenaNoVirtual());
  10677. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  10678. }
  10679. inline std::string* FileOptions::unsafe_arena_release_objc_class_prefix() {
  10680. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.objc_class_prefix)
  10681. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10682. _has_bits_[0] &= ~0x00000008u;
  10683. return objc_class_prefix_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10684. GetArenaNoVirtual());
  10685. }
  10686. inline void FileOptions::unsafe_arena_set_allocated_objc_class_prefix(
  10687. std::string* objc_class_prefix) {
  10688. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10689. if (objc_class_prefix != nullptr) {
  10690. _has_bits_[0] |= 0x00000008u;
  10691. } else {
  10692. _has_bits_[0] &= ~0x00000008u;
  10693. }
  10694. objc_class_prefix_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10695. objc_class_prefix, GetArenaNoVirtual());
  10696. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  10697. }
  10698. // optional string csharp_namespace = 37;
  10699. inline bool FileOptions::_internal_has_csharp_namespace() const {
  10700. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  10701. return value;
  10702. }
  10703. inline bool FileOptions::has_csharp_namespace() const {
  10704. return _internal_has_csharp_namespace();
  10705. }
  10706. inline void FileOptions::clear_csharp_namespace() {
  10707. csharp_namespace_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10708. _has_bits_[0] &= ~0x00000010u;
  10709. }
  10710. inline const std::string& FileOptions::csharp_namespace() const {
  10711. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  10712. return _internal_csharp_namespace();
  10713. }
  10714. inline void FileOptions::set_csharp_namespace(const std::string& value) {
  10715. _internal_set_csharp_namespace(value);
  10716. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  10717. }
  10718. inline std::string* FileOptions::mutable_csharp_namespace() {
  10719. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  10720. return _internal_mutable_csharp_namespace();
  10721. }
  10722. inline const std::string& FileOptions::_internal_csharp_namespace() const {
  10723. return csharp_namespace_.Get();
  10724. }
  10725. inline void FileOptions::_internal_set_csharp_namespace(const std::string& value) {
  10726. _has_bits_[0] |= 0x00000010u;
  10727. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10728. }
  10729. inline void FileOptions::set_csharp_namespace(std::string&& value) {
  10730. _has_bits_[0] |= 0x00000010u;
  10731. csharp_namespace_.Set(
  10732. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10733. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.csharp_namespace)
  10734. }
  10735. inline void FileOptions::set_csharp_namespace(const char* value) {
  10736. GOOGLE_DCHECK(value != nullptr);
  10737. _has_bits_[0] |= 0x00000010u;
  10738. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10739. GetArenaNoVirtual());
  10740. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
  10741. }
  10742. inline void FileOptions::set_csharp_namespace(const char* value,
  10743. size_t size) {
  10744. _has_bits_[0] |= 0x00000010u;
  10745. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10746. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10747. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
  10748. }
  10749. inline std::string* FileOptions::_internal_mutable_csharp_namespace() {
  10750. _has_bits_[0] |= 0x00000010u;
  10751. return csharp_namespace_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10752. }
  10753. inline std::string* FileOptions::release_csharp_namespace() {
  10754. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  10755. if (!has_csharp_namespace()) {
  10756. return nullptr;
  10757. }
  10758. _has_bits_[0] &= ~0x00000010u;
  10759. return csharp_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10760. }
  10761. inline void FileOptions::set_allocated_csharp_namespace(std::string* csharp_namespace) {
  10762. if (csharp_namespace != nullptr) {
  10763. _has_bits_[0] |= 0x00000010u;
  10764. } else {
  10765. _has_bits_[0] &= ~0x00000010u;
  10766. }
  10767. csharp_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), csharp_namespace,
  10768. GetArenaNoVirtual());
  10769. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  10770. }
  10771. inline std::string* FileOptions::unsafe_arena_release_csharp_namespace() {
  10772. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.csharp_namespace)
  10773. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10774. _has_bits_[0] &= ~0x00000010u;
  10775. return csharp_namespace_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10776. GetArenaNoVirtual());
  10777. }
  10778. inline void FileOptions::unsafe_arena_set_allocated_csharp_namespace(
  10779. std::string* csharp_namespace) {
  10780. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10781. if (csharp_namespace != nullptr) {
  10782. _has_bits_[0] |= 0x00000010u;
  10783. } else {
  10784. _has_bits_[0] &= ~0x00000010u;
  10785. }
  10786. csharp_namespace_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10787. csharp_namespace, GetArenaNoVirtual());
  10788. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  10789. }
  10790. // optional string swift_prefix = 39;
  10791. inline bool FileOptions::_internal_has_swift_prefix() const {
  10792. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  10793. return value;
  10794. }
  10795. inline bool FileOptions::has_swift_prefix() const {
  10796. return _internal_has_swift_prefix();
  10797. }
  10798. inline void FileOptions::clear_swift_prefix() {
  10799. swift_prefix_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10800. _has_bits_[0] &= ~0x00000020u;
  10801. }
  10802. inline const std::string& FileOptions::swift_prefix() const {
  10803. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  10804. return _internal_swift_prefix();
  10805. }
  10806. inline void FileOptions::set_swift_prefix(const std::string& value) {
  10807. _internal_set_swift_prefix(value);
  10808. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  10809. }
  10810. inline std::string* FileOptions::mutable_swift_prefix() {
  10811. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  10812. return _internal_mutable_swift_prefix();
  10813. }
  10814. inline const std::string& FileOptions::_internal_swift_prefix() const {
  10815. return swift_prefix_.Get();
  10816. }
  10817. inline void FileOptions::_internal_set_swift_prefix(const std::string& value) {
  10818. _has_bits_[0] |= 0x00000020u;
  10819. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10820. }
  10821. inline void FileOptions::set_swift_prefix(std::string&& value) {
  10822. _has_bits_[0] |= 0x00000020u;
  10823. swift_prefix_.Set(
  10824. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10825. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.swift_prefix)
  10826. }
  10827. inline void FileOptions::set_swift_prefix(const char* value) {
  10828. GOOGLE_DCHECK(value != nullptr);
  10829. _has_bits_[0] |= 0x00000020u;
  10830. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10831. GetArenaNoVirtual());
  10832. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_prefix)
  10833. }
  10834. inline void FileOptions::set_swift_prefix(const char* value,
  10835. size_t size) {
  10836. _has_bits_[0] |= 0x00000020u;
  10837. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10838. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10839. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swift_prefix)
  10840. }
  10841. inline std::string* FileOptions::_internal_mutable_swift_prefix() {
  10842. _has_bits_[0] |= 0x00000020u;
  10843. return swift_prefix_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10844. }
  10845. inline std::string* FileOptions::release_swift_prefix() {
  10846. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  10847. if (!has_swift_prefix()) {
  10848. return nullptr;
  10849. }
  10850. _has_bits_[0] &= ~0x00000020u;
  10851. return swift_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10852. }
  10853. inline void FileOptions::set_allocated_swift_prefix(std::string* swift_prefix) {
  10854. if (swift_prefix != nullptr) {
  10855. _has_bits_[0] |= 0x00000020u;
  10856. } else {
  10857. _has_bits_[0] &= ~0x00000020u;
  10858. }
  10859. swift_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), swift_prefix,
  10860. GetArenaNoVirtual());
  10861. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  10862. }
  10863. inline std::string* FileOptions::unsafe_arena_release_swift_prefix() {
  10864. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.swift_prefix)
  10865. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10866. _has_bits_[0] &= ~0x00000020u;
  10867. return swift_prefix_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10868. GetArenaNoVirtual());
  10869. }
  10870. inline void FileOptions::unsafe_arena_set_allocated_swift_prefix(
  10871. std::string* swift_prefix) {
  10872. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10873. if (swift_prefix != nullptr) {
  10874. _has_bits_[0] |= 0x00000020u;
  10875. } else {
  10876. _has_bits_[0] &= ~0x00000020u;
  10877. }
  10878. swift_prefix_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10879. swift_prefix, GetArenaNoVirtual());
  10880. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.swift_prefix)
  10881. }
  10882. // optional string php_class_prefix = 40;
  10883. inline bool FileOptions::_internal_has_php_class_prefix() const {
  10884. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  10885. return value;
  10886. }
  10887. inline bool FileOptions::has_php_class_prefix() const {
  10888. return _internal_has_php_class_prefix();
  10889. }
  10890. inline void FileOptions::clear_php_class_prefix() {
  10891. php_class_prefix_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10892. _has_bits_[0] &= ~0x00000040u;
  10893. }
  10894. inline const std::string& FileOptions::php_class_prefix() const {
  10895. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  10896. return _internal_php_class_prefix();
  10897. }
  10898. inline void FileOptions::set_php_class_prefix(const std::string& value) {
  10899. _internal_set_php_class_prefix(value);
  10900. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  10901. }
  10902. inline std::string* FileOptions::mutable_php_class_prefix() {
  10903. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  10904. return _internal_mutable_php_class_prefix();
  10905. }
  10906. inline const std::string& FileOptions::_internal_php_class_prefix() const {
  10907. return php_class_prefix_.Get();
  10908. }
  10909. inline void FileOptions::_internal_set_php_class_prefix(const std::string& value) {
  10910. _has_bits_[0] |= 0x00000040u;
  10911. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10912. }
  10913. inline void FileOptions::set_php_class_prefix(std::string&& value) {
  10914. _has_bits_[0] |= 0x00000040u;
  10915. php_class_prefix_.Set(
  10916. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10917. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_class_prefix)
  10918. }
  10919. inline void FileOptions::set_php_class_prefix(const char* value) {
  10920. GOOGLE_DCHECK(value != nullptr);
  10921. _has_bits_[0] |= 0x00000040u;
  10922. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10923. GetArenaNoVirtual());
  10924. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_class_prefix)
  10925. }
  10926. inline void FileOptions::set_php_class_prefix(const char* value,
  10927. size_t size) {
  10928. _has_bits_[0] |= 0x00000040u;
  10929. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10930. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10931. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_class_prefix)
  10932. }
  10933. inline std::string* FileOptions::_internal_mutable_php_class_prefix() {
  10934. _has_bits_[0] |= 0x00000040u;
  10935. return php_class_prefix_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10936. }
  10937. inline std::string* FileOptions::release_php_class_prefix() {
  10938. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  10939. if (!has_php_class_prefix()) {
  10940. return nullptr;
  10941. }
  10942. _has_bits_[0] &= ~0x00000040u;
  10943. return php_class_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10944. }
  10945. inline void FileOptions::set_allocated_php_class_prefix(std::string* php_class_prefix) {
  10946. if (php_class_prefix != nullptr) {
  10947. _has_bits_[0] |= 0x00000040u;
  10948. } else {
  10949. _has_bits_[0] &= ~0x00000040u;
  10950. }
  10951. php_class_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_class_prefix,
  10952. GetArenaNoVirtual());
  10953. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  10954. }
  10955. inline std::string* FileOptions::unsafe_arena_release_php_class_prefix() {
  10956. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_class_prefix)
  10957. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10958. _has_bits_[0] &= ~0x00000040u;
  10959. return php_class_prefix_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10960. GetArenaNoVirtual());
  10961. }
  10962. inline void FileOptions::unsafe_arena_set_allocated_php_class_prefix(
  10963. std::string* php_class_prefix) {
  10964. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  10965. if (php_class_prefix != nullptr) {
  10966. _has_bits_[0] |= 0x00000040u;
  10967. } else {
  10968. _has_bits_[0] &= ~0x00000040u;
  10969. }
  10970. php_class_prefix_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  10971. php_class_prefix, GetArenaNoVirtual());
  10972. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  10973. }
  10974. // optional string php_namespace = 41;
  10975. inline bool FileOptions::_internal_has_php_namespace() const {
  10976. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  10977. return value;
  10978. }
  10979. inline bool FileOptions::has_php_namespace() const {
  10980. return _internal_has_php_namespace();
  10981. }
  10982. inline void FileOptions::clear_php_namespace() {
  10983. php_namespace_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10984. _has_bits_[0] &= ~0x00000080u;
  10985. }
  10986. inline const std::string& FileOptions::php_namespace() const {
  10987. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  10988. return _internal_php_namespace();
  10989. }
  10990. inline void FileOptions::set_php_namespace(const std::string& value) {
  10991. _internal_set_php_namespace(value);
  10992. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  10993. }
  10994. inline std::string* FileOptions::mutable_php_namespace() {
  10995. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  10996. return _internal_mutable_php_namespace();
  10997. }
  10998. inline const std::string& FileOptions::_internal_php_namespace() const {
  10999. return php_namespace_.Get();
  11000. }
  11001. inline void FileOptions::_internal_set_php_namespace(const std::string& value) {
  11002. _has_bits_[0] |= 0x00000080u;
  11003. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  11004. }
  11005. inline void FileOptions::set_php_namespace(std::string&& value) {
  11006. _has_bits_[0] |= 0x00000080u;
  11007. php_namespace_.Set(
  11008. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  11009. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_namespace)
  11010. }
  11011. inline void FileOptions::set_php_namespace(const char* value) {
  11012. GOOGLE_DCHECK(value != nullptr);
  11013. _has_bits_[0] |= 0x00000080u;
  11014. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  11015. GetArenaNoVirtual());
  11016. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_namespace)
  11017. }
  11018. inline void FileOptions::set_php_namespace(const char* value,
  11019. size_t size) {
  11020. _has_bits_[0] |= 0x00000080u;
  11021. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  11022. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  11023. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_namespace)
  11024. }
  11025. inline std::string* FileOptions::_internal_mutable_php_namespace() {
  11026. _has_bits_[0] |= 0x00000080u;
  11027. return php_namespace_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11028. }
  11029. inline std::string* FileOptions::release_php_namespace() {
  11030. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  11031. if (!has_php_namespace()) {
  11032. return nullptr;
  11033. }
  11034. _has_bits_[0] &= ~0x00000080u;
  11035. return php_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11036. }
  11037. inline void FileOptions::set_allocated_php_namespace(std::string* php_namespace) {
  11038. if (php_namespace != nullptr) {
  11039. _has_bits_[0] |= 0x00000080u;
  11040. } else {
  11041. _has_bits_[0] &= ~0x00000080u;
  11042. }
  11043. php_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_namespace,
  11044. GetArenaNoVirtual());
  11045. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  11046. }
  11047. inline std::string* FileOptions::unsafe_arena_release_php_namespace() {
  11048. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_namespace)
  11049. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  11050. _has_bits_[0] &= ~0x00000080u;
  11051. return php_namespace_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11052. GetArenaNoVirtual());
  11053. }
  11054. inline void FileOptions::unsafe_arena_set_allocated_php_namespace(
  11055. std::string* php_namespace) {
  11056. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  11057. if (php_namespace != nullptr) {
  11058. _has_bits_[0] |= 0x00000080u;
  11059. } else {
  11060. _has_bits_[0] &= ~0x00000080u;
  11061. }
  11062. php_namespace_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11063. php_namespace, GetArenaNoVirtual());
  11064. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_namespace)
  11065. }
  11066. // optional string php_metadata_namespace = 44;
  11067. inline bool FileOptions::_internal_has_php_metadata_namespace() const {
  11068. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  11069. return value;
  11070. }
  11071. inline bool FileOptions::has_php_metadata_namespace() const {
  11072. return _internal_has_php_metadata_namespace();
  11073. }
  11074. inline void FileOptions::clear_php_metadata_namespace() {
  11075. php_metadata_namespace_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11076. _has_bits_[0] &= ~0x00000100u;
  11077. }
  11078. inline const std::string& FileOptions::php_metadata_namespace() const {
  11079. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  11080. return _internal_php_metadata_namespace();
  11081. }
  11082. inline void FileOptions::set_php_metadata_namespace(const std::string& value) {
  11083. _internal_set_php_metadata_namespace(value);
  11084. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  11085. }
  11086. inline std::string* FileOptions::mutable_php_metadata_namespace() {
  11087. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  11088. return _internal_mutable_php_metadata_namespace();
  11089. }
  11090. inline const std::string& FileOptions::_internal_php_metadata_namespace() const {
  11091. return php_metadata_namespace_.Get();
  11092. }
  11093. inline void FileOptions::_internal_set_php_metadata_namespace(const std::string& value) {
  11094. _has_bits_[0] |= 0x00000100u;
  11095. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  11096. }
  11097. inline void FileOptions::set_php_metadata_namespace(std::string&& value) {
  11098. _has_bits_[0] |= 0x00000100u;
  11099. php_metadata_namespace_.Set(
  11100. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  11101. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_metadata_namespace)
  11102. }
  11103. inline void FileOptions::set_php_metadata_namespace(const char* value) {
  11104. GOOGLE_DCHECK(value != nullptr);
  11105. _has_bits_[0] |= 0x00000100u;
  11106. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  11107. GetArenaNoVirtual());
  11108. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_metadata_namespace)
  11109. }
  11110. inline void FileOptions::set_php_metadata_namespace(const char* value,
  11111. size_t size) {
  11112. _has_bits_[0] |= 0x00000100u;
  11113. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  11114. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  11115. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_metadata_namespace)
  11116. }
  11117. inline std::string* FileOptions::_internal_mutable_php_metadata_namespace() {
  11118. _has_bits_[0] |= 0x00000100u;
  11119. return php_metadata_namespace_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11120. }
  11121. inline std::string* FileOptions::release_php_metadata_namespace() {
  11122. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  11123. if (!has_php_metadata_namespace()) {
  11124. return nullptr;
  11125. }
  11126. _has_bits_[0] &= ~0x00000100u;
  11127. return php_metadata_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11128. }
  11129. inline void FileOptions::set_allocated_php_metadata_namespace(std::string* php_metadata_namespace) {
  11130. if (php_metadata_namespace != nullptr) {
  11131. _has_bits_[0] |= 0x00000100u;
  11132. } else {
  11133. _has_bits_[0] &= ~0x00000100u;
  11134. }
  11135. php_metadata_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_metadata_namespace,
  11136. GetArenaNoVirtual());
  11137. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  11138. }
  11139. inline std::string* FileOptions::unsafe_arena_release_php_metadata_namespace() {
  11140. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_metadata_namespace)
  11141. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  11142. _has_bits_[0] &= ~0x00000100u;
  11143. return php_metadata_namespace_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11144. GetArenaNoVirtual());
  11145. }
  11146. inline void FileOptions::unsafe_arena_set_allocated_php_metadata_namespace(
  11147. std::string* php_metadata_namespace) {
  11148. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  11149. if (php_metadata_namespace != nullptr) {
  11150. _has_bits_[0] |= 0x00000100u;
  11151. } else {
  11152. _has_bits_[0] &= ~0x00000100u;
  11153. }
  11154. php_metadata_namespace_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11155. php_metadata_namespace, GetArenaNoVirtual());
  11156. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  11157. }
  11158. // optional string ruby_package = 45;
  11159. inline bool FileOptions::_internal_has_ruby_package() const {
  11160. bool value = (_has_bits_[0] & 0x00000200u) != 0;
  11161. return value;
  11162. }
  11163. inline bool FileOptions::has_ruby_package() const {
  11164. return _internal_has_ruby_package();
  11165. }
  11166. inline void FileOptions::clear_ruby_package() {
  11167. ruby_package_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11168. _has_bits_[0] &= ~0x00000200u;
  11169. }
  11170. inline const std::string& FileOptions::ruby_package() const {
  11171. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  11172. return _internal_ruby_package();
  11173. }
  11174. inline void FileOptions::set_ruby_package(const std::string& value) {
  11175. _internal_set_ruby_package(value);
  11176. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  11177. }
  11178. inline std::string* FileOptions::mutable_ruby_package() {
  11179. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  11180. return _internal_mutable_ruby_package();
  11181. }
  11182. inline const std::string& FileOptions::_internal_ruby_package() const {
  11183. return ruby_package_.Get();
  11184. }
  11185. inline void FileOptions::_internal_set_ruby_package(const std::string& value) {
  11186. _has_bits_[0] |= 0x00000200u;
  11187. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  11188. }
  11189. inline void FileOptions::set_ruby_package(std::string&& value) {
  11190. _has_bits_[0] |= 0x00000200u;
  11191. ruby_package_.Set(
  11192. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  11193. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.ruby_package)
  11194. }
  11195. inline void FileOptions::set_ruby_package(const char* value) {
  11196. GOOGLE_DCHECK(value != nullptr);
  11197. _has_bits_[0] |= 0x00000200u;
  11198. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  11199. GetArenaNoVirtual());
  11200. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.ruby_package)
  11201. }
  11202. inline void FileOptions::set_ruby_package(const char* value,
  11203. size_t size) {
  11204. _has_bits_[0] |= 0x00000200u;
  11205. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  11206. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  11207. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.ruby_package)
  11208. }
  11209. inline std::string* FileOptions::_internal_mutable_ruby_package() {
  11210. _has_bits_[0] |= 0x00000200u;
  11211. return ruby_package_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11212. }
  11213. inline std::string* FileOptions::release_ruby_package() {
  11214. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  11215. if (!has_ruby_package()) {
  11216. return nullptr;
  11217. }
  11218. _has_bits_[0] &= ~0x00000200u;
  11219. return ruby_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  11220. }
  11221. inline void FileOptions::set_allocated_ruby_package(std::string* ruby_package) {
  11222. if (ruby_package != nullptr) {
  11223. _has_bits_[0] |= 0x00000200u;
  11224. } else {
  11225. _has_bits_[0] &= ~0x00000200u;
  11226. }
  11227. ruby_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ruby_package,
  11228. GetArenaNoVirtual());
  11229. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  11230. }
  11231. inline std::string* FileOptions::unsafe_arena_release_ruby_package() {
  11232. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.ruby_package)
  11233. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  11234. _has_bits_[0] &= ~0x00000200u;
  11235. return ruby_package_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11236. GetArenaNoVirtual());
  11237. }
  11238. inline void FileOptions::unsafe_arena_set_allocated_ruby_package(
  11239. std::string* ruby_package) {
  11240. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  11241. if (ruby_package != nullptr) {
  11242. _has_bits_[0] |= 0x00000200u;
  11243. } else {
  11244. _has_bits_[0] &= ~0x00000200u;
  11245. }
  11246. ruby_package_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  11247. ruby_package, GetArenaNoVirtual());
  11248. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.ruby_package)
  11249. }
  11250. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11251. inline int FileOptions::_internal_uninterpreted_option_size() const {
  11252. return uninterpreted_option_.size();
  11253. }
  11254. inline int FileOptions::uninterpreted_option_size() const {
  11255. return _internal_uninterpreted_option_size();
  11256. }
  11257. inline void FileOptions::clear_uninterpreted_option() {
  11258. uninterpreted_option_.Clear();
  11259. }
  11260. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  11261. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  11262. return uninterpreted_option_.Mutable(index);
  11263. }
  11264. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11265. FileOptions::mutable_uninterpreted_option() {
  11266. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  11267. return &uninterpreted_option_;
  11268. }
  11269. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::_internal_uninterpreted_option(int index) const {
  11270. return uninterpreted_option_.Get(index);
  11271. }
  11272. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  11273. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  11274. return _internal_uninterpreted_option(index);
  11275. }
  11276. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::_internal_add_uninterpreted_option() {
  11277. return uninterpreted_option_.Add();
  11278. }
  11279. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  11280. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  11281. return _internal_add_uninterpreted_option();
  11282. }
  11283. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11284. FileOptions::uninterpreted_option() const {
  11285. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  11286. return uninterpreted_option_;
  11287. }
  11288. // -------------------------------------------------------------------
  11289. // MessageOptions
  11290. // optional bool message_set_wire_format = 1 [default = false];
  11291. inline bool MessageOptions::_internal_has_message_set_wire_format() const {
  11292. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11293. return value;
  11294. }
  11295. inline bool MessageOptions::has_message_set_wire_format() const {
  11296. return _internal_has_message_set_wire_format();
  11297. }
  11298. inline void MessageOptions::clear_message_set_wire_format() {
  11299. message_set_wire_format_ = false;
  11300. _has_bits_[0] &= ~0x00000001u;
  11301. }
  11302. inline bool MessageOptions::_internal_message_set_wire_format() const {
  11303. return message_set_wire_format_;
  11304. }
  11305. inline bool MessageOptions::message_set_wire_format() const {
  11306. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  11307. return _internal_message_set_wire_format();
  11308. }
  11309. inline void MessageOptions::_internal_set_message_set_wire_format(bool value) {
  11310. _has_bits_[0] |= 0x00000001u;
  11311. message_set_wire_format_ = value;
  11312. }
  11313. inline void MessageOptions::set_message_set_wire_format(bool value) {
  11314. _internal_set_message_set_wire_format(value);
  11315. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  11316. }
  11317. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  11318. inline bool MessageOptions::_internal_has_no_standard_descriptor_accessor() const {
  11319. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  11320. return value;
  11321. }
  11322. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  11323. return _internal_has_no_standard_descriptor_accessor();
  11324. }
  11325. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  11326. no_standard_descriptor_accessor_ = false;
  11327. _has_bits_[0] &= ~0x00000002u;
  11328. }
  11329. inline bool MessageOptions::_internal_no_standard_descriptor_accessor() const {
  11330. return no_standard_descriptor_accessor_;
  11331. }
  11332. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  11333. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11334. return _internal_no_standard_descriptor_accessor();
  11335. }
  11336. inline void MessageOptions::_internal_set_no_standard_descriptor_accessor(bool value) {
  11337. _has_bits_[0] |= 0x00000002u;
  11338. no_standard_descriptor_accessor_ = value;
  11339. }
  11340. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  11341. _internal_set_no_standard_descriptor_accessor(value);
  11342. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11343. }
  11344. // optional bool deprecated = 3 [default = false];
  11345. inline bool MessageOptions::_internal_has_deprecated() const {
  11346. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  11347. return value;
  11348. }
  11349. inline bool MessageOptions::has_deprecated() const {
  11350. return _internal_has_deprecated();
  11351. }
  11352. inline void MessageOptions::clear_deprecated() {
  11353. deprecated_ = false;
  11354. _has_bits_[0] &= ~0x00000004u;
  11355. }
  11356. inline bool MessageOptions::_internal_deprecated() const {
  11357. return deprecated_;
  11358. }
  11359. inline bool MessageOptions::deprecated() const {
  11360. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  11361. return _internal_deprecated();
  11362. }
  11363. inline void MessageOptions::_internal_set_deprecated(bool value) {
  11364. _has_bits_[0] |= 0x00000004u;
  11365. deprecated_ = value;
  11366. }
  11367. inline void MessageOptions::set_deprecated(bool value) {
  11368. _internal_set_deprecated(value);
  11369. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  11370. }
  11371. // optional bool map_entry = 7;
  11372. inline bool MessageOptions::_internal_has_map_entry() const {
  11373. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  11374. return value;
  11375. }
  11376. inline bool MessageOptions::has_map_entry() const {
  11377. return _internal_has_map_entry();
  11378. }
  11379. inline void MessageOptions::clear_map_entry() {
  11380. map_entry_ = false;
  11381. _has_bits_[0] &= ~0x00000008u;
  11382. }
  11383. inline bool MessageOptions::_internal_map_entry() const {
  11384. return map_entry_;
  11385. }
  11386. inline bool MessageOptions::map_entry() const {
  11387. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  11388. return _internal_map_entry();
  11389. }
  11390. inline void MessageOptions::_internal_set_map_entry(bool value) {
  11391. _has_bits_[0] |= 0x00000008u;
  11392. map_entry_ = value;
  11393. }
  11394. inline void MessageOptions::set_map_entry(bool value) {
  11395. _internal_set_map_entry(value);
  11396. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  11397. }
  11398. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11399. inline int MessageOptions::_internal_uninterpreted_option_size() const {
  11400. return uninterpreted_option_.size();
  11401. }
  11402. inline int MessageOptions::uninterpreted_option_size() const {
  11403. return _internal_uninterpreted_option_size();
  11404. }
  11405. inline void MessageOptions::clear_uninterpreted_option() {
  11406. uninterpreted_option_.Clear();
  11407. }
  11408. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  11409. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  11410. return uninterpreted_option_.Mutable(index);
  11411. }
  11412. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11413. MessageOptions::mutable_uninterpreted_option() {
  11414. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  11415. return &uninterpreted_option_;
  11416. }
  11417. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::_internal_uninterpreted_option(int index) const {
  11418. return uninterpreted_option_.Get(index);
  11419. }
  11420. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  11421. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  11422. return _internal_uninterpreted_option(index);
  11423. }
  11424. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::_internal_add_uninterpreted_option() {
  11425. return uninterpreted_option_.Add();
  11426. }
  11427. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  11428. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  11429. return _internal_add_uninterpreted_option();
  11430. }
  11431. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11432. MessageOptions::uninterpreted_option() const {
  11433. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  11434. return uninterpreted_option_;
  11435. }
  11436. // -------------------------------------------------------------------
  11437. // FieldOptions
  11438. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  11439. inline bool FieldOptions::_internal_has_ctype() const {
  11440. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11441. return value;
  11442. }
  11443. inline bool FieldOptions::has_ctype() const {
  11444. return _internal_has_ctype();
  11445. }
  11446. inline void FieldOptions::clear_ctype() {
  11447. ctype_ = 0;
  11448. _has_bits_[0] &= ~0x00000001u;
  11449. }
  11450. inline PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::_internal_ctype() const {
  11451. return static_cast< PROTOBUF_NAMESPACE_ID::FieldOptions_CType >(ctype_);
  11452. }
  11453. inline PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::ctype() const {
  11454. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  11455. return _internal_ctype();
  11456. }
  11457. inline void FieldOptions::_internal_set_ctype(PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  11458. assert(PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(value));
  11459. _has_bits_[0] |= 0x00000001u;
  11460. ctype_ = value;
  11461. }
  11462. inline void FieldOptions::set_ctype(PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  11463. _internal_set_ctype(value);
  11464. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  11465. }
  11466. // optional bool packed = 2;
  11467. inline bool FieldOptions::_internal_has_packed() const {
  11468. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  11469. return value;
  11470. }
  11471. inline bool FieldOptions::has_packed() const {
  11472. return _internal_has_packed();
  11473. }
  11474. inline void FieldOptions::clear_packed() {
  11475. packed_ = false;
  11476. _has_bits_[0] &= ~0x00000002u;
  11477. }
  11478. inline bool FieldOptions::_internal_packed() const {
  11479. return packed_;
  11480. }
  11481. inline bool FieldOptions::packed() const {
  11482. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  11483. return _internal_packed();
  11484. }
  11485. inline void FieldOptions::_internal_set_packed(bool value) {
  11486. _has_bits_[0] |= 0x00000002u;
  11487. packed_ = value;
  11488. }
  11489. inline void FieldOptions::set_packed(bool value) {
  11490. _internal_set_packed(value);
  11491. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  11492. }
  11493. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  11494. inline bool FieldOptions::_internal_has_jstype() const {
  11495. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  11496. return value;
  11497. }
  11498. inline bool FieldOptions::has_jstype() const {
  11499. return _internal_has_jstype();
  11500. }
  11501. inline void FieldOptions::clear_jstype() {
  11502. jstype_ = 0;
  11503. _has_bits_[0] &= ~0x00000020u;
  11504. }
  11505. inline PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::_internal_jstype() const {
  11506. return static_cast< PROTOBUF_NAMESPACE_ID::FieldOptions_JSType >(jstype_);
  11507. }
  11508. inline PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::jstype() const {
  11509. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  11510. return _internal_jstype();
  11511. }
  11512. inline void FieldOptions::_internal_set_jstype(PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  11513. assert(PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(value));
  11514. _has_bits_[0] |= 0x00000020u;
  11515. jstype_ = value;
  11516. }
  11517. inline void FieldOptions::set_jstype(PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  11518. _internal_set_jstype(value);
  11519. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  11520. }
  11521. // optional bool lazy = 5 [default = false];
  11522. inline bool FieldOptions::_internal_has_lazy() const {
  11523. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  11524. return value;
  11525. }
  11526. inline bool FieldOptions::has_lazy() const {
  11527. return _internal_has_lazy();
  11528. }
  11529. inline void FieldOptions::clear_lazy() {
  11530. lazy_ = false;
  11531. _has_bits_[0] &= ~0x00000004u;
  11532. }
  11533. inline bool FieldOptions::_internal_lazy() const {
  11534. return lazy_;
  11535. }
  11536. inline bool FieldOptions::lazy() const {
  11537. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  11538. return _internal_lazy();
  11539. }
  11540. inline void FieldOptions::_internal_set_lazy(bool value) {
  11541. _has_bits_[0] |= 0x00000004u;
  11542. lazy_ = value;
  11543. }
  11544. inline void FieldOptions::set_lazy(bool value) {
  11545. _internal_set_lazy(value);
  11546. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  11547. }
  11548. // optional bool deprecated = 3 [default = false];
  11549. inline bool FieldOptions::_internal_has_deprecated() const {
  11550. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  11551. return value;
  11552. }
  11553. inline bool FieldOptions::has_deprecated() const {
  11554. return _internal_has_deprecated();
  11555. }
  11556. inline void FieldOptions::clear_deprecated() {
  11557. deprecated_ = false;
  11558. _has_bits_[0] &= ~0x00000008u;
  11559. }
  11560. inline bool FieldOptions::_internal_deprecated() const {
  11561. return deprecated_;
  11562. }
  11563. inline bool FieldOptions::deprecated() const {
  11564. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  11565. return _internal_deprecated();
  11566. }
  11567. inline void FieldOptions::_internal_set_deprecated(bool value) {
  11568. _has_bits_[0] |= 0x00000008u;
  11569. deprecated_ = value;
  11570. }
  11571. inline void FieldOptions::set_deprecated(bool value) {
  11572. _internal_set_deprecated(value);
  11573. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  11574. }
  11575. // optional bool weak = 10 [default = false];
  11576. inline bool FieldOptions::_internal_has_weak() const {
  11577. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  11578. return value;
  11579. }
  11580. inline bool FieldOptions::has_weak() const {
  11581. return _internal_has_weak();
  11582. }
  11583. inline void FieldOptions::clear_weak() {
  11584. weak_ = false;
  11585. _has_bits_[0] &= ~0x00000010u;
  11586. }
  11587. inline bool FieldOptions::_internal_weak() const {
  11588. return weak_;
  11589. }
  11590. inline bool FieldOptions::weak() const {
  11591. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  11592. return _internal_weak();
  11593. }
  11594. inline void FieldOptions::_internal_set_weak(bool value) {
  11595. _has_bits_[0] |= 0x00000010u;
  11596. weak_ = value;
  11597. }
  11598. inline void FieldOptions::set_weak(bool value) {
  11599. _internal_set_weak(value);
  11600. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  11601. }
  11602. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11603. inline int FieldOptions::_internal_uninterpreted_option_size() const {
  11604. return uninterpreted_option_.size();
  11605. }
  11606. inline int FieldOptions::uninterpreted_option_size() const {
  11607. return _internal_uninterpreted_option_size();
  11608. }
  11609. inline void FieldOptions::clear_uninterpreted_option() {
  11610. uninterpreted_option_.Clear();
  11611. }
  11612. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  11613. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  11614. return uninterpreted_option_.Mutable(index);
  11615. }
  11616. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11617. FieldOptions::mutable_uninterpreted_option() {
  11618. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  11619. return &uninterpreted_option_;
  11620. }
  11621. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::_internal_uninterpreted_option(int index) const {
  11622. return uninterpreted_option_.Get(index);
  11623. }
  11624. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  11625. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  11626. return _internal_uninterpreted_option(index);
  11627. }
  11628. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::_internal_add_uninterpreted_option() {
  11629. return uninterpreted_option_.Add();
  11630. }
  11631. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  11632. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  11633. return _internal_add_uninterpreted_option();
  11634. }
  11635. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11636. FieldOptions::uninterpreted_option() const {
  11637. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  11638. return uninterpreted_option_;
  11639. }
  11640. // -------------------------------------------------------------------
  11641. // OneofOptions
  11642. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11643. inline int OneofOptions::_internal_uninterpreted_option_size() const {
  11644. return uninterpreted_option_.size();
  11645. }
  11646. inline int OneofOptions::uninterpreted_option_size() const {
  11647. return _internal_uninterpreted_option_size();
  11648. }
  11649. inline void OneofOptions::clear_uninterpreted_option() {
  11650. uninterpreted_option_.Clear();
  11651. }
  11652. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
  11653. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  11654. return uninterpreted_option_.Mutable(index);
  11655. }
  11656. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11657. OneofOptions::mutable_uninterpreted_option() {
  11658. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  11659. return &uninterpreted_option_;
  11660. }
  11661. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::_internal_uninterpreted_option(int index) const {
  11662. return uninterpreted_option_.Get(index);
  11663. }
  11664. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
  11665. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  11666. return _internal_uninterpreted_option(index);
  11667. }
  11668. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::_internal_add_uninterpreted_option() {
  11669. return uninterpreted_option_.Add();
  11670. }
  11671. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
  11672. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  11673. return _internal_add_uninterpreted_option();
  11674. }
  11675. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11676. OneofOptions::uninterpreted_option() const {
  11677. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  11678. return uninterpreted_option_;
  11679. }
  11680. // -------------------------------------------------------------------
  11681. // EnumOptions
  11682. // optional bool allow_alias = 2;
  11683. inline bool EnumOptions::_internal_has_allow_alias() const {
  11684. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11685. return value;
  11686. }
  11687. inline bool EnumOptions::has_allow_alias() const {
  11688. return _internal_has_allow_alias();
  11689. }
  11690. inline void EnumOptions::clear_allow_alias() {
  11691. allow_alias_ = false;
  11692. _has_bits_[0] &= ~0x00000001u;
  11693. }
  11694. inline bool EnumOptions::_internal_allow_alias() const {
  11695. return allow_alias_;
  11696. }
  11697. inline bool EnumOptions::allow_alias() const {
  11698. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  11699. return _internal_allow_alias();
  11700. }
  11701. inline void EnumOptions::_internal_set_allow_alias(bool value) {
  11702. _has_bits_[0] |= 0x00000001u;
  11703. allow_alias_ = value;
  11704. }
  11705. inline void EnumOptions::set_allow_alias(bool value) {
  11706. _internal_set_allow_alias(value);
  11707. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  11708. }
  11709. // optional bool deprecated = 3 [default = false];
  11710. inline bool EnumOptions::_internal_has_deprecated() const {
  11711. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  11712. return value;
  11713. }
  11714. inline bool EnumOptions::has_deprecated() const {
  11715. return _internal_has_deprecated();
  11716. }
  11717. inline void EnumOptions::clear_deprecated() {
  11718. deprecated_ = false;
  11719. _has_bits_[0] &= ~0x00000002u;
  11720. }
  11721. inline bool EnumOptions::_internal_deprecated() const {
  11722. return deprecated_;
  11723. }
  11724. inline bool EnumOptions::deprecated() const {
  11725. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  11726. return _internal_deprecated();
  11727. }
  11728. inline void EnumOptions::_internal_set_deprecated(bool value) {
  11729. _has_bits_[0] |= 0x00000002u;
  11730. deprecated_ = value;
  11731. }
  11732. inline void EnumOptions::set_deprecated(bool value) {
  11733. _internal_set_deprecated(value);
  11734. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  11735. }
  11736. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11737. inline int EnumOptions::_internal_uninterpreted_option_size() const {
  11738. return uninterpreted_option_.size();
  11739. }
  11740. inline int EnumOptions::uninterpreted_option_size() const {
  11741. return _internal_uninterpreted_option_size();
  11742. }
  11743. inline void EnumOptions::clear_uninterpreted_option() {
  11744. uninterpreted_option_.Clear();
  11745. }
  11746. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  11747. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  11748. return uninterpreted_option_.Mutable(index);
  11749. }
  11750. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11751. EnumOptions::mutable_uninterpreted_option() {
  11752. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  11753. return &uninterpreted_option_;
  11754. }
  11755. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::_internal_uninterpreted_option(int index) const {
  11756. return uninterpreted_option_.Get(index);
  11757. }
  11758. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  11759. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  11760. return _internal_uninterpreted_option(index);
  11761. }
  11762. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::_internal_add_uninterpreted_option() {
  11763. return uninterpreted_option_.Add();
  11764. }
  11765. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  11766. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  11767. return _internal_add_uninterpreted_option();
  11768. }
  11769. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11770. EnumOptions::uninterpreted_option() const {
  11771. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  11772. return uninterpreted_option_;
  11773. }
  11774. // -------------------------------------------------------------------
  11775. // EnumValueOptions
  11776. // optional bool deprecated = 1 [default = false];
  11777. inline bool EnumValueOptions::_internal_has_deprecated() const {
  11778. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11779. return value;
  11780. }
  11781. inline bool EnumValueOptions::has_deprecated() const {
  11782. return _internal_has_deprecated();
  11783. }
  11784. inline void EnumValueOptions::clear_deprecated() {
  11785. deprecated_ = false;
  11786. _has_bits_[0] &= ~0x00000001u;
  11787. }
  11788. inline bool EnumValueOptions::_internal_deprecated() const {
  11789. return deprecated_;
  11790. }
  11791. inline bool EnumValueOptions::deprecated() const {
  11792. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  11793. return _internal_deprecated();
  11794. }
  11795. inline void EnumValueOptions::_internal_set_deprecated(bool value) {
  11796. _has_bits_[0] |= 0x00000001u;
  11797. deprecated_ = value;
  11798. }
  11799. inline void EnumValueOptions::set_deprecated(bool value) {
  11800. _internal_set_deprecated(value);
  11801. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  11802. }
  11803. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11804. inline int EnumValueOptions::_internal_uninterpreted_option_size() const {
  11805. return uninterpreted_option_.size();
  11806. }
  11807. inline int EnumValueOptions::uninterpreted_option_size() const {
  11808. return _internal_uninterpreted_option_size();
  11809. }
  11810. inline void EnumValueOptions::clear_uninterpreted_option() {
  11811. uninterpreted_option_.Clear();
  11812. }
  11813. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  11814. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  11815. return uninterpreted_option_.Mutable(index);
  11816. }
  11817. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11818. EnumValueOptions::mutable_uninterpreted_option() {
  11819. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  11820. return &uninterpreted_option_;
  11821. }
  11822. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::_internal_uninterpreted_option(int index) const {
  11823. return uninterpreted_option_.Get(index);
  11824. }
  11825. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  11826. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  11827. return _internal_uninterpreted_option(index);
  11828. }
  11829. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::_internal_add_uninterpreted_option() {
  11830. return uninterpreted_option_.Add();
  11831. }
  11832. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  11833. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  11834. return _internal_add_uninterpreted_option();
  11835. }
  11836. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11837. EnumValueOptions::uninterpreted_option() const {
  11838. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  11839. return uninterpreted_option_;
  11840. }
  11841. // -------------------------------------------------------------------
  11842. // ServiceOptions
  11843. // optional bool deprecated = 33 [default = false];
  11844. inline bool ServiceOptions::_internal_has_deprecated() const {
  11845. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11846. return value;
  11847. }
  11848. inline bool ServiceOptions::has_deprecated() const {
  11849. return _internal_has_deprecated();
  11850. }
  11851. inline void ServiceOptions::clear_deprecated() {
  11852. deprecated_ = false;
  11853. _has_bits_[0] &= ~0x00000001u;
  11854. }
  11855. inline bool ServiceOptions::_internal_deprecated() const {
  11856. return deprecated_;
  11857. }
  11858. inline bool ServiceOptions::deprecated() const {
  11859. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  11860. return _internal_deprecated();
  11861. }
  11862. inline void ServiceOptions::_internal_set_deprecated(bool value) {
  11863. _has_bits_[0] |= 0x00000001u;
  11864. deprecated_ = value;
  11865. }
  11866. inline void ServiceOptions::set_deprecated(bool value) {
  11867. _internal_set_deprecated(value);
  11868. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  11869. }
  11870. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11871. inline int ServiceOptions::_internal_uninterpreted_option_size() const {
  11872. return uninterpreted_option_.size();
  11873. }
  11874. inline int ServiceOptions::uninterpreted_option_size() const {
  11875. return _internal_uninterpreted_option_size();
  11876. }
  11877. inline void ServiceOptions::clear_uninterpreted_option() {
  11878. uninterpreted_option_.Clear();
  11879. }
  11880. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  11881. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  11882. return uninterpreted_option_.Mutable(index);
  11883. }
  11884. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11885. ServiceOptions::mutable_uninterpreted_option() {
  11886. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  11887. return &uninterpreted_option_;
  11888. }
  11889. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::_internal_uninterpreted_option(int index) const {
  11890. return uninterpreted_option_.Get(index);
  11891. }
  11892. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  11893. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  11894. return _internal_uninterpreted_option(index);
  11895. }
  11896. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::_internal_add_uninterpreted_option() {
  11897. return uninterpreted_option_.Add();
  11898. }
  11899. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  11900. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  11901. return _internal_add_uninterpreted_option();
  11902. }
  11903. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11904. ServiceOptions::uninterpreted_option() const {
  11905. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  11906. return uninterpreted_option_;
  11907. }
  11908. // -------------------------------------------------------------------
  11909. // MethodOptions
  11910. // optional bool deprecated = 33 [default = false];
  11911. inline bool MethodOptions::_internal_has_deprecated() const {
  11912. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11913. return value;
  11914. }
  11915. inline bool MethodOptions::has_deprecated() const {
  11916. return _internal_has_deprecated();
  11917. }
  11918. inline void MethodOptions::clear_deprecated() {
  11919. deprecated_ = false;
  11920. _has_bits_[0] &= ~0x00000001u;
  11921. }
  11922. inline bool MethodOptions::_internal_deprecated() const {
  11923. return deprecated_;
  11924. }
  11925. inline bool MethodOptions::deprecated() const {
  11926. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  11927. return _internal_deprecated();
  11928. }
  11929. inline void MethodOptions::_internal_set_deprecated(bool value) {
  11930. _has_bits_[0] |= 0x00000001u;
  11931. deprecated_ = value;
  11932. }
  11933. inline void MethodOptions::set_deprecated(bool value) {
  11934. _internal_set_deprecated(value);
  11935. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  11936. }
  11937. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  11938. inline bool MethodOptions::_internal_has_idempotency_level() const {
  11939. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  11940. return value;
  11941. }
  11942. inline bool MethodOptions::has_idempotency_level() const {
  11943. return _internal_has_idempotency_level();
  11944. }
  11945. inline void MethodOptions::clear_idempotency_level() {
  11946. idempotency_level_ = 0;
  11947. _has_bits_[0] &= ~0x00000002u;
  11948. }
  11949. inline PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::_internal_idempotency_level() const {
  11950. return static_cast< PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel >(idempotency_level_);
  11951. }
  11952. inline PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const {
  11953. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  11954. return _internal_idempotency_level();
  11955. }
  11956. inline void MethodOptions::_internal_set_idempotency_level(PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  11957. assert(PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(value));
  11958. _has_bits_[0] |= 0x00000002u;
  11959. idempotency_level_ = value;
  11960. }
  11961. inline void MethodOptions::set_idempotency_level(PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  11962. _internal_set_idempotency_level(value);
  11963. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  11964. }
  11965. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11966. inline int MethodOptions::_internal_uninterpreted_option_size() const {
  11967. return uninterpreted_option_.size();
  11968. }
  11969. inline int MethodOptions::uninterpreted_option_size() const {
  11970. return _internal_uninterpreted_option_size();
  11971. }
  11972. inline void MethodOptions::clear_uninterpreted_option() {
  11973. uninterpreted_option_.Clear();
  11974. }
  11975. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  11976. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  11977. return uninterpreted_option_.Mutable(index);
  11978. }
  11979. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11980. MethodOptions::mutable_uninterpreted_option() {
  11981. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  11982. return &uninterpreted_option_;
  11983. }
  11984. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::_internal_uninterpreted_option(int index) const {
  11985. return uninterpreted_option_.Get(index);
  11986. }
  11987. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  11988. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  11989. return _internal_uninterpreted_option(index);
  11990. }
  11991. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::_internal_add_uninterpreted_option() {
  11992. return uninterpreted_option_.Add();
  11993. }
  11994. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  11995. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  11996. return _internal_add_uninterpreted_option();
  11997. }
  11998. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11999. MethodOptions::uninterpreted_option() const {
  12000. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  12001. return uninterpreted_option_;
  12002. }
  12003. // -------------------------------------------------------------------
  12004. // UninterpretedOption_NamePart
  12005. // required string name_part = 1;
  12006. inline bool UninterpretedOption_NamePart::_internal_has_name_part() const {
  12007. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12008. return value;
  12009. }
  12010. inline bool UninterpretedOption_NamePart::has_name_part() const {
  12011. return _internal_has_name_part();
  12012. }
  12013. inline void UninterpretedOption_NamePart::clear_name_part() {
  12014. name_part_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12015. _has_bits_[0] &= ~0x00000001u;
  12016. }
  12017. inline const std::string& UninterpretedOption_NamePart::name_part() const {
  12018. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  12019. return _internal_name_part();
  12020. }
  12021. inline void UninterpretedOption_NamePart::set_name_part(const std::string& value) {
  12022. _internal_set_name_part(value);
  12023. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  12024. }
  12025. inline std::string* UninterpretedOption_NamePart::mutable_name_part() {
  12026. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  12027. return _internal_mutable_name_part();
  12028. }
  12029. inline const std::string& UninterpretedOption_NamePart::_internal_name_part() const {
  12030. return name_part_.Get();
  12031. }
  12032. inline void UninterpretedOption_NamePart::_internal_set_name_part(const std::string& value) {
  12033. _has_bits_[0] |= 0x00000001u;
  12034. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12035. }
  12036. inline void UninterpretedOption_NamePart::set_name_part(std::string&& value) {
  12037. _has_bits_[0] |= 0x00000001u;
  12038. name_part_.Set(
  12039. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12040. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.NamePart.name_part)
  12041. }
  12042. inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
  12043. GOOGLE_DCHECK(value != nullptr);
  12044. _has_bits_[0] |= 0x00000001u;
  12045. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  12046. GetArenaNoVirtual());
  12047. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
  12048. }
  12049. inline void UninterpretedOption_NamePart::set_name_part(const char* value,
  12050. size_t size) {
  12051. _has_bits_[0] |= 0x00000001u;
  12052. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  12053. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  12054. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
  12055. }
  12056. inline std::string* UninterpretedOption_NamePart::_internal_mutable_name_part() {
  12057. _has_bits_[0] |= 0x00000001u;
  12058. return name_part_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12059. }
  12060. inline std::string* UninterpretedOption_NamePart::release_name_part() {
  12061. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  12062. if (!has_name_part()) {
  12063. return nullptr;
  12064. }
  12065. _has_bits_[0] &= ~0x00000001u;
  12066. return name_part_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12067. }
  12068. inline void UninterpretedOption_NamePart::set_allocated_name_part(std::string* name_part) {
  12069. if (name_part != nullptr) {
  12070. _has_bits_[0] |= 0x00000001u;
  12071. } else {
  12072. _has_bits_[0] &= ~0x00000001u;
  12073. }
  12074. name_part_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name_part,
  12075. GetArenaNoVirtual());
  12076. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  12077. }
  12078. inline std::string* UninterpretedOption_NamePart::unsafe_arena_release_name_part() {
  12079. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  12080. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12081. _has_bits_[0] &= ~0x00000001u;
  12082. return name_part_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12083. GetArenaNoVirtual());
  12084. }
  12085. inline void UninterpretedOption_NamePart::unsafe_arena_set_allocated_name_part(
  12086. std::string* name_part) {
  12087. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12088. if (name_part != nullptr) {
  12089. _has_bits_[0] |= 0x00000001u;
  12090. } else {
  12091. _has_bits_[0] &= ~0x00000001u;
  12092. }
  12093. name_part_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12094. name_part, GetArenaNoVirtual());
  12095. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  12096. }
  12097. // required bool is_extension = 2;
  12098. inline bool UninterpretedOption_NamePart::_internal_has_is_extension() const {
  12099. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12100. return value;
  12101. }
  12102. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  12103. return _internal_has_is_extension();
  12104. }
  12105. inline void UninterpretedOption_NamePart::clear_is_extension() {
  12106. is_extension_ = false;
  12107. _has_bits_[0] &= ~0x00000002u;
  12108. }
  12109. inline bool UninterpretedOption_NamePart::_internal_is_extension() const {
  12110. return is_extension_;
  12111. }
  12112. inline bool UninterpretedOption_NamePart::is_extension() const {
  12113. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12114. return _internal_is_extension();
  12115. }
  12116. inline void UninterpretedOption_NamePart::_internal_set_is_extension(bool value) {
  12117. _has_bits_[0] |= 0x00000002u;
  12118. is_extension_ = value;
  12119. }
  12120. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  12121. _internal_set_is_extension(value);
  12122. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12123. }
  12124. // -------------------------------------------------------------------
  12125. // UninterpretedOption
  12126. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  12127. inline int UninterpretedOption::_internal_name_size() const {
  12128. return name_.size();
  12129. }
  12130. inline int UninterpretedOption::name_size() const {
  12131. return _internal_name_size();
  12132. }
  12133. inline void UninterpretedOption::clear_name() {
  12134. name_.Clear();
  12135. }
  12136. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  12137. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  12138. return name_.Mutable(index);
  12139. }
  12140. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  12141. UninterpretedOption::mutable_name() {
  12142. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  12143. return &name_;
  12144. }
  12145. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::_internal_name(int index) const {
  12146. return name_.Get(index);
  12147. }
  12148. inline const PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  12149. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  12150. return _internal_name(index);
  12151. }
  12152. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::_internal_add_name() {
  12153. return name_.Add();
  12154. }
  12155. inline PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  12156. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  12157. return _internal_add_name();
  12158. }
  12159. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  12160. UninterpretedOption::name() const {
  12161. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  12162. return name_;
  12163. }
  12164. // optional string identifier_value = 3;
  12165. inline bool UninterpretedOption::_internal_has_identifier_value() const {
  12166. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12167. return value;
  12168. }
  12169. inline bool UninterpretedOption::has_identifier_value() const {
  12170. return _internal_has_identifier_value();
  12171. }
  12172. inline void UninterpretedOption::clear_identifier_value() {
  12173. identifier_value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12174. _has_bits_[0] &= ~0x00000001u;
  12175. }
  12176. inline const std::string& UninterpretedOption::identifier_value() const {
  12177. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  12178. return _internal_identifier_value();
  12179. }
  12180. inline void UninterpretedOption::set_identifier_value(const std::string& value) {
  12181. _internal_set_identifier_value(value);
  12182. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  12183. }
  12184. inline std::string* UninterpretedOption::mutable_identifier_value() {
  12185. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  12186. return _internal_mutable_identifier_value();
  12187. }
  12188. inline const std::string& UninterpretedOption::_internal_identifier_value() const {
  12189. return identifier_value_.Get();
  12190. }
  12191. inline void UninterpretedOption::_internal_set_identifier_value(const std::string& value) {
  12192. _has_bits_[0] |= 0x00000001u;
  12193. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12194. }
  12195. inline void UninterpretedOption::set_identifier_value(std::string&& value) {
  12196. _has_bits_[0] |= 0x00000001u;
  12197. identifier_value_.Set(
  12198. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12199. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.identifier_value)
  12200. }
  12201. inline void UninterpretedOption::set_identifier_value(const char* value) {
  12202. GOOGLE_DCHECK(value != nullptr);
  12203. _has_bits_[0] |= 0x00000001u;
  12204. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  12205. GetArenaNoVirtual());
  12206. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
  12207. }
  12208. inline void UninterpretedOption::set_identifier_value(const char* value,
  12209. size_t size) {
  12210. _has_bits_[0] |= 0x00000001u;
  12211. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  12212. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  12213. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
  12214. }
  12215. inline std::string* UninterpretedOption::_internal_mutable_identifier_value() {
  12216. _has_bits_[0] |= 0x00000001u;
  12217. return identifier_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12218. }
  12219. inline std::string* UninterpretedOption::release_identifier_value() {
  12220. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  12221. if (!has_identifier_value()) {
  12222. return nullptr;
  12223. }
  12224. _has_bits_[0] &= ~0x00000001u;
  12225. return identifier_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12226. }
  12227. inline void UninterpretedOption::set_allocated_identifier_value(std::string* identifier_value) {
  12228. if (identifier_value != nullptr) {
  12229. _has_bits_[0] |= 0x00000001u;
  12230. } else {
  12231. _has_bits_[0] &= ~0x00000001u;
  12232. }
  12233. identifier_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), identifier_value,
  12234. GetArenaNoVirtual());
  12235. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  12236. }
  12237. inline std::string* UninterpretedOption::unsafe_arena_release_identifier_value() {
  12238. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.identifier_value)
  12239. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12240. _has_bits_[0] &= ~0x00000001u;
  12241. return identifier_value_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12242. GetArenaNoVirtual());
  12243. }
  12244. inline void UninterpretedOption::unsafe_arena_set_allocated_identifier_value(
  12245. std::string* identifier_value) {
  12246. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12247. if (identifier_value != nullptr) {
  12248. _has_bits_[0] |= 0x00000001u;
  12249. } else {
  12250. _has_bits_[0] &= ~0x00000001u;
  12251. }
  12252. identifier_value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12253. identifier_value, GetArenaNoVirtual());
  12254. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  12255. }
  12256. // optional uint64 positive_int_value = 4;
  12257. inline bool UninterpretedOption::_internal_has_positive_int_value() const {
  12258. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  12259. return value;
  12260. }
  12261. inline bool UninterpretedOption::has_positive_int_value() const {
  12262. return _internal_has_positive_int_value();
  12263. }
  12264. inline void UninterpretedOption::clear_positive_int_value() {
  12265. positive_int_value_ = PROTOBUF_ULONGLONG(0);
  12266. _has_bits_[0] &= ~0x00000008u;
  12267. }
  12268. inline ::PROTOBUF_NAMESPACE_ID::uint64 UninterpretedOption::_internal_positive_int_value() const {
  12269. return positive_int_value_;
  12270. }
  12271. inline ::PROTOBUF_NAMESPACE_ID::uint64 UninterpretedOption::positive_int_value() const {
  12272. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  12273. return _internal_positive_int_value();
  12274. }
  12275. inline void UninterpretedOption::_internal_set_positive_int_value(::PROTOBUF_NAMESPACE_ID::uint64 value) {
  12276. _has_bits_[0] |= 0x00000008u;
  12277. positive_int_value_ = value;
  12278. }
  12279. inline void UninterpretedOption::set_positive_int_value(::PROTOBUF_NAMESPACE_ID::uint64 value) {
  12280. _internal_set_positive_int_value(value);
  12281. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  12282. }
  12283. // optional int64 negative_int_value = 5;
  12284. inline bool UninterpretedOption::_internal_has_negative_int_value() const {
  12285. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  12286. return value;
  12287. }
  12288. inline bool UninterpretedOption::has_negative_int_value() const {
  12289. return _internal_has_negative_int_value();
  12290. }
  12291. inline void UninterpretedOption::clear_negative_int_value() {
  12292. negative_int_value_ = PROTOBUF_LONGLONG(0);
  12293. _has_bits_[0] &= ~0x00000010u;
  12294. }
  12295. inline ::PROTOBUF_NAMESPACE_ID::int64 UninterpretedOption::_internal_negative_int_value() const {
  12296. return negative_int_value_;
  12297. }
  12298. inline ::PROTOBUF_NAMESPACE_ID::int64 UninterpretedOption::negative_int_value() const {
  12299. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  12300. return _internal_negative_int_value();
  12301. }
  12302. inline void UninterpretedOption::_internal_set_negative_int_value(::PROTOBUF_NAMESPACE_ID::int64 value) {
  12303. _has_bits_[0] |= 0x00000010u;
  12304. negative_int_value_ = value;
  12305. }
  12306. inline void UninterpretedOption::set_negative_int_value(::PROTOBUF_NAMESPACE_ID::int64 value) {
  12307. _internal_set_negative_int_value(value);
  12308. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  12309. }
  12310. // optional double double_value = 6;
  12311. inline bool UninterpretedOption::_internal_has_double_value() const {
  12312. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  12313. return value;
  12314. }
  12315. inline bool UninterpretedOption::has_double_value() const {
  12316. return _internal_has_double_value();
  12317. }
  12318. inline void UninterpretedOption::clear_double_value() {
  12319. double_value_ = 0;
  12320. _has_bits_[0] &= ~0x00000020u;
  12321. }
  12322. inline double UninterpretedOption::_internal_double_value() const {
  12323. return double_value_;
  12324. }
  12325. inline double UninterpretedOption::double_value() const {
  12326. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  12327. return _internal_double_value();
  12328. }
  12329. inline void UninterpretedOption::_internal_set_double_value(double value) {
  12330. _has_bits_[0] |= 0x00000020u;
  12331. double_value_ = value;
  12332. }
  12333. inline void UninterpretedOption::set_double_value(double value) {
  12334. _internal_set_double_value(value);
  12335. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  12336. }
  12337. // optional bytes string_value = 7;
  12338. inline bool UninterpretedOption::_internal_has_string_value() const {
  12339. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12340. return value;
  12341. }
  12342. inline bool UninterpretedOption::has_string_value() const {
  12343. return _internal_has_string_value();
  12344. }
  12345. inline void UninterpretedOption::clear_string_value() {
  12346. string_value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12347. _has_bits_[0] &= ~0x00000002u;
  12348. }
  12349. inline const std::string& UninterpretedOption::string_value() const {
  12350. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  12351. return _internal_string_value();
  12352. }
  12353. inline void UninterpretedOption::set_string_value(const std::string& value) {
  12354. _internal_set_string_value(value);
  12355. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  12356. }
  12357. inline std::string* UninterpretedOption::mutable_string_value() {
  12358. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  12359. return _internal_mutable_string_value();
  12360. }
  12361. inline const std::string& UninterpretedOption::_internal_string_value() const {
  12362. return string_value_.Get();
  12363. }
  12364. inline void UninterpretedOption::_internal_set_string_value(const std::string& value) {
  12365. _has_bits_[0] |= 0x00000002u;
  12366. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12367. }
  12368. inline void UninterpretedOption::set_string_value(std::string&& value) {
  12369. _has_bits_[0] |= 0x00000002u;
  12370. string_value_.Set(
  12371. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12372. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.string_value)
  12373. }
  12374. inline void UninterpretedOption::set_string_value(const char* value) {
  12375. GOOGLE_DCHECK(value != nullptr);
  12376. _has_bits_[0] |= 0x00000002u;
  12377. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  12378. GetArenaNoVirtual());
  12379. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
  12380. }
  12381. inline void UninterpretedOption::set_string_value(const void* value,
  12382. size_t size) {
  12383. _has_bits_[0] |= 0x00000002u;
  12384. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  12385. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  12386. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
  12387. }
  12388. inline std::string* UninterpretedOption::_internal_mutable_string_value() {
  12389. _has_bits_[0] |= 0x00000002u;
  12390. return string_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12391. }
  12392. inline std::string* UninterpretedOption::release_string_value() {
  12393. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  12394. if (!has_string_value()) {
  12395. return nullptr;
  12396. }
  12397. _has_bits_[0] &= ~0x00000002u;
  12398. return string_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12399. }
  12400. inline void UninterpretedOption::set_allocated_string_value(std::string* string_value) {
  12401. if (string_value != nullptr) {
  12402. _has_bits_[0] |= 0x00000002u;
  12403. } else {
  12404. _has_bits_[0] &= ~0x00000002u;
  12405. }
  12406. string_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_value,
  12407. GetArenaNoVirtual());
  12408. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  12409. }
  12410. inline std::string* UninterpretedOption::unsafe_arena_release_string_value() {
  12411. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.string_value)
  12412. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12413. _has_bits_[0] &= ~0x00000002u;
  12414. return string_value_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12415. GetArenaNoVirtual());
  12416. }
  12417. inline void UninterpretedOption::unsafe_arena_set_allocated_string_value(
  12418. std::string* string_value) {
  12419. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12420. if (string_value != nullptr) {
  12421. _has_bits_[0] |= 0x00000002u;
  12422. } else {
  12423. _has_bits_[0] &= ~0x00000002u;
  12424. }
  12425. string_value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12426. string_value, GetArenaNoVirtual());
  12427. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.string_value)
  12428. }
  12429. // optional string aggregate_value = 8;
  12430. inline bool UninterpretedOption::_internal_has_aggregate_value() const {
  12431. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  12432. return value;
  12433. }
  12434. inline bool UninterpretedOption::has_aggregate_value() const {
  12435. return _internal_has_aggregate_value();
  12436. }
  12437. inline void UninterpretedOption::clear_aggregate_value() {
  12438. aggregate_value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12439. _has_bits_[0] &= ~0x00000004u;
  12440. }
  12441. inline const std::string& UninterpretedOption::aggregate_value() const {
  12442. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  12443. return _internal_aggregate_value();
  12444. }
  12445. inline void UninterpretedOption::set_aggregate_value(const std::string& value) {
  12446. _internal_set_aggregate_value(value);
  12447. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  12448. }
  12449. inline std::string* UninterpretedOption::mutable_aggregate_value() {
  12450. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  12451. return _internal_mutable_aggregate_value();
  12452. }
  12453. inline const std::string& UninterpretedOption::_internal_aggregate_value() const {
  12454. return aggregate_value_.Get();
  12455. }
  12456. inline void UninterpretedOption::_internal_set_aggregate_value(const std::string& value) {
  12457. _has_bits_[0] |= 0x00000004u;
  12458. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12459. }
  12460. inline void UninterpretedOption::set_aggregate_value(std::string&& value) {
  12461. _has_bits_[0] |= 0x00000004u;
  12462. aggregate_value_.Set(
  12463. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12464. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.aggregate_value)
  12465. }
  12466. inline void UninterpretedOption::set_aggregate_value(const char* value) {
  12467. GOOGLE_DCHECK(value != nullptr);
  12468. _has_bits_[0] |= 0x00000004u;
  12469. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  12470. GetArenaNoVirtual());
  12471. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
  12472. }
  12473. inline void UninterpretedOption::set_aggregate_value(const char* value,
  12474. size_t size) {
  12475. _has_bits_[0] |= 0x00000004u;
  12476. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  12477. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  12478. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
  12479. }
  12480. inline std::string* UninterpretedOption::_internal_mutable_aggregate_value() {
  12481. _has_bits_[0] |= 0x00000004u;
  12482. return aggregate_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12483. }
  12484. inline std::string* UninterpretedOption::release_aggregate_value() {
  12485. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  12486. if (!has_aggregate_value()) {
  12487. return nullptr;
  12488. }
  12489. _has_bits_[0] &= ~0x00000004u;
  12490. return aggregate_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12491. }
  12492. inline void UninterpretedOption::set_allocated_aggregate_value(std::string* aggregate_value) {
  12493. if (aggregate_value != nullptr) {
  12494. _has_bits_[0] |= 0x00000004u;
  12495. } else {
  12496. _has_bits_[0] &= ~0x00000004u;
  12497. }
  12498. aggregate_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), aggregate_value,
  12499. GetArenaNoVirtual());
  12500. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  12501. }
  12502. inline std::string* UninterpretedOption::unsafe_arena_release_aggregate_value() {
  12503. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.aggregate_value)
  12504. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12505. _has_bits_[0] &= ~0x00000004u;
  12506. return aggregate_value_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12507. GetArenaNoVirtual());
  12508. }
  12509. inline void UninterpretedOption::unsafe_arena_set_allocated_aggregate_value(
  12510. std::string* aggregate_value) {
  12511. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12512. if (aggregate_value != nullptr) {
  12513. _has_bits_[0] |= 0x00000004u;
  12514. } else {
  12515. _has_bits_[0] &= ~0x00000004u;
  12516. }
  12517. aggregate_value_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12518. aggregate_value, GetArenaNoVirtual());
  12519. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  12520. }
  12521. // -------------------------------------------------------------------
  12522. // SourceCodeInfo_Location
  12523. // repeated int32 path = 1 [packed = true];
  12524. inline int SourceCodeInfo_Location::_internal_path_size() const {
  12525. return path_.size();
  12526. }
  12527. inline int SourceCodeInfo_Location::path_size() const {
  12528. return _internal_path_size();
  12529. }
  12530. inline void SourceCodeInfo_Location::clear_path() {
  12531. path_.Clear();
  12532. }
  12533. inline ::PROTOBUF_NAMESPACE_ID::int32 SourceCodeInfo_Location::_internal_path(int index) const {
  12534. return path_.Get(index);
  12535. }
  12536. inline ::PROTOBUF_NAMESPACE_ID::int32 SourceCodeInfo_Location::path(int index) const {
  12537. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  12538. return _internal_path(index);
  12539. }
  12540. inline void SourceCodeInfo_Location::set_path(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  12541. path_.Set(index, value);
  12542. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  12543. }
  12544. inline void SourceCodeInfo_Location::_internal_add_path(::PROTOBUF_NAMESPACE_ID::int32 value) {
  12545. path_.Add(value);
  12546. }
  12547. inline void SourceCodeInfo_Location::add_path(::PROTOBUF_NAMESPACE_ID::int32 value) {
  12548. _internal_add_path(value);
  12549. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  12550. }
  12551. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  12552. SourceCodeInfo_Location::_internal_path() const {
  12553. return path_;
  12554. }
  12555. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  12556. SourceCodeInfo_Location::path() const {
  12557. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  12558. return _internal_path();
  12559. }
  12560. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  12561. SourceCodeInfo_Location::_internal_mutable_path() {
  12562. return &path_;
  12563. }
  12564. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  12565. SourceCodeInfo_Location::mutable_path() {
  12566. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  12567. return _internal_mutable_path();
  12568. }
  12569. // repeated int32 span = 2 [packed = true];
  12570. inline int SourceCodeInfo_Location::_internal_span_size() const {
  12571. return span_.size();
  12572. }
  12573. inline int SourceCodeInfo_Location::span_size() const {
  12574. return _internal_span_size();
  12575. }
  12576. inline void SourceCodeInfo_Location::clear_span() {
  12577. span_.Clear();
  12578. }
  12579. inline ::PROTOBUF_NAMESPACE_ID::int32 SourceCodeInfo_Location::_internal_span(int index) const {
  12580. return span_.Get(index);
  12581. }
  12582. inline ::PROTOBUF_NAMESPACE_ID::int32 SourceCodeInfo_Location::span(int index) const {
  12583. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  12584. return _internal_span(index);
  12585. }
  12586. inline void SourceCodeInfo_Location::set_span(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  12587. span_.Set(index, value);
  12588. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  12589. }
  12590. inline void SourceCodeInfo_Location::_internal_add_span(::PROTOBUF_NAMESPACE_ID::int32 value) {
  12591. span_.Add(value);
  12592. }
  12593. inline void SourceCodeInfo_Location::add_span(::PROTOBUF_NAMESPACE_ID::int32 value) {
  12594. _internal_add_span(value);
  12595. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  12596. }
  12597. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  12598. SourceCodeInfo_Location::_internal_span() const {
  12599. return span_;
  12600. }
  12601. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  12602. SourceCodeInfo_Location::span() const {
  12603. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  12604. return _internal_span();
  12605. }
  12606. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  12607. SourceCodeInfo_Location::_internal_mutable_span() {
  12608. return &span_;
  12609. }
  12610. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  12611. SourceCodeInfo_Location::mutable_span() {
  12612. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  12613. return _internal_mutable_span();
  12614. }
  12615. // optional string leading_comments = 3;
  12616. inline bool SourceCodeInfo_Location::_internal_has_leading_comments() const {
  12617. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12618. return value;
  12619. }
  12620. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  12621. return _internal_has_leading_comments();
  12622. }
  12623. inline void SourceCodeInfo_Location::clear_leading_comments() {
  12624. leading_comments_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12625. _has_bits_[0] &= ~0x00000001u;
  12626. }
  12627. inline const std::string& SourceCodeInfo_Location::leading_comments() const {
  12628. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12629. return _internal_leading_comments();
  12630. }
  12631. inline void SourceCodeInfo_Location::set_leading_comments(const std::string& value) {
  12632. _internal_set_leading_comments(value);
  12633. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12634. }
  12635. inline std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  12636. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12637. return _internal_mutable_leading_comments();
  12638. }
  12639. inline const std::string& SourceCodeInfo_Location::_internal_leading_comments() const {
  12640. return leading_comments_.Get();
  12641. }
  12642. inline void SourceCodeInfo_Location::_internal_set_leading_comments(const std::string& value) {
  12643. _has_bits_[0] |= 0x00000001u;
  12644. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12645. }
  12646. inline void SourceCodeInfo_Location::set_leading_comments(std::string&& value) {
  12647. _has_bits_[0] |= 0x00000001u;
  12648. leading_comments_.Set(
  12649. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12650. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12651. }
  12652. inline void SourceCodeInfo_Location::set_leading_comments(const char* value) {
  12653. GOOGLE_DCHECK(value != nullptr);
  12654. _has_bits_[0] |= 0x00000001u;
  12655. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  12656. GetArenaNoVirtual());
  12657. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12658. }
  12659. inline void SourceCodeInfo_Location::set_leading_comments(const char* value,
  12660. size_t size) {
  12661. _has_bits_[0] |= 0x00000001u;
  12662. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  12663. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  12664. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12665. }
  12666. inline std::string* SourceCodeInfo_Location::_internal_mutable_leading_comments() {
  12667. _has_bits_[0] |= 0x00000001u;
  12668. return leading_comments_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12669. }
  12670. inline std::string* SourceCodeInfo_Location::release_leading_comments() {
  12671. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12672. if (!has_leading_comments()) {
  12673. return nullptr;
  12674. }
  12675. _has_bits_[0] &= ~0x00000001u;
  12676. return leading_comments_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12677. }
  12678. inline void SourceCodeInfo_Location::set_allocated_leading_comments(std::string* leading_comments) {
  12679. if (leading_comments != nullptr) {
  12680. _has_bits_[0] |= 0x00000001u;
  12681. } else {
  12682. _has_bits_[0] &= ~0x00000001u;
  12683. }
  12684. leading_comments_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), leading_comments,
  12685. GetArenaNoVirtual());
  12686. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12687. }
  12688. inline std::string* SourceCodeInfo_Location::unsafe_arena_release_leading_comments() {
  12689. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12690. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12691. _has_bits_[0] &= ~0x00000001u;
  12692. return leading_comments_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12693. GetArenaNoVirtual());
  12694. }
  12695. inline void SourceCodeInfo_Location::unsafe_arena_set_allocated_leading_comments(
  12696. std::string* leading_comments) {
  12697. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12698. if (leading_comments != nullptr) {
  12699. _has_bits_[0] |= 0x00000001u;
  12700. } else {
  12701. _has_bits_[0] &= ~0x00000001u;
  12702. }
  12703. leading_comments_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12704. leading_comments, GetArenaNoVirtual());
  12705. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  12706. }
  12707. // optional string trailing_comments = 4;
  12708. inline bool SourceCodeInfo_Location::_internal_has_trailing_comments() const {
  12709. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12710. return value;
  12711. }
  12712. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  12713. return _internal_has_trailing_comments();
  12714. }
  12715. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  12716. trailing_comments_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12717. _has_bits_[0] &= ~0x00000002u;
  12718. }
  12719. inline const std::string& SourceCodeInfo_Location::trailing_comments() const {
  12720. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12721. return _internal_trailing_comments();
  12722. }
  12723. inline void SourceCodeInfo_Location::set_trailing_comments(const std::string& value) {
  12724. _internal_set_trailing_comments(value);
  12725. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12726. }
  12727. inline std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  12728. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12729. return _internal_mutable_trailing_comments();
  12730. }
  12731. inline const std::string& SourceCodeInfo_Location::_internal_trailing_comments() const {
  12732. return trailing_comments_.Get();
  12733. }
  12734. inline void SourceCodeInfo_Location::_internal_set_trailing_comments(const std::string& value) {
  12735. _has_bits_[0] |= 0x00000002u;
  12736. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12737. }
  12738. inline void SourceCodeInfo_Location::set_trailing_comments(std::string&& value) {
  12739. _has_bits_[0] |= 0x00000002u;
  12740. trailing_comments_.Set(
  12741. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12742. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12743. }
  12744. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
  12745. GOOGLE_DCHECK(value != nullptr);
  12746. _has_bits_[0] |= 0x00000002u;
  12747. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  12748. GetArenaNoVirtual());
  12749. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12750. }
  12751. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value,
  12752. size_t size) {
  12753. _has_bits_[0] |= 0x00000002u;
  12754. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  12755. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  12756. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12757. }
  12758. inline std::string* SourceCodeInfo_Location::_internal_mutable_trailing_comments() {
  12759. _has_bits_[0] |= 0x00000002u;
  12760. return trailing_comments_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12761. }
  12762. inline std::string* SourceCodeInfo_Location::release_trailing_comments() {
  12763. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12764. if (!has_trailing_comments()) {
  12765. return nullptr;
  12766. }
  12767. _has_bits_[0] &= ~0x00000002u;
  12768. return trailing_comments_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12769. }
  12770. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(std::string* trailing_comments) {
  12771. if (trailing_comments != nullptr) {
  12772. _has_bits_[0] |= 0x00000002u;
  12773. } else {
  12774. _has_bits_[0] &= ~0x00000002u;
  12775. }
  12776. trailing_comments_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), trailing_comments,
  12777. GetArenaNoVirtual());
  12778. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12779. }
  12780. inline std::string* SourceCodeInfo_Location::unsafe_arena_release_trailing_comments() {
  12781. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12782. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12783. _has_bits_[0] &= ~0x00000002u;
  12784. return trailing_comments_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12785. GetArenaNoVirtual());
  12786. }
  12787. inline void SourceCodeInfo_Location::unsafe_arena_set_allocated_trailing_comments(
  12788. std::string* trailing_comments) {
  12789. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  12790. if (trailing_comments != nullptr) {
  12791. _has_bits_[0] |= 0x00000002u;
  12792. } else {
  12793. _has_bits_[0] &= ~0x00000002u;
  12794. }
  12795. trailing_comments_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  12796. trailing_comments, GetArenaNoVirtual());
  12797. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  12798. }
  12799. // repeated string leading_detached_comments = 6;
  12800. inline int SourceCodeInfo_Location::_internal_leading_detached_comments_size() const {
  12801. return leading_detached_comments_.size();
  12802. }
  12803. inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
  12804. return _internal_leading_detached_comments_size();
  12805. }
  12806. inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
  12807. leading_detached_comments_.Clear();
  12808. }
  12809. inline std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  12810. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12811. return _internal_add_leading_detached_comments();
  12812. }
  12813. inline const std::string& SourceCodeInfo_Location::_internal_leading_detached_comments(int index) const {
  12814. return leading_detached_comments_.Get(index);
  12815. }
  12816. inline const std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  12817. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12818. return _internal_leading_detached_comments(index);
  12819. }
  12820. inline std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  12821. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12822. return leading_detached_comments_.Mutable(index);
  12823. }
  12824. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const std::string& value) {
  12825. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12826. leading_detached_comments_.Mutable(index)->assign(value);
  12827. }
  12828. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, std::string&& value) {
  12829. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12830. leading_detached_comments_.Mutable(index)->assign(std::move(value));
  12831. }
  12832. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  12833. GOOGLE_DCHECK(value != nullptr);
  12834. leading_detached_comments_.Mutable(index)->assign(value);
  12835. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12836. }
  12837. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  12838. leading_detached_comments_.Mutable(index)->assign(
  12839. reinterpret_cast<const char*>(value), size);
  12840. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12841. }
  12842. inline std::string* SourceCodeInfo_Location::_internal_add_leading_detached_comments() {
  12843. return leading_detached_comments_.Add();
  12844. }
  12845. inline void SourceCodeInfo_Location::add_leading_detached_comments(const std::string& value) {
  12846. leading_detached_comments_.Add()->assign(value);
  12847. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12848. }
  12849. inline void SourceCodeInfo_Location::add_leading_detached_comments(std::string&& value) {
  12850. leading_detached_comments_.Add(std::move(value));
  12851. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12852. }
  12853. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  12854. GOOGLE_DCHECK(value != nullptr);
  12855. leading_detached_comments_.Add()->assign(value);
  12856. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12857. }
  12858. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  12859. leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  12860. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12861. }
  12862. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  12863. SourceCodeInfo_Location::leading_detached_comments() const {
  12864. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12865. return leading_detached_comments_;
  12866. }
  12867. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  12868. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  12869. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  12870. return &leading_detached_comments_;
  12871. }
  12872. // -------------------------------------------------------------------
  12873. // SourceCodeInfo
  12874. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  12875. inline int SourceCodeInfo::_internal_location_size() const {
  12876. return location_.size();
  12877. }
  12878. inline int SourceCodeInfo::location_size() const {
  12879. return _internal_location_size();
  12880. }
  12881. inline void SourceCodeInfo::clear_location() {
  12882. location_.Clear();
  12883. }
  12884. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  12885. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  12886. return location_.Mutable(index);
  12887. }
  12888. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  12889. SourceCodeInfo::mutable_location() {
  12890. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  12891. return &location_;
  12892. }
  12893. inline const PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::_internal_location(int index) const {
  12894. return location_.Get(index);
  12895. }
  12896. inline const PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  12897. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  12898. return _internal_location(index);
  12899. }
  12900. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::_internal_add_location() {
  12901. return location_.Add();
  12902. }
  12903. inline PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  12904. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  12905. return _internal_add_location();
  12906. }
  12907. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  12908. SourceCodeInfo::location() const {
  12909. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  12910. return location_;
  12911. }
  12912. // -------------------------------------------------------------------
  12913. // GeneratedCodeInfo_Annotation
  12914. // repeated int32 path = 1 [packed = true];
  12915. inline int GeneratedCodeInfo_Annotation::_internal_path_size() const {
  12916. return path_.size();
  12917. }
  12918. inline int GeneratedCodeInfo_Annotation::path_size() const {
  12919. return _internal_path_size();
  12920. }
  12921. inline void GeneratedCodeInfo_Annotation::clear_path() {
  12922. path_.Clear();
  12923. }
  12924. inline ::PROTOBUF_NAMESPACE_ID::int32 GeneratedCodeInfo_Annotation::_internal_path(int index) const {
  12925. return path_.Get(index);
  12926. }
  12927. inline ::PROTOBUF_NAMESPACE_ID::int32 GeneratedCodeInfo_Annotation::path(int index) const {
  12928. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  12929. return _internal_path(index);
  12930. }
  12931. inline void GeneratedCodeInfo_Annotation::set_path(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
  12932. path_.Set(index, value);
  12933. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  12934. }
  12935. inline void GeneratedCodeInfo_Annotation::_internal_add_path(::PROTOBUF_NAMESPACE_ID::int32 value) {
  12936. path_.Add(value);
  12937. }
  12938. inline void GeneratedCodeInfo_Annotation::add_path(::PROTOBUF_NAMESPACE_ID::int32 value) {
  12939. _internal_add_path(value);
  12940. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  12941. }
  12942. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  12943. GeneratedCodeInfo_Annotation::_internal_path() const {
  12944. return path_;
  12945. }
  12946. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
  12947. GeneratedCodeInfo_Annotation::path() const {
  12948. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  12949. return _internal_path();
  12950. }
  12951. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  12952. GeneratedCodeInfo_Annotation::_internal_mutable_path() {
  12953. return &path_;
  12954. }
  12955. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
  12956. GeneratedCodeInfo_Annotation::mutable_path() {
  12957. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  12958. return _internal_mutable_path();
  12959. }
  12960. // optional string source_file = 2;
  12961. inline bool GeneratedCodeInfo_Annotation::_internal_has_source_file() const {
  12962. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12963. return value;
  12964. }
  12965. inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
  12966. return _internal_has_source_file();
  12967. }
  12968. inline void GeneratedCodeInfo_Annotation::clear_source_file() {
  12969. source_file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  12970. _has_bits_[0] &= ~0x00000001u;
  12971. }
  12972. inline const std::string& GeneratedCodeInfo_Annotation::source_file() const {
  12973. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  12974. return _internal_source_file();
  12975. }
  12976. inline void GeneratedCodeInfo_Annotation::set_source_file(const std::string& value) {
  12977. _internal_set_source_file(value);
  12978. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  12979. }
  12980. inline std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
  12981. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  12982. return _internal_mutable_source_file();
  12983. }
  12984. inline const std::string& GeneratedCodeInfo_Annotation::_internal_source_file() const {
  12985. return source_file_.Get();
  12986. }
  12987. inline void GeneratedCodeInfo_Annotation::_internal_set_source_file(const std::string& value) {
  12988. _has_bits_[0] |= 0x00000001u;
  12989. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  12990. }
  12991. inline void GeneratedCodeInfo_Annotation::set_source_file(std::string&& value) {
  12992. _has_bits_[0] |= 0x00000001u;
  12993. source_file_.Set(
  12994. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  12995. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  12996. }
  12997. inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value) {
  12998. GOOGLE_DCHECK(value != nullptr);
  12999. _has_bits_[0] |= 0x00000001u;
  13000. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  13001. GetArenaNoVirtual());
  13002. // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13003. }
  13004. inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value,
  13005. size_t size) {
  13006. _has_bits_[0] |= 0x00000001u;
  13007. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  13008. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  13009. // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13010. }
  13011. inline std::string* GeneratedCodeInfo_Annotation::_internal_mutable_source_file() {
  13012. _has_bits_[0] |= 0x00000001u;
  13013. return source_file_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  13014. }
  13015. inline std::string* GeneratedCodeInfo_Annotation::release_source_file() {
  13016. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13017. if (!has_source_file()) {
  13018. return nullptr;
  13019. }
  13020. _has_bits_[0] &= ~0x00000001u;
  13021. return source_file_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  13022. }
  13023. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(std::string* source_file) {
  13024. if (source_file != nullptr) {
  13025. _has_bits_[0] |= 0x00000001u;
  13026. } else {
  13027. _has_bits_[0] &= ~0x00000001u;
  13028. }
  13029. source_file_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_file,
  13030. GetArenaNoVirtual());
  13031. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13032. }
  13033. inline std::string* GeneratedCodeInfo_Annotation::unsafe_arena_release_source_file() {
  13034. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13035. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  13036. _has_bits_[0] &= ~0x00000001u;
  13037. return source_file_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  13038. GetArenaNoVirtual());
  13039. }
  13040. inline void GeneratedCodeInfo_Annotation::unsafe_arena_set_allocated_source_file(
  13041. std::string* source_file) {
  13042. GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
  13043. if (source_file != nullptr) {
  13044. _has_bits_[0] |= 0x00000001u;
  13045. } else {
  13046. _has_bits_[0] &= ~0x00000001u;
  13047. }
  13048. source_file_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  13049. source_file, GetArenaNoVirtual());
  13050. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13051. }
  13052. // optional int32 begin = 3;
  13053. inline bool GeneratedCodeInfo_Annotation::_internal_has_begin() const {
  13054. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  13055. return value;
  13056. }
  13057. inline bool GeneratedCodeInfo_Annotation::has_begin() const {
  13058. return _internal_has_begin();
  13059. }
  13060. inline void GeneratedCodeInfo_Annotation::clear_begin() {
  13061. begin_ = 0;
  13062. _has_bits_[0] &= ~0x00000002u;
  13063. }
  13064. inline ::PROTOBUF_NAMESPACE_ID::int32 GeneratedCodeInfo_Annotation::_internal_begin() const {
  13065. return begin_;
  13066. }
  13067. inline ::PROTOBUF_NAMESPACE_ID::int32 GeneratedCodeInfo_Annotation::begin() const {
  13068. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13069. return _internal_begin();
  13070. }
  13071. inline void GeneratedCodeInfo_Annotation::_internal_set_begin(::PROTOBUF_NAMESPACE_ID::int32 value) {
  13072. _has_bits_[0] |= 0x00000002u;
  13073. begin_ = value;
  13074. }
  13075. inline void GeneratedCodeInfo_Annotation::set_begin(::PROTOBUF_NAMESPACE_ID::int32 value) {
  13076. _internal_set_begin(value);
  13077. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13078. }
  13079. // optional int32 end = 4;
  13080. inline bool GeneratedCodeInfo_Annotation::_internal_has_end() const {
  13081. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  13082. return value;
  13083. }
  13084. inline bool GeneratedCodeInfo_Annotation::has_end() const {
  13085. return _internal_has_end();
  13086. }
  13087. inline void GeneratedCodeInfo_Annotation::clear_end() {
  13088. end_ = 0;
  13089. _has_bits_[0] &= ~0x00000004u;
  13090. }
  13091. inline ::PROTOBUF_NAMESPACE_ID::int32 GeneratedCodeInfo_Annotation::_internal_end() const {
  13092. return end_;
  13093. }
  13094. inline ::PROTOBUF_NAMESPACE_ID::int32 GeneratedCodeInfo_Annotation::end() const {
  13095. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13096. return _internal_end();
  13097. }
  13098. inline void GeneratedCodeInfo_Annotation::_internal_set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  13099. _has_bits_[0] |= 0x00000004u;
  13100. end_ = value;
  13101. }
  13102. inline void GeneratedCodeInfo_Annotation::set_end(::PROTOBUF_NAMESPACE_ID::int32 value) {
  13103. _internal_set_end(value);
  13104. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13105. }
  13106. // -------------------------------------------------------------------
  13107. // GeneratedCodeInfo
  13108. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  13109. inline int GeneratedCodeInfo::_internal_annotation_size() const {
  13110. return annotation_.size();
  13111. }
  13112. inline int GeneratedCodeInfo::annotation_size() const {
  13113. return _internal_annotation_size();
  13114. }
  13115. inline void GeneratedCodeInfo::clear_annotation() {
  13116. annotation_.Clear();
  13117. }
  13118. inline PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
  13119. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  13120. return annotation_.Mutable(index);
  13121. }
  13122. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  13123. GeneratedCodeInfo::mutable_annotation() {
  13124. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  13125. return &annotation_;
  13126. }
  13127. inline const PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::_internal_annotation(int index) const {
  13128. return annotation_.Get(index);
  13129. }
  13130. inline const PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
  13131. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  13132. return _internal_annotation(index);
  13133. }
  13134. inline PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::_internal_add_annotation() {
  13135. return annotation_.Add();
  13136. }
  13137. inline PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
  13138. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  13139. return _internal_add_annotation();
  13140. }
  13141. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  13142. GeneratedCodeInfo::annotation() const {
  13143. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  13144. return annotation_;
  13145. }
  13146. #ifdef __GNUC__
  13147. #pragma GCC diagnostic pop
  13148. #endif // __GNUC__
  13149. // -------------------------------------------------------------------
  13150. // -------------------------------------------------------------------
  13151. // -------------------------------------------------------------------
  13152. // -------------------------------------------------------------------
  13153. // -------------------------------------------------------------------
  13154. // -------------------------------------------------------------------
  13155. // -------------------------------------------------------------------
  13156. // -------------------------------------------------------------------
  13157. // -------------------------------------------------------------------
  13158. // -------------------------------------------------------------------
  13159. // -------------------------------------------------------------------
  13160. // -------------------------------------------------------------------
  13161. // -------------------------------------------------------------------
  13162. // -------------------------------------------------------------------
  13163. // -------------------------------------------------------------------
  13164. // -------------------------------------------------------------------
  13165. // -------------------------------------------------------------------
  13166. // -------------------------------------------------------------------
  13167. // -------------------------------------------------------------------
  13168. // -------------------------------------------------------------------
  13169. // -------------------------------------------------------------------
  13170. // -------------------------------------------------------------------
  13171. // -------------------------------------------------------------------
  13172. // -------------------------------------------------------------------
  13173. // -------------------------------------------------------------------
  13174. // -------------------------------------------------------------------
  13175. // @@protoc_insertion_point(namespace_scope)
  13176. PROTOBUF_NAMESPACE_CLOSE
  13177. PROTOBUF_NAMESPACE_OPEN
  13178. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type> : ::std::true_type {};
  13179. template <>
  13180. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>() {
  13181. return PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_descriptor();
  13182. }
  13183. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label> : ::std::true_type {};
  13184. template <>
  13185. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>() {
  13186. return PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_descriptor();
  13187. }
  13188. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode> : ::std::true_type {};
  13189. template <>
  13190. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>() {
  13191. return PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_descriptor();
  13192. }
  13193. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::FieldOptions_CType> : ::std::true_type {};
  13194. template <>
  13195. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::FieldOptions_CType>() {
  13196. return PROTOBUF_NAMESPACE_ID::FieldOptions_CType_descriptor();
  13197. }
  13198. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::FieldOptions_JSType> : ::std::true_type {};
  13199. template <>
  13200. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>() {
  13201. return PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_descriptor();
  13202. }
  13203. template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel> : ::std::true_type {};
  13204. template <>
  13205. inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>() {
  13206. return PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_descriptor();
  13207. }
  13208. PROTOBUF_NAMESPACE_CLOSE
  13209. // @@protoc_insertion_point(global_scope)
  13210. #include <google/protobuf/port_undef.inc>
  13211. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto