/* * Copyright 2022 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/firestore/admin/index.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto #include #include #include #if PROTOBUF_VERSION < 3011000 #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 #if 3011002 < 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 #include #include #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include #include "google/api/resource.pb.h" #include "google/api/annotations.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fadmin_2findex_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_google_2ffirestore_2fadmin_2findex_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto; namespace google { namespace firestore { namespace admin { namespace v1 { class Index; class IndexDefaultTypeInternal; extern IndexDefaultTypeInternal _Index_default_instance_; class Index_IndexField; class Index_IndexFieldDefaultTypeInternal; extern Index_IndexFieldDefaultTypeInternal _Index_IndexField_default_instance_; } // namespace v1 } // namespace admin } // namespace firestore } // namespace google PROTOBUF_NAMESPACE_OPEN template<> ::google::firestore::admin::v1::Index* Arena::CreateMaybeMessage<::google::firestore::admin::v1::Index>(Arena*); template<> ::google::firestore::admin::v1::Index_IndexField* Arena::CreateMaybeMessage<::google::firestore::admin::v1::Index_IndexField>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace google { namespace firestore { namespace admin { namespace v1 { enum Index_IndexField_Order : int { Index_IndexField_Order_ORDER_UNSPECIFIED = 0, Index_IndexField_Order_ASCENDING = 1, Index_IndexField_Order_DESCENDING = 2, Index_IndexField_Order_Index_IndexField_Order_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), Index_IndexField_Order_Index_IndexField_Order_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Index_IndexField_Order_IsValid(int value); constexpr Index_IndexField_Order Index_IndexField_Order_Order_MIN = Index_IndexField_Order_ORDER_UNSPECIFIED; constexpr Index_IndexField_Order Index_IndexField_Order_Order_MAX = Index_IndexField_Order_DESCENDING; constexpr int Index_IndexField_Order_Order_ARRAYSIZE = Index_IndexField_Order_Order_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_IndexField_Order_descriptor(); template inline const std::string& Index_IndexField_Order_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Index_IndexField_Order_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Index_IndexField_Order_descriptor(), enum_t_value); } inline bool Index_IndexField_Order_Parse( const std::string& name, Index_IndexField_Order* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Index_IndexField_Order_descriptor(), name, value); } enum Index_IndexField_ArrayConfig : int { Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED = 0, Index_IndexField_ArrayConfig_CONTAINS = 1, Index_IndexField_ArrayConfig_Index_IndexField_ArrayConfig_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), Index_IndexField_ArrayConfig_Index_IndexField_ArrayConfig_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Index_IndexField_ArrayConfig_IsValid(int value); constexpr Index_IndexField_ArrayConfig Index_IndexField_ArrayConfig_ArrayConfig_MIN = Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED; constexpr Index_IndexField_ArrayConfig Index_IndexField_ArrayConfig_ArrayConfig_MAX = Index_IndexField_ArrayConfig_CONTAINS; constexpr int Index_IndexField_ArrayConfig_ArrayConfig_ARRAYSIZE = Index_IndexField_ArrayConfig_ArrayConfig_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_IndexField_ArrayConfig_descriptor(); template inline const std::string& Index_IndexField_ArrayConfig_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Index_IndexField_ArrayConfig_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Index_IndexField_ArrayConfig_descriptor(), enum_t_value); } inline bool Index_IndexField_ArrayConfig_Parse( const std::string& name, Index_IndexField_ArrayConfig* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Index_IndexField_ArrayConfig_descriptor(), name, value); } enum Index_QueryScope : int { Index_QueryScope_QUERY_SCOPE_UNSPECIFIED = 0, Index_QueryScope_COLLECTION = 1, Index_QueryScope_COLLECTION_GROUP = 2, Index_QueryScope_Index_QueryScope_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), Index_QueryScope_Index_QueryScope_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Index_QueryScope_IsValid(int value); constexpr Index_QueryScope Index_QueryScope_QueryScope_MIN = Index_QueryScope_QUERY_SCOPE_UNSPECIFIED; constexpr Index_QueryScope Index_QueryScope_QueryScope_MAX = Index_QueryScope_COLLECTION_GROUP; constexpr int Index_QueryScope_QueryScope_ARRAYSIZE = Index_QueryScope_QueryScope_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_QueryScope_descriptor(); template inline const std::string& Index_QueryScope_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Index_QueryScope_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Index_QueryScope_descriptor(), enum_t_value); } inline bool Index_QueryScope_Parse( const std::string& name, Index_QueryScope* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Index_QueryScope_descriptor(), name, value); } enum Index_State : int { Index_State_STATE_UNSPECIFIED = 0, Index_State_CREATING = 1, Index_State_READY = 2, Index_State_NEEDS_REPAIR = 3, Index_State_Index_State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), Index_State_Index_State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Index_State_IsValid(int value); constexpr Index_State Index_State_State_MIN = Index_State_STATE_UNSPECIFIED; constexpr Index_State Index_State_State_MAX = Index_State_NEEDS_REPAIR; constexpr int Index_State_State_ARRAYSIZE = Index_State_State_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Index_State_descriptor(); template inline const std::string& Index_State_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Index_State_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( Index_State_descriptor(), enum_t_value); } inline bool Index_State_Parse( const std::string& name, Index_State* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Index_State_descriptor(), name, value); } // =================================================================== class Index_IndexField : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.admin.v1.Index.IndexField) */ { public: Index_IndexField(); virtual ~Index_IndexField(); Index_IndexField(const Index_IndexField& from); Index_IndexField(Index_IndexField&& from) noexcept : Index_IndexField() { *this = ::std::move(from); } inline Index_IndexField& operator=(const Index_IndexField& from) { CopyFrom(from); return *this; } inline Index_IndexField& operator=(Index_IndexField&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Index_IndexField& default_instance(); enum ValueModeCase { kOrder = 2, kArrayConfig = 3, VALUE_MODE_NOT_SET = 0, }; static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Index_IndexField* internal_default_instance() { return reinterpret_cast( &_Index_IndexField_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Index_IndexField& a, Index_IndexField& b) { a.Swap(&b); } inline void Swap(Index_IndexField* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Index_IndexField* New() const final { return CreateMaybeMessage(nullptr); } Index_IndexField* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Index_IndexField& from); void MergeFrom(const Index_IndexField& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Index_IndexField* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.firestore.admin.v1.Index.IndexField"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto); return ::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- typedef Index_IndexField_Order Order; static constexpr Order ORDER_UNSPECIFIED = Index_IndexField_Order_ORDER_UNSPECIFIED; static constexpr Order ASCENDING = Index_IndexField_Order_ASCENDING; static constexpr Order DESCENDING = Index_IndexField_Order_DESCENDING; static inline bool Order_IsValid(int value) { return Index_IndexField_Order_IsValid(value); } static constexpr Order Order_MIN = Index_IndexField_Order_Order_MIN; static constexpr Order Order_MAX = Index_IndexField_Order_Order_MAX; static constexpr int Order_ARRAYSIZE = Index_IndexField_Order_Order_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Order_descriptor() { return Index_IndexField_Order_descriptor(); } template static inline const std::string& Order_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function Order_Name."); return Index_IndexField_Order_Name(enum_t_value); } static inline bool Order_Parse(const std::string& name, Order* value) { return Index_IndexField_Order_Parse(name, value); } typedef Index_IndexField_ArrayConfig ArrayConfig; static constexpr ArrayConfig ARRAY_CONFIG_UNSPECIFIED = Index_IndexField_ArrayConfig_ARRAY_CONFIG_UNSPECIFIED; static constexpr ArrayConfig CONTAINS = Index_IndexField_ArrayConfig_CONTAINS; static inline bool ArrayConfig_IsValid(int value) { return Index_IndexField_ArrayConfig_IsValid(value); } static constexpr ArrayConfig ArrayConfig_MIN = Index_IndexField_ArrayConfig_ArrayConfig_MIN; static constexpr ArrayConfig ArrayConfig_MAX = Index_IndexField_ArrayConfig_ArrayConfig_MAX; static constexpr int ArrayConfig_ARRAYSIZE = Index_IndexField_ArrayConfig_ArrayConfig_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ArrayConfig_descriptor() { return Index_IndexField_ArrayConfig_descriptor(); } template static inline const std::string& ArrayConfig_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function ArrayConfig_Name."); return Index_IndexField_ArrayConfig_Name(enum_t_value); } static inline bool ArrayConfig_Parse(const std::string& name, ArrayConfig* value) { return Index_IndexField_ArrayConfig_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { kFieldPathFieldNumber = 1, kOrderFieldNumber = 2, kArrayConfigFieldNumber = 3, }; // string field_path = 1; void clear_field_path(); const std::string& field_path() const; void set_field_path(const std::string& value); void set_field_path(std::string&& value); void set_field_path(const char* value); void set_field_path(const char* value, size_t size); std::string* mutable_field_path(); std::string* release_field_path(); void set_allocated_field_path(std::string* field_path); private: const std::string& _internal_field_path() const; void _internal_set_field_path(const std::string& value); std::string* _internal_mutable_field_path(); public: // .google.firestore.admin.v1.Index.IndexField.Order order = 2; private: bool _internal_has_order() const; public: void clear_order(); ::google::firestore::admin::v1::Index_IndexField_Order order() const; void set_order(::google::firestore::admin::v1::Index_IndexField_Order value); private: ::google::firestore::admin::v1::Index_IndexField_Order _internal_order() const; void _internal_set_order(::google::firestore::admin::v1::Index_IndexField_Order value); public: // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; private: bool _internal_has_array_config() const; public: void clear_array_config(); ::google::firestore::admin::v1::Index_IndexField_ArrayConfig array_config() const; void set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value); private: ::google::firestore::admin::v1::Index_IndexField_ArrayConfig _internal_array_config() const; void _internal_set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value); public: void clear_value_mode(); ValueModeCase value_mode_case() const; // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index.IndexField) private: class _Internal; void set_has_order(); void set_has_array_config(); inline bool has_value_mode() const; inline void clear_has_value_mode(); ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_path_; union ValueModeUnion { ValueModeUnion() {} int order_; int array_config_; } value_mode_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; friend struct ::TableStruct_google_2ffirestore_2fadmin_2findex_2eproto; }; // ------------------------------------------------------------------- class Index : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.firestore.admin.v1.Index) */ { public: Index(); virtual ~Index(); Index(const Index& from); Index(Index&& from) noexcept : Index() { *this = ::std::move(from); } inline Index& operator=(const Index& from) { CopyFrom(from); return *this; } inline Index& operator=(Index&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Index& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Index* internal_default_instance() { return reinterpret_cast( &_Index_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Index& a, Index& b) { a.Swap(&b); } inline void Swap(Index* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Index* New() const final { return CreateMaybeMessage(nullptr); } Index* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Index& from); void MergeFrom(const Index& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Index* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "google.firestore.admin.v1.Index"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto); return ::descriptor_table_google_2ffirestore_2fadmin_2findex_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- typedef Index_IndexField IndexField; typedef Index_QueryScope QueryScope; static constexpr QueryScope QUERY_SCOPE_UNSPECIFIED = Index_QueryScope_QUERY_SCOPE_UNSPECIFIED; static constexpr QueryScope COLLECTION = Index_QueryScope_COLLECTION; static constexpr QueryScope COLLECTION_GROUP = Index_QueryScope_COLLECTION_GROUP; static inline bool QueryScope_IsValid(int value) { return Index_QueryScope_IsValid(value); } static constexpr QueryScope QueryScope_MIN = Index_QueryScope_QueryScope_MIN; static constexpr QueryScope QueryScope_MAX = Index_QueryScope_QueryScope_MAX; static constexpr int QueryScope_ARRAYSIZE = Index_QueryScope_QueryScope_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* QueryScope_descriptor() { return Index_QueryScope_descriptor(); } template static inline const std::string& QueryScope_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function QueryScope_Name."); return Index_QueryScope_Name(enum_t_value); } static inline bool QueryScope_Parse(const std::string& name, QueryScope* value) { return Index_QueryScope_Parse(name, value); } typedef Index_State State; static constexpr State STATE_UNSPECIFIED = Index_State_STATE_UNSPECIFIED; static constexpr State CREATING = Index_State_CREATING; static constexpr State READY = Index_State_READY; static constexpr State NEEDS_REPAIR = Index_State_NEEDS_REPAIR; static inline bool State_IsValid(int value) { return Index_State_IsValid(value); } static constexpr State State_MIN = Index_State_State_MIN; static constexpr State State_MAX = Index_State_State_MAX; static constexpr int State_ARRAYSIZE = Index_State_State_ARRAYSIZE; static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* State_descriptor() { return Index_State_descriptor(); } template static inline const std::string& State_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function State_Name."); return Index_State_Name(enum_t_value); } static inline bool State_Parse(const std::string& name, State* value) { return Index_State_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { kFieldsFieldNumber = 3, kNameFieldNumber = 1, kQueryScopeFieldNumber = 2, kStateFieldNumber = 4, }; // repeated .google.firestore.admin.v1.Index.IndexField fields = 3; int fields_size() const; private: int _internal_fields_size() const; public: void clear_fields(); ::google::firestore::admin::v1::Index_IndexField* mutable_fields(int index); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >* mutable_fields(); private: const ::google::firestore::admin::v1::Index_IndexField& _internal_fields(int index) const; ::google::firestore::admin::v1::Index_IndexField* _internal_add_fields(); public: const ::google::firestore::admin::v1::Index_IndexField& fields(int index) const; ::google::firestore::admin::v1::Index_IndexField* add_fields(); const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >& fields() const; // string name = 1; void clear_name(); const std::string& name() const; void set_name(const std::string& value); void set_name(std::string&& value); void set_name(const char* value); void set_name(const char* value, size_t size); std::string* mutable_name(); std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // .google.firestore.admin.v1.Index.QueryScope query_scope = 2; void clear_query_scope(); ::google::firestore::admin::v1::Index_QueryScope query_scope() const; void set_query_scope(::google::firestore::admin::v1::Index_QueryScope value); private: ::google::firestore::admin::v1::Index_QueryScope _internal_query_scope() const; void _internal_set_query_scope(::google::firestore::admin::v1::Index_QueryScope value); public: // .google.firestore.admin.v1.Index.State state = 4; void clear_state(); ::google::firestore::admin::v1::Index_State state() const; void set_state(::google::firestore::admin::v1::Index_State value); private: ::google::firestore::admin::v1::Index_State _internal_state() const; void _internal_set_state(::google::firestore::admin::v1::Index_State value); public: // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.Index) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField > fields_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; int query_scope_; int state_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_google_2ffirestore_2fadmin_2findex_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Index_IndexField // string field_path = 1; inline void Index_IndexField::clear_field_path() { field_path_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& Index_IndexField::field_path() const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.field_path) return _internal_field_path(); } inline void Index_IndexField::set_field_path(const std::string& value) { _internal_set_field_path(value); // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.field_path) } inline std::string* Index_IndexField::mutable_field_path() { // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.IndexField.field_path) return _internal_mutable_field_path(); } inline const std::string& Index_IndexField::_internal_field_path() const { return field_path_.GetNoArena(); } inline void Index_IndexField::_internal_set_field_path(const std::string& value) { field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void Index_IndexField::set_field_path(std::string&& value) { field_path_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:google.firestore.admin.v1.Index.IndexField.field_path) } inline void Index_IndexField::set_field_path(const char* value) { GOOGLE_DCHECK(value != nullptr); field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:google.firestore.admin.v1.Index.IndexField.field_path) } inline void Index_IndexField::set_field_path(const char* value, size_t size) { field_path_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:google.firestore.admin.v1.Index.IndexField.field_path) } inline std::string* Index_IndexField::_internal_mutable_field_path() { return field_path_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* Index_IndexField::release_field_path() { // @@protoc_insertion_point(field_release:google.firestore.admin.v1.Index.IndexField.field_path) return field_path_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void Index_IndexField::set_allocated_field_path(std::string* field_path) { if (field_path != nullptr) { } else { } field_path_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_path); // @@protoc_insertion_point(field_set_allocated:google.firestore.admin.v1.Index.IndexField.field_path) } // .google.firestore.admin.v1.Index.IndexField.Order order = 2; inline bool Index_IndexField::_internal_has_order() const { return value_mode_case() == kOrder; } inline void Index_IndexField::set_has_order() { _oneof_case_[0] = kOrder; } inline void Index_IndexField::clear_order() { if (_internal_has_order()) { value_mode_.order_ = 0; clear_has_value_mode(); } } inline ::google::firestore::admin::v1::Index_IndexField_Order Index_IndexField::_internal_order() const { if (_internal_has_order()) { return static_cast< ::google::firestore::admin::v1::Index_IndexField_Order >(value_mode_.order_); } return static_cast< ::google::firestore::admin::v1::Index_IndexField_Order >(0); } inline ::google::firestore::admin::v1::Index_IndexField_Order Index_IndexField::order() const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.order) return _internal_order(); } inline void Index_IndexField::_internal_set_order(::google::firestore::admin::v1::Index_IndexField_Order value) { if (!_internal_has_order()) { clear_value_mode(); set_has_order(); } value_mode_.order_ = value; } inline void Index_IndexField::set_order(::google::firestore::admin::v1::Index_IndexField_Order value) { // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.order) _internal_set_order(value); } // .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3; inline bool Index_IndexField::_internal_has_array_config() const { return value_mode_case() == kArrayConfig; } inline void Index_IndexField::set_has_array_config() { _oneof_case_[0] = kArrayConfig; } inline void Index_IndexField::clear_array_config() { if (_internal_has_array_config()) { value_mode_.array_config_ = 0; clear_has_value_mode(); } } inline ::google::firestore::admin::v1::Index_IndexField_ArrayConfig Index_IndexField::_internal_array_config() const { if (_internal_has_array_config()) { return static_cast< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig >(value_mode_.array_config_); } return static_cast< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig >(0); } inline ::google::firestore::admin::v1::Index_IndexField_ArrayConfig Index_IndexField::array_config() const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.IndexField.array_config) return _internal_array_config(); } inline void Index_IndexField::_internal_set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value) { if (!_internal_has_array_config()) { clear_value_mode(); set_has_array_config(); } value_mode_.array_config_ = value; } inline void Index_IndexField::set_array_config(::google::firestore::admin::v1::Index_IndexField_ArrayConfig value) { // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.IndexField.array_config) _internal_set_array_config(value); } inline bool Index_IndexField::has_value_mode() const { return value_mode_case() != VALUE_MODE_NOT_SET; } inline void Index_IndexField::clear_has_value_mode() { _oneof_case_[0] = VALUE_MODE_NOT_SET; } inline Index_IndexField::ValueModeCase Index_IndexField::value_mode_case() const { return Index_IndexField::ValueModeCase(_oneof_case_[0]); } // ------------------------------------------------------------------- // Index // string name = 1; inline void Index::clear_name() { name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& Index::name() const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.name) return _internal_name(); } inline void Index::set_name(const std::string& value) { _internal_set_name(value); // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.name) } inline std::string* Index::mutable_name() { // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.name) return _internal_mutable_name(); } inline const std::string& Index::_internal_name() const { return name_.GetNoArena(); } inline void Index::_internal_set_name(const std::string& value) { name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); } inline void Index::set_name(std::string&& value) { name_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:google.firestore.admin.v1.Index.name) } inline void Index::set_name(const char* value) { GOOGLE_DCHECK(value != nullptr); name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:google.firestore.admin.v1.Index.name) } inline void Index::set_name(const char* value, size_t size) { name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:google.firestore.admin.v1.Index.name) } inline std::string* Index::_internal_mutable_name() { return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* Index::release_name() { // @@protoc_insertion_point(field_release:google.firestore.admin.v1.Index.name) return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void Index::set_allocated_name(std::string* name) { if (name != nullptr) { } else { } name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:google.firestore.admin.v1.Index.name) } // .google.firestore.admin.v1.Index.QueryScope query_scope = 2; inline void Index::clear_query_scope() { query_scope_ = 0; } inline ::google::firestore::admin::v1::Index_QueryScope Index::_internal_query_scope() const { return static_cast< ::google::firestore::admin::v1::Index_QueryScope >(query_scope_); } inline ::google::firestore::admin::v1::Index_QueryScope Index::query_scope() const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.query_scope) return _internal_query_scope(); } inline void Index::_internal_set_query_scope(::google::firestore::admin::v1::Index_QueryScope value) { query_scope_ = value; } inline void Index::set_query_scope(::google::firestore::admin::v1::Index_QueryScope value) { _internal_set_query_scope(value); // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.query_scope) } // repeated .google.firestore.admin.v1.Index.IndexField fields = 3; inline int Index::_internal_fields_size() const { return fields_.size(); } inline int Index::fields_size() const { return _internal_fields_size(); } inline void Index::clear_fields() { fields_.Clear(); } inline ::google::firestore::admin::v1::Index_IndexField* Index::mutable_fields(int index) { // @@protoc_insertion_point(field_mutable:google.firestore.admin.v1.Index.fields) return fields_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >* Index::mutable_fields() { // @@protoc_insertion_point(field_mutable_list:google.firestore.admin.v1.Index.fields) return &fields_; } inline const ::google::firestore::admin::v1::Index_IndexField& Index::_internal_fields(int index) const { return fields_.Get(index); } inline const ::google::firestore::admin::v1::Index_IndexField& Index::fields(int index) const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.fields) return _internal_fields(index); } inline ::google::firestore::admin::v1::Index_IndexField* Index::_internal_add_fields() { return fields_.Add(); } inline ::google::firestore::admin::v1::Index_IndexField* Index::add_fields() { // @@protoc_insertion_point(field_add:google.firestore.admin.v1.Index.fields) return _internal_add_fields(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::admin::v1::Index_IndexField >& Index::fields() const { // @@protoc_insertion_point(field_list:google.firestore.admin.v1.Index.fields) return fields_; } // .google.firestore.admin.v1.Index.State state = 4; inline void Index::clear_state() { state_ = 0; } inline ::google::firestore::admin::v1::Index_State Index::_internal_state() const { return static_cast< ::google::firestore::admin::v1::Index_State >(state_); } inline ::google::firestore::admin::v1::Index_State Index::state() const { // @@protoc_insertion_point(field_get:google.firestore.admin.v1.Index.state) return _internal_state(); } inline void Index::_internal_set_state(::google::firestore::admin::v1::Index_State value) { state_ = value; } inline void Index::set_state(::google::firestore::admin::v1::Index_State value) { _internal_set_state(value); // @@protoc_insertion_point(field_set:google.firestore.admin.v1.Index.state) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace admin } // namespace firestore } // namespace google PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_IndexField_Order> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_IndexField_Order>() { return ::google::firestore::admin::v1::Index_IndexField_Order_descriptor(); } template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_IndexField_ArrayConfig>() { return ::google::firestore::admin::v1::Index_IndexField_ArrayConfig_descriptor(); } template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_QueryScope> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_QueryScope>() { return ::google::firestore::admin::v1::Index_QueryScope_descriptor(); } template <> struct is_proto_enum< ::google::firestore::admin::v1::Index_State> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::google::firestore::admin::v1::Index_State>() { return ::google::firestore::admin::v1::Index_State_descriptor(); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fadmin_2findex_2eproto