field_behavior.pb.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /*
  2. * Copyright 2025 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/api/field_behavior.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  45. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  46. #include "google/protobuf/generated_enum_reflection.h"
  47. #include "google/protobuf/descriptor.pb.h"
  48. // @@protoc_insertion_point(includes)
  49. // Must be included last.
  50. #include "google/protobuf/port_def.inc"
  51. #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2ffield_5fbehavior_2eproto
  52. namespace google {
  53. namespace protobuf {
  54. namespace internal {
  55. class AnyMetadata;
  56. } // namespace internal
  57. } // namespace protobuf
  58. } // namespace google
  59. // Internal implementation detail -- do not use these members.
  60. struct TableStruct_google_2fapi_2ffield_5fbehavior_2eproto {
  61. static const ::uint32_t offsets[];
  62. };
  63. extern const ::google::protobuf::internal::DescriptorTable
  64. descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto;
  65. namespace google {
  66. namespace protobuf {
  67. } // namespace protobuf
  68. } // namespace google
  69. namespace google {
  70. namespace api {
  71. enum FieldBehavior : int {
  72. FIELD_BEHAVIOR_UNSPECIFIED = 0,
  73. OPTIONAL = 1,
  74. REQUIRED = 2,
  75. OUTPUT_ONLY = 3,
  76. INPUT_ONLY = 4,
  77. IMMUTABLE = 5,
  78. UNORDERED_LIST = 6,
  79. NON_EMPTY_DEFAULT = 7,
  80. IDENTIFIER = 8,
  81. FieldBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ =
  82. std::numeric_limits<::int32_t>::min(),
  83. FieldBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ =
  84. std::numeric_limits<::int32_t>::max(),
  85. };
  86. bool FieldBehavior_IsValid(int value);
  87. extern const uint32_t FieldBehavior_internal_data_[];
  88. constexpr FieldBehavior FieldBehavior_MIN = static_cast<FieldBehavior>(0);
  89. constexpr FieldBehavior FieldBehavior_MAX = static_cast<FieldBehavior>(8);
  90. constexpr int FieldBehavior_ARRAYSIZE = 8 + 1;
  91. const ::google::protobuf::EnumDescriptor*
  92. FieldBehavior_descriptor();
  93. template <typename T>
  94. const std::string& FieldBehavior_Name(T value) {
  95. static_assert(std::is_same<T, FieldBehavior>::value ||
  96. std::is_integral<T>::value,
  97. "Incorrect type passed to FieldBehavior_Name().");
  98. return FieldBehavior_Name(static_cast<FieldBehavior>(value));
  99. }
  100. template <>
  101. inline const std::string& FieldBehavior_Name(FieldBehavior value) {
  102. return ::google::protobuf::internal::NameOfDenseEnum<FieldBehavior_descriptor,
  103. 0, 8>(
  104. static_cast<int>(value));
  105. }
  106. inline bool FieldBehavior_Parse(absl::string_view name, FieldBehavior* value) {
  107. return ::google::protobuf::internal::ParseNamedEnum<FieldBehavior>(
  108. FieldBehavior_descriptor(), name, value);
  109. }
  110. // ===================================================================
  111. // ===================================================================
  112. static const int kFieldBehaviorFieldNumber = 1052;
  113. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
  114. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false >
  115. field_behavior;
  116. // ===================================================================
  117. #ifdef __GNUC__
  118. #pragma GCC diagnostic push
  119. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  120. #endif // __GNUC__
  121. #ifdef __GNUC__
  122. #pragma GCC diagnostic pop
  123. #endif // __GNUC__
  124. // @@protoc_insertion_point(namespace_scope)
  125. } // namespace api
  126. } // namespace google
  127. namespace google {
  128. namespace protobuf {
  129. template <>
  130. struct is_proto_enum<::google::api::FieldBehavior> : std::true_type {};
  131. template <>
  132. inline const EnumDescriptor* GetEnumDescriptor<::google::api::FieldBehavior>() {
  133. return ::google::api::FieldBehavior_descriptor();
  134. }
  135. } // namespace protobuf
  136. } // namespace google
  137. // @@protoc_insertion_point(global_scope)
  138. #include "google/protobuf/port_undef.inc"
  139. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh