| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- /*
- * Copyright 2025 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/api/field_behavior.proto
- // Protobuf C++ Version: 4.25.1
- #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh
- #define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh
- #include <limits>
- #include <string>
- #include <type_traits>
- #include <utility>
- #include "google/protobuf/port_def.inc"
- #if PROTOBUF_VERSION < 4025000
- #error "This file was generated by a newer version of protoc which is"
- #error "incompatible with your Protocol Buffer headers. Please update"
- #error "your headers."
- #endif // PROTOBUF_VERSION
- #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
- #error "This file was generated by an older version of protoc which is"
- #error "incompatible with your Protocol Buffer headers. Please"
- #error "regenerate this file with a newer version of protoc."
- #endif // PROTOBUF_MIN_PROTOC_VERSION
- #include "google/protobuf/port_undef.inc"
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/arena.h"
- #include "google/protobuf/arenastring.h"
- #include "google/protobuf/generated_message_tctable_decl.h"
- #include "google/protobuf/generated_message_util.h"
- #include "google/protobuf/metadata_lite.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/repeated_field.h" // IWYU pragma: export
- #include "google/protobuf/extension_set.h" // IWYU pragma: export
- #include "google/protobuf/generated_enum_reflection.h"
- #include "google/protobuf/descriptor.pb.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2ffield_5fbehavior_2eproto
- namespace google {
- namespace protobuf {
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- } // namespace protobuf
- } // namespace google
- // Internal implementation detail -- do not use these members.
- struct TableStruct_google_2fapi_2ffield_5fbehavior_2eproto {
- static const ::uint32_t offsets[];
- };
- extern const ::google::protobuf::internal::DescriptorTable
- descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto;
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- namespace google {
- namespace api {
- enum FieldBehavior : int {
- FIELD_BEHAVIOR_UNSPECIFIED = 0,
- OPTIONAL = 1,
- REQUIRED = 2,
- OUTPUT_ONLY = 3,
- INPUT_ONLY = 4,
- IMMUTABLE = 5,
- UNORDERED_LIST = 6,
- NON_EMPTY_DEFAULT = 7,
- IDENTIFIER = 8,
- FieldBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ =
- std::numeric_limits<::int32_t>::min(),
- FieldBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ =
- std::numeric_limits<::int32_t>::max(),
- };
- bool FieldBehavior_IsValid(int value);
- extern const uint32_t FieldBehavior_internal_data_[];
- constexpr FieldBehavior FieldBehavior_MIN = static_cast<FieldBehavior>(0);
- constexpr FieldBehavior FieldBehavior_MAX = static_cast<FieldBehavior>(8);
- constexpr int FieldBehavior_ARRAYSIZE = 8 + 1;
- const ::google::protobuf::EnumDescriptor*
- FieldBehavior_descriptor();
- template <typename T>
- const std::string& FieldBehavior_Name(T value) {
- static_assert(std::is_same<T, FieldBehavior>::value ||
- std::is_integral<T>::value,
- "Incorrect type passed to FieldBehavior_Name().");
- return FieldBehavior_Name(static_cast<FieldBehavior>(value));
- }
- template <>
- inline const std::string& FieldBehavior_Name(FieldBehavior value) {
- return ::google::protobuf::internal::NameOfDenseEnum<FieldBehavior_descriptor,
- 0, 8>(
- static_cast<int>(value));
- }
- inline bool FieldBehavior_Parse(absl::string_view name, FieldBehavior* value) {
- return ::google::protobuf::internal::ParseNamedEnum<FieldBehavior>(
- FieldBehavior_descriptor(), name, value);
- }
- // ===================================================================
- // ===================================================================
- static const int kFieldBehaviorFieldNumber = 1052;
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
- ::google::protobuf::internal::RepeatedEnumTypeTraits< ::google::api::FieldBehavior, ::google::api::FieldBehavior_IsValid>, 14, false >
- field_behavior;
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // @@protoc_insertion_point(namespace_scope)
- } // namespace api
- } // namespace google
- namespace google {
- namespace protobuf {
- template <>
- struct is_proto_enum<::google::api::FieldBehavior> : std::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor<::google::api::FieldBehavior>() {
- return ::google::api::FieldBehavior_descriptor();
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
- #endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2ffield_5fbehavior_2eproto_2epb_2eh
|