From 69e40505a6ef1e66aba86c3ccec64ff4213645a6 Mon Sep 17 00:00:00 2001 From: Dana Dahlstrom Date: Sat, 23 Mar 2024 00:00:00 -0700 Subject: [PATCH] Replace generated files with proto_library rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … for google_streaming_api.proto added by Change I41b67d35. Issue: 280803912 --- starboard/loader_app/BUILD.gn | 10 +- starboard/loader_app/installation_store.pb.cc | 660 ------------------ starboard/loader_app/installation_store.pb.h | 361 ---------- 3 files changed, 4 insertions(+), 1027 deletions(-) delete mode 100644 starboard/loader_app/installation_store.pb.cc delete mode 100644 starboard/loader_app/installation_store.pb.h diff --git a/starboard/loader_app/BUILD.gn b/starboard/loader_app/BUILD.gn index b1f6fb34153f..4fea46c068ec 100644 --- a/starboard/loader_app/BUILD.gn +++ b/starboard/loader_app/BUILD.gn @@ -13,6 +13,7 @@ # limitations under the License. import("//starboard/build/config/os_definitions.gni") +import("//third_party/protobuf/proto_library.gni") _common_loader_app_sources = [ "loader_app.cc", @@ -224,12 +225,9 @@ target(gtest_target_type, "drain_file_test") { ] } -static_library("installation_store_proto") { - sources = [ - "installation_store.pb.cc", - "installation_store.pb.h", - ] - public_deps = [ "//third_party/protobuf:protobuf_lite" ] +proto_library("installation_store_proto") { + sources = [ "installation_store.proto" ] + generate_python = false } static_library("installation_manager") { diff --git a/starboard/loader_app/installation_store.pb.cc b/starboard/loader_app/installation_store.pb.cc deleted file mode 100644 index 7d6e3ae6c912..000000000000 --- a/starboard/loader_app/installation_store.pb.cc +++ /dev/null @@ -1,660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: installation_store.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "installation_store.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace cobalt { -namespace loader { - -void protobuf_ShutdownFile_installation_5fstore_2eproto() { - delete Installation::default_instance_; - delete InstallationStore::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_installation_5fstore_2eproto_impl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - -#else -void protobuf_AddDesc_installation_5fstore_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - -#endif - Installation::default_instance_ = new Installation(); - InstallationStore::default_instance_ = new InstallationStore(); - Installation::default_instance_->InitAsDefaultInstance(); - InstallationStore::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_installation_5fstore_2eproto); -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_installation_5fstore_2eproto_once_); -void protobuf_AddDesc_installation_5fstore_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_installation_5fstore_2eproto_once_, - &protobuf_AddDesc_installation_5fstore_2eproto_impl); -} -#else -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_installation_5fstore_2eproto { - StaticDescriptorInitializer_installation_5fstore_2eproto() { - protobuf_AddDesc_installation_5fstore_2eproto(); - } -} static_descriptor_initializer_installation_5fstore_2eproto_; -#endif - -namespace { - -static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; -GOOGLE_ATTRIBUTE_NOINLINE static void MergeFromFail(int line) { - GOOGLE_CHECK(false) << __FILE__ << ":" << line; -} - -} // namespace - - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Installation::kIsSuccessfulFieldNumber; -const int Installation::kNumTriesLeftFieldNumber; -const int Installation::kPriorityFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Installation::Installation() - : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:cobalt.loader.Installation) -} - -void Installation::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -Installation::Installation(const Installation& from) - : ::google::protobuf::MessageLite(), - _arena_ptr_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:cobalt.loader.Installation) -} - -void Installation::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - is_successful_ = false; - num_tries_left_ = 0; - priority_ = 0; -} - -Installation::~Installation() { - // @@protoc_insertion_point(destructor:cobalt.loader.Installation) - SharedDtor(); -} - -void Installation::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void Installation::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const Installation& Installation::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_installation_5fstore_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_installation_5fstore_2eproto(); -#endif - return *default_instance_; -} - -Installation* Installation::default_instance_ = NULL; - -Installation* Installation::New(::google::protobuf::Arena* arena) const { - Installation* n = new Installation; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void Installation::Clear() { -// @@protoc_insertion_point(message_clear_start:cobalt.loader.Installation) -#if defined(__clang__) -#define ZR_HELPER_(f) \ - _Pragma("clang diagnostic push") \ - _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \ - __builtin_offsetof(Installation, f) \ - _Pragma("clang diagnostic pop") -#else -#define ZR_HELPER_(f) reinterpret_cast(\ - &reinterpret_cast(16)->f) -#endif - -#define ZR_(first, last) do {\ - ::memset(&first, 0,\ - ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ -} while (0) - - ZR_(is_successful_, priority_); - -#undef ZR_HELPER_ -#undef ZR_ - -} - -bool Installation::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:cobalt.loader.Installation) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional bool is_successful = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_successful_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_num_tries_left; - break; - } - - // optional int32 num_tries_left = 2; - case 2: { - if (tag == 16) { - parse_num_tries_left: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_tries_left_))); - - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_priority; - break; - } - - // optional int32 priority = 3; - case 3: { - if (tag == 24) { - parse_priority: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &priority_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:cobalt.loader.Installation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:cobalt.loader.Installation) - return false; -#undef DO_ -} - -void Installation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:cobalt.loader.Installation) - // optional bool is_successful = 1; - if (this->is_successful() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_successful(), output); - } - - // optional int32 num_tries_left = 2; - if (this->num_tries_left() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_tries_left(), output); - } - - // optional int32 priority = 3; - if (this->priority() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->priority(), output); - } - - // @@protoc_insertion_point(serialize_end:cobalt.loader.Installation) -} - -int Installation::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:cobalt.loader.Installation) - int total_size = 0; - - // optional bool is_successful = 1; - if (this->is_successful() != 0) { - total_size += 1 + 1; - } - - // optional int32 num_tries_left = 2; - if (this->num_tries_left() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num_tries_left()); - } - - // optional int32 priority = 3; - if (this->priority() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->priority()); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void Installation::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void Installation::MergeFrom(const Installation& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cobalt.loader.Installation) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - if (from.is_successful() != 0) { - set_is_successful(from.is_successful()); - } - if (from.num_tries_left() != 0) { - set_num_tries_left(from.num_tries_left()); - } - if (from.priority() != 0) { - set_priority(from.priority()); - } -} - -void Installation::CopyFrom(const Installation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cobalt.loader.Installation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Installation::IsInitialized() const { - - return true; -} - -void Installation::Swap(Installation* other) { - if (other == this) return; - InternalSwap(other); -} -void Installation::InternalSwap(Installation* other) { - std::swap(is_successful_, other->is_successful_); - std::swap(num_tries_left_, other->num_tries_left_); - std::swap(priority_, other->priority_); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); -} - -::std::string Installation::GetTypeName() const { - return "cobalt.loader.Installation"; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Installation - -// optional bool is_successful = 1; -void Installation::clear_is_successful() { - is_successful_ = false; -} - bool Installation::is_successful() const { - // @@protoc_insertion_point(field_get:cobalt.loader.Installation.is_successful) - return is_successful_; -} - void Installation::set_is_successful(bool value) { - - is_successful_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.Installation.is_successful) -} - -// optional int32 num_tries_left = 2; -void Installation::clear_num_tries_left() { - num_tries_left_ = 0; -} - ::google::protobuf::int32 Installation::num_tries_left() const { - // @@protoc_insertion_point(field_get:cobalt.loader.Installation.num_tries_left) - return num_tries_left_; -} - void Installation::set_num_tries_left(::google::protobuf::int32 value) { - - num_tries_left_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.Installation.num_tries_left) -} - -// optional int32 priority = 3; -void Installation::clear_priority() { - priority_ = 0; -} - ::google::protobuf::int32 Installation::priority() const { - // @@protoc_insertion_point(field_get:cobalt.loader.Installation.priority) - return priority_; -} - void Installation::set_priority(::google::protobuf::int32 value) { - - priority_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.Installation.priority) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// =================================================================== - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InstallationStore::kInstallationsFieldNumber; -const int InstallationStore::kRollForwardToInstallationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InstallationStore::InstallationStore() - : ::google::protobuf::MessageLite(), _arena_ptr_(NULL) { - SharedCtor(); - // @@protoc_insertion_point(constructor:cobalt.loader.InstallationStore) -} - -void InstallationStore::InitAsDefaultInstance() { - _is_default_instance_ = true; -} - -InstallationStore::InstallationStore(const InstallationStore& from) - : ::google::protobuf::MessageLite(), - _arena_ptr_(NULL) { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:cobalt.loader.InstallationStore) -} - -void InstallationStore::SharedCtor() { - _is_default_instance_ = false; - _cached_size_ = 0; - roll_forward_to_installation_ = 0; -} - -InstallationStore::~InstallationStore() { - // @@protoc_insertion_point(destructor:cobalt.loader.InstallationStore) - SharedDtor(); -} - -void InstallationStore::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InstallationStore::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InstallationStore& InstallationStore::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_installation_5fstore_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_installation_5fstore_2eproto(); -#endif - return *default_instance_; -} - -InstallationStore* InstallationStore::default_instance_ = NULL; - -InstallationStore* InstallationStore::New(::google::protobuf::Arena* arena) const { - InstallationStore* n = new InstallationStore; - if (arena != NULL) { - arena->Own(n); - } - return n; -} - -void InstallationStore::Clear() { -// @@protoc_insertion_point(message_clear_start:cobalt.loader.InstallationStore) - roll_forward_to_installation_ = 0; - installations_.Clear(); -} - -bool InstallationStore::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:cobalt.loader.InstallationStore) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .cobalt.loader.Installation installations = 1; - case 1: { - if (tag == 10) { - DO_(input->IncrementRecursionDepth()); - parse_loop_installations: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( - input, add_installations())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_loop_installations; - input->UnsafeDecrementRecursionDepth(); - if (input->ExpectTag(16)) goto parse_roll_forward_to_installation; - break; - } - - // optional int32 roll_forward_to_installation = 2; - case 2: { - if (tag == 16) { - parse_roll_forward_to_installation: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &roll_forward_to_installation_))); - - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:cobalt.loader.InstallationStore) - return true; -failure: - // @@protoc_insertion_point(parse_failure:cobalt.loader.InstallationStore) - return false; -#undef DO_ -} - -void InstallationStore::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:cobalt.loader.InstallationStore) - // repeated .cobalt.loader.Installation installations = 1; - for (unsigned int i = 0, n = this->installations_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->installations(i), output); - } - - // optional int32 roll_forward_to_installation = 2; - if (this->roll_forward_to_installation() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->roll_forward_to_installation(), output); - } - - // @@protoc_insertion_point(serialize_end:cobalt.loader.InstallationStore) -} - -int InstallationStore::ByteSize() const { -// @@protoc_insertion_point(message_byte_size_start:cobalt.loader.InstallationStore) - int total_size = 0; - - // optional int32 roll_forward_to_installation = 2; - if (this->roll_forward_to_installation() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->roll_forward_to_installation()); - } - - // repeated .cobalt.loader.Installation installations = 1; - total_size += 1 * this->installations_size(); - for (int i = 0; i < this->installations_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->installations(i)); - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void InstallationStore::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void InstallationStore::MergeFrom(const InstallationStore& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:cobalt.loader.InstallationStore) - if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); - installations_.MergeFrom(from.installations_); - if (from.roll_forward_to_installation() != 0) { - set_roll_forward_to_installation(from.roll_forward_to_installation()); - } -} - -void InstallationStore::CopyFrom(const InstallationStore& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:cobalt.loader.InstallationStore) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InstallationStore::IsInitialized() const { - - return true; -} - -void InstallationStore::Swap(InstallationStore* other) { - if (other == this) return; - InternalSwap(other); -} -void InstallationStore::InternalSwap(InstallationStore* other) { - installations_.UnsafeArenaSwap(&other->installations_); - std::swap(roll_forward_to_installation_, other->roll_forward_to_installation_); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); -} - -::std::string InstallationStore::GetTypeName() const { - return "cobalt.loader.InstallationStore"; -} - -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// InstallationStore - -// repeated .cobalt.loader.Installation installations = 1; -int InstallationStore::installations_size() const { - return installations_.size(); -} -void InstallationStore::clear_installations() { - installations_.Clear(); -} -const ::cobalt::loader::Installation& InstallationStore::installations(int index) const { - // @@protoc_insertion_point(field_get:cobalt.loader.InstallationStore.installations) - return installations_.Get(index); -} -::cobalt::loader::Installation* InstallationStore::mutable_installations(int index) { - // @@protoc_insertion_point(field_mutable:cobalt.loader.InstallationStore.installations) - return installations_.Mutable(index); -} -::cobalt::loader::Installation* InstallationStore::add_installations() { - // @@protoc_insertion_point(field_add:cobalt.loader.InstallationStore.installations) - return installations_.Add(); -} -::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation >* -InstallationStore::mutable_installations() { - // @@protoc_insertion_point(field_mutable_list:cobalt.loader.InstallationStore.installations) - return &installations_; -} -const ::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation >& -InstallationStore::installations() const { - // @@protoc_insertion_point(field_list:cobalt.loader.InstallationStore.installations) - return installations_; -} - -// optional int32 roll_forward_to_installation = 2; -void InstallationStore::clear_roll_forward_to_installation() { - roll_forward_to_installation_ = 0; -} - ::google::protobuf::int32 InstallationStore::roll_forward_to_installation() const { - // @@protoc_insertion_point(field_get:cobalt.loader.InstallationStore.roll_forward_to_installation) - return roll_forward_to_installation_; -} - void InstallationStore::set_roll_forward_to_installation(::google::protobuf::int32 value) { - - roll_forward_to_installation_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.InstallationStore.roll_forward_to_installation) -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS - -// @@protoc_insertion_point(namespace_scope) - -} // namespace loader -} // namespace cobalt - -// @@protoc_insertion_point(global_scope) diff --git a/starboard/loader_app/installation_store.pb.h b/starboard/loader_app/installation_store.pb.h deleted file mode 100644 index a3ad5c9226c0..000000000000 --- a/starboard/loader_app/installation_store.pb.h +++ /dev/null @@ -1,361 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: installation_store.proto - -#ifndef PROTOBUF_installation_5fstore_2eproto__INCLUDED -#define PROTOBUF_installation_5fstore_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3000000 -#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 3000000 < GOOGLE_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 -// @@protoc_insertion_point(includes) - -namespace cobalt { -namespace loader { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_installation_5fstore_2eproto(); -void protobuf_AssignDesc_installation_5fstore_2eproto(); -void protobuf_ShutdownFile_installation_5fstore_2eproto(); - -class Installation; -class InstallationStore; - -// =================================================================== - -class Installation : public ::google::protobuf::MessageLite { - public: - Installation(); - virtual ~Installation(); - - Installation(const Installation& from); - - inline Installation& operator=(const Installation& from) { - CopyFrom(from); - return *this; - } - - static const Installation& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const Installation* internal_default_instance() { - return default_instance_; - } - #endif - - GOOGLE_ATTRIBUTE_NOINLINE void Swap(Installation* other); - - // implements Message ---------------------------------------------- - - inline Installation* New() const { return New(NULL); } - - Installation* New(::google::protobuf::Arena* arena) const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const Installation& from); - void MergeFrom(const Installation& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Installation* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _arena_ptr_; - } - inline ::google::protobuf::Arena* MaybeArenaPtr() const { - return _arena_ptr_; - } - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional bool is_successful = 1; - void clear_is_successful(); - static const int kIsSuccessfulFieldNumber = 1; - bool is_successful() const; - void set_is_successful(bool value); - - // optional int32 num_tries_left = 2; - void clear_num_tries_left(); - static const int kNumTriesLeftFieldNumber = 2; - ::google::protobuf::int32 num_tries_left() const; - void set_num_tries_left(::google::protobuf::int32 value); - - // optional int32 priority = 3; - void clear_priority(); - static const int kPriorityFieldNumber = 3; - ::google::protobuf::int32 priority() const; - void set_priority(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:cobalt.loader.Installation) - private: - - ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; - ::google::protobuf::Arena* _arena_ptr_; - - bool _is_default_instance_; - bool is_successful_; - ::google::protobuf::int32 num_tries_left_; - ::google::protobuf::int32 priority_; - mutable int _cached_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_installation_5fstore_2eproto_impl(); - #else - friend void protobuf_AddDesc_installation_5fstore_2eproto(); - #endif - friend void protobuf_AssignDesc_installation_5fstore_2eproto(); - friend void protobuf_ShutdownFile_installation_5fstore_2eproto(); - - void InitAsDefaultInstance(); - static Installation* default_instance_; -}; -// ------------------------------------------------------------------- - -class InstallationStore : public ::google::protobuf::MessageLite { - public: - InstallationStore(); - virtual ~InstallationStore(); - - InstallationStore(const InstallationStore& from); - - inline InstallationStore& operator=(const InstallationStore& from) { - CopyFrom(from); - return *this; - } - - static const InstallationStore& default_instance(); - - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. - static inline const InstallationStore* internal_default_instance() { - return default_instance_; - } - #endif - - GOOGLE_ATTRIBUTE_NOINLINE void Swap(InstallationStore* other); - - // implements Message ---------------------------------------------- - - inline InstallationStore* New() const { return New(NULL); } - - InstallationStore* New(::google::protobuf::Arena* arena) const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const InstallationStore& from); - void MergeFrom(const InstallationStore& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(InstallationStore* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _arena_ptr_; - } - inline ::google::protobuf::Arena* MaybeArenaPtr() const { - return _arena_ptr_; - } - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .cobalt.loader.Installation installations = 1; - int installations_size() const; - void clear_installations(); - static const int kInstallationsFieldNumber = 1; - const ::cobalt::loader::Installation& installations(int index) const; - ::cobalt::loader::Installation* mutable_installations(int index); - ::cobalt::loader::Installation* add_installations(); - ::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation >* - mutable_installations(); - const ::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation >& - installations() const; - - // optional int32 roll_forward_to_installation = 2; - void clear_roll_forward_to_installation(); - static const int kRollForwardToInstallationFieldNumber = 2; - ::google::protobuf::int32 roll_forward_to_installation() const; - void set_roll_forward_to_installation(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:cobalt.loader.InstallationStore) - private: - - ::google::protobuf::internal::ArenaStringPtr _unknown_fields_; - ::google::protobuf::Arena* _arena_ptr_; - - bool _is_default_instance_; - ::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation > installations_; - ::google::protobuf::int32 roll_forward_to_installation_; - mutable int _cached_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_installation_5fstore_2eproto_impl(); - #else - friend void protobuf_AddDesc_installation_5fstore_2eproto(); - #endif - friend void protobuf_AssignDesc_installation_5fstore_2eproto(); - friend void protobuf_ShutdownFile_installation_5fstore_2eproto(); - - void InitAsDefaultInstance(); - static InstallationStore* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -#if !PROTOBUF_INLINE_NOT_IN_HEADERS -// Installation - -// optional bool is_successful = 1; -inline void Installation::clear_is_successful() { - is_successful_ = false; -} -inline bool Installation::is_successful() const { - // @@protoc_insertion_point(field_get:cobalt.loader.Installation.is_successful) - return is_successful_; -} -inline void Installation::set_is_successful(bool value) { - - is_successful_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.Installation.is_successful) -} - -// optional int32 num_tries_left = 2; -inline void Installation::clear_num_tries_left() { - num_tries_left_ = 0; -} -inline ::google::protobuf::int32 Installation::num_tries_left() const { - // @@protoc_insertion_point(field_get:cobalt.loader.Installation.num_tries_left) - return num_tries_left_; -} -inline void Installation::set_num_tries_left(::google::protobuf::int32 value) { - - num_tries_left_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.Installation.num_tries_left) -} - -// optional int32 priority = 3; -inline void Installation::clear_priority() { - priority_ = 0; -} -inline ::google::protobuf::int32 Installation::priority() const { - // @@protoc_insertion_point(field_get:cobalt.loader.Installation.priority) - return priority_; -} -inline void Installation::set_priority(::google::protobuf::int32 value) { - - priority_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.Installation.priority) -} - -// ------------------------------------------------------------------- - -// InstallationStore - -// repeated .cobalt.loader.Installation installations = 1; -inline int InstallationStore::installations_size() const { - return installations_.size(); -} -inline void InstallationStore::clear_installations() { - installations_.Clear(); -} -inline const ::cobalt::loader::Installation& InstallationStore::installations(int index) const { - // @@protoc_insertion_point(field_get:cobalt.loader.InstallationStore.installations) - return installations_.Get(index); -} -inline ::cobalt::loader::Installation* InstallationStore::mutable_installations(int index) { - // @@protoc_insertion_point(field_mutable:cobalt.loader.InstallationStore.installations) - return installations_.Mutable(index); -} -inline ::cobalt::loader::Installation* InstallationStore::add_installations() { - // @@protoc_insertion_point(field_add:cobalt.loader.InstallationStore.installations) - return installations_.Add(); -} -inline ::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation >* -InstallationStore::mutable_installations() { - // @@protoc_insertion_point(field_mutable_list:cobalt.loader.InstallationStore.installations) - return &installations_; -} -inline const ::google::protobuf::RepeatedPtrField< ::cobalt::loader::Installation >& -InstallationStore::installations() const { - // @@protoc_insertion_point(field_list:cobalt.loader.InstallationStore.installations) - return installations_; -} - -// optional int32 roll_forward_to_installation = 2; -inline void InstallationStore::clear_roll_forward_to_installation() { - roll_forward_to_installation_ = 0; -} -inline ::google::protobuf::int32 InstallationStore::roll_forward_to_installation() const { - // @@protoc_insertion_point(field_get:cobalt.loader.InstallationStore.roll_forward_to_installation) - return roll_forward_to_installation_; -} -inline void InstallationStore::set_roll_forward_to_installation(::google::protobuf::int32 value) { - - roll_forward_to_installation_ = value; - // @@protoc_insertion_point(field_set:cobalt.loader.InstallationStore.roll_forward_to_installation) -} - -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace loader -} // namespace cobalt - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_installation_5fstore_2eproto__INCLUDED