blob: 4ce543063a5977f568247587fb4f8c153a81da5c [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mobile_operator_db.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_mobile_5foperator_5fdb_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_mobile_5foperator_5fdb_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION < 4023000
#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 4023003 < 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_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_util.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_mobile_5foperator_5fdb_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_mobile_5foperator_5fdb_2eproto {
static const ::uint32_t offsets[];
};
namespace shill {
namespace mobile_operator_db {
class Data;
struct DataDefaultTypeInternal;
extern DataDefaultTypeInternal _Data_default_instance_;
class Filter;
struct FilterDefaultTypeInternal;
extern FilterDefaultTypeInternal _Filter_default_instance_;
class FilterRange;
struct FilterRangeDefaultTypeInternal;
extern FilterRangeDefaultTypeInternal _FilterRange_default_instance_;
class LocalizedName;
struct LocalizedNameDefaultTypeInternal;
extern LocalizedNameDefaultTypeInternal _LocalizedName_default_instance_;
class MobileAPN;
struct MobileAPNDefaultTypeInternal;
extern MobileAPNDefaultTypeInternal _MobileAPN_default_instance_;
class MobileNetworkOperator;
struct MobileNetworkOperatorDefaultTypeInternal;
extern MobileNetworkOperatorDefaultTypeInternal _MobileNetworkOperator_default_instance_;
class MobileOperatorDB;
struct MobileOperatorDBDefaultTypeInternal;
extern MobileOperatorDBDefaultTypeInternal _MobileOperatorDB_default_instance_;
class MobileVirtualNetworkOperator;
struct MobileVirtualNetworkOperatorDefaultTypeInternal;
extern MobileVirtualNetworkOperatorDefaultTypeInternal _MobileVirtualNetworkOperator_default_instance_;
class OnlinePortal;
struct OnlinePortalDefaultTypeInternal;
extern OnlinePortalDefaultTypeInternal _OnlinePortal_default_instance_;
} // namespace mobile_operator_db
} // namespace shill
PROTOBUF_NAMESPACE_OPEN
template <>
::shill::mobile_operator_db::Data* Arena::CreateMaybeMessage<::shill::mobile_operator_db::Data>(Arena*);
template <>
::shill::mobile_operator_db::Filter* Arena::CreateMaybeMessage<::shill::mobile_operator_db::Filter>(Arena*);
template <>
::shill::mobile_operator_db::FilterRange* Arena::CreateMaybeMessage<::shill::mobile_operator_db::FilterRange>(Arena*);
template <>
::shill::mobile_operator_db::LocalizedName* Arena::CreateMaybeMessage<::shill::mobile_operator_db::LocalizedName>(Arena*);
template <>
::shill::mobile_operator_db::MobileAPN* Arena::CreateMaybeMessage<::shill::mobile_operator_db::MobileAPN>(Arena*);
template <>
::shill::mobile_operator_db::MobileNetworkOperator* Arena::CreateMaybeMessage<::shill::mobile_operator_db::MobileNetworkOperator>(Arena*);
template <>
::shill::mobile_operator_db::MobileOperatorDB* Arena::CreateMaybeMessage<::shill::mobile_operator_db::MobileOperatorDB>(Arena*);
template <>
::shill::mobile_operator_db::MobileVirtualNetworkOperator* Arena::CreateMaybeMessage<::shill::mobile_operator_db::MobileVirtualNetworkOperator>(Arena*);
template <>
::shill::mobile_operator_db::OnlinePortal* Arena::CreateMaybeMessage<::shill::mobile_operator_db::OnlinePortal>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace shill {
namespace mobile_operator_db {
enum Filter_Type : int {
Filter_Type_IMSI = 1,
Filter_Type_ICCID = 2,
Filter_Type_OBSOLETE_SID = 3,
Filter_Type_OPERATOR_NAME = 4,
Filter_Type_MCCMNC = 5,
Filter_Type_GID1 = 6,
};
bool Filter_Type_IsValid(int value);
constexpr Filter_Type Filter_Type_Type_MIN = static_cast<Filter_Type>(1);
constexpr Filter_Type Filter_Type_Type_MAX = static_cast<Filter_Type>(6);
constexpr int Filter_Type_Type_ARRAYSIZE = 6 + 1;
const std::string& Filter_Type_Name(Filter_Type value);
template <typename T>
const std::string& Filter_Type_Name(T value) {
static_assert(std::is_same<T, Filter_Type>::value ||
std::is_integral<T>::value,
"Incorrect type passed to Type_Name().");
return Filter_Type_Name(static_cast<Filter_Type>(value));
}
const std::string& Filter_Type_Name(Filter_Type value);
bool Filter_Type_Parse(absl::string_view name, Filter_Type* value);
enum MobileAPN_Authentication : int {
MobileAPN_Authentication_DEFAULT_AUTH = 0,
MobileAPN_Authentication_PAP = 1,
MobileAPN_Authentication_CHAP = 2,
};
bool MobileAPN_Authentication_IsValid(int value);
constexpr MobileAPN_Authentication MobileAPN_Authentication_Authentication_MIN = static_cast<MobileAPN_Authentication>(0);
constexpr MobileAPN_Authentication MobileAPN_Authentication_Authentication_MAX = static_cast<MobileAPN_Authentication>(2);
constexpr int MobileAPN_Authentication_Authentication_ARRAYSIZE = 2 + 1;
const std::string& MobileAPN_Authentication_Name(MobileAPN_Authentication value);
template <typename T>
const std::string& MobileAPN_Authentication_Name(T value) {
static_assert(std::is_same<T, MobileAPN_Authentication>::value ||
std::is_integral<T>::value,
"Incorrect type passed to Authentication_Name().");
return MobileAPN_Authentication_Name(static_cast<MobileAPN_Authentication>(value));
}
const std::string& MobileAPN_Authentication_Name(MobileAPN_Authentication value);
bool MobileAPN_Authentication_Parse(absl::string_view name, MobileAPN_Authentication* value);
enum MobileAPN_IpType : int {
MobileAPN_IpType_UNKNOWN = 0,
MobileAPN_IpType_IPV4 = 1,
MobileAPN_IpType_IPV6 = 2,
MobileAPN_IpType_IPV4V6 = 3,
};
bool MobileAPN_IpType_IsValid(int value);
constexpr MobileAPN_IpType MobileAPN_IpType_IpType_MIN = static_cast<MobileAPN_IpType>(0);
constexpr MobileAPN_IpType MobileAPN_IpType_IpType_MAX = static_cast<MobileAPN_IpType>(3);
constexpr int MobileAPN_IpType_IpType_ARRAYSIZE = 3 + 1;
const std::string& MobileAPN_IpType_Name(MobileAPN_IpType value);
template <typename T>
const std::string& MobileAPN_IpType_Name(T value) {
static_assert(std::is_same<T, MobileAPN_IpType>::value ||
std::is_integral<T>::value,
"Incorrect type passed to IpType_Name().");
return MobileAPN_IpType_Name(static_cast<MobileAPN_IpType>(value));
}
const std::string& MobileAPN_IpType_Name(MobileAPN_IpType value);
bool MobileAPN_IpType_Parse(absl::string_view name, MobileAPN_IpType* value);
enum MobileAPN_ApnType : int {
MobileAPN_ApnType_DEFAULT = 0,
MobileAPN_ApnType_IA = 1,
MobileAPN_ApnType_DUN = 2,
};
bool MobileAPN_ApnType_IsValid(int value);
constexpr MobileAPN_ApnType MobileAPN_ApnType_ApnType_MIN = static_cast<MobileAPN_ApnType>(0);
constexpr MobileAPN_ApnType MobileAPN_ApnType_ApnType_MAX = static_cast<MobileAPN_ApnType>(2);
constexpr int MobileAPN_ApnType_ApnType_ARRAYSIZE = 2 + 1;
const std::string& MobileAPN_ApnType_Name(MobileAPN_ApnType value);
template <typename T>
const std::string& MobileAPN_ApnType_Name(T value) {
static_assert(std::is_same<T, MobileAPN_ApnType>::value ||
std::is_integral<T>::value,
"Incorrect type passed to ApnType_Name().");
return MobileAPN_ApnType_Name(static_cast<MobileAPN_ApnType>(value));
}
const std::string& MobileAPN_ApnType_Name(MobileAPN_ApnType value);
bool MobileAPN_ApnType_Parse(absl::string_view name, MobileAPN_ApnType* value);
enum Data_EntitlementParam : int {
Data_EntitlementParam_IMSI = 1,
};
bool Data_EntitlementParam_IsValid(int value);
constexpr Data_EntitlementParam Data_EntitlementParam_EntitlementParam_MIN = static_cast<Data_EntitlementParam>(1);
constexpr Data_EntitlementParam Data_EntitlementParam_EntitlementParam_MAX = static_cast<Data_EntitlementParam>(1);
constexpr int Data_EntitlementParam_EntitlementParam_ARRAYSIZE = 1 + 1;
const std::string& Data_EntitlementParam_Name(Data_EntitlementParam value);
template <typename T>
const std::string& Data_EntitlementParam_Name(T value) {
static_assert(std::is_same<T, Data_EntitlementParam>::value ||
std::is_integral<T>::value,
"Incorrect type passed to EntitlementParam_Name().");
return Data_EntitlementParam_Name(static_cast<Data_EntitlementParam>(value));
}
const std::string& Data_EntitlementParam_Name(Data_EntitlementParam value);
bool Data_EntitlementParam_Parse(absl::string_view name, Data_EntitlementParam* value);
enum HttpMethod : int {
GET = 1,
POST = 2,
};
bool HttpMethod_IsValid(int value);
constexpr HttpMethod HttpMethod_MIN = static_cast<HttpMethod>(1);
constexpr HttpMethod HttpMethod_MAX = static_cast<HttpMethod>(2);
constexpr int HttpMethod_ARRAYSIZE = 2 + 1;
const std::string& HttpMethod_Name(HttpMethod value);
template <typename T>
const std::string& HttpMethod_Name(T value) {
static_assert(std::is_same<T, HttpMethod>::value ||
std::is_integral<T>::value,
"Incorrect type passed to HttpMethod_Name().");
return HttpMethod_Name(static_cast<HttpMethod>(value));
}
const std::string& HttpMethod_Name(HttpMethod value);
bool HttpMethod_Parse(absl::string_view name, HttpMethod* value);
// ===================================================================
// -------------------------------------------------------------------
class FilterRange final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.FilterRange) */ {
public:
inline FilterRange() : FilterRange(nullptr) {}
~FilterRange() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR FilterRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FilterRange(const FilterRange& from);
FilterRange(FilterRange&& from) noexcept
: FilterRange() {
*this = ::std::move(from);
}
inline FilterRange& operator=(const FilterRange& from) {
CopyFrom(from);
return *this;
}
inline FilterRange& operator=(FilterRange&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const FilterRange& default_instance() {
return *internal_default_instance();
}
static inline const FilterRange* internal_default_instance() {
return reinterpret_cast<const FilterRange*>(
&_FilterRange_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(FilterRange& a, FilterRange& b) {
a.Swap(&b);
}
inline void Swap(FilterRange* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(FilterRange* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FilterRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FilterRange>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const FilterRange& from);
void MergeFrom(const FilterRange& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(FilterRange* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.FilterRange";
}
protected:
explicit FilterRange(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kStartFieldNumber = 1,
kEndFieldNumber = 2,
};
// required uint64 start = 1;
bool has_start() const;
void clear_start() ;
::uint64_t start() const;
void set_start(::uint64_t value);
private:
::uint64_t _internal_start() const;
void _internal_set_start(::uint64_t value);
public:
// required uint64 end = 2;
bool has_end() const;
void clear_end() ;
::uint64_t end() const;
void set_end(::uint64_t value);
private:
::uint64_t _internal_end() const;
void _internal_set_end(::uint64_t value);
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.FilterRange)
private:
class _Internal;
// helper for ByteSizeLong()
::size_t RequiredFieldsByteSizeFallback() const;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::uint64_t start_;
::uint64_t end_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class Filter final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.Filter) */ {
public:
inline Filter() : Filter(nullptr) {}
~Filter() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR Filter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Filter(const Filter& from);
Filter(Filter&& from) noexcept
: Filter() {
*this = ::std::move(from);
}
inline Filter& operator=(const Filter& from) {
CopyFrom(from);
return *this;
}
inline Filter& operator=(Filter&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const Filter& default_instance() {
return *internal_default_instance();
}
static inline const Filter* internal_default_instance() {
return reinterpret_cast<const Filter*>(
&_Filter_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(Filter& a, Filter& b) {
a.Swap(&b);
}
inline void Swap(Filter* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Filter* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Filter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Filter>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const Filter& from);
void MergeFrom(const Filter& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(Filter* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.Filter";
}
protected:
explicit Filter(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
using Type = Filter_Type;
static constexpr Type IMSI = Filter_Type_IMSI;
static constexpr Type ICCID = Filter_Type_ICCID;
static constexpr Type OBSOLETE_SID = Filter_Type_OBSOLETE_SID;
static constexpr Type OPERATOR_NAME = Filter_Type_OPERATOR_NAME;
static constexpr Type MCCMNC = Filter_Type_MCCMNC;
static constexpr Type GID1 = Filter_Type_GID1;
static inline bool Type_IsValid(int value) {
return Filter_Type_IsValid(value);
}
static constexpr Type Type_MIN = Filter_Type_Type_MIN;
static constexpr Type Type_MAX = Filter_Type_Type_MAX;
static constexpr int Type_ARRAYSIZE = Filter_Type_Type_ARRAYSIZE;
template <typename T>
static inline const std::string& Type_Name(T value) {
return Filter_Type_Name(value);
}
static inline bool Type_Parse(absl::string_view name, Type* value) {
return Filter_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kRangeFieldNumber = 3,
kRegexFieldNumber = 2,
kExcludeRegexFieldNumber = 4,
kTypeFieldNumber = 1,
};
// repeated .shill.mobile_operator_db.FilterRange range = 3;
int range_size() const;
private:
int _internal_range_size() const;
public:
void clear_range() ;
::shill::mobile_operator_db::FilterRange* mutable_range(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::FilterRange >*
mutable_range();
private:
const ::shill::mobile_operator_db::FilterRange& _internal_range(int index) const;
::shill::mobile_operator_db::FilterRange* _internal_add_range();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::FilterRange>& _internal_range() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::FilterRange>* _internal_mutable_range();
public:
const ::shill::mobile_operator_db::FilterRange& range(int index) const;
::shill::mobile_operator_db::FilterRange* add_range();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::FilterRange >&
range() const;
// optional string regex = 2;
bool has_regex() const;
void clear_regex() ;
const std::string& regex() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_regex(Arg_&& arg, Args_... args);
std::string* mutable_regex();
PROTOBUF_NODISCARD std::string* release_regex();
void set_allocated_regex(std::string* ptr);
private:
const std::string& _internal_regex() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_regex(
const std::string& value);
std::string* _internal_mutable_regex();
public:
// optional string exclude_regex = 4;
bool has_exclude_regex() const;
void clear_exclude_regex() ;
const std::string& exclude_regex() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_exclude_regex(Arg_&& arg, Args_... args);
std::string* mutable_exclude_regex();
PROTOBUF_NODISCARD std::string* release_exclude_regex();
void set_allocated_exclude_regex(std::string* ptr);
private:
const std::string& _internal_exclude_regex() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_exclude_regex(
const std::string& value);
std::string* _internal_mutable_exclude_regex();
public:
// required .shill.mobile_operator_db.Filter.Type type = 1;
bool has_type() const;
void clear_type() ;
::shill::mobile_operator_db::Filter_Type type() const;
void set_type(::shill::mobile_operator_db::Filter_Type value);
private:
::shill::mobile_operator_db::Filter_Type _internal_type() const;
void _internal_set_type(::shill::mobile_operator_db::Filter_Type value);
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.Filter)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::FilterRange > range_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr regex_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr exclude_regex_;
int type_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class LocalizedName final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.LocalizedName) */ {
public:
inline LocalizedName() : LocalizedName(nullptr) {}
~LocalizedName() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR LocalizedName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
LocalizedName(const LocalizedName& from);
LocalizedName(LocalizedName&& from) noexcept
: LocalizedName() {
*this = ::std::move(from);
}
inline LocalizedName& operator=(const LocalizedName& from) {
CopyFrom(from);
return *this;
}
inline LocalizedName& operator=(LocalizedName&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const LocalizedName& default_instance() {
return *internal_default_instance();
}
static inline const LocalizedName* internal_default_instance() {
return reinterpret_cast<const LocalizedName*>(
&_LocalizedName_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(LocalizedName& a, LocalizedName& b) {
a.Swap(&b);
}
inline void Swap(LocalizedName* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(LocalizedName* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
LocalizedName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<LocalizedName>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const LocalizedName& from);
void MergeFrom(const LocalizedName& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(LocalizedName* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.LocalizedName";
}
protected:
explicit LocalizedName(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNameFieldNumber = 1,
kLanguageFieldNumber = 2,
};
// required string name = 1;
bool has_name() const;
void clear_name() ;
const std::string& name() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
std::string* mutable_name();
PROTOBUF_NODISCARD std::string* release_name();
void set_allocated_name(std::string* ptr);
private:
const std::string& _internal_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
const std::string& value);
std::string* _internal_mutable_name();
public:
// optional string language = 2;
bool has_language() const;
void clear_language() ;
const std::string& language() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_language(Arg_&& arg, Args_... args);
std::string* mutable_language();
PROTOBUF_NODISCARD std::string* release_language();
void set_allocated_language(std::string* ptr);
private:
const std::string& _internal_language() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_language(
const std::string& value);
std::string* _internal_mutable_language();
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.LocalizedName)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr language_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class MobileAPN final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.MobileAPN) */ {
public:
inline MobileAPN() : MobileAPN(nullptr) {}
~MobileAPN() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR MobileAPN(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
MobileAPN(const MobileAPN& from);
MobileAPN(MobileAPN&& from) noexcept
: MobileAPN() {
*this = ::std::move(from);
}
inline MobileAPN& operator=(const MobileAPN& from) {
CopyFrom(from);
return *this;
}
inline MobileAPN& operator=(MobileAPN&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const MobileAPN& default_instance() {
return *internal_default_instance();
}
static inline const MobileAPN* internal_default_instance() {
return reinterpret_cast<const MobileAPN*>(
&_MobileAPN_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(MobileAPN& a, MobileAPN& b) {
a.Swap(&b);
}
inline void Swap(MobileAPN* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(MobileAPN* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MobileAPN* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<MobileAPN>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const MobileAPN& from);
void MergeFrom(const MobileAPN& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(MobileAPN* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.MobileAPN";
}
protected:
explicit MobileAPN(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
using Authentication = MobileAPN_Authentication;
static constexpr Authentication DEFAULT_AUTH = MobileAPN_Authentication_DEFAULT_AUTH;
static constexpr Authentication PAP = MobileAPN_Authentication_PAP;
static constexpr Authentication CHAP = MobileAPN_Authentication_CHAP;
static inline bool Authentication_IsValid(int value) {
return MobileAPN_Authentication_IsValid(value);
}
static constexpr Authentication Authentication_MIN = MobileAPN_Authentication_Authentication_MIN;
static constexpr Authentication Authentication_MAX = MobileAPN_Authentication_Authentication_MAX;
static constexpr int Authentication_ARRAYSIZE = MobileAPN_Authentication_Authentication_ARRAYSIZE;
template <typename T>
static inline const std::string& Authentication_Name(T value) {
return MobileAPN_Authentication_Name(value);
}
static inline bool Authentication_Parse(absl::string_view name, Authentication* value) {
return MobileAPN_Authentication_Parse(name, value);
}
using IpType = MobileAPN_IpType;
static constexpr IpType UNKNOWN = MobileAPN_IpType_UNKNOWN;
static constexpr IpType IPV4 = MobileAPN_IpType_IPV4;
static constexpr IpType IPV6 = MobileAPN_IpType_IPV6;
static constexpr IpType IPV4V6 = MobileAPN_IpType_IPV4V6;
static inline bool IpType_IsValid(int value) {
return MobileAPN_IpType_IsValid(value);
}
static constexpr IpType IpType_MIN = MobileAPN_IpType_IpType_MIN;
static constexpr IpType IpType_MAX = MobileAPN_IpType_IpType_MAX;
static constexpr int IpType_ARRAYSIZE = MobileAPN_IpType_IpType_ARRAYSIZE;
template <typename T>
static inline const std::string& IpType_Name(T value) {
return MobileAPN_IpType_Name(value);
}
static inline bool IpType_Parse(absl::string_view name, IpType* value) {
return MobileAPN_IpType_Parse(name, value);
}
using ApnType = MobileAPN_ApnType;
static constexpr ApnType DEFAULT = MobileAPN_ApnType_DEFAULT;
static constexpr ApnType IA = MobileAPN_ApnType_IA;
static constexpr ApnType DUN = MobileAPN_ApnType_DUN;
static inline bool ApnType_IsValid(int value) {
return MobileAPN_ApnType_IsValid(value);
}
static constexpr ApnType ApnType_MIN = MobileAPN_ApnType_ApnType_MIN;
static constexpr ApnType ApnType_MAX = MobileAPN_ApnType_ApnType_MAX;
static constexpr int ApnType_ARRAYSIZE = MobileAPN_ApnType_ApnType_ARRAYSIZE;
template <typename T>
static inline const std::string& ApnType_Name(T value) {
return MobileAPN_ApnType_Name(value);
}
static inline bool ApnType_Parse(absl::string_view name, ApnType* value) {
return MobileAPN_ApnType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kLocalizedNameFieldNumber = 3,
kOBSOLETEDnsFieldNumber = 7,
kApnFilterFieldNumber = 11,
kTypeFieldNumber = 12,
kApnFieldNumber = 1,
kOBSOLETEGatewayFieldNumber = 4,
kUsernameFieldNumber = 5,
kPasswordFieldNumber = 6,
kAuthenticationFieldNumber = 8,
kOBSOLETEIsAttachApnFieldNumber = 9,
kIsRequiredByCarrierSpecFieldNumber = 13,
kIpTypeFieldNumber = 10,
};
// repeated .shill.mobile_operator_db.LocalizedName localized_name = 3;
int localized_name_size() const;
private:
int _internal_localized_name_size() const;
public:
void clear_localized_name() ;
::shill::mobile_operator_db::LocalizedName* mutable_localized_name(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >*
mutable_localized_name();
private:
const ::shill::mobile_operator_db::LocalizedName& _internal_localized_name(int index) const;
::shill::mobile_operator_db::LocalizedName* _internal_add_localized_name();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>& _internal_localized_name() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>* _internal_mutable_localized_name();
public:
const ::shill::mobile_operator_db::LocalizedName& localized_name(int index) const;
::shill::mobile_operator_db::LocalizedName* add_localized_name();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >&
localized_name() const;
// repeated string OBSOLETE_dns = 7;
int obsolete_dns_size() const;
private:
int _internal_obsolete_dns_size() const;
public:
void clear_obsolete_dns() ;
const std::string& obsolete_dns(int index) const;
std::string* mutable_obsolete_dns(int index);
void set_obsolete_dns(int index, const std::string& value);
void set_obsolete_dns(int index, std::string&& value);
void set_obsolete_dns(int index, const char* value);
void set_obsolete_dns(int index, const char* value, std::size_t size);
void set_obsolete_dns(int index, absl::string_view value);
std::string* add_obsolete_dns();
void add_obsolete_dns(const std::string& value);
void add_obsolete_dns(std::string&& value);
void add_obsolete_dns(const char* value);
void add_obsolete_dns(const char* value, std::size_t size);
void add_obsolete_dns(absl::string_view value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& obsolete_dns() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_obsolete_dns();
private:
const std::string& _internal_obsolete_dns(int index) const;
std::string* _internal_add_obsolete_dns();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& _internal_obsolete_dns() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* _internal_mutable_obsolete_dns();
public:
// repeated .shill.mobile_operator_db.Filter apn_filter = 11;
int apn_filter_size() const;
private:
int _internal_apn_filter_size() const;
public:
void clear_apn_filter() ;
::shill::mobile_operator_db::Filter* mutable_apn_filter(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >*
mutable_apn_filter();
private:
const ::shill::mobile_operator_db::Filter& _internal_apn_filter(int index) const;
::shill::mobile_operator_db::Filter* _internal_add_apn_filter();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>& _internal_apn_filter() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>* _internal_mutable_apn_filter();
public:
const ::shill::mobile_operator_db::Filter& apn_filter(int index) const;
::shill::mobile_operator_db::Filter* add_apn_filter();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >&
apn_filter() const;
// repeated .shill.mobile_operator_db.MobileAPN.ApnType type = 12;
int type_size() const;
private:
int _internal_type_size() const;
public:
void clear_type() ;
public:
::shill::mobile_operator_db::MobileAPN_ApnType type(int index) const;
void set_type(int index, ::shill::mobile_operator_db::MobileAPN_ApnType value);
void add_type(::shill::mobile_operator_db::MobileAPN_ApnType value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& type() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_type();
private:
::shill::mobile_operator_db::MobileAPN_ApnType _internal_type(int index) const;
void _internal_add_type(::shill::mobile_operator_db::MobileAPN_ApnType value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& _internal_type() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_type();
public:
// required string apn = 1;
bool has_apn() const;
void clear_apn() ;
const std::string& apn() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_apn(Arg_&& arg, Args_... args);
std::string* mutable_apn();
PROTOBUF_NODISCARD std::string* release_apn();
void set_allocated_apn(std::string* ptr);
private:
const std::string& _internal_apn() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_apn(
const std::string& value);
std::string* _internal_mutable_apn();
public:
// optional string OBSOLETE_gateway = 4;
bool has_obsolete_gateway() const;
void clear_obsolete_gateway() ;
const std::string& obsolete_gateway() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_obsolete_gateway(Arg_&& arg, Args_... args);
std::string* mutable_obsolete_gateway();
PROTOBUF_NODISCARD std::string* release_obsolete_gateway();
void set_allocated_obsolete_gateway(std::string* ptr);
private:
const std::string& _internal_obsolete_gateway() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_obsolete_gateway(
const std::string& value);
std::string* _internal_mutable_obsolete_gateway();
public:
// optional string username = 5;
bool has_username() const;
void clear_username() ;
const std::string& username() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_username(Arg_&& arg, Args_... args);
std::string* mutable_username();
PROTOBUF_NODISCARD std::string* release_username();
void set_allocated_username(std::string* ptr);
private:
const std::string& _internal_username() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_username(
const std::string& value);
std::string* _internal_mutable_username();
public:
// optional string password = 6;
bool has_password() const;
void clear_password() ;
const std::string& password() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_password(Arg_&& arg, Args_... args);
std::string* mutable_password();
PROTOBUF_NODISCARD std::string* release_password();
void set_allocated_password(std::string* ptr);
private:
const std::string& _internal_password() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(
const std::string& value);
std::string* _internal_mutable_password();
public:
// optional .shill.mobile_operator_db.MobileAPN.Authentication authentication = 8;
bool has_authentication() const;
void clear_authentication() ;
::shill::mobile_operator_db::MobileAPN_Authentication authentication() const;
void set_authentication(::shill::mobile_operator_db::MobileAPN_Authentication value);
private:
::shill::mobile_operator_db::MobileAPN_Authentication _internal_authentication() const;
void _internal_set_authentication(::shill::mobile_operator_db::MobileAPN_Authentication value);
public:
// optional bool OBSOLETE_is_attach_apn = 9;
bool has_obsolete_is_attach_apn() const;
void clear_obsolete_is_attach_apn() ;
bool obsolete_is_attach_apn() const;
void set_obsolete_is_attach_apn(bool value);
private:
bool _internal_obsolete_is_attach_apn() const;
void _internal_set_obsolete_is_attach_apn(bool value);
public:
// optional bool is_required_by_carrier_spec = 13 [default = false];
bool has_is_required_by_carrier_spec() const;
void clear_is_required_by_carrier_spec() ;
bool is_required_by_carrier_spec() const;
void set_is_required_by_carrier_spec(bool value);
private:
bool _internal_is_required_by_carrier_spec() const;
void _internal_set_is_required_by_carrier_spec(bool value);
public:
// optional .shill.mobile_operator_db.MobileAPN.IpType ip_type = 10 [default = IPV4];
bool has_ip_type() const;
void clear_ip_type() ;
::shill::mobile_operator_db::MobileAPN_IpType ip_type() const;
void set_ip_type(::shill::mobile_operator_db::MobileAPN_IpType value);
private:
::shill::mobile_operator_db::MobileAPN_IpType _internal_ip_type() const;
void _internal_set_ip_type(::shill::mobile_operator_db::MobileAPN_IpType value);
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.MobileAPN)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName > localized_name_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> obsolete_dns_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter > apn_filter_;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int> type_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr apn_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr obsolete_gateway_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr username_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_;
int authentication_;
bool obsolete_is_attach_apn_;
bool is_required_by_carrier_spec_;
int ip_type_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class OnlinePortal final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.OnlinePortal) */ {
public:
inline OnlinePortal() : OnlinePortal(nullptr) {}
~OnlinePortal() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR OnlinePortal(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
OnlinePortal(const OnlinePortal& from);
OnlinePortal(OnlinePortal&& from) noexcept
: OnlinePortal() {
*this = ::std::move(from);
}
inline OnlinePortal& operator=(const OnlinePortal& from) {
CopyFrom(from);
return *this;
}
inline OnlinePortal& operator=(OnlinePortal&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const OnlinePortal& default_instance() {
return *internal_default_instance();
}
static inline const OnlinePortal* internal_default_instance() {
return reinterpret_cast<const OnlinePortal*>(
&_OnlinePortal_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
friend void swap(OnlinePortal& a, OnlinePortal& b) {
a.Swap(&b);
}
inline void Swap(OnlinePortal* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(OnlinePortal* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
OnlinePortal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<OnlinePortal>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const OnlinePortal& from);
void MergeFrom(const OnlinePortal& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(OnlinePortal* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.OnlinePortal";
}
protected:
explicit OnlinePortal(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kUrlFieldNumber = 3,
kPostDataFieldNumber = 4,
kOlpFilterFieldNumber = 1,
kMethodFieldNumber = 2,
};
// required string url = 3;
bool has_url() const;
void clear_url() ;
const std::string& url() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_url(Arg_&& arg, Args_... args);
std::string* mutable_url();
PROTOBUF_NODISCARD std::string* release_url();
void set_allocated_url(std::string* ptr);
private:
const std::string& _internal_url() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(
const std::string& value);
std::string* _internal_mutable_url();
public:
// optional string post_data = 4;
bool has_post_data() const;
void clear_post_data() ;
const std::string& post_data() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_post_data(Arg_&& arg, Args_... args);
std::string* mutable_post_data();
PROTOBUF_NODISCARD std::string* release_post_data();
void set_allocated_post_data(std::string* ptr);
private:
const std::string& _internal_post_data() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_post_data(
const std::string& value);
std::string* _internal_mutable_post_data();
public:
// optional .shill.mobile_operator_db.Filter olp_filter = 1;
bool has_olp_filter() const;
void clear_olp_filter() ;
const ::shill::mobile_operator_db::Filter& olp_filter() const;
PROTOBUF_NODISCARD ::shill::mobile_operator_db::Filter* release_olp_filter();
::shill::mobile_operator_db::Filter* mutable_olp_filter();
void set_allocated_olp_filter(::shill::mobile_operator_db::Filter* olp_filter);
private:
const ::shill::mobile_operator_db::Filter& _internal_olp_filter() const;
::shill::mobile_operator_db::Filter* _internal_mutable_olp_filter();
public:
void unsafe_arena_set_allocated_olp_filter(
::shill::mobile_operator_db::Filter* olp_filter);
::shill::mobile_operator_db::Filter* unsafe_arena_release_olp_filter();
// required .shill.mobile_operator_db.HttpMethod method = 2;
bool has_method() const;
void clear_method() ;
::shill::mobile_operator_db::HttpMethod method() const;
void set_method(::shill::mobile_operator_db::HttpMethod value);
private:
::shill::mobile_operator_db::HttpMethod _internal_method() const;
void _internal_set_method(::shill::mobile_operator_db::HttpMethod value);
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.OnlinePortal)
private:
class _Internal;
// helper for ByteSizeLong()
::size_t RequiredFieldsByteSizeFallback() const;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_data_;
::shill::mobile_operator_db::Filter* olp_filter_;
int method_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class Data final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.Data) */ {
public:
inline Data() : Data(nullptr) {}
~Data() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR Data(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Data(const Data& from);
Data(Data&& from) noexcept
: Data() {
*this = ::std::move(from);
}
inline Data& operator=(const Data& from) {
CopyFrom(from);
return *this;
}
inline Data& operator=(Data&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const Data& default_instance() {
return *internal_default_instance();
}
static inline const Data* internal_default_instance() {
return reinterpret_cast<const Data*>(
&_Data_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
friend void swap(Data& a, Data& b) {
a.Swap(&b);
}
inline void Swap(Data* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Data* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Data* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Data>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const Data& from);
void MergeFrom(const Data& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(Data* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.Data";
}
protected:
explicit Data(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
using EntitlementParam = Data_EntitlementParam;
static constexpr EntitlementParam IMSI = Data_EntitlementParam_IMSI;
static inline bool EntitlementParam_IsValid(int value) {
return Data_EntitlementParam_IsValid(value);
}
static constexpr EntitlementParam EntitlementParam_MIN = Data_EntitlementParam_EntitlementParam_MIN;
static constexpr EntitlementParam EntitlementParam_MAX = Data_EntitlementParam_EntitlementParam_MAX;
static constexpr int EntitlementParam_ARRAYSIZE = Data_EntitlementParam_EntitlementParam_ARRAYSIZE;
template <typename T>
static inline const std::string& EntitlementParam_Name(T value) {
return Data_EntitlementParam_Name(value);
}
static inline bool EntitlementParam_Parse(absl::string_view name, EntitlementParam* value) {
return Data_EntitlementParam_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kLocalizedNameFieldNumber = 4,
kOlpFieldNumber = 6,
kRoamingFilterFieldNumber = 9,
kMhsEntitlementParamFieldNumber = 13,
kMccmncFieldNumber = 21,
kMobileApnFieldNumber = 22,
kUuidFieldNumber = 1,
kCountryFieldNumber = 3,
kMhsEntitlementUrlFieldNumber = 12,
kMtuFieldNumber = 7,
kRequiresRoamingFieldNumber = 5,
kPrioritizesNameFieldNumber = 8,
kTetheringAllowedFieldNumber = 10,
kUseDunApnAsDefaultFieldNumber = 11,
kMhsEntitlementMethodFieldNumber = 14,
};
// repeated .shill.mobile_operator_db.LocalizedName localized_name = 4;
int localized_name_size() const;
private:
int _internal_localized_name_size() const;
public:
void clear_localized_name() ;
::shill::mobile_operator_db::LocalizedName* mutable_localized_name(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >*
mutable_localized_name();
private:
const ::shill::mobile_operator_db::LocalizedName& _internal_localized_name(int index) const;
::shill::mobile_operator_db::LocalizedName* _internal_add_localized_name();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>& _internal_localized_name() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>* _internal_mutable_localized_name();
public:
const ::shill::mobile_operator_db::LocalizedName& localized_name(int index) const;
::shill::mobile_operator_db::LocalizedName* add_localized_name();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >&
localized_name() const;
// repeated .shill.mobile_operator_db.OnlinePortal olp = 6;
int olp_size() const;
private:
int _internal_olp_size() const;
public:
void clear_olp() ;
::shill::mobile_operator_db::OnlinePortal* mutable_olp(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::OnlinePortal >*
mutable_olp();
private:
const ::shill::mobile_operator_db::OnlinePortal& _internal_olp(int index) const;
::shill::mobile_operator_db::OnlinePortal* _internal_add_olp();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::OnlinePortal>& _internal_olp() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::OnlinePortal>* _internal_mutable_olp();
public:
const ::shill::mobile_operator_db::OnlinePortal& olp(int index) const;
::shill::mobile_operator_db::OnlinePortal* add_olp();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::OnlinePortal >&
olp() const;
// repeated .shill.mobile_operator_db.Filter roaming_filter = 9;
int roaming_filter_size() const;
private:
int _internal_roaming_filter_size() const;
public:
void clear_roaming_filter() ;
::shill::mobile_operator_db::Filter* mutable_roaming_filter(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >*
mutable_roaming_filter();
private:
const ::shill::mobile_operator_db::Filter& _internal_roaming_filter(int index) const;
::shill::mobile_operator_db::Filter* _internal_add_roaming_filter();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>& _internal_roaming_filter() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>* _internal_mutable_roaming_filter();
public:
const ::shill::mobile_operator_db::Filter& roaming_filter(int index) const;
::shill::mobile_operator_db::Filter* add_roaming_filter();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >&
roaming_filter() const;
// repeated .shill.mobile_operator_db.Data.EntitlementParam mhs_entitlement_param = 13;
int mhs_entitlement_param_size() const;
private:
int _internal_mhs_entitlement_param_size() const;
public:
void clear_mhs_entitlement_param() ;
public:
::shill::mobile_operator_db::Data_EntitlementParam mhs_entitlement_param(int index) const;
void set_mhs_entitlement_param(int index, ::shill::mobile_operator_db::Data_EntitlementParam value);
void add_mhs_entitlement_param(::shill::mobile_operator_db::Data_EntitlementParam value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& mhs_entitlement_param() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_mhs_entitlement_param();
private:
::shill::mobile_operator_db::Data_EntitlementParam _internal_mhs_entitlement_param(int index) const;
void _internal_add_mhs_entitlement_param(::shill::mobile_operator_db::Data_EntitlementParam value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& _internal_mhs_entitlement_param() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_mhs_entitlement_param();
public:
// repeated string mccmnc = 21;
int mccmnc_size() const;
private:
int _internal_mccmnc_size() const;
public:
void clear_mccmnc() ;
const std::string& mccmnc(int index) const;
std::string* mutable_mccmnc(int index);
void set_mccmnc(int index, const std::string& value);
void set_mccmnc(int index, std::string&& value);
void set_mccmnc(int index, const char* value);
void set_mccmnc(int index, const char* value, std::size_t size);
void set_mccmnc(int index, absl::string_view value);
std::string* add_mccmnc();
void add_mccmnc(const std::string& value);
void add_mccmnc(std::string&& value);
void add_mccmnc(const char* value);
void add_mccmnc(const char* value, std::size_t size);
void add_mccmnc(absl::string_view value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& mccmnc() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_mccmnc();
private:
const std::string& _internal_mccmnc(int index) const;
std::string* _internal_add_mccmnc();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& _internal_mccmnc() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* _internal_mutable_mccmnc();
public:
// repeated .shill.mobile_operator_db.MobileAPN mobile_apn = 22;
int mobile_apn_size() const;
private:
int _internal_mobile_apn_size() const;
public:
void clear_mobile_apn() ;
::shill::mobile_operator_db::MobileAPN* mutable_mobile_apn(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileAPN >*
mutable_mobile_apn();
private:
const ::shill::mobile_operator_db::MobileAPN& _internal_mobile_apn(int index) const;
::shill::mobile_operator_db::MobileAPN* _internal_add_mobile_apn();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileAPN>& _internal_mobile_apn() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileAPN>* _internal_mutable_mobile_apn();
public:
const ::shill::mobile_operator_db::MobileAPN& mobile_apn(int index) const;
::shill::mobile_operator_db::MobileAPN* add_mobile_apn();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileAPN >&
mobile_apn() const;
// required string uuid = 1;
bool has_uuid() const;
void clear_uuid() ;
const std::string& uuid() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_uuid(Arg_&& arg, Args_... args);
std::string* mutable_uuid();
PROTOBUF_NODISCARD std::string* release_uuid();
void set_allocated_uuid(std::string* ptr);
private:
const std::string& _internal_uuid() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid(
const std::string& value);
std::string* _internal_mutable_uuid();
public:
// optional string country = 3;
bool has_country() const;
void clear_country() ;
const std::string& country() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_country(Arg_&& arg, Args_... args);
std::string* mutable_country();
PROTOBUF_NODISCARD std::string* release_country();
void set_allocated_country(std::string* ptr);
private:
const std::string& _internal_country() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_country(
const std::string& value);
std::string* _internal_mutable_country();
public:
// optional string mhs_entitlement_url = 12;
bool has_mhs_entitlement_url() const;
void clear_mhs_entitlement_url() ;
const std::string& mhs_entitlement_url() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_mhs_entitlement_url(Arg_&& arg, Args_... args);
std::string* mutable_mhs_entitlement_url();
PROTOBUF_NODISCARD std::string* release_mhs_entitlement_url();
void set_allocated_mhs_entitlement_url(std::string* ptr);
private:
const std::string& _internal_mhs_entitlement_url() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_mhs_entitlement_url(
const std::string& value);
std::string* _internal_mutable_mhs_entitlement_url();
public:
// optional int32 mtu = 7;
bool has_mtu() const;
void clear_mtu() ;
::int32_t mtu() const;
void set_mtu(::int32_t value);
private:
::int32_t _internal_mtu() const;
void _internal_set_mtu(::int32_t value);
public:
// optional bool requires_roaming = 5 [default = false];
bool has_requires_roaming() const;
void clear_requires_roaming() ;
bool requires_roaming() const;
void set_requires_roaming(bool value);
private:
bool _internal_requires_roaming() const;
void _internal_set_requires_roaming(bool value);
public:
// optional bool prioritizes_name = 8 [default = false];
bool has_prioritizes_name() const;
void clear_prioritizes_name() ;
bool prioritizes_name() const;
void set_prioritizes_name(bool value);
private:
bool _internal_prioritizes_name() const;
void _internal_set_prioritizes_name(bool value);
public:
// optional bool tethering_allowed = 10;
bool has_tethering_allowed() const;
void clear_tethering_allowed() ;
bool tethering_allowed() const;
void set_tethering_allowed(bool value);
private:
bool _internal_tethering_allowed() const;
void _internal_set_tethering_allowed(bool value);
public:
// optional bool use_dun_apn_as_default = 11;
bool has_use_dun_apn_as_default() const;
void clear_use_dun_apn_as_default() ;
bool use_dun_apn_as_default() const;
void set_use_dun_apn_as_default(bool value);
private:
bool _internal_use_dun_apn_as_default() const;
void _internal_set_use_dun_apn_as_default(bool value);
public:
// optional .shill.mobile_operator_db.HttpMethod mhs_entitlement_method = 14 [default = POST];
bool has_mhs_entitlement_method() const;
void clear_mhs_entitlement_method() ;
::shill::mobile_operator_db::HttpMethod mhs_entitlement_method() const;
void set_mhs_entitlement_method(::shill::mobile_operator_db::HttpMethod value);
private:
::shill::mobile_operator_db::HttpMethod _internal_mhs_entitlement_method() const;
void _internal_set_mhs_entitlement_method(::shill::mobile_operator_db::HttpMethod value);
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.Data)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName > localized_name_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::OnlinePortal > olp_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter > roaming_filter_;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int> mhs_entitlement_param_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> mccmnc_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileAPN > mobile_apn_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uuid_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr country_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mhs_entitlement_url_;
::int32_t mtu_;
bool requires_roaming_;
bool prioritizes_name_;
bool tethering_allowed_;
bool use_dun_apn_as_default_;
int mhs_entitlement_method_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class MobileVirtualNetworkOperator final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.MobileVirtualNetworkOperator) */ {
public:
inline MobileVirtualNetworkOperator() : MobileVirtualNetworkOperator(nullptr) {}
~MobileVirtualNetworkOperator() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR MobileVirtualNetworkOperator(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
MobileVirtualNetworkOperator(const MobileVirtualNetworkOperator& from);
MobileVirtualNetworkOperator(MobileVirtualNetworkOperator&& from) noexcept
: MobileVirtualNetworkOperator() {
*this = ::std::move(from);
}
inline MobileVirtualNetworkOperator& operator=(const MobileVirtualNetworkOperator& from) {
CopyFrom(from);
return *this;
}
inline MobileVirtualNetworkOperator& operator=(MobileVirtualNetworkOperator&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const MobileVirtualNetworkOperator& default_instance() {
return *internal_default_instance();
}
static inline const MobileVirtualNetworkOperator* internal_default_instance() {
return reinterpret_cast<const MobileVirtualNetworkOperator*>(
&_MobileVirtualNetworkOperator_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
friend void swap(MobileVirtualNetworkOperator& a, MobileVirtualNetworkOperator& b) {
a.Swap(&b);
}
inline void Swap(MobileVirtualNetworkOperator* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(MobileVirtualNetworkOperator* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MobileVirtualNetworkOperator* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<MobileVirtualNetworkOperator>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const MobileVirtualNetworkOperator& from);
void MergeFrom(const MobileVirtualNetworkOperator& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(MobileVirtualNetworkOperator* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.MobileVirtualNetworkOperator";
}
protected:
explicit MobileVirtualNetworkOperator(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMvnoFilterFieldNumber = 1,
kDataFieldNumber = 2,
};
// repeated .shill.mobile_operator_db.Filter mvno_filter = 1;
int mvno_filter_size() const;
private:
int _internal_mvno_filter_size() const;
public:
void clear_mvno_filter() ;
::shill::mobile_operator_db::Filter* mutable_mvno_filter(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >*
mutable_mvno_filter();
private:
const ::shill::mobile_operator_db::Filter& _internal_mvno_filter(int index) const;
::shill::mobile_operator_db::Filter* _internal_add_mvno_filter();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>& _internal_mvno_filter() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>* _internal_mutable_mvno_filter();
public:
const ::shill::mobile_operator_db::Filter& mvno_filter(int index) const;
::shill::mobile_operator_db::Filter* add_mvno_filter();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >&
mvno_filter() const;
// required .shill.mobile_operator_db.Data data = 2;
bool has_data() const;
void clear_data() ;
const ::shill::mobile_operator_db::Data& data() const;
PROTOBUF_NODISCARD ::shill::mobile_operator_db::Data* release_data();
::shill::mobile_operator_db::Data* mutable_data();
void set_allocated_data(::shill::mobile_operator_db::Data* data);
private:
const ::shill::mobile_operator_db::Data& _internal_data() const;
::shill::mobile_operator_db::Data* _internal_mutable_data();
public:
void unsafe_arena_set_allocated_data(
::shill::mobile_operator_db::Data* data);
::shill::mobile_operator_db::Data* unsafe_arena_release_data();
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.MobileVirtualNetworkOperator)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter > mvno_filter_;
::shill::mobile_operator_db::Data* data_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class MobileNetworkOperator final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.MobileNetworkOperator) */ {
public:
inline MobileNetworkOperator() : MobileNetworkOperator(nullptr) {}
~MobileNetworkOperator() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR MobileNetworkOperator(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
MobileNetworkOperator(const MobileNetworkOperator& from);
MobileNetworkOperator(MobileNetworkOperator&& from) noexcept
: MobileNetworkOperator() {
*this = ::std::move(from);
}
inline MobileNetworkOperator& operator=(const MobileNetworkOperator& from) {
CopyFrom(from);
return *this;
}
inline MobileNetworkOperator& operator=(MobileNetworkOperator&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const MobileNetworkOperator& default_instance() {
return *internal_default_instance();
}
static inline const MobileNetworkOperator* internal_default_instance() {
return reinterpret_cast<const MobileNetworkOperator*>(
&_MobileNetworkOperator_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
friend void swap(MobileNetworkOperator& a, MobileNetworkOperator& b) {
a.Swap(&b);
}
inline void Swap(MobileNetworkOperator* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(MobileNetworkOperator* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MobileNetworkOperator* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<MobileNetworkOperator>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const MobileNetworkOperator& from);
void MergeFrom(const MobileNetworkOperator& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(MobileNetworkOperator* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.MobileNetworkOperator";
}
protected:
explicit MobileNetworkOperator(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMvnoFieldNumber = 2,
kDataFieldNumber = 1,
kEarmarkedFieldNumber = 3,
};
// repeated .shill.mobile_operator_db.MobileVirtualNetworkOperator mvno = 2;
int mvno_size() const;
private:
int _internal_mvno_size() const;
public:
void clear_mvno() ;
::shill::mobile_operator_db::MobileVirtualNetworkOperator* mutable_mvno(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >*
mutable_mvno();
private:
const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& _internal_mvno(int index) const;
::shill::mobile_operator_db::MobileVirtualNetworkOperator* _internal_add_mvno();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>& _internal_mvno() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>* _internal_mutable_mvno();
public:
const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& mvno(int index) const;
::shill::mobile_operator_db::MobileVirtualNetworkOperator* add_mvno();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >&
mvno() const;
// required .shill.mobile_operator_db.Data data = 1;
bool has_data() const;
void clear_data() ;
const ::shill::mobile_operator_db::Data& data() const;
PROTOBUF_NODISCARD ::shill::mobile_operator_db::Data* release_data();
::shill::mobile_operator_db::Data* mutable_data();
void set_allocated_data(::shill::mobile_operator_db::Data* data);
private:
const ::shill::mobile_operator_db::Data& _internal_data() const;
::shill::mobile_operator_db::Data* _internal_mutable_data();
public:
void unsafe_arena_set_allocated_data(
::shill::mobile_operator_db::Data* data);
::shill::mobile_operator_db::Data* unsafe_arena_release_data();
// optional bool earmarked = 3;
bool has_earmarked() const;
void clear_earmarked() ;
bool earmarked() const;
void set_earmarked(bool value);
private:
bool _internal_earmarked() const;
void _internal_set_earmarked(bool value);
public:
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.MobileNetworkOperator)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator > mvno_;
::shill::mobile_operator_db::Data* data_;
bool earmarked_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};// -------------------------------------------------------------------
class MobileOperatorDB final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:shill.mobile_operator_db.MobileOperatorDB) */ {
public:
inline MobileOperatorDB() : MobileOperatorDB(nullptr) {}
~MobileOperatorDB() override;
template<typename = void>
explicit PROTOBUF_CONSTEXPR MobileOperatorDB(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
MobileOperatorDB(const MobileOperatorDB& from);
MobileOperatorDB(MobileOperatorDB&& from) noexcept
: MobileOperatorDB() {
*this = ::std::move(from);
}
inline MobileOperatorDB& operator=(const MobileOperatorDB& from) {
CopyFrom(from);
return *this;
}
inline MobileOperatorDB& operator=(MobileOperatorDB&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const MobileOperatorDB& default_instance() {
return *internal_default_instance();
}
static inline const MobileOperatorDB* internal_default_instance() {
return reinterpret_cast<const MobileOperatorDB*>(
&_MobileOperatorDB_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
friend void swap(MobileOperatorDB& a, MobileOperatorDB& b) {
a.Swap(&b);
}
inline void Swap(MobileOperatorDB* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(MobileOperatorDB* other) {
if (other == this) return;
ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MobileOperatorDB* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<MobileOperatorDB>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const MobileOperatorDB& from);
void MergeFrom(const MobileOperatorDB& 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;
::uint8_t* _InternalSerialize(
::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(MobileOperatorDB* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::absl::string_view FullMessageName() {
return "shill.mobile_operator_db.MobileOperatorDB";
}
protected:
explicit MobileOperatorDB(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kMnoFieldNumber = 1,
kMvnoFieldNumber = 3,
};
// repeated .shill.mobile_operator_db.MobileNetworkOperator mno = 1;
int mno_size() const;
private:
int _internal_mno_size() const;
public:
void clear_mno() ;
::shill::mobile_operator_db::MobileNetworkOperator* mutable_mno(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileNetworkOperator >*
mutable_mno();
private:
const ::shill::mobile_operator_db::MobileNetworkOperator& _internal_mno(int index) const;
::shill::mobile_operator_db::MobileNetworkOperator* _internal_add_mno();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileNetworkOperator>& _internal_mno() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileNetworkOperator>* _internal_mutable_mno();
public:
const ::shill::mobile_operator_db::MobileNetworkOperator& mno(int index) const;
::shill::mobile_operator_db::MobileNetworkOperator* add_mno();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileNetworkOperator >&
mno() const;
// repeated .shill.mobile_operator_db.MobileVirtualNetworkOperator mvno = 3;
int mvno_size() const;
private:
int _internal_mvno_size() const;
public:
void clear_mvno() ;
::shill::mobile_operator_db::MobileVirtualNetworkOperator* mutable_mvno(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >*
mutable_mvno();
private:
const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& _internal_mvno(int index) const;
::shill::mobile_operator_db::MobileVirtualNetworkOperator* _internal_add_mvno();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>& _internal_mvno() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>* _internal_mutable_mvno();
public:
const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& mvno(int index) const;
::shill::mobile_operator_db::MobileVirtualNetworkOperator* add_mvno();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >&
mvno() const;
// @@protoc_insertion_point(class_scope:shill.mobile_operator_db.MobileOperatorDB)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileNetworkOperator > mno_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator > mvno_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_mobile_5foperator_5fdb_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// FilterRange
// required uint64 start = 1;
inline bool FilterRange::has_start() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline void FilterRange::clear_start() {
_impl_.start_ = ::uint64_t{0u};
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline ::uint64_t FilterRange::start() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.FilterRange.start)
return _internal_start();
}
inline void FilterRange::set_start(::uint64_t value) {
_internal_set_start(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.FilterRange.start)
}
inline ::uint64_t FilterRange::_internal_start() const {
return _impl_.start_;
}
inline void FilterRange::_internal_set_start(::uint64_t value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.start_ = value;
}
// required uint64 end = 2;
inline bool FilterRange::has_end() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void FilterRange::clear_end() {
_impl_.end_ = ::uint64_t{0u};
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline ::uint64_t FilterRange::end() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.FilterRange.end)
return _internal_end();
}
inline void FilterRange::set_end(::uint64_t value) {
_internal_set_end(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.FilterRange.end)
}
inline ::uint64_t FilterRange::_internal_end() const {
return _impl_.end_;
}
inline void FilterRange::_internal_set_end(::uint64_t value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.end_ = value;
}
// -------------------------------------------------------------------
// Filter
// required .shill.mobile_operator_db.Filter.Type type = 1;
inline bool Filter::has_type() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline void Filter::clear_type() {
_impl_.type_ = 1;
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline ::shill::mobile_operator_db::Filter_Type Filter::type() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Filter.type)
return _internal_type();
}
inline void Filter::set_type(::shill::mobile_operator_db::Filter_Type value) {
_internal_set_type(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Filter.type)
}
inline ::shill::mobile_operator_db::Filter_Type Filter::_internal_type() const {
return static_cast<::shill::mobile_operator_db::Filter_Type>(_impl_.type_);
}
inline void Filter::_internal_set_type(::shill::mobile_operator_db::Filter_Type value) {
assert(::shill::mobile_operator_db::Filter_Type_IsValid(value));
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.type_ = value;
}
// optional string regex = 2;
inline bool Filter::has_regex() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline void Filter::clear_regex() {
_impl_.regex_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& Filter::regex() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Filter.regex)
return _internal_regex();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Filter::set_regex(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.regex_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Filter.regex)
}
inline std::string* Filter::mutable_regex() {
std::string* _s = _internal_mutable_regex();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Filter.regex)
return _s;
}
inline const std::string& Filter::_internal_regex() const {
return _impl_.regex_.Get();
}
inline void Filter::_internal_set_regex(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.regex_.Set(value, GetArenaForAllocation());
}
inline std::string* Filter::_internal_mutable_regex() {
_impl_._has_bits_[0] |= 0x00000001u;
return _impl_.regex_.Mutable( GetArenaForAllocation());
}
inline std::string* Filter::release_regex() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.Filter.regex)
if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000001u;
auto* released = _impl_.regex_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.regex_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void Filter::set_allocated_regex(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.regex_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.regex_.IsDefault()) {
_impl_.regex_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.Filter.regex)
}
// repeated .shill.mobile_operator_db.FilterRange range = 3;
inline int Filter::_internal_range_size() const {
return _impl_.range_.size();
}
inline int Filter::range_size() const {
return _internal_range_size();
}
inline void Filter::clear_range() {
_internal_mutable_range()->Clear();
}
inline ::shill::mobile_operator_db::FilterRange* Filter::mutable_range(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Filter.range)
return _internal_mutable_range()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::FilterRange >*
Filter::mutable_range() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Filter.range)
return _internal_mutable_range();
}
inline const ::shill::mobile_operator_db::FilterRange& Filter::_internal_range(int index) const {
return _internal_range().Get(index);
}
inline const ::shill::mobile_operator_db::FilterRange& Filter::range(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Filter.range)
return _internal_range(index);
}
inline ::shill::mobile_operator_db::FilterRange* Filter::_internal_add_range() {
return _internal_mutable_range()->Add();
}
inline ::shill::mobile_operator_db::FilterRange* Filter::add_range() {
::shill::mobile_operator_db::FilterRange* _add = _internal_add_range();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Filter.range)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::FilterRange >&
Filter::range() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Filter.range)
return _internal_range();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::FilterRange>&
Filter::_internal_range() const {
return _impl_.range_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::FilterRange>*
Filter::_internal_mutable_range() {
return &_impl_.range_;
}
// optional string exclude_regex = 4;
inline bool Filter::has_exclude_regex() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void Filter::clear_exclude_regex() {
_impl_.exclude_regex_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline const std::string& Filter::exclude_regex() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Filter.exclude_regex)
return _internal_exclude_regex();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Filter::set_exclude_regex(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.exclude_regex_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Filter.exclude_regex)
}
inline std::string* Filter::mutable_exclude_regex() {
std::string* _s = _internal_mutable_exclude_regex();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Filter.exclude_regex)
return _s;
}
inline const std::string& Filter::_internal_exclude_regex() const {
return _impl_.exclude_regex_.Get();
}
inline void Filter::_internal_set_exclude_regex(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.exclude_regex_.Set(value, GetArenaForAllocation());
}
inline std::string* Filter::_internal_mutable_exclude_regex() {
_impl_._has_bits_[0] |= 0x00000002u;
return _impl_.exclude_regex_.Mutable( GetArenaForAllocation());
}
inline std::string* Filter::release_exclude_regex() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.Filter.exclude_regex)
if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000002u;
auto* released = _impl_.exclude_regex_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.exclude_regex_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void Filter::set_allocated_exclude_regex(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
_impl_.exclude_regex_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.exclude_regex_.IsDefault()) {
_impl_.exclude_regex_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.Filter.exclude_regex)
}
// -------------------------------------------------------------------
// LocalizedName
// required string name = 1;
inline bool LocalizedName::has_name() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline void LocalizedName::clear_name() {
_impl_.name_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& LocalizedName::name() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.LocalizedName.name)
return _internal_name();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void LocalizedName::set_name(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.LocalizedName.name)
}
inline std::string* LocalizedName::mutable_name() {
std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.LocalizedName.name)
return _s;
}
inline const std::string& LocalizedName::_internal_name() const {
return _impl_.name_.Get();
}
inline void LocalizedName::_internal_set_name(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.name_.Set(value, GetArenaForAllocation());
}
inline std::string* LocalizedName::_internal_mutable_name() {
_impl_._has_bits_[0] |= 0x00000001u;
return _impl_.name_.Mutable( GetArenaForAllocation());
}
inline std::string* LocalizedName::release_name() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.LocalizedName.name)
if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000001u;
auto* released = _impl_.name_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void LocalizedName::set_allocated_name(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.name_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.LocalizedName.name)
}
// optional string language = 2;
inline bool LocalizedName::has_language() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void LocalizedName::clear_language() {
_impl_.language_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline const std::string& LocalizedName::language() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.LocalizedName.language)
return _internal_language();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void LocalizedName::set_language(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.language_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.LocalizedName.language)
}
inline std::string* LocalizedName::mutable_language() {
std::string* _s = _internal_mutable_language();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.LocalizedName.language)
return _s;
}
inline const std::string& LocalizedName::_internal_language() const {
return _impl_.language_.Get();
}
inline void LocalizedName::_internal_set_language(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.language_.Set(value, GetArenaForAllocation());
}
inline std::string* LocalizedName::_internal_mutable_language() {
_impl_._has_bits_[0] |= 0x00000002u;
return _impl_.language_.Mutable( GetArenaForAllocation());
}
inline std::string* LocalizedName::release_language() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.LocalizedName.language)
if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000002u;
auto* released = _impl_.language_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.language_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void LocalizedName::set_allocated_language(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
_impl_.language_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.language_.IsDefault()) {
_impl_.language_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.LocalizedName.language)
}
// -------------------------------------------------------------------
// MobileAPN
// required string apn = 1;
inline bool MobileAPN::has_apn() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline void MobileAPN::clear_apn() {
_impl_.apn_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& MobileAPN::apn() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.apn)
return _internal_apn();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void MobileAPN::set_apn(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.apn_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.apn)
}
inline std::string* MobileAPN::mutable_apn() {
std::string* _s = _internal_mutable_apn();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.apn)
return _s;
}
inline const std::string& MobileAPN::_internal_apn() const {
return _impl_.apn_.Get();
}
inline void MobileAPN::_internal_set_apn(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.apn_.Set(value, GetArenaForAllocation());
}
inline std::string* MobileAPN::_internal_mutable_apn() {
_impl_._has_bits_[0] |= 0x00000001u;
return _impl_.apn_.Mutable( GetArenaForAllocation());
}
inline std::string* MobileAPN::release_apn() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.MobileAPN.apn)
if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000001u;
auto* released = _impl_.apn_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.apn_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void MobileAPN::set_allocated_apn(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.apn_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.apn_.IsDefault()) {
_impl_.apn_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.MobileAPN.apn)
}
// repeated .shill.mobile_operator_db.LocalizedName localized_name = 3;
inline int MobileAPN::_internal_localized_name_size() const {
return _impl_.localized_name_.size();
}
inline int MobileAPN::localized_name_size() const {
return _internal_localized_name_size();
}
inline void MobileAPN::clear_localized_name() {
_internal_mutable_localized_name()->Clear();
}
inline ::shill::mobile_operator_db::LocalizedName* MobileAPN::mutable_localized_name(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.localized_name)
return _internal_mutable_localized_name()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >*
MobileAPN::mutable_localized_name() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileAPN.localized_name)
return _internal_mutable_localized_name();
}
inline const ::shill::mobile_operator_db::LocalizedName& MobileAPN::_internal_localized_name(int index) const {
return _internal_localized_name().Get(index);
}
inline const ::shill::mobile_operator_db::LocalizedName& MobileAPN::localized_name(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.localized_name)
return _internal_localized_name(index);
}
inline ::shill::mobile_operator_db::LocalizedName* MobileAPN::_internal_add_localized_name() {
return _internal_mutable_localized_name()->Add();
}
inline ::shill::mobile_operator_db::LocalizedName* MobileAPN::add_localized_name() {
::shill::mobile_operator_db::LocalizedName* _add = _internal_add_localized_name();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileAPN.localized_name)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >&
MobileAPN::localized_name() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileAPN.localized_name)
return _internal_localized_name();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>&
MobileAPN::_internal_localized_name() const {
return _impl_.localized_name_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>*
MobileAPN::_internal_mutable_localized_name() {
return &_impl_.localized_name_;
}
// optional string OBSOLETE_gateway = 4;
inline bool MobileAPN::has_obsolete_gateway() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void MobileAPN::clear_obsolete_gateway() {
_impl_.obsolete_gateway_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline const std::string& MobileAPN::obsolete_gateway() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.OBSOLETE_gateway)
return _internal_obsolete_gateway();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void MobileAPN::set_obsolete_gateway(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.obsolete_gateway_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.OBSOLETE_gateway)
}
inline std::string* MobileAPN::mutable_obsolete_gateway() {
std::string* _s = _internal_mutable_obsolete_gateway();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.OBSOLETE_gateway)
return _s;
}
inline const std::string& MobileAPN::_internal_obsolete_gateway() const {
return _impl_.obsolete_gateway_.Get();
}
inline void MobileAPN::_internal_set_obsolete_gateway(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.obsolete_gateway_.Set(value, GetArenaForAllocation());
}
inline std::string* MobileAPN::_internal_mutable_obsolete_gateway() {
_impl_._has_bits_[0] |= 0x00000002u;
return _impl_.obsolete_gateway_.Mutable( GetArenaForAllocation());
}
inline std::string* MobileAPN::release_obsolete_gateway() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.MobileAPN.OBSOLETE_gateway)
if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000002u;
auto* released = _impl_.obsolete_gateway_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.obsolete_gateway_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void MobileAPN::set_allocated_obsolete_gateway(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
_impl_.obsolete_gateway_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.obsolete_gateway_.IsDefault()) {
_impl_.obsolete_gateway_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.MobileAPN.OBSOLETE_gateway)
}
// optional string username = 5;
inline bool MobileAPN::has_username() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline void MobileAPN::clear_username() {
_impl_.username_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline const std::string& MobileAPN::username() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.username)
return _internal_username();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void MobileAPN::set_username(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.username_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.username)
}
inline std::string* MobileAPN::mutable_username() {
std::string* _s = _internal_mutable_username();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.username)
return _s;
}
inline const std::string& MobileAPN::_internal_username() const {
return _impl_.username_.Get();
}
inline void MobileAPN::_internal_set_username(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.username_.Set(value, GetArenaForAllocation());
}
inline std::string* MobileAPN::_internal_mutable_username() {
_impl_._has_bits_[0] |= 0x00000004u;
return _impl_.username_.Mutable( GetArenaForAllocation());
}
inline std::string* MobileAPN::release_username() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.MobileAPN.username)
if ((_impl_._has_bits_[0] & 0x00000004u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000004u;
auto* released = _impl_.username_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.username_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void MobileAPN::set_allocated_username(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000004u;
} else {
_impl_._has_bits_[0] &= ~0x00000004u;
}
_impl_.username_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.username_.IsDefault()) {
_impl_.username_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.MobileAPN.username)
}
// optional string password = 6;
inline bool MobileAPN::has_password() const {
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline void MobileAPN::clear_password() {
_impl_.password_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000008u;
}
inline const std::string& MobileAPN::password() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.password)
return _internal_password();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void MobileAPN::set_password(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000008u;
_impl_.password_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.password)
}
inline std::string* MobileAPN::mutable_password() {
std::string* _s = _internal_mutable_password();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.password)
return _s;
}
inline const std::string& MobileAPN::_internal_password() const {
return _impl_.password_.Get();
}
inline void MobileAPN::_internal_set_password(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000008u;
_impl_.password_.Set(value, GetArenaForAllocation());
}
inline std::string* MobileAPN::_internal_mutable_password() {
_impl_._has_bits_[0] |= 0x00000008u;
return _impl_.password_.Mutable( GetArenaForAllocation());
}
inline std::string* MobileAPN::release_password() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.MobileAPN.password)
if ((_impl_._has_bits_[0] & 0x00000008u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000008u;
auto* released = _impl_.password_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.password_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void MobileAPN::set_allocated_password(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000008u;
} else {
_impl_._has_bits_[0] &= ~0x00000008u;
}
_impl_.password_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.password_.IsDefault()) {
_impl_.password_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.MobileAPN.password)
}
// repeated string OBSOLETE_dns = 7;
inline int MobileAPN::_internal_obsolete_dns_size() const {
return _impl_.obsolete_dns_.size();
}
inline int MobileAPN::obsolete_dns_size() const {
return _internal_obsolete_dns_size();
}
inline void MobileAPN::clear_obsolete_dns() {
_internal_mutable_obsolete_dns()->Clear();
}
inline std::string* MobileAPN::add_obsolete_dns() {
std::string* _s = _internal_add_obsolete_dns();
// @@protoc_insertion_point(field_add_mutable:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
return _s;
}
inline const std::string& MobileAPN::obsolete_dns(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
return _internal_obsolete_dns(index);
}
inline std::string* MobileAPN::mutable_obsolete_dns(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
return _internal_mutable_obsolete_dns()->Mutable(index);
}
inline void MobileAPN::set_obsolete_dns(int index, const std::string& value) {
_internal_mutable_obsolete_dns()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::set_obsolete_dns(int index, std::string&& value) {
_internal_mutable_obsolete_dns()->Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::set_obsolete_dns(int index, const char* value) {
ABSL_DCHECK(value != nullptr);
_internal_mutable_obsolete_dns()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::set_obsolete_dns(int index, const char* value,
std::size_t size) {
_internal_mutable_obsolete_dns()->Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::set_obsolete_dns(int index, absl::string_view value) {
_internal_mutable_obsolete_dns()->Mutable(index)->assign(value.data(),
value.size());
// @@protoc_insertion_point(field_set_string_piece:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::add_obsolete_dns(const std::string& value) {
_internal_mutable_obsolete_dns()->Add()->assign(value);
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::add_obsolete_dns(std::string&& value) {
_internal_mutable_obsolete_dns()->Add(std::move(value));
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::add_obsolete_dns(const char* value) {
ABSL_DCHECK(value != nullptr);
_internal_mutable_obsolete_dns()->Add()->assign(value);
// @@protoc_insertion_point(field_add_char:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::add_obsolete_dns(const char* value, std::size_t size) {
_internal_mutable_obsolete_dns()->Add()->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline void MobileAPN::add_obsolete_dns(absl::string_view value) {
_internal_mutable_obsolete_dns()->Add()->assign(value.data(), value.size());
// @@protoc_insertion_point(field_add_string_piece:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
MobileAPN::obsolete_dns() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
return _internal_obsolete_dns();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* MobileAPN::mutable_obsolete_dns() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileAPN.OBSOLETE_dns)
return _internal_mutable_obsolete_dns();
}
inline const std::string& MobileAPN::_internal_obsolete_dns(int index) const {
return _internal_obsolete_dns().Get(index);
}
inline std::string* MobileAPN::_internal_add_obsolete_dns() {
return _internal_mutable_obsolete_dns()->Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
MobileAPN::_internal_obsolete_dns() const {
return _impl_.obsolete_dns_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
MobileAPN::_internal_mutable_obsolete_dns() {
return &_impl_.obsolete_dns_;
}
// optional .shill.mobile_operator_db.MobileAPN.Authentication authentication = 8;
inline bool MobileAPN::has_authentication() const {
bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
return value;
}
inline void MobileAPN::clear_authentication() {
_impl_.authentication_ = 0;
_impl_._has_bits_[0] &= ~0x00000010u;
}
inline ::shill::mobile_operator_db::MobileAPN_Authentication MobileAPN::authentication() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.authentication)
return _internal_authentication();
}
inline void MobileAPN::set_authentication(::shill::mobile_operator_db::MobileAPN_Authentication value) {
_internal_set_authentication(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.authentication)
}
inline ::shill::mobile_operator_db::MobileAPN_Authentication MobileAPN::_internal_authentication() const {
return static_cast<::shill::mobile_operator_db::MobileAPN_Authentication>(_impl_.authentication_);
}
inline void MobileAPN::_internal_set_authentication(::shill::mobile_operator_db::MobileAPN_Authentication value) {
assert(::shill::mobile_operator_db::MobileAPN_Authentication_IsValid(value));
_impl_._has_bits_[0] |= 0x00000010u;
_impl_.authentication_ = value;
}
// optional bool OBSOLETE_is_attach_apn = 9;
inline bool MobileAPN::has_obsolete_is_attach_apn() const {
bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
return value;
}
inline void MobileAPN::clear_obsolete_is_attach_apn() {
_impl_.obsolete_is_attach_apn_ = false;
_impl_._has_bits_[0] &= ~0x00000020u;
}
inline bool MobileAPN::obsolete_is_attach_apn() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.OBSOLETE_is_attach_apn)
return _internal_obsolete_is_attach_apn();
}
inline void MobileAPN::set_obsolete_is_attach_apn(bool value) {
_internal_set_obsolete_is_attach_apn(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.OBSOLETE_is_attach_apn)
}
inline bool MobileAPN::_internal_obsolete_is_attach_apn() const {
return _impl_.obsolete_is_attach_apn_;
}
inline void MobileAPN::_internal_set_obsolete_is_attach_apn(bool value) {
_impl_._has_bits_[0] |= 0x00000020u;
_impl_.obsolete_is_attach_apn_ = value;
}
// optional .shill.mobile_operator_db.MobileAPN.IpType ip_type = 10 [default = IPV4];
inline bool MobileAPN::has_ip_type() const {
bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
return value;
}
inline void MobileAPN::clear_ip_type() {
_impl_.ip_type_ = 1;
_impl_._has_bits_[0] &= ~0x00000080u;
}
inline ::shill::mobile_operator_db::MobileAPN_IpType MobileAPN::ip_type() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.ip_type)
return _internal_ip_type();
}
inline void MobileAPN::set_ip_type(::shill::mobile_operator_db::MobileAPN_IpType value) {
_internal_set_ip_type(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.ip_type)
}
inline ::shill::mobile_operator_db::MobileAPN_IpType MobileAPN::_internal_ip_type() const {
return static_cast<::shill::mobile_operator_db::MobileAPN_IpType>(_impl_.ip_type_);
}
inline void MobileAPN::_internal_set_ip_type(::shill::mobile_operator_db::MobileAPN_IpType value) {
assert(::shill::mobile_operator_db::MobileAPN_IpType_IsValid(value));
_impl_._has_bits_[0] |= 0x00000080u;
_impl_.ip_type_ = value;
}
// repeated .shill.mobile_operator_db.Filter apn_filter = 11;
inline int MobileAPN::_internal_apn_filter_size() const {
return _impl_.apn_filter_.size();
}
inline int MobileAPN::apn_filter_size() const {
return _internal_apn_filter_size();
}
inline void MobileAPN::clear_apn_filter() {
_internal_mutable_apn_filter()->Clear();
}
inline ::shill::mobile_operator_db::Filter* MobileAPN::mutable_apn_filter(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileAPN.apn_filter)
return _internal_mutable_apn_filter()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >*
MobileAPN::mutable_apn_filter() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileAPN.apn_filter)
return _internal_mutable_apn_filter();
}
inline const ::shill::mobile_operator_db::Filter& MobileAPN::_internal_apn_filter(int index) const {
return _internal_apn_filter().Get(index);
}
inline const ::shill::mobile_operator_db::Filter& MobileAPN::apn_filter(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.apn_filter)
return _internal_apn_filter(index);
}
inline ::shill::mobile_operator_db::Filter* MobileAPN::_internal_add_apn_filter() {
return _internal_mutable_apn_filter()->Add();
}
inline ::shill::mobile_operator_db::Filter* MobileAPN::add_apn_filter() {
::shill::mobile_operator_db::Filter* _add = _internal_add_apn_filter();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileAPN.apn_filter)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >&
MobileAPN::apn_filter() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileAPN.apn_filter)
return _internal_apn_filter();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>&
MobileAPN::_internal_apn_filter() const {
return _impl_.apn_filter_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>*
MobileAPN::_internal_mutable_apn_filter() {
return &_impl_.apn_filter_;
}
// repeated .shill.mobile_operator_db.MobileAPN.ApnType type = 12;
inline int MobileAPN::_internal_type_size() const {
return _impl_.type_.size();
}
inline int MobileAPN::type_size() const {
return _internal_type_size();
}
inline void MobileAPN::clear_type() {
_internal_mutable_type()->Clear();
}
inline ::shill::mobile_operator_db::MobileAPN_ApnType MobileAPN::type(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.type)
return _internal_type(index);
}
inline void MobileAPN::set_type(int index, ::shill::mobile_operator_db::MobileAPN_ApnType value) {
assert(::shill::mobile_operator_db::MobileAPN_ApnType_IsValid(value));
_internal_mutable_type()->Set(index, value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.type)
}
inline void MobileAPN::add_type(::shill::mobile_operator_db::MobileAPN_ApnType value) {
_internal_add_type(value);
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileAPN.type)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& MobileAPN::type() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileAPN.type)
return _internal_type();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* MobileAPN::mutable_type() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileAPN.type)
return _internal_mutable_type();
}
inline ::shill::mobile_operator_db::MobileAPN_ApnType MobileAPN::_internal_type(int index) const {
return static_cast<::shill::mobile_operator_db::MobileAPN_ApnType>(_internal_type().Get(index));
}
inline void MobileAPN::_internal_add_type(::shill::mobile_operator_db::MobileAPN_ApnType value) {
assert(::shill::mobile_operator_db::MobileAPN_ApnType_IsValid(value));
_internal_mutable_type()->Add(value);
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& MobileAPN::_internal_type() const {
return _impl_.type_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* MobileAPN::_internal_mutable_type() {
return &_impl_.type_;
}
// optional bool is_required_by_carrier_spec = 13 [default = false];
inline bool MobileAPN::has_is_required_by_carrier_spec() const {
bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
return value;
}
inline void MobileAPN::clear_is_required_by_carrier_spec() {
_impl_.is_required_by_carrier_spec_ = false;
_impl_._has_bits_[0] &= ~0x00000040u;
}
inline bool MobileAPN::is_required_by_carrier_spec() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileAPN.is_required_by_carrier_spec)
return _internal_is_required_by_carrier_spec();
}
inline void MobileAPN::set_is_required_by_carrier_spec(bool value) {
_internal_set_is_required_by_carrier_spec(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileAPN.is_required_by_carrier_spec)
}
inline bool MobileAPN::_internal_is_required_by_carrier_spec() const {
return _impl_.is_required_by_carrier_spec_;
}
inline void MobileAPN::_internal_set_is_required_by_carrier_spec(bool value) {
_impl_._has_bits_[0] |= 0x00000040u;
_impl_.is_required_by_carrier_spec_ = value;
}
// -------------------------------------------------------------------
// OnlinePortal
// optional .shill.mobile_operator_db.Filter olp_filter = 1;
inline bool OnlinePortal::has_olp_filter() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
PROTOBUF_ASSUME(!value || _impl_.olp_filter_ != nullptr);
return value;
}
inline void OnlinePortal::clear_olp_filter() {
if (_impl_.olp_filter_ != nullptr) _impl_.olp_filter_->Clear();
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline const ::shill::mobile_operator_db::Filter& OnlinePortal::_internal_olp_filter() const {
const ::shill::mobile_operator_db::Filter* p = _impl_.olp_filter_;
return p != nullptr ? *p : reinterpret_cast<const ::shill::mobile_operator_db::Filter&>(
::shill::mobile_operator_db::_Filter_default_instance_);
}
inline const ::shill::mobile_operator_db::Filter& OnlinePortal::olp_filter() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.OnlinePortal.olp_filter)
return _internal_olp_filter();
}
inline void OnlinePortal::unsafe_arena_set_allocated_olp_filter(
::shill::mobile_operator_db::Filter* olp_filter) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.olp_filter_);
}
_impl_.olp_filter_ = olp_filter;
if (olp_filter) {
_impl_._has_bits_[0] |= 0x00000004u;
} else {
_impl_._has_bits_[0] &= ~0x00000004u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:shill.mobile_operator_db.OnlinePortal.olp_filter)
}
inline ::shill::mobile_operator_db::Filter* OnlinePortal::release_olp_filter() {
_impl_._has_bits_[0] &= ~0x00000004u;
::shill::mobile_operator_db::Filter* temp = _impl_.olp_filter_;
_impl_.olp_filter_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::shill::mobile_operator_db::Filter* OnlinePortal::unsafe_arena_release_olp_filter() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.OnlinePortal.olp_filter)
_impl_._has_bits_[0] &= ~0x00000004u;
::shill::mobile_operator_db::Filter* temp = _impl_.olp_filter_;
_impl_.olp_filter_ = nullptr;
return temp;
}
inline ::shill::mobile_operator_db::Filter* OnlinePortal::_internal_mutable_olp_filter() {
_impl_._has_bits_[0] |= 0x00000004u;
if (_impl_.olp_filter_ == nullptr) {
auto* p = CreateMaybeMessage<::shill::mobile_operator_db::Filter>(GetArenaForAllocation());
_impl_.olp_filter_ = p;
}
return _impl_.olp_filter_;
}
inline ::shill::mobile_operator_db::Filter* OnlinePortal::mutable_olp_filter() {
::shill::mobile_operator_db::Filter* _msg = _internal_mutable_olp_filter();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.OnlinePortal.olp_filter)
return _msg;
}
inline void OnlinePortal::set_allocated_olp_filter(::shill::mobile_operator_db::Filter* olp_filter) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.olp_filter_;
}
if (olp_filter) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(olp_filter);
if (message_arena != submessage_arena) {
olp_filter = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, olp_filter, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000004u;
} else {
_impl_._has_bits_[0] &= ~0x00000004u;
}
_impl_.olp_filter_ = olp_filter;
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.OnlinePortal.olp_filter)
}
// required .shill.mobile_operator_db.HttpMethod method = 2;
inline bool OnlinePortal::has_method() const {
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline void OnlinePortal::clear_method() {
_impl_.method_ = 1;
_impl_._has_bits_[0] &= ~0x00000008u;
}
inline ::shill::mobile_operator_db::HttpMethod OnlinePortal::method() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.OnlinePortal.method)
return _internal_method();
}
inline void OnlinePortal::set_method(::shill::mobile_operator_db::HttpMethod value) {
_internal_set_method(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.OnlinePortal.method)
}
inline ::shill::mobile_operator_db::HttpMethod OnlinePortal::_internal_method() const {
return static_cast<::shill::mobile_operator_db::HttpMethod>(_impl_.method_);
}
inline void OnlinePortal::_internal_set_method(::shill::mobile_operator_db::HttpMethod value) {
assert(::shill::mobile_operator_db::HttpMethod_IsValid(value));
_impl_._has_bits_[0] |= 0x00000008u;
_impl_.method_ = value;
}
// required string url = 3;
inline bool OnlinePortal::has_url() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline void OnlinePortal::clear_url() {
_impl_.url_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& OnlinePortal::url() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.OnlinePortal.url)
return _internal_url();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void OnlinePortal::set_url(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.url_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.OnlinePortal.url)
}
inline std::string* OnlinePortal::mutable_url() {
std::string* _s = _internal_mutable_url();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.OnlinePortal.url)
return _s;
}
inline const std::string& OnlinePortal::_internal_url() const {
return _impl_.url_.Get();
}
inline void OnlinePortal::_internal_set_url(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.url_.Set(value, GetArenaForAllocation());
}
inline std::string* OnlinePortal::_internal_mutable_url() {
_impl_._has_bits_[0] |= 0x00000001u;
return _impl_.url_.Mutable( GetArenaForAllocation());
}
inline std::string* OnlinePortal::release_url() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.OnlinePortal.url)
if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000001u;
auto* released = _impl_.url_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.url_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void OnlinePortal::set_allocated_url(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.url_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.url_.IsDefault()) {
_impl_.url_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.OnlinePortal.url)
}
// optional string post_data = 4;
inline bool OnlinePortal::has_post_data() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void OnlinePortal::clear_post_data() {
_impl_.post_data_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline const std::string& OnlinePortal::post_data() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.OnlinePortal.post_data)
return _internal_post_data();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void OnlinePortal::set_post_data(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.post_data_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.OnlinePortal.post_data)
}
inline std::string* OnlinePortal::mutable_post_data() {
std::string* _s = _internal_mutable_post_data();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.OnlinePortal.post_data)
return _s;
}
inline const std::string& OnlinePortal::_internal_post_data() const {
return _impl_.post_data_.Get();
}
inline void OnlinePortal::_internal_set_post_data(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.post_data_.Set(value, GetArenaForAllocation());
}
inline std::string* OnlinePortal::_internal_mutable_post_data() {
_impl_._has_bits_[0] |= 0x00000002u;
return _impl_.post_data_.Mutable( GetArenaForAllocation());
}
inline std::string* OnlinePortal::release_post_data() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.OnlinePortal.post_data)
if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000002u;
auto* released = _impl_.post_data_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.post_data_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void OnlinePortal::set_allocated_post_data(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
_impl_.post_data_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.post_data_.IsDefault()) {
_impl_.post_data_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.OnlinePortal.post_data)
}
// -------------------------------------------------------------------
// Data
// required string uuid = 1;
inline bool Data::has_uuid() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline void Data::clear_uuid() {
_impl_.uuid_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& Data::uuid() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.uuid)
return _internal_uuid();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Data::set_uuid(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.uuid_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.uuid)
}
inline std::string* Data::mutable_uuid() {
std::string* _s = _internal_mutable_uuid();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.uuid)
return _s;
}
inline const std::string& Data::_internal_uuid() const {
return _impl_.uuid_.Get();
}
inline void Data::_internal_set_uuid(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.uuid_.Set(value, GetArenaForAllocation());
}
inline std::string* Data::_internal_mutable_uuid() {
_impl_._has_bits_[0] |= 0x00000001u;
return _impl_.uuid_.Mutable( GetArenaForAllocation());
}
inline std::string* Data::release_uuid() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.Data.uuid)
if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000001u;
auto* released = _impl_.uuid_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.uuid_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void Data::set_allocated_uuid(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.uuid_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.uuid_.IsDefault()) {
_impl_.uuid_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.Data.uuid)
}
// optional string country = 3;
inline bool Data::has_country() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void Data::clear_country() {
_impl_.country_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline const std::string& Data::country() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.country)
return _internal_country();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Data::set_country(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.country_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.country)
}
inline std::string* Data::mutable_country() {
std::string* _s = _internal_mutable_country();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.country)
return _s;
}
inline const std::string& Data::_internal_country() const {
return _impl_.country_.Get();
}
inline void Data::_internal_set_country(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.country_.Set(value, GetArenaForAllocation());
}
inline std::string* Data::_internal_mutable_country() {
_impl_._has_bits_[0] |= 0x00000002u;
return _impl_.country_.Mutable( GetArenaForAllocation());
}
inline std::string* Data::release_country() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.Data.country)
if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000002u;
auto* released = _impl_.country_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.country_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void Data::set_allocated_country(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000002u;
} else {
_impl_._has_bits_[0] &= ~0x00000002u;
}
_impl_.country_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.country_.IsDefault()) {
_impl_.country_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.Data.country)
}
// repeated .shill.mobile_operator_db.LocalizedName localized_name = 4;
inline int Data::_internal_localized_name_size() const {
return _impl_.localized_name_.size();
}
inline int Data::localized_name_size() const {
return _internal_localized_name_size();
}
inline void Data::clear_localized_name() {
_internal_mutable_localized_name()->Clear();
}
inline ::shill::mobile_operator_db::LocalizedName* Data::mutable_localized_name(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.localized_name)
return _internal_mutable_localized_name()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >*
Data::mutable_localized_name() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Data.localized_name)
return _internal_mutable_localized_name();
}
inline const ::shill::mobile_operator_db::LocalizedName& Data::_internal_localized_name(int index) const {
return _internal_localized_name().Get(index);
}
inline const ::shill::mobile_operator_db::LocalizedName& Data::localized_name(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.localized_name)
return _internal_localized_name(index);
}
inline ::shill::mobile_operator_db::LocalizedName* Data::_internal_add_localized_name() {
return _internal_mutable_localized_name()->Add();
}
inline ::shill::mobile_operator_db::LocalizedName* Data::add_localized_name() {
::shill::mobile_operator_db::LocalizedName* _add = _internal_add_localized_name();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.localized_name)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::LocalizedName >&
Data::localized_name() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Data.localized_name)
return _internal_localized_name();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>&
Data::_internal_localized_name() const {
return _impl_.localized_name_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::LocalizedName>*
Data::_internal_mutable_localized_name() {
return &_impl_.localized_name_;
}
// optional bool requires_roaming = 5 [default = false];
inline bool Data::has_requires_roaming() const {
bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
return value;
}
inline void Data::clear_requires_roaming() {
_impl_.requires_roaming_ = false;
_impl_._has_bits_[0] &= ~0x00000010u;
}
inline bool Data::requires_roaming() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.requires_roaming)
return _internal_requires_roaming();
}
inline void Data::set_requires_roaming(bool value) {
_internal_set_requires_roaming(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.requires_roaming)
}
inline bool Data::_internal_requires_roaming() const {
return _impl_.requires_roaming_;
}
inline void Data::_internal_set_requires_roaming(bool value) {
_impl_._has_bits_[0] |= 0x00000010u;
_impl_.requires_roaming_ = value;
}
// repeated .shill.mobile_operator_db.OnlinePortal olp = 6;
inline int Data::_internal_olp_size() const {
return _impl_.olp_.size();
}
inline int Data::olp_size() const {
return _internal_olp_size();
}
inline void Data::clear_olp() {
_internal_mutable_olp()->Clear();
}
inline ::shill::mobile_operator_db::OnlinePortal* Data::mutable_olp(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.olp)
return _internal_mutable_olp()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::OnlinePortal >*
Data::mutable_olp() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Data.olp)
return _internal_mutable_olp();
}
inline const ::shill::mobile_operator_db::OnlinePortal& Data::_internal_olp(int index) const {
return _internal_olp().Get(index);
}
inline const ::shill::mobile_operator_db::OnlinePortal& Data::olp(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.olp)
return _internal_olp(index);
}
inline ::shill::mobile_operator_db::OnlinePortal* Data::_internal_add_olp() {
return _internal_mutable_olp()->Add();
}
inline ::shill::mobile_operator_db::OnlinePortal* Data::add_olp() {
::shill::mobile_operator_db::OnlinePortal* _add = _internal_add_olp();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.olp)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::OnlinePortal >&
Data::olp() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Data.olp)
return _internal_olp();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::OnlinePortal>&
Data::_internal_olp() const {
return _impl_.olp_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::OnlinePortal>*
Data::_internal_mutable_olp() {
return &_impl_.olp_;
}
// optional int32 mtu = 7;
inline bool Data::has_mtu() const {
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline void Data::clear_mtu() {
_impl_.mtu_ = 0;
_impl_._has_bits_[0] &= ~0x00000008u;
}
inline ::int32_t Data::mtu() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.mtu)
return _internal_mtu();
}
inline void Data::set_mtu(::int32_t value) {
_internal_set_mtu(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.mtu)
}
inline ::int32_t Data::_internal_mtu() const {
return _impl_.mtu_;
}
inline void Data::_internal_set_mtu(::int32_t value) {
_impl_._has_bits_[0] |= 0x00000008u;
_impl_.mtu_ = value;
}
// optional bool prioritizes_name = 8 [default = false];
inline bool Data::has_prioritizes_name() const {
bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
return value;
}
inline void Data::clear_prioritizes_name() {
_impl_.prioritizes_name_ = false;
_impl_._has_bits_[0] &= ~0x00000020u;
}
inline bool Data::prioritizes_name() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.prioritizes_name)
return _internal_prioritizes_name();
}
inline void Data::set_prioritizes_name(bool value) {
_internal_set_prioritizes_name(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.prioritizes_name)
}
inline bool Data::_internal_prioritizes_name() const {
return _impl_.prioritizes_name_;
}
inline void Data::_internal_set_prioritizes_name(bool value) {
_impl_._has_bits_[0] |= 0x00000020u;
_impl_.prioritizes_name_ = value;
}
// repeated .shill.mobile_operator_db.Filter roaming_filter = 9;
inline int Data::_internal_roaming_filter_size() const {
return _impl_.roaming_filter_.size();
}
inline int Data::roaming_filter_size() const {
return _internal_roaming_filter_size();
}
inline void Data::clear_roaming_filter() {
_internal_mutable_roaming_filter()->Clear();
}
inline ::shill::mobile_operator_db::Filter* Data::mutable_roaming_filter(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.roaming_filter)
return _internal_mutable_roaming_filter()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >*
Data::mutable_roaming_filter() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Data.roaming_filter)
return _internal_mutable_roaming_filter();
}
inline const ::shill::mobile_operator_db::Filter& Data::_internal_roaming_filter(int index) const {
return _internal_roaming_filter().Get(index);
}
inline const ::shill::mobile_operator_db::Filter& Data::roaming_filter(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.roaming_filter)
return _internal_roaming_filter(index);
}
inline ::shill::mobile_operator_db::Filter* Data::_internal_add_roaming_filter() {
return _internal_mutable_roaming_filter()->Add();
}
inline ::shill::mobile_operator_db::Filter* Data::add_roaming_filter() {
::shill::mobile_operator_db::Filter* _add = _internal_add_roaming_filter();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.roaming_filter)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >&
Data::roaming_filter() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Data.roaming_filter)
return _internal_roaming_filter();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>&
Data::_internal_roaming_filter() const {
return _impl_.roaming_filter_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>*
Data::_internal_mutable_roaming_filter() {
return &_impl_.roaming_filter_;
}
// optional bool tethering_allowed = 10;
inline bool Data::has_tethering_allowed() const {
bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
return value;
}
inline void Data::clear_tethering_allowed() {
_impl_.tethering_allowed_ = false;
_impl_._has_bits_[0] &= ~0x00000040u;
}
inline bool Data::tethering_allowed() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.tethering_allowed)
return _internal_tethering_allowed();
}
inline void Data::set_tethering_allowed(bool value) {
_internal_set_tethering_allowed(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.tethering_allowed)
}
inline bool Data::_internal_tethering_allowed() const {
return _impl_.tethering_allowed_;
}
inline void Data::_internal_set_tethering_allowed(bool value) {
_impl_._has_bits_[0] |= 0x00000040u;
_impl_.tethering_allowed_ = value;
}
// optional bool use_dun_apn_as_default = 11;
inline bool Data::has_use_dun_apn_as_default() const {
bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
return value;
}
inline void Data::clear_use_dun_apn_as_default() {
_impl_.use_dun_apn_as_default_ = false;
_impl_._has_bits_[0] &= ~0x00000080u;
}
inline bool Data::use_dun_apn_as_default() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.use_dun_apn_as_default)
return _internal_use_dun_apn_as_default();
}
inline void Data::set_use_dun_apn_as_default(bool value) {
_internal_set_use_dun_apn_as_default(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.use_dun_apn_as_default)
}
inline bool Data::_internal_use_dun_apn_as_default() const {
return _impl_.use_dun_apn_as_default_;
}
inline void Data::_internal_set_use_dun_apn_as_default(bool value) {
_impl_._has_bits_[0] |= 0x00000080u;
_impl_.use_dun_apn_as_default_ = value;
}
// optional string mhs_entitlement_url = 12;
inline bool Data::has_mhs_entitlement_url() const {
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline void Data::clear_mhs_entitlement_url() {
_impl_.mhs_entitlement_url_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline const std::string& Data::mhs_entitlement_url() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.mhs_entitlement_url)
return _internal_mhs_entitlement_url();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void Data::set_mhs_entitlement_url(Arg_&& arg,
Args_... args) {
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.mhs_entitlement_url_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.mhs_entitlement_url)
}
inline std::string* Data::mutable_mhs_entitlement_url() {
std::string* _s = _internal_mutable_mhs_entitlement_url();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.mhs_entitlement_url)
return _s;
}
inline const std::string& Data::_internal_mhs_entitlement_url() const {
return _impl_.mhs_entitlement_url_.Get();
}
inline void Data::_internal_set_mhs_entitlement_url(const std::string& value) {
_impl_._has_bits_[0] |= 0x00000004u;
_impl_.mhs_entitlement_url_.Set(value, GetArenaForAllocation());
}
inline std::string* Data::_internal_mutable_mhs_entitlement_url() {
_impl_._has_bits_[0] |= 0x00000004u;
return _impl_.mhs_entitlement_url_.Mutable( GetArenaForAllocation());
}
inline std::string* Data::release_mhs_entitlement_url() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.Data.mhs_entitlement_url)
if ((_impl_._has_bits_[0] & 0x00000004u) == 0) {
return nullptr;
}
_impl_._has_bits_[0] &= ~0x00000004u;
auto* released = _impl_.mhs_entitlement_url_.Release();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.mhs_entitlement_url_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return released;
}
inline void Data::set_allocated_mhs_entitlement_url(std::string* value) {
if (value != nullptr) {
_impl_._has_bits_[0] |= 0x00000004u;
} else {
_impl_._has_bits_[0] &= ~0x00000004u;
}
_impl_.mhs_entitlement_url_.SetAllocated(value, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.mhs_entitlement_url_.IsDefault()) {
_impl_.mhs_entitlement_url_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.Data.mhs_entitlement_url)
}
// repeated .shill.mobile_operator_db.Data.EntitlementParam mhs_entitlement_param = 13;
inline int Data::_internal_mhs_entitlement_param_size() const {
return _impl_.mhs_entitlement_param_.size();
}
inline int Data::mhs_entitlement_param_size() const {
return _internal_mhs_entitlement_param_size();
}
inline void Data::clear_mhs_entitlement_param() {
_internal_mutable_mhs_entitlement_param()->Clear();
}
inline ::shill::mobile_operator_db::Data_EntitlementParam Data::mhs_entitlement_param(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.mhs_entitlement_param)
return _internal_mhs_entitlement_param(index);
}
inline void Data::set_mhs_entitlement_param(int index, ::shill::mobile_operator_db::Data_EntitlementParam value) {
assert(::shill::mobile_operator_db::Data_EntitlementParam_IsValid(value));
_internal_mutable_mhs_entitlement_param()->Set(index, value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.mhs_entitlement_param)
}
inline void Data::add_mhs_entitlement_param(::shill::mobile_operator_db::Data_EntitlementParam value) {
_internal_add_mhs_entitlement_param(value);
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.mhs_entitlement_param)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& Data::mhs_entitlement_param() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Data.mhs_entitlement_param)
return _internal_mhs_entitlement_param();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* Data::mutable_mhs_entitlement_param() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Data.mhs_entitlement_param)
return _internal_mutable_mhs_entitlement_param();
}
inline ::shill::mobile_operator_db::Data_EntitlementParam Data::_internal_mhs_entitlement_param(int index) const {
return static_cast<::shill::mobile_operator_db::Data_EntitlementParam>(_internal_mhs_entitlement_param().Get(index));
}
inline void Data::_internal_add_mhs_entitlement_param(::shill::mobile_operator_db::Data_EntitlementParam value) {
assert(::shill::mobile_operator_db::Data_EntitlementParam_IsValid(value));
_internal_mutable_mhs_entitlement_param()->Add(value);
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& Data::_internal_mhs_entitlement_param() const {
return _impl_.mhs_entitlement_param_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* Data::_internal_mutable_mhs_entitlement_param() {
return &_impl_.mhs_entitlement_param_;
}
// optional .shill.mobile_operator_db.HttpMethod mhs_entitlement_method = 14 [default = POST];
inline bool Data::has_mhs_entitlement_method() const {
bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
return value;
}
inline void Data::clear_mhs_entitlement_method() {
_impl_.mhs_entitlement_method_ = 2;
_impl_._has_bits_[0] &= ~0x00000100u;
}
inline ::shill::mobile_operator_db::HttpMethod Data::mhs_entitlement_method() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.mhs_entitlement_method)
return _internal_mhs_entitlement_method();
}
inline void Data::set_mhs_entitlement_method(::shill::mobile_operator_db::HttpMethod value) {
_internal_set_mhs_entitlement_method(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.mhs_entitlement_method)
}
inline ::shill::mobile_operator_db::HttpMethod Data::_internal_mhs_entitlement_method() const {
return static_cast<::shill::mobile_operator_db::HttpMethod>(_impl_.mhs_entitlement_method_);
}
inline void Data::_internal_set_mhs_entitlement_method(::shill::mobile_operator_db::HttpMethod value) {
assert(::shill::mobile_operator_db::HttpMethod_IsValid(value));
_impl_._has_bits_[0] |= 0x00000100u;
_impl_.mhs_entitlement_method_ = value;
}
// repeated string mccmnc = 21;
inline int Data::_internal_mccmnc_size() const {
return _impl_.mccmnc_.size();
}
inline int Data::mccmnc_size() const {
return _internal_mccmnc_size();
}
inline void Data::clear_mccmnc() {
_internal_mutable_mccmnc()->Clear();
}
inline std::string* Data::add_mccmnc() {
std::string* _s = _internal_add_mccmnc();
// @@protoc_insertion_point(field_add_mutable:shill.mobile_operator_db.Data.mccmnc)
return _s;
}
inline const std::string& Data::mccmnc(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.mccmnc)
return _internal_mccmnc(index);
}
inline std::string* Data::mutable_mccmnc(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.mccmnc)
return _internal_mutable_mccmnc()->Mutable(index);
}
inline void Data::set_mccmnc(int index, const std::string& value) {
_internal_mutable_mccmnc()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::set_mccmnc(int index, std::string&& value) {
_internal_mutable_mccmnc()->Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::set_mccmnc(int index, const char* value) {
ABSL_DCHECK(value != nullptr);
_internal_mutable_mccmnc()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::set_mccmnc(int index, const char* value,
std::size_t size) {
_internal_mutable_mccmnc()->Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::set_mccmnc(int index, absl::string_view value) {
_internal_mutable_mccmnc()->Mutable(index)->assign(value.data(),
value.size());
// @@protoc_insertion_point(field_set_string_piece:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::add_mccmnc(const std::string& value) {
_internal_mutable_mccmnc()->Add()->assign(value);
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::add_mccmnc(std::string&& value) {
_internal_mutable_mccmnc()->Add(std::move(value));
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::add_mccmnc(const char* value) {
ABSL_DCHECK(value != nullptr);
_internal_mutable_mccmnc()->Add()->assign(value);
// @@protoc_insertion_point(field_add_char:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::add_mccmnc(const char* value, std::size_t size) {
_internal_mutable_mccmnc()->Add()->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:shill.mobile_operator_db.Data.mccmnc)
}
inline void Data::add_mccmnc(absl::string_view value) {
_internal_mutable_mccmnc()->Add()->assign(value.data(), value.size());
// @@protoc_insertion_point(field_add_string_piece:shill.mobile_operator_db.Data.mccmnc)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
Data::mccmnc() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Data.mccmnc)
return _internal_mccmnc();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* Data::mutable_mccmnc() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Data.mccmnc)
return _internal_mutable_mccmnc();
}
inline const std::string& Data::_internal_mccmnc(int index) const {
return _internal_mccmnc().Get(index);
}
inline std::string* Data::_internal_add_mccmnc() {
return _internal_mutable_mccmnc()->Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
Data::_internal_mccmnc() const {
return _impl_.mccmnc_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
Data::_internal_mutable_mccmnc() {
return &_impl_.mccmnc_;
}
// repeated .shill.mobile_operator_db.MobileAPN mobile_apn = 22;
inline int Data::_internal_mobile_apn_size() const {
return _impl_.mobile_apn_.size();
}
inline int Data::mobile_apn_size() const {
return _internal_mobile_apn_size();
}
inline void Data::clear_mobile_apn() {
_internal_mutable_mobile_apn()->Clear();
}
inline ::shill::mobile_operator_db::MobileAPN* Data::mutable_mobile_apn(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.Data.mobile_apn)
return _internal_mutable_mobile_apn()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileAPN >*
Data::mutable_mobile_apn() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.Data.mobile_apn)
return _internal_mutable_mobile_apn();
}
inline const ::shill::mobile_operator_db::MobileAPN& Data::_internal_mobile_apn(int index) const {
return _internal_mobile_apn().Get(index);
}
inline const ::shill::mobile_operator_db::MobileAPN& Data::mobile_apn(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.Data.mobile_apn)
return _internal_mobile_apn(index);
}
inline ::shill::mobile_operator_db::MobileAPN* Data::_internal_add_mobile_apn() {
return _internal_mutable_mobile_apn()->Add();
}
inline ::shill::mobile_operator_db::MobileAPN* Data::add_mobile_apn() {
::shill::mobile_operator_db::MobileAPN* _add = _internal_add_mobile_apn();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.Data.mobile_apn)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileAPN >&
Data::mobile_apn() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.Data.mobile_apn)
return _internal_mobile_apn();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileAPN>&
Data::_internal_mobile_apn() const {
return _impl_.mobile_apn_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileAPN>*
Data::_internal_mutable_mobile_apn() {
return &_impl_.mobile_apn_;
}
// -------------------------------------------------------------------
// MobileVirtualNetworkOperator
// repeated .shill.mobile_operator_db.Filter mvno_filter = 1;
inline int MobileVirtualNetworkOperator::_internal_mvno_filter_size() const {
return _impl_.mvno_filter_.size();
}
inline int MobileVirtualNetworkOperator::mvno_filter_size() const {
return _internal_mvno_filter_size();
}
inline void MobileVirtualNetworkOperator::clear_mvno_filter() {
_internal_mutable_mvno_filter()->Clear();
}
inline ::shill::mobile_operator_db::Filter* MobileVirtualNetworkOperator::mutable_mvno_filter(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileVirtualNetworkOperator.mvno_filter)
return _internal_mutable_mvno_filter()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >*
MobileVirtualNetworkOperator::mutable_mvno_filter() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileVirtualNetworkOperator.mvno_filter)
return _internal_mutable_mvno_filter();
}
inline const ::shill::mobile_operator_db::Filter& MobileVirtualNetworkOperator::_internal_mvno_filter(int index) const {
return _internal_mvno_filter().Get(index);
}
inline const ::shill::mobile_operator_db::Filter& MobileVirtualNetworkOperator::mvno_filter(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileVirtualNetworkOperator.mvno_filter)
return _internal_mvno_filter(index);
}
inline ::shill::mobile_operator_db::Filter* MobileVirtualNetworkOperator::_internal_add_mvno_filter() {
return _internal_mutable_mvno_filter()->Add();
}
inline ::shill::mobile_operator_db::Filter* MobileVirtualNetworkOperator::add_mvno_filter() {
::shill::mobile_operator_db::Filter* _add = _internal_add_mvno_filter();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileVirtualNetworkOperator.mvno_filter)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::Filter >&
MobileVirtualNetworkOperator::mvno_filter() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileVirtualNetworkOperator.mvno_filter)
return _internal_mvno_filter();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>&
MobileVirtualNetworkOperator::_internal_mvno_filter() const {
return _impl_.mvno_filter_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::Filter>*
MobileVirtualNetworkOperator::_internal_mutable_mvno_filter() {
return &_impl_.mvno_filter_;
}
// required .shill.mobile_operator_db.Data data = 2;
inline bool MobileVirtualNetworkOperator::has_data() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
PROTOBUF_ASSUME(!value || _impl_.data_ != nullptr);
return value;
}
inline void MobileVirtualNetworkOperator::clear_data() {
if (_impl_.data_ != nullptr) _impl_.data_->Clear();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::shill::mobile_operator_db::Data& MobileVirtualNetworkOperator::_internal_data() const {
const ::shill::mobile_operator_db::Data* p = _impl_.data_;
return p != nullptr ? *p : reinterpret_cast<const ::shill::mobile_operator_db::Data&>(
::shill::mobile_operator_db::_Data_default_instance_);
}
inline const ::shill::mobile_operator_db::Data& MobileVirtualNetworkOperator::data() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileVirtualNetworkOperator.data)
return _internal_data();
}
inline void MobileVirtualNetworkOperator::unsafe_arena_set_allocated_data(
::shill::mobile_operator_db::Data* data) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_);
}
_impl_.data_ = data;
if (data) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:shill.mobile_operator_db.MobileVirtualNetworkOperator.data)
}
inline ::shill::mobile_operator_db::Data* MobileVirtualNetworkOperator::release_data() {
_impl_._has_bits_[0] &= ~0x00000001u;
::shill::mobile_operator_db::Data* temp = _impl_.data_;
_impl_.data_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::shill::mobile_operator_db::Data* MobileVirtualNetworkOperator::unsafe_arena_release_data() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.MobileVirtualNetworkOperator.data)
_impl_._has_bits_[0] &= ~0x00000001u;
::shill::mobile_operator_db::Data* temp = _impl_.data_;
_impl_.data_ = nullptr;
return temp;
}
inline ::shill::mobile_operator_db::Data* MobileVirtualNetworkOperator::_internal_mutable_data() {
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.data_ == nullptr) {
auto* p = CreateMaybeMessage<::shill::mobile_operator_db::Data>(GetArenaForAllocation());
_impl_.data_ = p;
}
return _impl_.data_;
}
inline ::shill::mobile_operator_db::Data* MobileVirtualNetworkOperator::mutable_data() {
::shill::mobile_operator_db::Data* _msg = _internal_mutable_data();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileVirtualNetworkOperator.data)
return _msg;
}
inline void MobileVirtualNetworkOperator::set_allocated_data(::shill::mobile_operator_db::Data* data) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.data_;
}
if (data) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
if (message_arena != submessage_arena) {
data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, data, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.data_ = data;
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.MobileVirtualNetworkOperator.data)
}
// -------------------------------------------------------------------
// MobileNetworkOperator
// required .shill.mobile_operator_db.Data data = 1;
inline bool MobileNetworkOperator::has_data() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
PROTOBUF_ASSUME(!value || _impl_.data_ != nullptr);
return value;
}
inline void MobileNetworkOperator::clear_data() {
if (_impl_.data_ != nullptr) _impl_.data_->Clear();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::shill::mobile_operator_db::Data& MobileNetworkOperator::_internal_data() const {
const ::shill::mobile_operator_db::Data* p = _impl_.data_;
return p != nullptr ? *p : reinterpret_cast<const ::shill::mobile_operator_db::Data&>(
::shill::mobile_operator_db::_Data_default_instance_);
}
inline const ::shill::mobile_operator_db::Data& MobileNetworkOperator::data() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileNetworkOperator.data)
return _internal_data();
}
inline void MobileNetworkOperator::unsafe_arena_set_allocated_data(
::shill::mobile_operator_db::Data* data) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_);
}
_impl_.data_ = data;
if (data) {
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:shill.mobile_operator_db.MobileNetworkOperator.data)
}
inline ::shill::mobile_operator_db::Data* MobileNetworkOperator::release_data() {
_impl_._has_bits_[0] &= ~0x00000001u;
::shill::mobile_operator_db::Data* temp = _impl_.data_;
_impl_.data_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::shill::mobile_operator_db::Data* MobileNetworkOperator::unsafe_arena_release_data() {
// @@protoc_insertion_point(field_release:shill.mobile_operator_db.MobileNetworkOperator.data)
_impl_._has_bits_[0] &= ~0x00000001u;
::shill::mobile_operator_db::Data* temp = _impl_.data_;
_impl_.data_ = nullptr;
return temp;
}
inline ::shill::mobile_operator_db::Data* MobileNetworkOperator::_internal_mutable_data() {
_impl_._has_bits_[0] |= 0x00000001u;
if (_impl_.data_ == nullptr) {
auto* p = CreateMaybeMessage<::shill::mobile_operator_db::Data>(GetArenaForAllocation());
_impl_.data_ = p;
}
return _impl_.data_;
}
inline ::shill::mobile_operator_db::Data* MobileNetworkOperator::mutable_data() {
::shill::mobile_operator_db::Data* _msg = _internal_mutable_data();
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileNetworkOperator.data)
return _msg;
}
inline void MobileNetworkOperator::set_allocated_data(::shill::mobile_operator_db::Data* data) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.data_;
}
if (data) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
if (message_arena != submessage_arena) {
data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, data, submessage_arena);
}
_impl_._has_bits_[0] |= 0x00000001u;
} else {
_impl_._has_bits_[0] &= ~0x00000001u;
}
_impl_.data_ = data;
// @@protoc_insertion_point(field_set_allocated:shill.mobile_operator_db.MobileNetworkOperator.data)
}
// repeated .shill.mobile_operator_db.MobileVirtualNetworkOperator mvno = 2;
inline int MobileNetworkOperator::_internal_mvno_size() const {
return _impl_.mvno_.size();
}
inline int MobileNetworkOperator::mvno_size() const {
return _internal_mvno_size();
}
inline void MobileNetworkOperator::clear_mvno() {
_internal_mutable_mvno()->Clear();
}
inline ::shill::mobile_operator_db::MobileVirtualNetworkOperator* MobileNetworkOperator::mutable_mvno(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileNetworkOperator.mvno)
return _internal_mutable_mvno()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >*
MobileNetworkOperator::mutable_mvno() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileNetworkOperator.mvno)
return _internal_mutable_mvno();
}
inline const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& MobileNetworkOperator::_internal_mvno(int index) const {
return _internal_mvno().Get(index);
}
inline const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& MobileNetworkOperator::mvno(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileNetworkOperator.mvno)
return _internal_mvno(index);
}
inline ::shill::mobile_operator_db::MobileVirtualNetworkOperator* MobileNetworkOperator::_internal_add_mvno() {
return _internal_mutable_mvno()->Add();
}
inline ::shill::mobile_operator_db::MobileVirtualNetworkOperator* MobileNetworkOperator::add_mvno() {
::shill::mobile_operator_db::MobileVirtualNetworkOperator* _add = _internal_add_mvno();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileNetworkOperator.mvno)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >&
MobileNetworkOperator::mvno() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileNetworkOperator.mvno)
return _internal_mvno();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>&
MobileNetworkOperator::_internal_mvno() const {
return _impl_.mvno_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>*
MobileNetworkOperator::_internal_mutable_mvno() {
return &_impl_.mvno_;
}
// optional bool earmarked = 3;
inline bool MobileNetworkOperator::has_earmarked() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline void MobileNetworkOperator::clear_earmarked() {
_impl_.earmarked_ = false;
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline bool MobileNetworkOperator::earmarked() const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileNetworkOperator.earmarked)
return _internal_earmarked();
}
inline void MobileNetworkOperator::set_earmarked(bool value) {
_internal_set_earmarked(value);
// @@protoc_insertion_point(field_set:shill.mobile_operator_db.MobileNetworkOperator.earmarked)
}
inline bool MobileNetworkOperator::_internal_earmarked() const {
return _impl_.earmarked_;
}
inline void MobileNetworkOperator::_internal_set_earmarked(bool value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.earmarked_ = value;
}
// -------------------------------------------------------------------
// MobileOperatorDB
// repeated .shill.mobile_operator_db.MobileNetworkOperator mno = 1;
inline int MobileOperatorDB::_internal_mno_size() const {
return _impl_.mno_.size();
}
inline int MobileOperatorDB::mno_size() const {
return _internal_mno_size();
}
inline void MobileOperatorDB::clear_mno() {
_internal_mutable_mno()->Clear();
}
inline ::shill::mobile_operator_db::MobileNetworkOperator* MobileOperatorDB::mutable_mno(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileOperatorDB.mno)
return _internal_mutable_mno()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileNetworkOperator >*
MobileOperatorDB::mutable_mno() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileOperatorDB.mno)
return _internal_mutable_mno();
}
inline const ::shill::mobile_operator_db::MobileNetworkOperator& MobileOperatorDB::_internal_mno(int index) const {
return _internal_mno().Get(index);
}
inline const ::shill::mobile_operator_db::MobileNetworkOperator& MobileOperatorDB::mno(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileOperatorDB.mno)
return _internal_mno(index);
}
inline ::shill::mobile_operator_db::MobileNetworkOperator* MobileOperatorDB::_internal_add_mno() {
return _internal_mutable_mno()->Add();
}
inline ::shill::mobile_operator_db::MobileNetworkOperator* MobileOperatorDB::add_mno() {
::shill::mobile_operator_db::MobileNetworkOperator* _add = _internal_add_mno();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileOperatorDB.mno)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileNetworkOperator >&
MobileOperatorDB::mno() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileOperatorDB.mno)
return _internal_mno();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileNetworkOperator>&
MobileOperatorDB::_internal_mno() const {
return _impl_.mno_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileNetworkOperator>*
MobileOperatorDB::_internal_mutable_mno() {
return &_impl_.mno_;
}
// repeated .shill.mobile_operator_db.MobileVirtualNetworkOperator mvno = 3;
inline int MobileOperatorDB::_internal_mvno_size() const {
return _impl_.mvno_.size();
}
inline int MobileOperatorDB::mvno_size() const {
return _internal_mvno_size();
}
inline void MobileOperatorDB::clear_mvno() {
_internal_mutable_mvno()->Clear();
}
inline ::shill::mobile_operator_db::MobileVirtualNetworkOperator* MobileOperatorDB::mutable_mvno(int index) {
// @@protoc_insertion_point(field_mutable:shill.mobile_operator_db.MobileOperatorDB.mvno)
return _internal_mutable_mvno()->Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >*
MobileOperatorDB::mutable_mvno() {
// @@protoc_insertion_point(field_mutable_list:shill.mobile_operator_db.MobileOperatorDB.mvno)
return _internal_mutable_mvno();
}
inline const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& MobileOperatorDB::_internal_mvno(int index) const {
return _internal_mvno().Get(index);
}
inline const ::shill::mobile_operator_db::MobileVirtualNetworkOperator& MobileOperatorDB::mvno(int index) const {
// @@protoc_insertion_point(field_get:shill.mobile_operator_db.MobileOperatorDB.mvno)
return _internal_mvno(index);
}
inline ::shill::mobile_operator_db::MobileVirtualNetworkOperator* MobileOperatorDB::_internal_add_mvno() {
return _internal_mutable_mvno()->Add();
}
inline ::shill::mobile_operator_db::MobileVirtualNetworkOperator* MobileOperatorDB::add_mvno() {
::shill::mobile_operator_db::MobileVirtualNetworkOperator* _add = _internal_add_mvno();
// @@protoc_insertion_point(field_add:shill.mobile_operator_db.MobileOperatorDB.mvno)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::shill::mobile_operator_db::MobileVirtualNetworkOperator >&
MobileOperatorDB::mvno() const {
// @@protoc_insertion_point(field_list:shill.mobile_operator_db.MobileOperatorDB.mvno)
return _internal_mvno();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>&
MobileOperatorDB::_internal_mvno() const {
return _impl_.mvno_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::shill::mobile_operator_db::MobileVirtualNetworkOperator>*
MobileOperatorDB::_internal_mutable_mvno() {
return &_impl_.mvno_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace mobile_operator_db
} // namespace shill
PROTOBUF_NAMESPACE_OPEN
template <>
struct is_proto_enum<::shill::mobile_operator_db::Filter_Type> : std::true_type {};
template <>
struct is_proto_enum<::shill::mobile_operator_db::MobileAPN_Authentication> : std::true_type {};
template <>
struct is_proto_enum<::shill::mobile_operator_db::MobileAPN_IpType> : std::true_type {};
template <>
struct is_proto_enum<::shill::mobile_operator_db::MobileAPN_ApnType> : std::true_type {};
template <>
struct is_proto_enum<::shill::mobile_operator_db::Data_EntitlementParam> : std::true_type {};
template <>
struct is_proto_enum<::shill::mobile_operator_db::HttpMethod> : std::true_type {};
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#endif // GOOGLE_PROTOBUF_INCLUDED_mobile_5foperator_5fdb_2eproto_2epb_2eh