/src/gpowerd/safepower_agent_config.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: safepower_agent_config.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_safepower_5fagent_5fconfig_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_safepower_5fagent_5fconfig_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_bases.h> |
27 | | #include <google/protobuf/generated_message_util.h> |
28 | | #include <google/protobuf/metadata_lite.h> |
29 | | #include <google/protobuf/generated_message_reflection.h> |
30 | | #include <google/protobuf/message.h> |
31 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
32 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
33 | | #include <google/protobuf/unknown_field_set.h> |
34 | | #include "action.pb.h" |
35 | | #include "system_state.pb.h" |
36 | | // @@protoc_insertion_point(includes) |
37 | | #include <google/protobuf/port_def.inc> |
38 | | #define PROTOBUF_INTERNAL_EXPORT_safepower_5fagent_5fconfig_2eproto |
39 | | PROTOBUF_NAMESPACE_OPEN |
40 | | namespace internal { |
41 | | class AnyMetadata; |
42 | | } // namespace internal |
43 | | PROTOBUF_NAMESPACE_CLOSE |
44 | | |
45 | | // Internal implementation detail -- do not use these members. |
46 | | struct TableStruct_safepower_5fagent_5fconfig_2eproto { |
47 | | static const uint32_t offsets[]; |
48 | | }; |
49 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_safepower_5fagent_5fconfig_2eproto; |
50 | | namespace safepower_agent_config { |
51 | | class ActionConfig; |
52 | | struct ActionConfigDefaultTypeInternal; |
53 | | extern ActionConfigDefaultTypeInternal _ActionConfig_default_instance_; |
54 | | class AddressLookupConfig; |
55 | | struct AddressLookupConfigDefaultTypeInternal; |
56 | | extern AddressLookupConfigDefaultTypeInternal _AddressLookupConfig_default_instance_; |
57 | | class ConditionValidationOptions; |
58 | | struct ConditionValidationOptionsDefaultTypeInternal; |
59 | | extern ConditionValidationOptionsDefaultTypeInternal _ConditionValidationOptions_default_instance_; |
60 | | class DbusAction; |
61 | | struct DbusActionDefaultTypeInternal; |
62 | | extern DbusActionDefaultTypeInternal _DbusAction_default_instance_; |
63 | | class DbusInfo; |
64 | | struct DbusInfoDefaultTypeInternal; |
65 | | extern DbusInfoDefaultTypeInternal _DbusInfo_default_instance_; |
66 | | class EepromDeviceConfig; |
67 | | struct EepromDeviceConfigDefaultTypeInternal; |
68 | | extern EepromDeviceConfigDefaultTypeInternal _EepromDeviceConfig_default_instance_; |
69 | | class ExecAction; |
70 | | struct ExecActionDefaultTypeInternal; |
71 | | extern ExecActionDefaultTypeInternal _ExecAction_default_instance_; |
72 | | class GnicMonitorConfig; |
73 | | struct GnicMonitorConfigDefaultTypeInternal; |
74 | | extern GnicMonitorConfigDefaultTypeInternal _GnicMonitorConfig_default_instance_; |
75 | | class GpowerdConfig; |
76 | | struct GpowerdConfigDefaultTypeInternal; |
77 | | extern GpowerdConfigDefaultTypeInternal _GpowerdConfig_default_instance_; |
78 | | class GrpcConfig; |
79 | | struct GrpcConfigDefaultTypeInternal; |
80 | | extern GrpcConfigDefaultTypeInternal _GrpcConfig_default_instance_; |
81 | | class HealthCheck; |
82 | | struct HealthCheckDefaultTypeInternal; |
83 | | extern HealthCheckDefaultTypeInternal _HealthCheck_default_instance_; |
84 | | class InternalBootCountConfig; |
85 | | struct InternalBootCountConfigDefaultTypeInternal; |
86 | | extern InternalBootCountConfigDefaultTypeInternal _InternalBootCountConfig_default_instance_; |
87 | | class NodeOsConfig; |
88 | | struct NodeOsConfigDefaultTypeInternal; |
89 | | extern NodeOsConfigDefaultTypeInternal _NodeOsConfig_default_instance_; |
90 | | class PersistentStorageConfig; |
91 | | struct PersistentStorageConfigDefaultTypeInternal; |
92 | | extern PersistentStorageConfigDefaultTypeInternal _PersistentStorageConfig_default_instance_; |
93 | | class PingConfig; |
94 | | struct PingConfigDefaultTypeInternal; |
95 | | extern PingConfigDefaultTypeInternal _PingConfig_default_instance_; |
96 | | class RedfishAction; |
97 | | struct RedfishActionDefaultTypeInternal; |
98 | | extern RedfishActionDefaultTypeInternal _RedfishAction_default_instance_; |
99 | | class RedfishBootCountConfig; |
100 | | struct RedfishBootCountConfigDefaultTypeInternal; |
101 | | extern RedfishBootCountConfigDefaultTypeInternal _RedfishBootCountConfig_default_instance_; |
102 | | class RedfishInfo; |
103 | | struct RedfishInfoDefaultTypeInternal; |
104 | | extern RedfishInfoDefaultTypeInternal _RedfishInfo_default_instance_; |
105 | | class SafePowerAgentConfig; |
106 | | struct SafePowerAgentConfigDefaultTypeInternal; |
107 | | extern SafePowerAgentConfigDefaultTypeInternal _SafePowerAgentConfig_default_instance_; |
108 | | class StateGatheringInfo; |
109 | | struct StateGatheringInfoDefaultTypeInternal; |
110 | | extern StateGatheringInfoDefaultTypeInternal _StateGatheringInfo_default_instance_; |
111 | | class StateMonitorConfig; |
112 | | struct StateMonitorConfigDefaultTypeInternal; |
113 | | extern StateMonitorConfigDefaultTypeInternal _StateMonitorConfig_default_instance_; |
114 | | class SystemdTargetMonitorConfig; |
115 | | struct SystemdTargetMonitorConfigDefaultTypeInternal; |
116 | | extern SystemdTargetMonitorConfigDefaultTypeInternal _SystemdTargetMonitorConfig_default_instance_; |
117 | | } // namespace safepower_agent_config |
118 | | PROTOBUF_NAMESPACE_OPEN |
119 | | template<> ::safepower_agent_config::ActionConfig* Arena::CreateMaybeMessage<::safepower_agent_config::ActionConfig>(Arena*); |
120 | | template<> ::safepower_agent_config::AddressLookupConfig* Arena::CreateMaybeMessage<::safepower_agent_config::AddressLookupConfig>(Arena*); |
121 | | template<> ::safepower_agent_config::ConditionValidationOptions* Arena::CreateMaybeMessage<::safepower_agent_config::ConditionValidationOptions>(Arena*); |
122 | | template<> ::safepower_agent_config::DbusAction* Arena::CreateMaybeMessage<::safepower_agent_config::DbusAction>(Arena*); |
123 | | template<> ::safepower_agent_config::DbusInfo* Arena::CreateMaybeMessage<::safepower_agent_config::DbusInfo>(Arena*); |
124 | | template<> ::safepower_agent_config::EepromDeviceConfig* Arena::CreateMaybeMessage<::safepower_agent_config::EepromDeviceConfig>(Arena*); |
125 | | template<> ::safepower_agent_config::ExecAction* Arena::CreateMaybeMessage<::safepower_agent_config::ExecAction>(Arena*); |
126 | | template<> ::safepower_agent_config::GnicMonitorConfig* Arena::CreateMaybeMessage<::safepower_agent_config::GnicMonitorConfig>(Arena*); |
127 | | template<> ::safepower_agent_config::GpowerdConfig* Arena::CreateMaybeMessage<::safepower_agent_config::GpowerdConfig>(Arena*); |
128 | | template<> ::safepower_agent_config::GrpcConfig* Arena::CreateMaybeMessage<::safepower_agent_config::GrpcConfig>(Arena*); |
129 | | template<> ::safepower_agent_config::HealthCheck* Arena::CreateMaybeMessage<::safepower_agent_config::HealthCheck>(Arena*); |
130 | | template<> ::safepower_agent_config::InternalBootCountConfig* Arena::CreateMaybeMessage<::safepower_agent_config::InternalBootCountConfig>(Arena*); |
131 | | template<> ::safepower_agent_config::NodeOsConfig* Arena::CreateMaybeMessage<::safepower_agent_config::NodeOsConfig>(Arena*); |
132 | | template<> ::safepower_agent_config::PersistentStorageConfig* Arena::CreateMaybeMessage<::safepower_agent_config::PersistentStorageConfig>(Arena*); |
133 | | template<> ::safepower_agent_config::PingConfig* Arena::CreateMaybeMessage<::safepower_agent_config::PingConfig>(Arena*); |
134 | | template<> ::safepower_agent_config::RedfishAction* Arena::CreateMaybeMessage<::safepower_agent_config::RedfishAction>(Arena*); |
135 | | template<> ::safepower_agent_config::RedfishBootCountConfig* Arena::CreateMaybeMessage<::safepower_agent_config::RedfishBootCountConfig>(Arena*); |
136 | | template<> ::safepower_agent_config::RedfishInfo* Arena::CreateMaybeMessage<::safepower_agent_config::RedfishInfo>(Arena*); |
137 | | template<> ::safepower_agent_config::SafePowerAgentConfig* Arena::CreateMaybeMessage<::safepower_agent_config::SafePowerAgentConfig>(Arena*); |
138 | | template<> ::safepower_agent_config::StateGatheringInfo* Arena::CreateMaybeMessage<::safepower_agent_config::StateGatheringInfo>(Arena*); |
139 | | template<> ::safepower_agent_config::StateMonitorConfig* Arena::CreateMaybeMessage<::safepower_agent_config::StateMonitorConfig>(Arena*); |
140 | | template<> ::safepower_agent_config::SystemdTargetMonitorConfig* Arena::CreateMaybeMessage<::safepower_agent_config::SystemdTargetMonitorConfig>(Arena*); |
141 | | PROTOBUF_NAMESPACE_CLOSE |
142 | | namespace safepower_agent_config { |
143 | | |
144 | | // =================================================================== |
145 | | |
146 | | class SafePowerAgentConfig final : |
147 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.SafePowerAgentConfig) */ { |
148 | | public: |
149 | 1 | inline SafePowerAgentConfig() : SafePowerAgentConfig(nullptr) {} |
150 | | ~SafePowerAgentConfig() override; |
151 | | explicit PROTOBUF_CONSTEXPR SafePowerAgentConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
152 | | |
153 | | SafePowerAgentConfig(const SafePowerAgentConfig& from); |
154 | | SafePowerAgentConfig(SafePowerAgentConfig&& from) noexcept |
155 | 0 | : SafePowerAgentConfig() { |
156 | 0 | *this = ::std::move(from); |
157 | 0 | } |
158 | | |
159 | 0 | inline SafePowerAgentConfig& operator=(const SafePowerAgentConfig& from) { |
160 | 0 | CopyFrom(from); |
161 | 0 | return *this; |
162 | 0 | } |
163 | 0 | inline SafePowerAgentConfig& operator=(SafePowerAgentConfig&& from) noexcept { |
164 | 0 | if (this == &from) return *this; |
165 | 0 | if (GetOwningArena() == from.GetOwningArena() |
166 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
167 | 0 | && GetOwningArena() != nullptr |
168 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
169 | 0 | ) { |
170 | 0 | InternalSwap(&from); |
171 | 0 | } else { |
172 | 0 | CopyFrom(from); |
173 | 0 | } |
174 | 0 | return *this; |
175 | 0 | } |
176 | | |
177 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
178 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
179 | 0 | } |
180 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
181 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
182 | 0 | } |
183 | | |
184 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
185 | 0 | return GetDescriptor(); |
186 | 0 | } |
187 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
188 | 0 | return default_instance().GetMetadata().descriptor; |
189 | 0 | } |
190 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
191 | 0 | return default_instance().GetMetadata().reflection; |
192 | 0 | } |
193 | 0 | static const SafePowerAgentConfig& default_instance() { |
194 | 0 | return *internal_default_instance(); |
195 | 0 | } |
196 | 0 | static inline const SafePowerAgentConfig* internal_default_instance() { |
197 | 0 | return reinterpret_cast<const SafePowerAgentConfig*>( |
198 | 0 | &_SafePowerAgentConfig_default_instance_); |
199 | 0 | } |
200 | | static constexpr int kIndexInFileMessages = |
201 | | 0; |
202 | | |
203 | 0 | friend void swap(SafePowerAgentConfig& a, SafePowerAgentConfig& b) { |
204 | 0 | a.Swap(&b); |
205 | 0 | } |
206 | 0 | inline void Swap(SafePowerAgentConfig* other) { |
207 | 0 | if (other == this) return; |
208 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
209 | 0 | if (GetOwningArena() != nullptr && |
210 | 0 | GetOwningArena() == other->GetOwningArena()) { |
211 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
212 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
213 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
214 | 0 | InternalSwap(other); |
215 | 0 | } else { |
216 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
217 | 0 | } |
218 | 0 | } |
219 | 0 | void UnsafeArenaSwap(SafePowerAgentConfig* other) { |
220 | 0 | if (other == this) return; |
221 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
222 | 0 | InternalSwap(other); |
223 | 0 | } |
224 | | |
225 | | // implements Message ---------------------------------------------- |
226 | | |
227 | 0 | SafePowerAgentConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
228 | 0 | return CreateMaybeMessage<SafePowerAgentConfig>(arena); |
229 | 0 | } |
230 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
231 | | void CopyFrom(const SafePowerAgentConfig& from); |
232 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
233 | 0 | void MergeFrom( const SafePowerAgentConfig& from) { |
234 | 0 | SafePowerAgentConfig::MergeImpl(*this, from); |
235 | 0 | } |
236 | | private: |
237 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
238 | | public: |
239 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
240 | | bool IsInitialized() const final; |
241 | | |
242 | | size_t ByteSizeLong() const final; |
243 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
244 | | uint8_t* _InternalSerialize( |
245 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
246 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
247 | | |
248 | | private: |
249 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
250 | | void SharedDtor(); |
251 | | void SetCachedSize(int size) const final; |
252 | | void InternalSwap(SafePowerAgentConfig* other); |
253 | | |
254 | | private: |
255 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
256 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
257 | 0 | return "safepower_agent_config.SafePowerAgentConfig"; |
258 | 0 | } |
259 | | protected: |
260 | | explicit SafePowerAgentConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
261 | | bool is_message_owned = false); |
262 | | public: |
263 | | |
264 | | static const ClassData _class_data_; |
265 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
266 | | |
267 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
268 | | |
269 | | // nested types ---------------------------------------------------- |
270 | | |
271 | | // accessors ------------------------------------------------------- |
272 | | |
273 | | enum : int { |
274 | | kActionConfigsFieldNumber = 2, |
275 | | kOfflineNodeEntitiesPathFieldNumber = 7, |
276 | | kGpowerdConfigFieldNumber = 1, |
277 | | kPersistentStorageConfigFieldNumber = 3, |
278 | | kNodeOsConfigFieldNumber = 4, |
279 | | kGrpcConfigFieldNumber = 5, |
280 | | kConditionValidationOptionsFieldNumber = 6, |
281 | | kSystemdTargetMonitorConfigFieldNumber = 10, |
282 | | kBuildInfoFieldNumber = 11, |
283 | | kEnableInsecureGrpcFieldNumber = 8, |
284 | | kInsecureGrpcPortFieldNumber = 9, |
285 | | }; |
286 | | // repeated .safepower_agent_config.ActionConfig action_configs = 2; |
287 | | int action_configs_size() const; |
288 | | private: |
289 | | int _internal_action_configs_size() const; |
290 | | public: |
291 | | void clear_action_configs(); |
292 | | ::safepower_agent_config::ActionConfig* mutable_action_configs(int index); |
293 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::ActionConfig >* |
294 | | mutable_action_configs(); |
295 | | private: |
296 | | const ::safepower_agent_config::ActionConfig& _internal_action_configs(int index) const; |
297 | | ::safepower_agent_config::ActionConfig* _internal_add_action_configs(); |
298 | | public: |
299 | | const ::safepower_agent_config::ActionConfig& action_configs(int index) const; |
300 | | ::safepower_agent_config::ActionConfig* add_action_configs(); |
301 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::ActionConfig >& |
302 | | action_configs() const; |
303 | | |
304 | | // optional string offline_node_entities_path = 7; |
305 | | bool has_offline_node_entities_path() const; |
306 | | private: |
307 | | bool _internal_has_offline_node_entities_path() const; |
308 | | public: |
309 | | void clear_offline_node_entities_path(); |
310 | | const std::string& offline_node_entities_path() const; |
311 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
312 | | void set_offline_node_entities_path(ArgT0&& arg0, ArgT... args); |
313 | | std::string* mutable_offline_node_entities_path(); |
314 | | PROTOBUF_NODISCARD std::string* release_offline_node_entities_path(); |
315 | | void set_allocated_offline_node_entities_path(std::string* offline_node_entities_path); |
316 | | private: |
317 | | const std::string& _internal_offline_node_entities_path() const; |
318 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_offline_node_entities_path(const std::string& value); |
319 | | std::string* _internal_mutable_offline_node_entities_path(); |
320 | | public: |
321 | | |
322 | | // optional .safepower_agent_config.GpowerdConfig gpowerd_config = 1; |
323 | | bool has_gpowerd_config() const; |
324 | | private: |
325 | | bool _internal_has_gpowerd_config() const; |
326 | | public: |
327 | | void clear_gpowerd_config(); |
328 | | const ::safepower_agent_config::GpowerdConfig& gpowerd_config() const; |
329 | | PROTOBUF_NODISCARD ::safepower_agent_config::GpowerdConfig* release_gpowerd_config(); |
330 | | ::safepower_agent_config::GpowerdConfig* mutable_gpowerd_config(); |
331 | | void set_allocated_gpowerd_config(::safepower_agent_config::GpowerdConfig* gpowerd_config); |
332 | | private: |
333 | | const ::safepower_agent_config::GpowerdConfig& _internal_gpowerd_config() const; |
334 | | ::safepower_agent_config::GpowerdConfig* _internal_mutable_gpowerd_config(); |
335 | | public: |
336 | | void unsafe_arena_set_allocated_gpowerd_config( |
337 | | ::safepower_agent_config::GpowerdConfig* gpowerd_config); |
338 | | ::safepower_agent_config::GpowerdConfig* unsafe_arena_release_gpowerd_config(); |
339 | | |
340 | | // optional .safepower_agent_config.PersistentStorageConfig persistent_storage_config = 3; |
341 | | bool has_persistent_storage_config() const; |
342 | | private: |
343 | | bool _internal_has_persistent_storage_config() const; |
344 | | public: |
345 | | void clear_persistent_storage_config(); |
346 | | const ::safepower_agent_config::PersistentStorageConfig& persistent_storage_config() const; |
347 | | PROTOBUF_NODISCARD ::safepower_agent_config::PersistentStorageConfig* release_persistent_storage_config(); |
348 | | ::safepower_agent_config::PersistentStorageConfig* mutable_persistent_storage_config(); |
349 | | void set_allocated_persistent_storage_config(::safepower_agent_config::PersistentStorageConfig* persistent_storage_config); |
350 | | private: |
351 | | const ::safepower_agent_config::PersistentStorageConfig& _internal_persistent_storage_config() const; |
352 | | ::safepower_agent_config::PersistentStorageConfig* _internal_mutable_persistent_storage_config(); |
353 | | public: |
354 | | void unsafe_arena_set_allocated_persistent_storage_config( |
355 | | ::safepower_agent_config::PersistentStorageConfig* persistent_storage_config); |
356 | | ::safepower_agent_config::PersistentStorageConfig* unsafe_arena_release_persistent_storage_config(); |
357 | | |
358 | | // optional .safepower_agent_config.NodeOsConfig node_os_config = 4; |
359 | | bool has_node_os_config() const; |
360 | | private: |
361 | | bool _internal_has_node_os_config() const; |
362 | | public: |
363 | | void clear_node_os_config(); |
364 | | const ::safepower_agent_config::NodeOsConfig& node_os_config() const; |
365 | | PROTOBUF_NODISCARD ::safepower_agent_config::NodeOsConfig* release_node_os_config(); |
366 | | ::safepower_agent_config::NodeOsConfig* mutable_node_os_config(); |
367 | | void set_allocated_node_os_config(::safepower_agent_config::NodeOsConfig* node_os_config); |
368 | | private: |
369 | | const ::safepower_agent_config::NodeOsConfig& _internal_node_os_config() const; |
370 | | ::safepower_agent_config::NodeOsConfig* _internal_mutable_node_os_config(); |
371 | | public: |
372 | | void unsafe_arena_set_allocated_node_os_config( |
373 | | ::safepower_agent_config::NodeOsConfig* node_os_config); |
374 | | ::safepower_agent_config::NodeOsConfig* unsafe_arena_release_node_os_config(); |
375 | | |
376 | | // optional .safepower_agent_config.GrpcConfig grpc_config = 5; |
377 | | bool has_grpc_config() const; |
378 | | private: |
379 | | bool _internal_has_grpc_config() const; |
380 | | public: |
381 | | void clear_grpc_config(); |
382 | | const ::safepower_agent_config::GrpcConfig& grpc_config() const; |
383 | | PROTOBUF_NODISCARD ::safepower_agent_config::GrpcConfig* release_grpc_config(); |
384 | | ::safepower_agent_config::GrpcConfig* mutable_grpc_config(); |
385 | | void set_allocated_grpc_config(::safepower_agent_config::GrpcConfig* grpc_config); |
386 | | private: |
387 | | const ::safepower_agent_config::GrpcConfig& _internal_grpc_config() const; |
388 | | ::safepower_agent_config::GrpcConfig* _internal_mutable_grpc_config(); |
389 | | public: |
390 | | void unsafe_arena_set_allocated_grpc_config( |
391 | | ::safepower_agent_config::GrpcConfig* grpc_config); |
392 | | ::safepower_agent_config::GrpcConfig* unsafe_arena_release_grpc_config(); |
393 | | |
394 | | // optional .safepower_agent_config.ConditionValidationOptions condition_validation_options = 6; |
395 | | bool has_condition_validation_options() const; |
396 | | private: |
397 | | bool _internal_has_condition_validation_options() const; |
398 | | public: |
399 | | void clear_condition_validation_options(); |
400 | | const ::safepower_agent_config::ConditionValidationOptions& condition_validation_options() const; |
401 | | PROTOBUF_NODISCARD ::safepower_agent_config::ConditionValidationOptions* release_condition_validation_options(); |
402 | | ::safepower_agent_config::ConditionValidationOptions* mutable_condition_validation_options(); |
403 | | void set_allocated_condition_validation_options(::safepower_agent_config::ConditionValidationOptions* condition_validation_options); |
404 | | private: |
405 | | const ::safepower_agent_config::ConditionValidationOptions& _internal_condition_validation_options() const; |
406 | | ::safepower_agent_config::ConditionValidationOptions* _internal_mutable_condition_validation_options(); |
407 | | public: |
408 | | void unsafe_arena_set_allocated_condition_validation_options( |
409 | | ::safepower_agent_config::ConditionValidationOptions* condition_validation_options); |
410 | | ::safepower_agent_config::ConditionValidationOptions* unsafe_arena_release_condition_validation_options(); |
411 | | |
412 | | // optional .safepower_agent_config.SystemdTargetMonitorConfig systemd_target_monitor_config = 10; |
413 | | bool has_systemd_target_monitor_config() const; |
414 | | private: |
415 | | bool _internal_has_systemd_target_monitor_config() const; |
416 | | public: |
417 | | void clear_systemd_target_monitor_config(); |
418 | | const ::safepower_agent_config::SystemdTargetMonitorConfig& systemd_target_monitor_config() const; |
419 | | PROTOBUF_NODISCARD ::safepower_agent_config::SystemdTargetMonitorConfig* release_systemd_target_monitor_config(); |
420 | | ::safepower_agent_config::SystemdTargetMonitorConfig* mutable_systemd_target_monitor_config(); |
421 | | void set_allocated_systemd_target_monitor_config(::safepower_agent_config::SystemdTargetMonitorConfig* systemd_target_monitor_config); |
422 | | private: |
423 | | const ::safepower_agent_config::SystemdTargetMonitorConfig& _internal_systemd_target_monitor_config() const; |
424 | | ::safepower_agent_config::SystemdTargetMonitorConfig* _internal_mutable_systemd_target_monitor_config(); |
425 | | public: |
426 | | void unsafe_arena_set_allocated_systemd_target_monitor_config( |
427 | | ::safepower_agent_config::SystemdTargetMonitorConfig* systemd_target_monitor_config); |
428 | | ::safepower_agent_config::SystemdTargetMonitorConfig* unsafe_arena_release_systemd_target_monitor_config(); |
429 | | |
430 | | // optional .safepower_agent_proto.BuildInfo build_info = 11; |
431 | | bool has_build_info() const; |
432 | | private: |
433 | | bool _internal_has_build_info() const; |
434 | | public: |
435 | | void clear_build_info(); |
436 | | const ::safepower_agent_proto::BuildInfo& build_info() const; |
437 | | PROTOBUF_NODISCARD ::safepower_agent_proto::BuildInfo* release_build_info(); |
438 | | ::safepower_agent_proto::BuildInfo* mutable_build_info(); |
439 | | void set_allocated_build_info(::safepower_agent_proto::BuildInfo* build_info); |
440 | | private: |
441 | | const ::safepower_agent_proto::BuildInfo& _internal_build_info() const; |
442 | | ::safepower_agent_proto::BuildInfo* _internal_mutable_build_info(); |
443 | | public: |
444 | | void unsafe_arena_set_allocated_build_info( |
445 | | ::safepower_agent_proto::BuildInfo* build_info); |
446 | | ::safepower_agent_proto::BuildInfo* unsafe_arena_release_build_info(); |
447 | | |
448 | | // optional bool enable_insecure_grpc = 8 [default = false]; |
449 | | bool has_enable_insecure_grpc() const; |
450 | | private: |
451 | | bool _internal_has_enable_insecure_grpc() const; |
452 | | public: |
453 | | void clear_enable_insecure_grpc(); |
454 | | bool enable_insecure_grpc() const; |
455 | | void set_enable_insecure_grpc(bool value); |
456 | | private: |
457 | | bool _internal_enable_insecure_grpc() const; |
458 | | void _internal_set_enable_insecure_grpc(bool value); |
459 | | public: |
460 | | |
461 | | // optional int32 insecure_grpc_port = 9 [default = 20130]; |
462 | | bool has_insecure_grpc_port() const; |
463 | | private: |
464 | | bool _internal_has_insecure_grpc_port() const; |
465 | | public: |
466 | | void clear_insecure_grpc_port(); |
467 | | int32_t insecure_grpc_port() const; |
468 | | void set_insecure_grpc_port(int32_t value); |
469 | | private: |
470 | | int32_t _internal_insecure_grpc_port() const; |
471 | | void _internal_set_insecure_grpc_port(int32_t value); |
472 | | public: |
473 | | |
474 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.SafePowerAgentConfig) |
475 | | private: |
476 | | class _Internal; |
477 | | |
478 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
479 | | typedef void InternalArenaConstructable_; |
480 | | typedef void DestructorSkippable_; |
481 | | struct Impl_ { |
482 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
483 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
484 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::ActionConfig > action_configs_; |
485 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr offline_node_entities_path_; |
486 | | ::safepower_agent_config::GpowerdConfig* gpowerd_config_; |
487 | | ::safepower_agent_config::PersistentStorageConfig* persistent_storage_config_; |
488 | | ::safepower_agent_config::NodeOsConfig* node_os_config_; |
489 | | ::safepower_agent_config::GrpcConfig* grpc_config_; |
490 | | ::safepower_agent_config::ConditionValidationOptions* condition_validation_options_; |
491 | | ::safepower_agent_config::SystemdTargetMonitorConfig* systemd_target_monitor_config_; |
492 | | ::safepower_agent_proto::BuildInfo* build_info_; |
493 | | bool enable_insecure_grpc_; |
494 | | int32_t insecure_grpc_port_; |
495 | | }; |
496 | | union { Impl_ _impl_; }; |
497 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
498 | | }; |
499 | | // ------------------------------------------------------------------- |
500 | | |
501 | | class SystemdTargetMonitorConfig final : |
502 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.SystemdTargetMonitorConfig) */ { |
503 | | public: |
504 | 0 | inline SystemdTargetMonitorConfig() : SystemdTargetMonitorConfig(nullptr) {} |
505 | | ~SystemdTargetMonitorConfig() override; |
506 | | explicit PROTOBUF_CONSTEXPR SystemdTargetMonitorConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
507 | | |
508 | | SystemdTargetMonitorConfig(const SystemdTargetMonitorConfig& from); |
509 | | SystemdTargetMonitorConfig(SystemdTargetMonitorConfig&& from) noexcept |
510 | 0 | : SystemdTargetMonitorConfig() { |
511 | 0 | *this = ::std::move(from); |
512 | 0 | } |
513 | | |
514 | 0 | inline SystemdTargetMonitorConfig& operator=(const SystemdTargetMonitorConfig& from) { |
515 | 0 | CopyFrom(from); |
516 | 0 | return *this; |
517 | 0 | } |
518 | 0 | inline SystemdTargetMonitorConfig& operator=(SystemdTargetMonitorConfig&& from) noexcept { |
519 | 0 | if (this == &from) return *this; |
520 | 0 | if (GetOwningArena() == from.GetOwningArena() |
521 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
522 | 0 | && GetOwningArena() != nullptr |
523 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
524 | 0 | ) { |
525 | 0 | InternalSwap(&from); |
526 | 0 | } else { |
527 | 0 | CopyFrom(from); |
528 | 0 | } |
529 | 0 | return *this; |
530 | 0 | } |
531 | | |
532 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
533 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
534 | 0 | } |
535 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
536 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
537 | 0 | } |
538 | | |
539 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
540 | 0 | return GetDescriptor(); |
541 | 0 | } |
542 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
543 | 0 | return default_instance().GetMetadata().descriptor; |
544 | 0 | } |
545 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
546 | 0 | return default_instance().GetMetadata().reflection; |
547 | 0 | } |
548 | 0 | static const SystemdTargetMonitorConfig& default_instance() { |
549 | 0 | return *internal_default_instance(); |
550 | 0 | } |
551 | 0 | static inline const SystemdTargetMonitorConfig* internal_default_instance() { |
552 | 0 | return reinterpret_cast<const SystemdTargetMonitorConfig*>( |
553 | 0 | &_SystemdTargetMonitorConfig_default_instance_); |
554 | 0 | } |
555 | | static constexpr int kIndexInFileMessages = |
556 | | 1; |
557 | | |
558 | 0 | friend void swap(SystemdTargetMonitorConfig& a, SystemdTargetMonitorConfig& b) { |
559 | 0 | a.Swap(&b); |
560 | 0 | } |
561 | 0 | inline void Swap(SystemdTargetMonitorConfig* other) { |
562 | 0 | if (other == this) return; |
563 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
564 | 0 | if (GetOwningArena() != nullptr && |
565 | 0 | GetOwningArena() == other->GetOwningArena()) { |
566 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
567 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
568 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
569 | 0 | InternalSwap(other); |
570 | 0 | } else { |
571 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
572 | 0 | } |
573 | 0 | } |
574 | 0 | void UnsafeArenaSwap(SystemdTargetMonitorConfig* other) { |
575 | 0 | if (other == this) return; |
576 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
577 | 0 | InternalSwap(other); |
578 | 0 | } |
579 | | |
580 | | // implements Message ---------------------------------------------- |
581 | | |
582 | 0 | SystemdTargetMonitorConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
583 | 0 | return CreateMaybeMessage<SystemdTargetMonitorConfig>(arena); |
584 | 0 | } |
585 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
586 | | void CopyFrom(const SystemdTargetMonitorConfig& from); |
587 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
588 | 0 | void MergeFrom( const SystemdTargetMonitorConfig& from) { |
589 | 0 | SystemdTargetMonitorConfig::MergeImpl(*this, from); |
590 | 0 | } |
591 | | private: |
592 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
593 | | public: |
594 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
595 | | bool IsInitialized() const final; |
596 | | |
597 | | size_t ByteSizeLong() const final; |
598 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
599 | | uint8_t* _InternalSerialize( |
600 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
601 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
602 | | |
603 | | private: |
604 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
605 | | void SharedDtor(); |
606 | | void SetCachedSize(int size) const final; |
607 | | void InternalSwap(SystemdTargetMonitorConfig* other); |
608 | | |
609 | | private: |
610 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
611 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
612 | 0 | return "safepower_agent_config.SystemdTargetMonitorConfig"; |
613 | 0 | } |
614 | | protected: |
615 | | explicit SystemdTargetMonitorConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
616 | | bool is_message_owned = false); |
617 | | public: |
618 | | |
619 | | static const ClassData _class_data_; |
620 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
621 | | |
622 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
623 | | |
624 | | // nested types ---------------------------------------------------- |
625 | | |
626 | | // accessors ------------------------------------------------------- |
627 | | |
628 | | enum : int { |
629 | | kDbusAddressFieldNumber = 2, |
630 | | kMaxConsecutiveFailuresFieldNumber = 4, |
631 | | kPollIntervalSecondsFieldNumber = 1, |
632 | | kSystemdClientTimeoutMsFieldNumber = 3, |
633 | | }; |
634 | | // optional string dbus_address = 2 [default = "system"]; |
635 | | bool has_dbus_address() const; |
636 | | private: |
637 | | bool _internal_has_dbus_address() const; |
638 | | public: |
639 | | void clear_dbus_address(); |
640 | | const std::string& dbus_address() const; |
641 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
642 | | void set_dbus_address(ArgT0&& arg0, ArgT... args); |
643 | | std::string* mutable_dbus_address(); |
644 | | PROTOBUF_NODISCARD std::string* release_dbus_address(); |
645 | | void set_allocated_dbus_address(std::string* dbus_address); |
646 | | private: |
647 | | const std::string& _internal_dbus_address() const; |
648 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbus_address(const std::string& value); |
649 | | std::string* _internal_mutable_dbus_address(); |
650 | | public: |
651 | | |
652 | | // optional int32 max_consecutive_failures = 4 [default = 5]; |
653 | | bool has_max_consecutive_failures() const; |
654 | | private: |
655 | | bool _internal_has_max_consecutive_failures() const; |
656 | | public: |
657 | | void clear_max_consecutive_failures(); |
658 | | int32_t max_consecutive_failures() const; |
659 | | void set_max_consecutive_failures(int32_t value); |
660 | | private: |
661 | | int32_t _internal_max_consecutive_failures() const; |
662 | | void _internal_set_max_consecutive_failures(int32_t value); |
663 | | public: |
664 | | |
665 | | // optional uint32 poll_interval_seconds = 1 [default = 10]; |
666 | | bool has_poll_interval_seconds() const; |
667 | | private: |
668 | | bool _internal_has_poll_interval_seconds() const; |
669 | | public: |
670 | | void clear_poll_interval_seconds(); |
671 | | uint32_t poll_interval_seconds() const; |
672 | | void set_poll_interval_seconds(uint32_t value); |
673 | | private: |
674 | | uint32_t _internal_poll_interval_seconds() const; |
675 | | void _internal_set_poll_interval_seconds(uint32_t value); |
676 | | public: |
677 | | |
678 | | // optional int32 systemd_client_timeout_ms = 3 [default = 5000]; |
679 | | bool has_systemd_client_timeout_ms() const; |
680 | | private: |
681 | | bool _internal_has_systemd_client_timeout_ms() const; |
682 | | public: |
683 | | void clear_systemd_client_timeout_ms(); |
684 | | int32_t systemd_client_timeout_ms() const; |
685 | | void set_systemd_client_timeout_ms(int32_t value); |
686 | | private: |
687 | | int32_t _internal_systemd_client_timeout_ms() const; |
688 | | void _internal_set_systemd_client_timeout_ms(int32_t value); |
689 | | public: |
690 | | |
691 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.SystemdTargetMonitorConfig) |
692 | | private: |
693 | | class _Internal; |
694 | | |
695 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
696 | | typedef void InternalArenaConstructable_; |
697 | | typedef void DestructorSkippable_; |
698 | | struct Impl_ { |
699 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
700 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
701 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_dbus_address_; |
702 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbus_address_; |
703 | | int32_t max_consecutive_failures_; |
704 | | uint32_t poll_interval_seconds_; |
705 | | int32_t systemd_client_timeout_ms_; |
706 | | }; |
707 | | union { Impl_ _impl_; }; |
708 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
709 | | }; |
710 | | // ------------------------------------------------------------------- |
711 | | |
712 | | class ConditionValidationOptions final : |
713 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.ConditionValidationOptions) */ { |
714 | | public: |
715 | 6.88k | inline ConditionValidationOptions() : ConditionValidationOptions(nullptr) {} |
716 | | ~ConditionValidationOptions() override; |
717 | | explicit PROTOBUF_CONSTEXPR ConditionValidationOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
718 | | |
719 | | ConditionValidationOptions(const ConditionValidationOptions& from); |
720 | | ConditionValidationOptions(ConditionValidationOptions&& from) noexcept |
721 | 0 | : ConditionValidationOptions() { |
722 | 0 | *this = ::std::move(from); |
723 | 0 | } |
724 | | |
725 | 0 | inline ConditionValidationOptions& operator=(const ConditionValidationOptions& from) { |
726 | 0 | CopyFrom(from); |
727 | 0 | return *this; |
728 | 0 | } |
729 | 0 | inline ConditionValidationOptions& operator=(ConditionValidationOptions&& from) noexcept { |
730 | 0 | if (this == &from) return *this; |
731 | 0 | if (GetOwningArena() == from.GetOwningArena() |
732 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
733 | 0 | && GetOwningArena() != nullptr |
734 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
735 | 0 | ) { |
736 | 0 | InternalSwap(&from); |
737 | 0 | } else { |
738 | 0 | CopyFrom(from); |
739 | 0 | } |
740 | 0 | return *this; |
741 | 0 | } |
742 | | |
743 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
744 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
745 | 0 | } |
746 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
747 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
748 | 0 | } |
749 | | |
750 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
751 | 0 | return GetDescriptor(); |
752 | 0 | } |
753 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
754 | 0 | return default_instance().GetMetadata().descriptor; |
755 | 0 | } |
756 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
757 | 0 | return default_instance().GetMetadata().reflection; |
758 | 0 | } |
759 | 0 | static const ConditionValidationOptions& default_instance() { |
760 | 0 | return *internal_default_instance(); |
761 | 0 | } |
762 | 0 | static inline const ConditionValidationOptions* internal_default_instance() { |
763 | 0 | return reinterpret_cast<const ConditionValidationOptions*>( |
764 | 0 | &_ConditionValidationOptions_default_instance_); |
765 | 0 | } |
766 | | static constexpr int kIndexInFileMessages = |
767 | | 2; |
768 | | |
769 | 0 | friend void swap(ConditionValidationOptions& a, ConditionValidationOptions& b) { |
770 | 0 | a.Swap(&b); |
771 | 0 | } |
772 | 0 | inline void Swap(ConditionValidationOptions* other) { |
773 | 0 | if (other == this) return; |
774 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
775 | 0 | if (GetOwningArena() != nullptr && |
776 | 0 | GetOwningArena() == other->GetOwningArena()) { |
777 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
778 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
779 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
780 | 0 | InternalSwap(other); |
781 | 0 | } else { |
782 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
783 | 0 | } |
784 | 0 | } |
785 | 0 | void UnsafeArenaSwap(ConditionValidationOptions* other) { |
786 | 0 | if (other == this) return; |
787 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
788 | 0 | InternalSwap(other); |
789 | 0 | } |
790 | | |
791 | | // implements Message ---------------------------------------------- |
792 | | |
793 | 0 | ConditionValidationOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
794 | 0 | return CreateMaybeMessage<ConditionValidationOptions>(arena); |
795 | 0 | } |
796 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
797 | | void CopyFrom(const ConditionValidationOptions& from); |
798 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
799 | 0 | void MergeFrom( const ConditionValidationOptions& from) { |
800 | 0 | ConditionValidationOptions::MergeImpl(*this, from); |
801 | 0 | } |
802 | | private: |
803 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
804 | | public: |
805 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
806 | | bool IsInitialized() const final; |
807 | | |
808 | | size_t ByteSizeLong() const final; |
809 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
810 | | uint8_t* _InternalSerialize( |
811 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
812 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
813 | | |
814 | | private: |
815 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
816 | | void SharedDtor(); |
817 | | void SetCachedSize(int size) const final; |
818 | | void InternalSwap(ConditionValidationOptions* other); |
819 | | |
820 | | private: |
821 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
822 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
823 | 0 | return "safepower_agent_config.ConditionValidationOptions"; |
824 | 0 | } |
825 | | protected: |
826 | | explicit ConditionValidationOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
827 | | bool is_message_owned = false); |
828 | | public: |
829 | | |
830 | | static const ClassData _class_data_; |
831 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
832 | | |
833 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
834 | | |
835 | | // nested types ---------------------------------------------------- |
836 | | |
837 | | // accessors ------------------------------------------------------- |
838 | | |
839 | | enum : int { |
840 | | kMaxBootsFieldNumber = 1, |
841 | | kMaxTimeoutSecondsFieldNumber = 2, |
842 | | kValidationRetryIntervalMsFieldNumber = 3, |
843 | | }; |
844 | | // optional int32 max_boots = 1 [default = 4]; |
845 | | bool has_max_boots() const; |
846 | | private: |
847 | | bool _internal_has_max_boots() const; |
848 | | public: |
849 | | void clear_max_boots(); |
850 | | int32_t max_boots() const; |
851 | | void set_max_boots(int32_t value); |
852 | | private: |
853 | | int32_t _internal_max_boots() const; |
854 | | void _internal_set_max_boots(int32_t value); |
855 | | public: |
856 | | |
857 | | // optional int32 max_timeout_seconds = 2 [default = 7200]; |
858 | | bool has_max_timeout_seconds() const; |
859 | | private: |
860 | | bool _internal_has_max_timeout_seconds() const; |
861 | | public: |
862 | | void clear_max_timeout_seconds(); |
863 | | int32_t max_timeout_seconds() const; |
864 | | void set_max_timeout_seconds(int32_t value); |
865 | | private: |
866 | | int32_t _internal_max_timeout_seconds() const; |
867 | | void _internal_set_max_timeout_seconds(int32_t value); |
868 | | public: |
869 | | |
870 | | // optional int64 validation_retry_interval_ms = 3 [default = 1000]; |
871 | | bool has_validation_retry_interval_ms() const; |
872 | | private: |
873 | | bool _internal_has_validation_retry_interval_ms() const; |
874 | | public: |
875 | | void clear_validation_retry_interval_ms(); |
876 | | int64_t validation_retry_interval_ms() const; |
877 | | void set_validation_retry_interval_ms(int64_t value); |
878 | | private: |
879 | | int64_t _internal_validation_retry_interval_ms() const; |
880 | | void _internal_set_validation_retry_interval_ms(int64_t value); |
881 | | public: |
882 | | |
883 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.ConditionValidationOptions) |
884 | | private: |
885 | | class _Internal; |
886 | | |
887 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
888 | | typedef void InternalArenaConstructable_; |
889 | | typedef void DestructorSkippable_; |
890 | | struct Impl_ { |
891 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
892 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
893 | | int32_t max_boots_; |
894 | | int32_t max_timeout_seconds_; |
895 | | int64_t validation_retry_interval_ms_; |
896 | | }; |
897 | | union { Impl_ _impl_; }; |
898 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
899 | | }; |
900 | | // ------------------------------------------------------------------- |
901 | | |
902 | | class GpowerdConfig final : |
903 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.GpowerdConfig) */ { |
904 | | public: |
905 | 0 | inline GpowerdConfig() : GpowerdConfig(nullptr) {} |
906 | | ~GpowerdConfig() override; |
907 | | explicit PROTOBUF_CONSTEXPR GpowerdConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
908 | | |
909 | | GpowerdConfig(const GpowerdConfig& from); |
910 | | GpowerdConfig(GpowerdConfig&& from) noexcept |
911 | 0 | : GpowerdConfig() { |
912 | 0 | *this = ::std::move(from); |
913 | 0 | } |
914 | | |
915 | 0 | inline GpowerdConfig& operator=(const GpowerdConfig& from) { |
916 | 0 | CopyFrom(from); |
917 | 0 | return *this; |
918 | 0 | } |
919 | 0 | inline GpowerdConfig& operator=(GpowerdConfig&& from) noexcept { |
920 | 0 | if (this == &from) return *this; |
921 | 0 | if (GetOwningArena() == from.GetOwningArena() |
922 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
923 | 0 | && GetOwningArena() != nullptr |
924 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
925 | 0 | ) { |
926 | 0 | InternalSwap(&from); |
927 | 0 | } else { |
928 | 0 | CopyFrom(from); |
929 | 0 | } |
930 | 0 | return *this; |
931 | 0 | } |
932 | | |
933 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
934 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
935 | 0 | } |
936 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
937 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
938 | 0 | } |
939 | | |
940 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
941 | 0 | return GetDescriptor(); |
942 | 0 | } |
943 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
944 | 0 | return default_instance().GetMetadata().descriptor; |
945 | 0 | } |
946 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
947 | 0 | return default_instance().GetMetadata().reflection; |
948 | 0 | } |
949 | 0 | static const GpowerdConfig& default_instance() { |
950 | 0 | return *internal_default_instance(); |
951 | 0 | } |
952 | | enum BootCountConfigCase { |
953 | | kRedfishBootCountConfig = 5, |
954 | | kInternalBootCountConfig = 8, |
955 | | BOOT_COUNT_CONFIG_NOT_SET = 0, |
956 | | }; |
957 | | |
958 | 0 | static inline const GpowerdConfig* internal_default_instance() { |
959 | 0 | return reinterpret_cast<const GpowerdConfig*>( |
960 | 0 | &_GpowerdConfig_default_instance_); |
961 | 0 | } |
962 | | static constexpr int kIndexInFileMessages = |
963 | | 3; |
964 | | |
965 | 0 | friend void swap(GpowerdConfig& a, GpowerdConfig& b) { |
966 | 0 | a.Swap(&b); |
967 | 0 | } |
968 | 0 | inline void Swap(GpowerdConfig* other) { |
969 | 0 | if (other == this) return; |
970 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
971 | 0 | if (GetOwningArena() != nullptr && |
972 | 0 | GetOwningArena() == other->GetOwningArena()) { |
973 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
974 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
975 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
976 | 0 | InternalSwap(other); |
977 | 0 | } else { |
978 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
979 | 0 | } |
980 | 0 | } |
981 | 0 | void UnsafeArenaSwap(GpowerdConfig* other) { |
982 | 0 | if (other == this) return; |
983 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
984 | 0 | InternalSwap(other); |
985 | 0 | } |
986 | | |
987 | | // implements Message ---------------------------------------------- |
988 | | |
989 | 0 | GpowerdConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
990 | 0 | return CreateMaybeMessage<GpowerdConfig>(arena); |
991 | 0 | } |
992 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
993 | | void CopyFrom(const GpowerdConfig& from); |
994 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
995 | 0 | void MergeFrom( const GpowerdConfig& from) { |
996 | 0 | GpowerdConfig::MergeImpl(*this, from); |
997 | 0 | } |
998 | | private: |
999 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1000 | | public: |
1001 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1002 | | bool IsInitialized() const final; |
1003 | | |
1004 | | size_t ByteSizeLong() const final; |
1005 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1006 | | uint8_t* _InternalSerialize( |
1007 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1008 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1009 | | |
1010 | | private: |
1011 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1012 | | void SharedDtor(); |
1013 | | void SetCachedSize(int size) const final; |
1014 | | void InternalSwap(GpowerdConfig* other); |
1015 | | |
1016 | | private: |
1017 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1018 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1019 | 0 | return "safepower_agent_config.GpowerdConfig"; |
1020 | 0 | } |
1021 | | protected: |
1022 | | explicit GpowerdConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1023 | | bool is_message_owned = false); |
1024 | | public: |
1025 | | |
1026 | | static const ClassData _class_data_; |
1027 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1028 | | |
1029 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1030 | | |
1031 | | // nested types ---------------------------------------------------- |
1032 | | |
1033 | | // accessors ------------------------------------------------------- |
1034 | | |
1035 | | enum : int { |
1036 | | kStateMonitorConfigFieldNumber = 1, |
1037 | | kHealthCheckFieldNumber = 6, |
1038 | | kPersistentStorageConfigFieldNumber = 2, |
1039 | | kPingConfigFieldNumber = 3, |
1040 | | kAddressLookupConfigFieldNumber = 4, |
1041 | | kGnicMonitorConfigFieldNumber = 9, |
1042 | | kRedfishBootCountConfigFieldNumber = 5, |
1043 | | kInternalBootCountConfigFieldNumber = 8, |
1044 | | }; |
1045 | | // repeated .safepower_agent_config.StateMonitorConfig state_monitor_config = 1; |
1046 | | int state_monitor_config_size() const; |
1047 | | private: |
1048 | | int _internal_state_monitor_config_size() const; |
1049 | | public: |
1050 | | void clear_state_monitor_config(); |
1051 | | ::safepower_agent_config::StateMonitorConfig* mutable_state_monitor_config(int index); |
1052 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::StateMonitorConfig >* |
1053 | | mutable_state_monitor_config(); |
1054 | | private: |
1055 | | const ::safepower_agent_config::StateMonitorConfig& _internal_state_monitor_config(int index) const; |
1056 | | ::safepower_agent_config::StateMonitorConfig* _internal_add_state_monitor_config(); |
1057 | | public: |
1058 | | const ::safepower_agent_config::StateMonitorConfig& state_monitor_config(int index) const; |
1059 | | ::safepower_agent_config::StateMonitorConfig* add_state_monitor_config(); |
1060 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::StateMonitorConfig >& |
1061 | | state_monitor_config() const; |
1062 | | |
1063 | | // repeated .safepower_agent_config.HealthCheck health_check = 6; |
1064 | | int health_check_size() const; |
1065 | | private: |
1066 | | int _internal_health_check_size() const; |
1067 | | public: |
1068 | | void clear_health_check(); |
1069 | | ::safepower_agent_config::HealthCheck* mutable_health_check(int index); |
1070 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::HealthCheck >* |
1071 | | mutable_health_check(); |
1072 | | private: |
1073 | | const ::safepower_agent_config::HealthCheck& _internal_health_check(int index) const; |
1074 | | ::safepower_agent_config::HealthCheck* _internal_add_health_check(); |
1075 | | public: |
1076 | | const ::safepower_agent_config::HealthCheck& health_check(int index) const; |
1077 | | ::safepower_agent_config::HealthCheck* add_health_check(); |
1078 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::HealthCheck >& |
1079 | | health_check() const; |
1080 | | |
1081 | | // optional .safepower_agent_config.PersistentStorageConfig persistent_storage_config = 2 [deprecated = true]; |
1082 | | PROTOBUF_DEPRECATED bool has_persistent_storage_config() const; |
1083 | | private: |
1084 | | bool _internal_has_persistent_storage_config() const; |
1085 | | public: |
1086 | | PROTOBUF_DEPRECATED void clear_persistent_storage_config(); |
1087 | | PROTOBUF_DEPRECATED const ::safepower_agent_config::PersistentStorageConfig& persistent_storage_config() const; |
1088 | | PROTOBUF_NODISCARD PROTOBUF_DEPRECATED ::safepower_agent_config::PersistentStorageConfig* release_persistent_storage_config(); |
1089 | | PROTOBUF_DEPRECATED ::safepower_agent_config::PersistentStorageConfig* mutable_persistent_storage_config(); |
1090 | | PROTOBUF_DEPRECATED void set_allocated_persistent_storage_config(::safepower_agent_config::PersistentStorageConfig* persistent_storage_config); |
1091 | | private: |
1092 | | const ::safepower_agent_config::PersistentStorageConfig& _internal_persistent_storage_config() const; |
1093 | | ::safepower_agent_config::PersistentStorageConfig* _internal_mutable_persistent_storage_config(); |
1094 | | public: |
1095 | | PROTOBUF_DEPRECATED void unsafe_arena_set_allocated_persistent_storage_config( |
1096 | | ::safepower_agent_config::PersistentStorageConfig* persistent_storage_config); |
1097 | | PROTOBUF_DEPRECATED ::safepower_agent_config::PersistentStorageConfig* unsafe_arena_release_persistent_storage_config(); |
1098 | | |
1099 | | // optional .safepower_agent_config.PingConfig ping_config = 3; |
1100 | | bool has_ping_config() const; |
1101 | | private: |
1102 | | bool _internal_has_ping_config() const; |
1103 | | public: |
1104 | | void clear_ping_config(); |
1105 | | const ::safepower_agent_config::PingConfig& ping_config() const; |
1106 | | PROTOBUF_NODISCARD ::safepower_agent_config::PingConfig* release_ping_config(); |
1107 | | ::safepower_agent_config::PingConfig* mutable_ping_config(); |
1108 | | void set_allocated_ping_config(::safepower_agent_config::PingConfig* ping_config); |
1109 | | private: |
1110 | | const ::safepower_agent_config::PingConfig& _internal_ping_config() const; |
1111 | | ::safepower_agent_config::PingConfig* _internal_mutable_ping_config(); |
1112 | | public: |
1113 | | void unsafe_arena_set_allocated_ping_config( |
1114 | | ::safepower_agent_config::PingConfig* ping_config); |
1115 | | ::safepower_agent_config::PingConfig* unsafe_arena_release_ping_config(); |
1116 | | |
1117 | | // optional .safepower_agent_config.AddressLookupConfig address_lookup_config = 4; |
1118 | | bool has_address_lookup_config() const; |
1119 | | private: |
1120 | | bool _internal_has_address_lookup_config() const; |
1121 | | public: |
1122 | | void clear_address_lookup_config(); |
1123 | | const ::safepower_agent_config::AddressLookupConfig& address_lookup_config() const; |
1124 | | PROTOBUF_NODISCARD ::safepower_agent_config::AddressLookupConfig* release_address_lookup_config(); |
1125 | | ::safepower_agent_config::AddressLookupConfig* mutable_address_lookup_config(); |
1126 | | void set_allocated_address_lookup_config(::safepower_agent_config::AddressLookupConfig* address_lookup_config); |
1127 | | private: |
1128 | | const ::safepower_agent_config::AddressLookupConfig& _internal_address_lookup_config() const; |
1129 | | ::safepower_agent_config::AddressLookupConfig* _internal_mutable_address_lookup_config(); |
1130 | | public: |
1131 | | void unsafe_arena_set_allocated_address_lookup_config( |
1132 | | ::safepower_agent_config::AddressLookupConfig* address_lookup_config); |
1133 | | ::safepower_agent_config::AddressLookupConfig* unsafe_arena_release_address_lookup_config(); |
1134 | | |
1135 | | // optional .safepower_agent_config.GnicMonitorConfig gnic_monitor_config = 9; |
1136 | | bool has_gnic_monitor_config() const; |
1137 | | private: |
1138 | | bool _internal_has_gnic_monitor_config() const; |
1139 | | public: |
1140 | | void clear_gnic_monitor_config(); |
1141 | | const ::safepower_agent_config::GnicMonitorConfig& gnic_monitor_config() const; |
1142 | | PROTOBUF_NODISCARD ::safepower_agent_config::GnicMonitorConfig* release_gnic_monitor_config(); |
1143 | | ::safepower_agent_config::GnicMonitorConfig* mutable_gnic_monitor_config(); |
1144 | | void set_allocated_gnic_monitor_config(::safepower_agent_config::GnicMonitorConfig* gnic_monitor_config); |
1145 | | private: |
1146 | | const ::safepower_agent_config::GnicMonitorConfig& _internal_gnic_monitor_config() const; |
1147 | | ::safepower_agent_config::GnicMonitorConfig* _internal_mutable_gnic_monitor_config(); |
1148 | | public: |
1149 | | void unsafe_arena_set_allocated_gnic_monitor_config( |
1150 | | ::safepower_agent_config::GnicMonitorConfig* gnic_monitor_config); |
1151 | | ::safepower_agent_config::GnicMonitorConfig* unsafe_arena_release_gnic_monitor_config(); |
1152 | | |
1153 | | // .safepower_agent_config.RedfishBootCountConfig redfish_boot_count_config = 5; |
1154 | | bool has_redfish_boot_count_config() const; |
1155 | | private: |
1156 | | bool _internal_has_redfish_boot_count_config() const; |
1157 | | public: |
1158 | | void clear_redfish_boot_count_config(); |
1159 | | const ::safepower_agent_config::RedfishBootCountConfig& redfish_boot_count_config() const; |
1160 | | PROTOBUF_NODISCARD ::safepower_agent_config::RedfishBootCountConfig* release_redfish_boot_count_config(); |
1161 | | ::safepower_agent_config::RedfishBootCountConfig* mutable_redfish_boot_count_config(); |
1162 | | void set_allocated_redfish_boot_count_config(::safepower_agent_config::RedfishBootCountConfig* redfish_boot_count_config); |
1163 | | private: |
1164 | | const ::safepower_agent_config::RedfishBootCountConfig& _internal_redfish_boot_count_config() const; |
1165 | | ::safepower_agent_config::RedfishBootCountConfig* _internal_mutable_redfish_boot_count_config(); |
1166 | | public: |
1167 | | void unsafe_arena_set_allocated_redfish_boot_count_config( |
1168 | | ::safepower_agent_config::RedfishBootCountConfig* redfish_boot_count_config); |
1169 | | ::safepower_agent_config::RedfishBootCountConfig* unsafe_arena_release_redfish_boot_count_config(); |
1170 | | |
1171 | | // .safepower_agent_config.InternalBootCountConfig internal_boot_count_config = 8; |
1172 | | bool has_internal_boot_count_config() const; |
1173 | | private: |
1174 | | bool _internal_has_internal_boot_count_config() const; |
1175 | | public: |
1176 | | void clear_internal_boot_count_config(); |
1177 | | const ::safepower_agent_config::InternalBootCountConfig& internal_boot_count_config() const; |
1178 | | PROTOBUF_NODISCARD ::safepower_agent_config::InternalBootCountConfig* release_internal_boot_count_config(); |
1179 | | ::safepower_agent_config::InternalBootCountConfig* mutable_internal_boot_count_config(); |
1180 | | void set_allocated_internal_boot_count_config(::safepower_agent_config::InternalBootCountConfig* internal_boot_count_config); |
1181 | | private: |
1182 | | const ::safepower_agent_config::InternalBootCountConfig& _internal_internal_boot_count_config() const; |
1183 | | ::safepower_agent_config::InternalBootCountConfig* _internal_mutable_internal_boot_count_config(); |
1184 | | public: |
1185 | | void unsafe_arena_set_allocated_internal_boot_count_config( |
1186 | | ::safepower_agent_config::InternalBootCountConfig* internal_boot_count_config); |
1187 | | ::safepower_agent_config::InternalBootCountConfig* unsafe_arena_release_internal_boot_count_config(); |
1188 | | |
1189 | | void clear_boot_count_config(); |
1190 | | BootCountConfigCase boot_count_config_case() const; |
1191 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.GpowerdConfig) |
1192 | | private: |
1193 | | class _Internal; |
1194 | | void set_has_redfish_boot_count_config(); |
1195 | | void set_has_internal_boot_count_config(); |
1196 | | |
1197 | | inline bool has_boot_count_config() const; |
1198 | | inline void clear_has_boot_count_config(); |
1199 | | |
1200 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1201 | | typedef void InternalArenaConstructable_; |
1202 | | typedef void DestructorSkippable_; |
1203 | | struct Impl_ { |
1204 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1205 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1206 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::StateMonitorConfig > state_monitor_config_; |
1207 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::HealthCheck > health_check_; |
1208 | | ::safepower_agent_config::PersistentStorageConfig* persistent_storage_config_; |
1209 | | ::safepower_agent_config::PingConfig* ping_config_; |
1210 | | ::safepower_agent_config::AddressLookupConfig* address_lookup_config_; |
1211 | | ::safepower_agent_config::GnicMonitorConfig* gnic_monitor_config_; |
1212 | | union BootCountConfigUnion { |
1213 | 0 | constexpr BootCountConfigUnion() : _constinit_{} {} |
1214 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
1215 | | ::safepower_agent_config::RedfishBootCountConfig* redfish_boot_count_config_; |
1216 | | ::safepower_agent_config::InternalBootCountConfig* internal_boot_count_config_; |
1217 | | } boot_count_config_; |
1218 | | uint32_t _oneof_case_[1]; |
1219 | | |
1220 | | }; |
1221 | | union { Impl_ _impl_; }; |
1222 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
1223 | | }; |
1224 | | // ------------------------------------------------------------------- |
1225 | | |
1226 | | class HealthCheck final : |
1227 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.HealthCheck) */ { |
1228 | | public: |
1229 | 0 | inline HealthCheck() : HealthCheck(nullptr) {} |
1230 | | ~HealthCheck() override; |
1231 | | explicit PROTOBUF_CONSTEXPR HealthCheck(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1232 | | |
1233 | | HealthCheck(const HealthCheck& from); |
1234 | | HealthCheck(HealthCheck&& from) noexcept |
1235 | 0 | : HealthCheck() { |
1236 | 0 | *this = ::std::move(from); |
1237 | 0 | } |
1238 | | |
1239 | 0 | inline HealthCheck& operator=(const HealthCheck& from) { |
1240 | 0 | CopyFrom(from); |
1241 | 0 | return *this; |
1242 | 0 | } |
1243 | 0 | inline HealthCheck& operator=(HealthCheck&& from) noexcept { |
1244 | 0 | if (this == &from) return *this; |
1245 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1246 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1247 | 0 | && GetOwningArena() != nullptr |
1248 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1249 | 0 | ) { |
1250 | 0 | InternalSwap(&from); |
1251 | 0 | } else { |
1252 | 0 | CopyFrom(from); |
1253 | 0 | } |
1254 | 0 | return *this; |
1255 | 0 | } |
1256 | | |
1257 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1258 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1259 | 0 | } |
1260 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1261 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1262 | 0 | } |
1263 | | |
1264 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1265 | 0 | return GetDescriptor(); |
1266 | 0 | } |
1267 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1268 | 0 | return default_instance().GetMetadata().descriptor; |
1269 | 0 | } |
1270 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1271 | 0 | return default_instance().GetMetadata().reflection; |
1272 | 0 | } |
1273 | 0 | static const HealthCheck& default_instance() { |
1274 | 0 | return *internal_default_instance(); |
1275 | 0 | } |
1276 | 0 | static inline const HealthCheck* internal_default_instance() { |
1277 | 0 | return reinterpret_cast<const HealthCheck*>( |
1278 | 0 | &_HealthCheck_default_instance_); |
1279 | 0 | } |
1280 | | static constexpr int kIndexInFileMessages = |
1281 | | 4; |
1282 | | |
1283 | 0 | friend void swap(HealthCheck& a, HealthCheck& b) { |
1284 | 0 | a.Swap(&b); |
1285 | 0 | } |
1286 | 0 | inline void Swap(HealthCheck* other) { |
1287 | 0 | if (other == this) return; |
1288 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1289 | 0 | if (GetOwningArena() != nullptr && |
1290 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1291 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1292 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1293 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1294 | 0 | InternalSwap(other); |
1295 | 0 | } else { |
1296 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1297 | 0 | } |
1298 | 0 | } |
1299 | 0 | void UnsafeArenaSwap(HealthCheck* other) { |
1300 | 0 | if (other == this) return; |
1301 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1302 | 0 | InternalSwap(other); |
1303 | 0 | } |
1304 | | |
1305 | | // implements Message ---------------------------------------------- |
1306 | | |
1307 | 0 | HealthCheck* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1308 | 0 | return CreateMaybeMessage<HealthCheck>(arena); |
1309 | 0 | } |
1310 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1311 | | void CopyFrom(const HealthCheck& from); |
1312 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1313 | 0 | void MergeFrom( const HealthCheck& from) { |
1314 | 0 | HealthCheck::MergeImpl(*this, from); |
1315 | 0 | } |
1316 | | private: |
1317 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1318 | | public: |
1319 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1320 | | bool IsInitialized() const final; |
1321 | | |
1322 | | size_t ByteSizeLong() const final; |
1323 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1324 | | uint8_t* _InternalSerialize( |
1325 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1326 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1327 | | |
1328 | | private: |
1329 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1330 | | void SharedDtor(); |
1331 | | void SetCachedSize(int size) const final; |
1332 | | void InternalSwap(HealthCheck* other); |
1333 | | |
1334 | | private: |
1335 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1336 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1337 | 0 | return "safepower_agent_config.HealthCheck"; |
1338 | 0 | } |
1339 | | protected: |
1340 | | explicit HealthCheck(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1341 | | bool is_message_owned = false); |
1342 | | public: |
1343 | | |
1344 | | static const ClassData _class_data_; |
1345 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1346 | | |
1347 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1348 | | |
1349 | | // nested types ---------------------------------------------------- |
1350 | | |
1351 | | // accessors ------------------------------------------------------- |
1352 | | |
1353 | | enum : int { |
1354 | | kDaemonNameFieldNumber = 2, |
1355 | | kPathFieldNumber = 3, |
1356 | | kExpectedResponseFieldNumber = 4, |
1357 | | kPortFieldNumber = 1, |
1358 | | kTimeoutMsFieldNumber = 5, |
1359 | | kIntervalMsFieldNumber = 6, |
1360 | | kRetryIntervalMsFieldNumber = 7, |
1361 | | kRetryTimeoutMsFieldNumber = 8, |
1362 | | }; |
1363 | | // optional string daemon_name = 2; |
1364 | | bool has_daemon_name() const; |
1365 | | private: |
1366 | | bool _internal_has_daemon_name() const; |
1367 | | public: |
1368 | | void clear_daemon_name(); |
1369 | | const std::string& daemon_name() const; |
1370 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1371 | | void set_daemon_name(ArgT0&& arg0, ArgT... args); |
1372 | | std::string* mutable_daemon_name(); |
1373 | | PROTOBUF_NODISCARD std::string* release_daemon_name(); |
1374 | | void set_allocated_daemon_name(std::string* daemon_name); |
1375 | | private: |
1376 | | const std::string& _internal_daemon_name() const; |
1377 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_daemon_name(const std::string& value); |
1378 | | std::string* _internal_mutable_daemon_name(); |
1379 | | public: |
1380 | | |
1381 | | // optional string path = 3 [default = "/healthz"]; |
1382 | | bool has_path() const; |
1383 | | private: |
1384 | | bool _internal_has_path() const; |
1385 | | public: |
1386 | | void clear_path(); |
1387 | | const std::string& path() const; |
1388 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1389 | | void set_path(ArgT0&& arg0, ArgT... args); |
1390 | | std::string* mutable_path(); |
1391 | | PROTOBUF_NODISCARD std::string* release_path(); |
1392 | | void set_allocated_path(std::string* path); |
1393 | | private: |
1394 | | const std::string& _internal_path() const; |
1395 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); |
1396 | | std::string* _internal_mutable_path(); |
1397 | | public: |
1398 | | |
1399 | | // optional string expected_response = 4 [default = "ok"]; |
1400 | | bool has_expected_response() const; |
1401 | | private: |
1402 | | bool _internal_has_expected_response() const; |
1403 | | public: |
1404 | | void clear_expected_response(); |
1405 | | const std::string& expected_response() const; |
1406 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1407 | | void set_expected_response(ArgT0&& arg0, ArgT... args); |
1408 | | std::string* mutable_expected_response(); |
1409 | | PROTOBUF_NODISCARD std::string* release_expected_response(); |
1410 | | void set_allocated_expected_response(std::string* expected_response); |
1411 | | private: |
1412 | | const std::string& _internal_expected_response() const; |
1413 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_expected_response(const std::string& value); |
1414 | | std::string* _internal_mutable_expected_response(); |
1415 | | public: |
1416 | | |
1417 | | // optional int32 port = 1; |
1418 | | bool has_port() const; |
1419 | | private: |
1420 | | bool _internal_has_port() const; |
1421 | | public: |
1422 | | void clear_port(); |
1423 | | int32_t port() const; |
1424 | | void set_port(int32_t value); |
1425 | | private: |
1426 | | int32_t _internal_port() const; |
1427 | | void _internal_set_port(int32_t value); |
1428 | | public: |
1429 | | |
1430 | | // optional int64 timeout_ms = 5 [default = 1000]; |
1431 | | bool has_timeout_ms() const; |
1432 | | private: |
1433 | | bool _internal_has_timeout_ms() const; |
1434 | | public: |
1435 | | void clear_timeout_ms(); |
1436 | | int64_t timeout_ms() const; |
1437 | | void set_timeout_ms(int64_t value); |
1438 | | private: |
1439 | | int64_t _internal_timeout_ms() const; |
1440 | | void _internal_set_timeout_ms(int64_t value); |
1441 | | public: |
1442 | | |
1443 | | // optional int64 interval_ms = 6 [default = 5000]; |
1444 | | bool has_interval_ms() const; |
1445 | | private: |
1446 | | bool _internal_has_interval_ms() const; |
1447 | | public: |
1448 | | void clear_interval_ms(); |
1449 | | int64_t interval_ms() const; |
1450 | | void set_interval_ms(int64_t value); |
1451 | | private: |
1452 | | int64_t _internal_interval_ms() const; |
1453 | | void _internal_set_interval_ms(int64_t value); |
1454 | | public: |
1455 | | |
1456 | | // optional int64 retry_interval_ms = 7 [default = 1000]; |
1457 | | bool has_retry_interval_ms() const; |
1458 | | private: |
1459 | | bool _internal_has_retry_interval_ms() const; |
1460 | | public: |
1461 | | void clear_retry_interval_ms(); |
1462 | | int64_t retry_interval_ms() const; |
1463 | | void set_retry_interval_ms(int64_t value); |
1464 | | private: |
1465 | | int64_t _internal_retry_interval_ms() const; |
1466 | | void _internal_set_retry_interval_ms(int64_t value); |
1467 | | public: |
1468 | | |
1469 | | // optional int64 retry_timeout_ms = 8 [default = 10000]; |
1470 | | bool has_retry_timeout_ms() const; |
1471 | | private: |
1472 | | bool _internal_has_retry_timeout_ms() const; |
1473 | | public: |
1474 | | void clear_retry_timeout_ms(); |
1475 | | int64_t retry_timeout_ms() const; |
1476 | | void set_retry_timeout_ms(int64_t value); |
1477 | | private: |
1478 | | int64_t _internal_retry_timeout_ms() const; |
1479 | | void _internal_set_retry_timeout_ms(int64_t value); |
1480 | | public: |
1481 | | |
1482 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.HealthCheck) |
1483 | | private: |
1484 | | class _Internal; |
1485 | | |
1486 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1487 | | typedef void InternalArenaConstructable_; |
1488 | | typedef void DestructorSkippable_; |
1489 | | struct Impl_ { |
1490 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1491 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1492 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr daemon_name_; |
1493 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_path_; |
1494 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; |
1495 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_expected_response_; |
1496 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expected_response_; |
1497 | | int32_t port_; |
1498 | | int64_t timeout_ms_; |
1499 | | int64_t interval_ms_; |
1500 | | int64_t retry_interval_ms_; |
1501 | | int64_t retry_timeout_ms_; |
1502 | | }; |
1503 | | union { Impl_ _impl_; }; |
1504 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
1505 | | }; |
1506 | | // ------------------------------------------------------------------- |
1507 | | |
1508 | | class PingConfig final : |
1509 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.PingConfig) */ { |
1510 | | public: |
1511 | 0 | inline PingConfig() : PingConfig(nullptr) {} |
1512 | | ~PingConfig() override; |
1513 | | explicit PROTOBUF_CONSTEXPR PingConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1514 | | |
1515 | | PingConfig(const PingConfig& from); |
1516 | | PingConfig(PingConfig&& from) noexcept |
1517 | 0 | : PingConfig() { |
1518 | 0 | *this = ::std::move(from); |
1519 | 0 | } |
1520 | | |
1521 | 0 | inline PingConfig& operator=(const PingConfig& from) { |
1522 | 0 | CopyFrom(from); |
1523 | 0 | return *this; |
1524 | 0 | } |
1525 | 0 | inline PingConfig& operator=(PingConfig&& from) noexcept { |
1526 | 0 | if (this == &from) return *this; |
1527 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1528 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1529 | 0 | && GetOwningArena() != nullptr |
1530 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1531 | 0 | ) { |
1532 | 0 | InternalSwap(&from); |
1533 | 0 | } else { |
1534 | 0 | CopyFrom(from); |
1535 | 0 | } |
1536 | 0 | return *this; |
1537 | 0 | } |
1538 | | |
1539 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1540 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1541 | 0 | } |
1542 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1543 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1544 | 0 | } |
1545 | | |
1546 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1547 | 0 | return GetDescriptor(); |
1548 | 0 | } |
1549 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1550 | 0 | return default_instance().GetMetadata().descriptor; |
1551 | 0 | } |
1552 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1553 | 0 | return default_instance().GetMetadata().reflection; |
1554 | 0 | } |
1555 | 0 | static const PingConfig& default_instance() { |
1556 | 0 | return *internal_default_instance(); |
1557 | 0 | } |
1558 | 0 | static inline const PingConfig* internal_default_instance() { |
1559 | 0 | return reinterpret_cast<const PingConfig*>( |
1560 | 0 | &_PingConfig_default_instance_); |
1561 | 0 | } |
1562 | | static constexpr int kIndexInFileMessages = |
1563 | | 5; |
1564 | | |
1565 | 0 | friend void swap(PingConfig& a, PingConfig& b) { |
1566 | 0 | a.Swap(&b); |
1567 | 0 | } |
1568 | 0 | inline void Swap(PingConfig* other) { |
1569 | 0 | if (other == this) return; |
1570 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1571 | 0 | if (GetOwningArena() != nullptr && |
1572 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1573 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1574 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1575 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1576 | 0 | InternalSwap(other); |
1577 | 0 | } else { |
1578 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1579 | 0 | } |
1580 | 0 | } |
1581 | 0 | void UnsafeArenaSwap(PingConfig* other) { |
1582 | 0 | if (other == this) return; |
1583 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1584 | 0 | InternalSwap(other); |
1585 | 0 | } |
1586 | | |
1587 | | // implements Message ---------------------------------------------- |
1588 | | |
1589 | 0 | PingConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1590 | 0 | return CreateMaybeMessage<PingConfig>(arena); |
1591 | 0 | } |
1592 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1593 | | void CopyFrom(const PingConfig& from); |
1594 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1595 | 0 | void MergeFrom( const PingConfig& from) { |
1596 | 0 | PingConfig::MergeImpl(*this, from); |
1597 | 0 | } |
1598 | | private: |
1599 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1600 | | public: |
1601 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1602 | | bool IsInitialized() const final; |
1603 | | |
1604 | | size_t ByteSizeLong() const final; |
1605 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1606 | | uint8_t* _InternalSerialize( |
1607 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1608 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1609 | | |
1610 | | private: |
1611 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1612 | | void SharedDtor(); |
1613 | | void SetCachedSize(int size) const final; |
1614 | | void InternalSwap(PingConfig* other); |
1615 | | |
1616 | | private: |
1617 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1618 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1619 | 0 | return "safepower_agent_config.PingConfig"; |
1620 | 0 | } |
1621 | | protected: |
1622 | | explicit PingConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1623 | | bool is_message_owned = false); |
1624 | | public: |
1625 | | |
1626 | | static const ClassData _class_data_; |
1627 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1628 | | |
1629 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1630 | | |
1631 | | // nested types ---------------------------------------------------- |
1632 | | |
1633 | | // accessors ------------------------------------------------------- |
1634 | | |
1635 | | enum : int { |
1636 | | kExtraArgsFieldNumber = 5, |
1637 | | kCommandFieldNumber = 1, |
1638 | | kCountPerCheckFieldNumber = 3, |
1639 | | kIntervalMsFieldNumber = 2, |
1640 | | kRetryTimeoutMsFieldNumber = 6, |
1641 | | }; |
1642 | | // repeated string extra_args = 5; |
1643 | | int extra_args_size() const; |
1644 | | private: |
1645 | | int _internal_extra_args_size() const; |
1646 | | public: |
1647 | | void clear_extra_args(); |
1648 | | const std::string& extra_args(int index) const; |
1649 | | std::string* mutable_extra_args(int index); |
1650 | | void set_extra_args(int index, const std::string& value); |
1651 | | void set_extra_args(int index, std::string&& value); |
1652 | | void set_extra_args(int index, const char* value); |
1653 | | void set_extra_args(int index, const char* value, size_t size); |
1654 | | std::string* add_extra_args(); |
1655 | | void add_extra_args(const std::string& value); |
1656 | | void add_extra_args(std::string&& value); |
1657 | | void add_extra_args(const char* value); |
1658 | | void add_extra_args(const char* value, size_t size); |
1659 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& extra_args() const; |
1660 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_extra_args(); |
1661 | | private: |
1662 | | const std::string& _internal_extra_args(int index) const; |
1663 | | std::string* _internal_add_extra_args(); |
1664 | | public: |
1665 | | |
1666 | | // optional string command = 1 [default = "/usr/bin/ping6"]; |
1667 | | bool has_command() const; |
1668 | | private: |
1669 | | bool _internal_has_command() const; |
1670 | | public: |
1671 | | void clear_command(); |
1672 | | const std::string& command() const; |
1673 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1674 | | void set_command(ArgT0&& arg0, ArgT... args); |
1675 | | std::string* mutable_command(); |
1676 | | PROTOBUF_NODISCARD std::string* release_command(); |
1677 | | void set_allocated_command(std::string* command); |
1678 | | private: |
1679 | | const std::string& _internal_command() const; |
1680 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_command(const std::string& value); |
1681 | | std::string* _internal_mutable_command(); |
1682 | | public: |
1683 | | |
1684 | | // optional int32 count_per_check = 3 [default = 3]; |
1685 | | bool has_count_per_check() const; |
1686 | | private: |
1687 | | bool _internal_has_count_per_check() const; |
1688 | | public: |
1689 | | void clear_count_per_check(); |
1690 | | int32_t count_per_check() const; |
1691 | | void set_count_per_check(int32_t value); |
1692 | | private: |
1693 | | int32_t _internal_count_per_check() const; |
1694 | | void _internal_set_count_per_check(int32_t value); |
1695 | | public: |
1696 | | |
1697 | | // optional int64 interval_ms = 2 [default = 5000]; |
1698 | | bool has_interval_ms() const; |
1699 | | private: |
1700 | | bool _internal_has_interval_ms() const; |
1701 | | public: |
1702 | | void clear_interval_ms(); |
1703 | | int64_t interval_ms() const; |
1704 | | void set_interval_ms(int64_t value); |
1705 | | private: |
1706 | | int64_t _internal_interval_ms() const; |
1707 | | void _internal_set_interval_ms(int64_t value); |
1708 | | public: |
1709 | | |
1710 | | // optional int64 retry_timeout_ms = 6 [default = 1000]; |
1711 | | bool has_retry_timeout_ms() const; |
1712 | | private: |
1713 | | bool _internal_has_retry_timeout_ms() const; |
1714 | | public: |
1715 | | void clear_retry_timeout_ms(); |
1716 | | int64_t retry_timeout_ms() const; |
1717 | | void set_retry_timeout_ms(int64_t value); |
1718 | | private: |
1719 | | int64_t _internal_retry_timeout_ms() const; |
1720 | | void _internal_set_retry_timeout_ms(int64_t value); |
1721 | | public: |
1722 | | |
1723 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.PingConfig) |
1724 | | private: |
1725 | | class _Internal; |
1726 | | |
1727 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1728 | | typedef void InternalArenaConstructable_; |
1729 | | typedef void DestructorSkippable_; |
1730 | | struct Impl_ { |
1731 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1732 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1733 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> extra_args_; |
1734 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_command_; |
1735 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_; |
1736 | | int32_t count_per_check_; |
1737 | | int64_t interval_ms_; |
1738 | | int64_t retry_timeout_ms_; |
1739 | | }; |
1740 | | union { Impl_ _impl_; }; |
1741 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
1742 | | }; |
1743 | | // ------------------------------------------------------------------- |
1744 | | |
1745 | | class AddressLookupConfig final : |
1746 | | public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:safepower_agent_config.AddressLookupConfig) */ { |
1747 | | public: |
1748 | 0 | inline AddressLookupConfig() : AddressLookupConfig(nullptr) {} |
1749 | | explicit PROTOBUF_CONSTEXPR AddressLookupConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1750 | | |
1751 | | AddressLookupConfig(const AddressLookupConfig& from); |
1752 | | AddressLookupConfig(AddressLookupConfig&& from) noexcept |
1753 | 0 | : AddressLookupConfig() { |
1754 | 0 | *this = ::std::move(from); |
1755 | 0 | } |
1756 | | |
1757 | 0 | inline AddressLookupConfig& operator=(const AddressLookupConfig& from) { |
1758 | 0 | CopyFrom(from); |
1759 | 0 | return *this; |
1760 | 0 | } |
1761 | 0 | inline AddressLookupConfig& operator=(AddressLookupConfig&& from) noexcept { |
1762 | 0 | if (this == &from) return *this; |
1763 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1764 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1765 | 0 | && GetOwningArena() != nullptr |
1766 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1767 | 0 | ) { |
1768 | 0 | InternalSwap(&from); |
1769 | 0 | } else { |
1770 | 0 | CopyFrom(from); |
1771 | 0 | } |
1772 | 0 | return *this; |
1773 | 0 | } |
1774 | | |
1775 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1776 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1777 | 0 | } |
1778 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1779 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1780 | 0 | } |
1781 | | |
1782 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1783 | 0 | return GetDescriptor(); |
1784 | 0 | } |
1785 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1786 | 0 | return default_instance().GetMetadata().descriptor; |
1787 | 0 | } |
1788 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1789 | 0 | return default_instance().GetMetadata().reflection; |
1790 | 0 | } |
1791 | 0 | static const AddressLookupConfig& default_instance() { |
1792 | 0 | return *internal_default_instance(); |
1793 | 0 | } |
1794 | 0 | static inline const AddressLookupConfig* internal_default_instance() { |
1795 | 0 | return reinterpret_cast<const AddressLookupConfig*>( |
1796 | 0 | &_AddressLookupConfig_default_instance_); |
1797 | 0 | } |
1798 | | static constexpr int kIndexInFileMessages = |
1799 | | 6; |
1800 | | |
1801 | 0 | friend void swap(AddressLookupConfig& a, AddressLookupConfig& b) { |
1802 | 0 | a.Swap(&b); |
1803 | 0 | } |
1804 | 0 | inline void Swap(AddressLookupConfig* other) { |
1805 | 0 | if (other == this) return; |
1806 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1807 | 0 | if (GetOwningArena() != nullptr && |
1808 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1809 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1810 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1811 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1812 | 0 | InternalSwap(other); |
1813 | 0 | } else { |
1814 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1815 | 0 | } |
1816 | 0 | } |
1817 | 0 | void UnsafeArenaSwap(AddressLookupConfig* other) { |
1818 | 0 | if (other == this) return; |
1819 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1820 | 0 | InternalSwap(other); |
1821 | 0 | } |
1822 | | |
1823 | | // implements Message ---------------------------------------------- |
1824 | | |
1825 | 0 | AddressLookupConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1826 | 0 | return CreateMaybeMessage<AddressLookupConfig>(arena); |
1827 | 0 | } |
1828 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; |
1829 | 0 | inline void CopyFrom(const AddressLookupConfig& from) { |
1830 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); |
1831 | 0 | } |
1832 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; |
1833 | 0 | void MergeFrom(const AddressLookupConfig& from) { |
1834 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); |
1835 | 0 | } |
1836 | | public: |
1837 | | |
1838 | | private: |
1839 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1840 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1841 | 0 | return "safepower_agent_config.AddressLookupConfig"; |
1842 | 0 | } |
1843 | | protected: |
1844 | | explicit AddressLookupConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1845 | | bool is_message_owned = false); |
1846 | | public: |
1847 | | |
1848 | | static const ClassData _class_data_; |
1849 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1850 | | |
1851 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1852 | | |
1853 | | // nested types ---------------------------------------------------- |
1854 | | |
1855 | | // accessors ------------------------------------------------------- |
1856 | | |
1857 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.AddressLookupConfig) |
1858 | | private: |
1859 | | class _Internal; |
1860 | | |
1861 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1862 | | typedef void InternalArenaConstructable_; |
1863 | | typedef void DestructorSkippable_; |
1864 | | struct Impl_ { |
1865 | | }; |
1866 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
1867 | | }; |
1868 | | // ------------------------------------------------------------------- |
1869 | | |
1870 | | class RedfishBootCountConfig final : |
1871 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.RedfishBootCountConfig) */ { |
1872 | | public: |
1873 | 0 | inline RedfishBootCountConfig() : RedfishBootCountConfig(nullptr) {} |
1874 | | ~RedfishBootCountConfig() override; |
1875 | | explicit PROTOBUF_CONSTEXPR RedfishBootCountConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1876 | | |
1877 | | RedfishBootCountConfig(const RedfishBootCountConfig& from); |
1878 | | RedfishBootCountConfig(RedfishBootCountConfig&& from) noexcept |
1879 | 0 | : RedfishBootCountConfig() { |
1880 | 0 | *this = ::std::move(from); |
1881 | 0 | } |
1882 | | |
1883 | 0 | inline RedfishBootCountConfig& operator=(const RedfishBootCountConfig& from) { |
1884 | 0 | CopyFrom(from); |
1885 | 0 | return *this; |
1886 | 0 | } |
1887 | 0 | inline RedfishBootCountConfig& operator=(RedfishBootCountConfig&& from) noexcept { |
1888 | 0 | if (this == &from) return *this; |
1889 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1890 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1891 | 0 | && GetOwningArena() != nullptr |
1892 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1893 | 0 | ) { |
1894 | 0 | InternalSwap(&from); |
1895 | 0 | } else { |
1896 | 0 | CopyFrom(from); |
1897 | 0 | } |
1898 | 0 | return *this; |
1899 | 0 | } |
1900 | | |
1901 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1902 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1903 | 0 | } |
1904 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1905 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1906 | 0 | } |
1907 | | |
1908 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1909 | 0 | return GetDescriptor(); |
1910 | 0 | } |
1911 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1912 | 0 | return default_instance().GetMetadata().descriptor; |
1913 | 0 | } |
1914 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1915 | 0 | return default_instance().GetMetadata().reflection; |
1916 | 0 | } |
1917 | 0 | static const RedfishBootCountConfig& default_instance() { |
1918 | 0 | return *internal_default_instance(); |
1919 | 0 | } |
1920 | 0 | static inline const RedfishBootCountConfig* internal_default_instance() { |
1921 | 0 | return reinterpret_cast<const RedfishBootCountConfig*>( |
1922 | 0 | &_RedfishBootCountConfig_default_instance_); |
1923 | 0 | } |
1924 | | static constexpr int kIndexInFileMessages = |
1925 | | 7; |
1926 | | |
1927 | 0 | friend void swap(RedfishBootCountConfig& a, RedfishBootCountConfig& b) { |
1928 | 0 | a.Swap(&b); |
1929 | 0 | } |
1930 | 0 | inline void Swap(RedfishBootCountConfig* other) { |
1931 | 0 | if (other == this) return; |
1932 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1933 | 0 | if (GetOwningArena() != nullptr && |
1934 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1935 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1936 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1937 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1938 | 0 | InternalSwap(other); |
1939 | 0 | } else { |
1940 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1941 | 0 | } |
1942 | 0 | } |
1943 | 0 | void UnsafeArenaSwap(RedfishBootCountConfig* other) { |
1944 | 0 | if (other == this) return; |
1945 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1946 | 0 | InternalSwap(other); |
1947 | 0 | } |
1948 | | |
1949 | | // implements Message ---------------------------------------------- |
1950 | | |
1951 | 0 | RedfishBootCountConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1952 | 0 | return CreateMaybeMessage<RedfishBootCountConfig>(arena); |
1953 | 0 | } |
1954 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1955 | | void CopyFrom(const RedfishBootCountConfig& from); |
1956 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1957 | 0 | void MergeFrom( const RedfishBootCountConfig& from) { |
1958 | 0 | RedfishBootCountConfig::MergeImpl(*this, from); |
1959 | 0 | } |
1960 | | private: |
1961 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1962 | | public: |
1963 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1964 | | bool IsInitialized() const final; |
1965 | | |
1966 | | size_t ByteSizeLong() const final; |
1967 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1968 | | uint8_t* _InternalSerialize( |
1969 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1970 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1971 | | |
1972 | | private: |
1973 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1974 | | void SharedDtor(); |
1975 | | void SetCachedSize(int size) const final; |
1976 | | void InternalSwap(RedfishBootCountConfig* other); |
1977 | | |
1978 | | private: |
1979 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1980 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1981 | 0 | return "safepower_agent_config.RedfishBootCountConfig"; |
1982 | 0 | } |
1983 | | protected: |
1984 | | explicit RedfishBootCountConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1985 | | bool is_message_owned = false); |
1986 | | public: |
1987 | | |
1988 | | static const ClassData _class_data_; |
1989 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1990 | | |
1991 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1992 | | |
1993 | | // nested types ---------------------------------------------------- |
1994 | | |
1995 | | // accessors ------------------------------------------------------- |
1996 | | |
1997 | | enum : int { |
1998 | | kUriFieldNumber = 1, |
1999 | | kIpFieldNumber = 2, |
2000 | | kTimeoutSecFieldNumber = 5, |
2001 | | kPortFieldNumber = 3, |
2002 | | kRetryIntervalMsFieldNumber = 4, |
2003 | | }; |
2004 | | // optional string uri = 1 [default = "/redfish/v1/Managers/bmc/ManagerDiagnosticData"]; |
2005 | | bool has_uri() const; |
2006 | | private: |
2007 | | bool _internal_has_uri() const; |
2008 | | public: |
2009 | | void clear_uri(); |
2010 | | const std::string& uri() const; |
2011 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
2012 | | void set_uri(ArgT0&& arg0, ArgT... args); |
2013 | | std::string* mutable_uri(); |
2014 | | PROTOBUF_NODISCARD std::string* release_uri(); |
2015 | | void set_allocated_uri(std::string* uri); |
2016 | | private: |
2017 | | const std::string& _internal_uri() const; |
2018 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value); |
2019 | | std::string* _internal_mutable_uri(); |
2020 | | public: |
2021 | | |
2022 | | // optional string ip = 2 [default = "::1"]; |
2023 | | bool has_ip() const; |
2024 | | private: |
2025 | | bool _internal_has_ip() const; |
2026 | | public: |
2027 | | void clear_ip(); |
2028 | | const std::string& ip() const; |
2029 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
2030 | | void set_ip(ArgT0&& arg0, ArgT... args); |
2031 | | std::string* mutable_ip(); |
2032 | | PROTOBUF_NODISCARD std::string* release_ip(); |
2033 | | void set_allocated_ip(std::string* ip); |
2034 | | private: |
2035 | | const std::string& _internal_ip() const; |
2036 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value); |
2037 | | std::string* _internal_mutable_ip(); |
2038 | | public: |
2039 | | |
2040 | | // optional int64 timeout_sec = 5; |
2041 | | bool has_timeout_sec() const; |
2042 | | private: |
2043 | | bool _internal_has_timeout_sec() const; |
2044 | | public: |
2045 | | void clear_timeout_sec(); |
2046 | | int64_t timeout_sec() const; |
2047 | | void set_timeout_sec(int64_t value); |
2048 | | private: |
2049 | | int64_t _internal_timeout_sec() const; |
2050 | | void _internal_set_timeout_sec(int64_t value); |
2051 | | public: |
2052 | | |
2053 | | // optional uint32 port = 3 [default = 80]; |
2054 | | bool has_port() const; |
2055 | | private: |
2056 | | bool _internal_has_port() const; |
2057 | | public: |
2058 | | void clear_port(); |
2059 | | uint32_t port() const; |
2060 | | void set_port(uint32_t value); |
2061 | | private: |
2062 | | uint32_t _internal_port() const; |
2063 | | void _internal_set_port(uint32_t value); |
2064 | | public: |
2065 | | |
2066 | | // optional int64 retry_interval_ms = 4 [default = 1000]; |
2067 | | bool has_retry_interval_ms() const; |
2068 | | private: |
2069 | | bool _internal_has_retry_interval_ms() const; |
2070 | | public: |
2071 | | void clear_retry_interval_ms(); |
2072 | | int64_t retry_interval_ms() const; |
2073 | | void set_retry_interval_ms(int64_t value); |
2074 | | private: |
2075 | | int64_t _internal_retry_interval_ms() const; |
2076 | | void _internal_set_retry_interval_ms(int64_t value); |
2077 | | public: |
2078 | | |
2079 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.RedfishBootCountConfig) |
2080 | | private: |
2081 | | class _Internal; |
2082 | | |
2083 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2084 | | typedef void InternalArenaConstructable_; |
2085 | | typedef void DestructorSkippable_; |
2086 | | struct Impl_ { |
2087 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2088 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2089 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_uri_; |
2090 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; |
2091 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_ip_; |
2092 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; |
2093 | | int64_t timeout_sec_; |
2094 | | uint32_t port_; |
2095 | | int64_t retry_interval_ms_; |
2096 | | }; |
2097 | | union { Impl_ _impl_; }; |
2098 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
2099 | | }; |
2100 | | // ------------------------------------------------------------------- |
2101 | | |
2102 | | class InternalBootCountConfig final : |
2103 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.InternalBootCountConfig) */ { |
2104 | | public: |
2105 | 0 | inline InternalBootCountConfig() : InternalBootCountConfig(nullptr) {} |
2106 | | ~InternalBootCountConfig() override; |
2107 | | explicit PROTOBUF_CONSTEXPR InternalBootCountConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2108 | | |
2109 | | InternalBootCountConfig(const InternalBootCountConfig& from); |
2110 | | InternalBootCountConfig(InternalBootCountConfig&& from) noexcept |
2111 | 0 | : InternalBootCountConfig() { |
2112 | 0 | *this = ::std::move(from); |
2113 | 0 | } |
2114 | | |
2115 | 0 | inline InternalBootCountConfig& operator=(const InternalBootCountConfig& from) { |
2116 | 0 | CopyFrom(from); |
2117 | 0 | return *this; |
2118 | 0 | } |
2119 | 0 | inline InternalBootCountConfig& operator=(InternalBootCountConfig&& from) noexcept { |
2120 | 0 | if (this == &from) return *this; |
2121 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2122 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2123 | 0 | && GetOwningArena() != nullptr |
2124 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2125 | 0 | ) { |
2126 | 0 | InternalSwap(&from); |
2127 | 0 | } else { |
2128 | 0 | CopyFrom(from); |
2129 | 0 | } |
2130 | 0 | return *this; |
2131 | 0 | } |
2132 | | |
2133 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2134 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2135 | 0 | } |
2136 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2137 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2138 | 0 | } |
2139 | | |
2140 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2141 | 0 | return GetDescriptor(); |
2142 | 0 | } |
2143 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2144 | 0 | return default_instance().GetMetadata().descriptor; |
2145 | 0 | } |
2146 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2147 | 0 | return default_instance().GetMetadata().reflection; |
2148 | 0 | } |
2149 | 0 | static const InternalBootCountConfig& default_instance() { |
2150 | 0 | return *internal_default_instance(); |
2151 | 0 | } |
2152 | 0 | static inline const InternalBootCountConfig* internal_default_instance() { |
2153 | 0 | return reinterpret_cast<const InternalBootCountConfig*>( |
2154 | 0 | &_InternalBootCountConfig_default_instance_); |
2155 | 0 | } |
2156 | | static constexpr int kIndexInFileMessages = |
2157 | | 8; |
2158 | | |
2159 | 0 | friend void swap(InternalBootCountConfig& a, InternalBootCountConfig& b) { |
2160 | 0 | a.Swap(&b); |
2161 | 0 | } |
2162 | 0 | inline void Swap(InternalBootCountConfig* other) { |
2163 | 0 | if (other == this) return; |
2164 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2165 | 0 | if (GetOwningArena() != nullptr && |
2166 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2167 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2168 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2169 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2170 | 0 | InternalSwap(other); |
2171 | 0 | } else { |
2172 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2173 | 0 | } |
2174 | 0 | } |
2175 | 0 | void UnsafeArenaSwap(InternalBootCountConfig* other) { |
2176 | 0 | if (other == this) return; |
2177 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2178 | 0 | InternalSwap(other); |
2179 | 0 | } |
2180 | | |
2181 | | // implements Message ---------------------------------------------- |
2182 | | |
2183 | 0 | InternalBootCountConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2184 | 0 | return CreateMaybeMessage<InternalBootCountConfig>(arena); |
2185 | 0 | } |
2186 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2187 | | void CopyFrom(const InternalBootCountConfig& from); |
2188 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2189 | 0 | void MergeFrom( const InternalBootCountConfig& from) { |
2190 | 0 | InternalBootCountConfig::MergeImpl(*this, from); |
2191 | 0 | } |
2192 | | private: |
2193 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2194 | | public: |
2195 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2196 | | bool IsInitialized() const final; |
2197 | | |
2198 | | size_t ByteSizeLong() const final; |
2199 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2200 | | uint8_t* _InternalSerialize( |
2201 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2202 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2203 | | |
2204 | | private: |
2205 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2206 | | void SharedDtor(); |
2207 | | void SetCachedSize(int size) const final; |
2208 | | void InternalSwap(InternalBootCountConfig* other); |
2209 | | |
2210 | | private: |
2211 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2212 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2213 | 0 | return "safepower_agent_config.InternalBootCountConfig"; |
2214 | 0 | } |
2215 | | protected: |
2216 | | explicit InternalBootCountConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2217 | | bool is_message_owned = false); |
2218 | | public: |
2219 | | |
2220 | | static const ClassData _class_data_; |
2221 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2222 | | |
2223 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2224 | | |
2225 | | // nested types ---------------------------------------------------- |
2226 | | |
2227 | | // accessors ------------------------------------------------------- |
2228 | | |
2229 | | enum : int { |
2230 | | kBootIdPathFieldNumber = 1, |
2231 | | }; |
2232 | | // optional string boot_id_path = 1 [default = "/proc/sys/kernel/random/boot_id"]; |
2233 | | bool has_boot_id_path() const; |
2234 | | private: |
2235 | | bool _internal_has_boot_id_path() const; |
2236 | | public: |
2237 | | void clear_boot_id_path(); |
2238 | | const std::string& boot_id_path() const; |
2239 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
2240 | | void set_boot_id_path(ArgT0&& arg0, ArgT... args); |
2241 | | std::string* mutable_boot_id_path(); |
2242 | | PROTOBUF_NODISCARD std::string* release_boot_id_path(); |
2243 | | void set_allocated_boot_id_path(std::string* boot_id_path); |
2244 | | private: |
2245 | | const std::string& _internal_boot_id_path() const; |
2246 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_boot_id_path(const std::string& value); |
2247 | | std::string* _internal_mutable_boot_id_path(); |
2248 | | public: |
2249 | | |
2250 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.InternalBootCountConfig) |
2251 | | private: |
2252 | | class _Internal; |
2253 | | |
2254 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2255 | | typedef void InternalArenaConstructable_; |
2256 | | typedef void DestructorSkippable_; |
2257 | | struct Impl_ { |
2258 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2259 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2260 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_boot_id_path_; |
2261 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr boot_id_path_; |
2262 | | }; |
2263 | | union { Impl_ _impl_; }; |
2264 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
2265 | | }; |
2266 | | // ------------------------------------------------------------------- |
2267 | | |
2268 | | class EepromDeviceConfig final : |
2269 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.EepromDeviceConfig) */ { |
2270 | | public: |
2271 | 0 | inline EepromDeviceConfig() : EepromDeviceConfig(nullptr) {} |
2272 | | ~EepromDeviceConfig() override; |
2273 | | explicit PROTOBUF_CONSTEXPR EepromDeviceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2274 | | |
2275 | | EepromDeviceConfig(const EepromDeviceConfig& from); |
2276 | | EepromDeviceConfig(EepromDeviceConfig&& from) noexcept |
2277 | 0 | : EepromDeviceConfig() { |
2278 | 0 | *this = ::std::move(from); |
2279 | 0 | } |
2280 | | |
2281 | 0 | inline EepromDeviceConfig& operator=(const EepromDeviceConfig& from) { |
2282 | 0 | CopyFrom(from); |
2283 | 0 | return *this; |
2284 | 0 | } |
2285 | 0 | inline EepromDeviceConfig& operator=(EepromDeviceConfig&& from) noexcept { |
2286 | 0 | if (this == &from) return *this; |
2287 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2288 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2289 | 0 | && GetOwningArena() != nullptr |
2290 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2291 | 0 | ) { |
2292 | 0 | InternalSwap(&from); |
2293 | 0 | } else { |
2294 | 0 | CopyFrom(from); |
2295 | 0 | } |
2296 | 0 | return *this; |
2297 | 0 | } |
2298 | | |
2299 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2300 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2301 | 0 | } |
2302 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2303 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2304 | 0 | } |
2305 | | |
2306 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2307 | 0 | return GetDescriptor(); |
2308 | 0 | } |
2309 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2310 | 0 | return default_instance().GetMetadata().descriptor; |
2311 | 0 | } |
2312 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2313 | 0 | return default_instance().GetMetadata().reflection; |
2314 | 0 | } |
2315 | 0 | static const EepromDeviceConfig& default_instance() { |
2316 | 0 | return *internal_default_instance(); |
2317 | 0 | } |
2318 | 0 | static inline const EepromDeviceConfig* internal_default_instance() { |
2319 | 0 | return reinterpret_cast<const EepromDeviceConfig*>( |
2320 | 0 | &_EepromDeviceConfig_default_instance_); |
2321 | 0 | } |
2322 | | static constexpr int kIndexInFileMessages = |
2323 | | 9; |
2324 | | |
2325 | 0 | friend void swap(EepromDeviceConfig& a, EepromDeviceConfig& b) { |
2326 | 0 | a.Swap(&b); |
2327 | 0 | } |
2328 | 0 | inline void Swap(EepromDeviceConfig* other) { |
2329 | 0 | if (other == this) return; |
2330 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2331 | 0 | if (GetOwningArena() != nullptr && |
2332 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2333 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2334 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2335 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2336 | 0 | InternalSwap(other); |
2337 | 0 | } else { |
2338 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2339 | 0 | } |
2340 | 0 | } |
2341 | 0 | void UnsafeArenaSwap(EepromDeviceConfig* other) { |
2342 | 0 | if (other == this) return; |
2343 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2344 | 0 | InternalSwap(other); |
2345 | 0 | } |
2346 | | |
2347 | | // implements Message ---------------------------------------------- |
2348 | | |
2349 | 0 | EepromDeviceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2350 | 0 | return CreateMaybeMessage<EepromDeviceConfig>(arena); |
2351 | 0 | } |
2352 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2353 | | void CopyFrom(const EepromDeviceConfig& from); |
2354 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2355 | 0 | void MergeFrom( const EepromDeviceConfig& from) { |
2356 | 0 | EepromDeviceConfig::MergeImpl(*this, from); |
2357 | 0 | } |
2358 | | private: |
2359 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2360 | | public: |
2361 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2362 | | bool IsInitialized() const final; |
2363 | | |
2364 | | size_t ByteSizeLong() const final; |
2365 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2366 | | uint8_t* _InternalSerialize( |
2367 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2368 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2369 | | |
2370 | | private: |
2371 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2372 | | void SharedDtor(); |
2373 | | void SetCachedSize(int size) const final; |
2374 | | void InternalSwap(EepromDeviceConfig* other); |
2375 | | |
2376 | | private: |
2377 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2378 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2379 | 0 | return "safepower_agent_config.EepromDeviceConfig"; |
2380 | 0 | } |
2381 | | protected: |
2382 | | explicit EepromDeviceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2383 | | bool is_message_owned = false); |
2384 | | public: |
2385 | | |
2386 | | static const ClassData _class_data_; |
2387 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2388 | | |
2389 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2390 | | |
2391 | | // nested types ---------------------------------------------------- |
2392 | | |
2393 | | // accessors ------------------------------------------------------- |
2394 | | |
2395 | | enum : int { |
2396 | | kModelFieldNumber = 2, |
2397 | | kAddressFieldNumber = 1, |
2398 | | kSizeFieldNumber = 3, |
2399 | | }; |
2400 | | // optional string model = 2; |
2401 | | bool has_model() const; |
2402 | | private: |
2403 | | bool _internal_has_model() const; |
2404 | | public: |
2405 | | void clear_model(); |
2406 | | const std::string& model() const; |
2407 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
2408 | | void set_model(ArgT0&& arg0, ArgT... args); |
2409 | | std::string* mutable_model(); |
2410 | | PROTOBUF_NODISCARD std::string* release_model(); |
2411 | | void set_allocated_model(std::string* model); |
2412 | | private: |
2413 | | const std::string& _internal_model() const; |
2414 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_model(const std::string& value); |
2415 | | std::string* _internal_mutable_model(); |
2416 | | public: |
2417 | | |
2418 | | // optional int32 address = 1; |
2419 | | bool has_address() const; |
2420 | | private: |
2421 | | bool _internal_has_address() const; |
2422 | | public: |
2423 | | void clear_address(); |
2424 | | int32_t address() const; |
2425 | | void set_address(int32_t value); |
2426 | | private: |
2427 | | int32_t _internal_address() const; |
2428 | | void _internal_set_address(int32_t value); |
2429 | | public: |
2430 | | |
2431 | | // optional int32 size = 3; |
2432 | | bool has_size() const; |
2433 | | private: |
2434 | | bool _internal_has_size() const; |
2435 | | public: |
2436 | | void clear_size(); |
2437 | | int32_t size() const; |
2438 | | void set_size(int32_t value); |
2439 | | private: |
2440 | | int32_t _internal_size() const; |
2441 | | void _internal_set_size(int32_t value); |
2442 | | public: |
2443 | | |
2444 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.EepromDeviceConfig) |
2445 | | private: |
2446 | | class _Internal; |
2447 | | |
2448 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2449 | | typedef void InternalArenaConstructable_; |
2450 | | typedef void DestructorSkippable_; |
2451 | | struct Impl_ { |
2452 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2453 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2454 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_; |
2455 | | int32_t address_; |
2456 | | int32_t size_; |
2457 | | }; |
2458 | | union { Impl_ _impl_; }; |
2459 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
2460 | | }; |
2461 | | // ------------------------------------------------------------------- |
2462 | | |
2463 | | class GnicMonitorConfig final : |
2464 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.GnicMonitorConfig) */ { |
2465 | | public: |
2466 | 0 | inline GnicMonitorConfig() : GnicMonitorConfig(nullptr) {} |
2467 | | ~GnicMonitorConfig() override; |
2468 | | explicit PROTOBUF_CONSTEXPR GnicMonitorConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2469 | | |
2470 | | GnicMonitorConfig(const GnicMonitorConfig& from); |
2471 | | GnicMonitorConfig(GnicMonitorConfig&& from) noexcept |
2472 | 0 | : GnicMonitorConfig() { |
2473 | 0 | *this = ::std::move(from); |
2474 | 0 | } |
2475 | | |
2476 | 0 | inline GnicMonitorConfig& operator=(const GnicMonitorConfig& from) { |
2477 | 0 | CopyFrom(from); |
2478 | 0 | return *this; |
2479 | 0 | } |
2480 | 0 | inline GnicMonitorConfig& operator=(GnicMonitorConfig&& from) noexcept { |
2481 | 0 | if (this == &from) return *this; |
2482 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2483 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2484 | 0 | && GetOwningArena() != nullptr |
2485 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2486 | 0 | ) { |
2487 | 0 | InternalSwap(&from); |
2488 | 0 | } else { |
2489 | 0 | CopyFrom(from); |
2490 | 0 | } |
2491 | 0 | return *this; |
2492 | 0 | } |
2493 | | |
2494 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2495 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2496 | 0 | } |
2497 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2498 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2499 | 0 | } |
2500 | | |
2501 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2502 | 0 | return GetDescriptor(); |
2503 | 0 | } |
2504 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2505 | 0 | return default_instance().GetMetadata().descriptor; |
2506 | 0 | } |
2507 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2508 | 0 | return default_instance().GetMetadata().reflection; |
2509 | 0 | } |
2510 | 0 | static const GnicMonitorConfig& default_instance() { |
2511 | 0 | return *internal_default_instance(); |
2512 | 0 | } |
2513 | 0 | static inline const GnicMonitorConfig* internal_default_instance() { |
2514 | 0 | return reinterpret_cast<const GnicMonitorConfig*>( |
2515 | 0 | &_GnicMonitorConfig_default_instance_); |
2516 | 0 | } |
2517 | | static constexpr int kIndexInFileMessages = |
2518 | | 10; |
2519 | | |
2520 | 0 | friend void swap(GnicMonitorConfig& a, GnicMonitorConfig& b) { |
2521 | 0 | a.Swap(&b); |
2522 | 0 | } |
2523 | 0 | inline void Swap(GnicMonitorConfig* other) { |
2524 | 0 | if (other == this) return; |
2525 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2526 | 0 | if (GetOwningArena() != nullptr && |
2527 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2528 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2529 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2530 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2531 | 0 | InternalSwap(other); |
2532 | 0 | } else { |
2533 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2534 | 0 | } |
2535 | 0 | } |
2536 | 0 | void UnsafeArenaSwap(GnicMonitorConfig* other) { |
2537 | 0 | if (other == this) return; |
2538 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2539 | 0 | InternalSwap(other); |
2540 | 0 | } |
2541 | | |
2542 | | // implements Message ---------------------------------------------- |
2543 | | |
2544 | 0 | GnicMonitorConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2545 | 0 | return CreateMaybeMessage<GnicMonitorConfig>(arena); |
2546 | 0 | } |
2547 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2548 | | void CopyFrom(const GnicMonitorConfig& from); |
2549 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2550 | 0 | void MergeFrom( const GnicMonitorConfig& from) { |
2551 | 0 | GnicMonitorConfig::MergeImpl(*this, from); |
2552 | 0 | } |
2553 | | private: |
2554 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2555 | | public: |
2556 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2557 | | bool IsInitialized() const final; |
2558 | | |
2559 | | size_t ByteSizeLong() const final; |
2560 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2561 | | uint8_t* _InternalSerialize( |
2562 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2563 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2564 | | |
2565 | | private: |
2566 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2567 | | void SharedDtor(); |
2568 | | void SetCachedSize(int size) const final; |
2569 | | void InternalSwap(GnicMonitorConfig* other); |
2570 | | |
2571 | | private: |
2572 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2573 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2574 | 0 | return "safepower_agent_config.GnicMonitorConfig"; |
2575 | 0 | } |
2576 | | protected: |
2577 | | explicit GnicMonitorConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2578 | | bool is_message_owned = false); |
2579 | | public: |
2580 | | |
2581 | | static const ClassData _class_data_; |
2582 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2583 | | |
2584 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2585 | | |
2586 | | // nested types ---------------------------------------------------- |
2587 | | |
2588 | | // accessors ------------------------------------------------------- |
2589 | | |
2590 | | enum : int { |
2591 | | kI2CBusBlockListFieldNumber = 1, |
2592 | | kFruEepromFieldNumber = 2, |
2593 | | kEmulatedEepromFieldNumber = 5, |
2594 | | kMaxFruSizeFieldNumber = 6, |
2595 | | kCollectionIntervalMsFieldNumber = 3, |
2596 | | kErrorTimeoutMsFieldNumber = 4, |
2597 | | }; |
2598 | | // repeated int32 i2c_bus_block_list = 1; |
2599 | | int i2c_bus_block_list_size() const; |
2600 | | private: |
2601 | | int _internal_i2c_bus_block_list_size() const; |
2602 | | public: |
2603 | | void clear_i2c_bus_block_list(); |
2604 | | private: |
2605 | | int32_t _internal_i2c_bus_block_list(int index) const; |
2606 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
2607 | | _internal_i2c_bus_block_list() const; |
2608 | | void _internal_add_i2c_bus_block_list(int32_t value); |
2609 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
2610 | | _internal_mutable_i2c_bus_block_list(); |
2611 | | public: |
2612 | | int32_t i2c_bus_block_list(int index) const; |
2613 | | void set_i2c_bus_block_list(int index, int32_t value); |
2614 | | void add_i2c_bus_block_list(int32_t value); |
2615 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
2616 | | i2c_bus_block_list() const; |
2617 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
2618 | | mutable_i2c_bus_block_list(); |
2619 | | |
2620 | | // optional .safepower_agent_config.EepromDeviceConfig fru_eeprom = 2; |
2621 | | bool has_fru_eeprom() const; |
2622 | | private: |
2623 | | bool _internal_has_fru_eeprom() const; |
2624 | | public: |
2625 | | void clear_fru_eeprom(); |
2626 | | const ::safepower_agent_config::EepromDeviceConfig& fru_eeprom() const; |
2627 | | PROTOBUF_NODISCARD ::safepower_agent_config::EepromDeviceConfig* release_fru_eeprom(); |
2628 | | ::safepower_agent_config::EepromDeviceConfig* mutable_fru_eeprom(); |
2629 | | void set_allocated_fru_eeprom(::safepower_agent_config::EepromDeviceConfig* fru_eeprom); |
2630 | | private: |
2631 | | const ::safepower_agent_config::EepromDeviceConfig& _internal_fru_eeprom() const; |
2632 | | ::safepower_agent_config::EepromDeviceConfig* _internal_mutable_fru_eeprom(); |
2633 | | public: |
2634 | | void unsafe_arena_set_allocated_fru_eeprom( |
2635 | | ::safepower_agent_config::EepromDeviceConfig* fru_eeprom); |
2636 | | ::safepower_agent_config::EepromDeviceConfig* unsafe_arena_release_fru_eeprom(); |
2637 | | |
2638 | | // optional .safepower_agent_config.EepromDeviceConfig emulated_eeprom = 5; |
2639 | | bool has_emulated_eeprom() const; |
2640 | | private: |
2641 | | bool _internal_has_emulated_eeprom() const; |
2642 | | public: |
2643 | | void clear_emulated_eeprom(); |
2644 | | const ::safepower_agent_config::EepromDeviceConfig& emulated_eeprom() const; |
2645 | | PROTOBUF_NODISCARD ::safepower_agent_config::EepromDeviceConfig* release_emulated_eeprom(); |
2646 | | ::safepower_agent_config::EepromDeviceConfig* mutable_emulated_eeprom(); |
2647 | | void set_allocated_emulated_eeprom(::safepower_agent_config::EepromDeviceConfig* emulated_eeprom); |
2648 | | private: |
2649 | | const ::safepower_agent_config::EepromDeviceConfig& _internal_emulated_eeprom() const; |
2650 | | ::safepower_agent_config::EepromDeviceConfig* _internal_mutable_emulated_eeprom(); |
2651 | | public: |
2652 | | void unsafe_arena_set_allocated_emulated_eeprom( |
2653 | | ::safepower_agent_config::EepromDeviceConfig* emulated_eeprom); |
2654 | | ::safepower_agent_config::EepromDeviceConfig* unsafe_arena_release_emulated_eeprom(); |
2655 | | |
2656 | | // optional int32 max_fru_size = 6 [default = 8192]; |
2657 | | bool has_max_fru_size() const; |
2658 | | private: |
2659 | | bool _internal_has_max_fru_size() const; |
2660 | | public: |
2661 | | void clear_max_fru_size(); |
2662 | | int32_t max_fru_size() const; |
2663 | | void set_max_fru_size(int32_t value); |
2664 | | private: |
2665 | | int32_t _internal_max_fru_size() const; |
2666 | | void _internal_set_max_fru_size(int32_t value); |
2667 | | public: |
2668 | | |
2669 | | // optional int32 collection_interval_ms = 3 [default = 10000]; |
2670 | | bool has_collection_interval_ms() const; |
2671 | | private: |
2672 | | bool _internal_has_collection_interval_ms() const; |
2673 | | public: |
2674 | | void clear_collection_interval_ms(); |
2675 | | int32_t collection_interval_ms() const; |
2676 | | void set_collection_interval_ms(int32_t value); |
2677 | | private: |
2678 | | int32_t _internal_collection_interval_ms() const; |
2679 | | void _internal_set_collection_interval_ms(int32_t value); |
2680 | | public: |
2681 | | |
2682 | | // optional int32 error_timeout_ms = 4 [default = 60000]; |
2683 | | bool has_error_timeout_ms() const; |
2684 | | private: |
2685 | | bool _internal_has_error_timeout_ms() const; |
2686 | | public: |
2687 | | void clear_error_timeout_ms(); |
2688 | | int32_t error_timeout_ms() const; |
2689 | | void set_error_timeout_ms(int32_t value); |
2690 | | private: |
2691 | | int32_t _internal_error_timeout_ms() const; |
2692 | | void _internal_set_error_timeout_ms(int32_t value); |
2693 | | public: |
2694 | | |
2695 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.GnicMonitorConfig) |
2696 | | private: |
2697 | | class _Internal; |
2698 | | |
2699 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2700 | | typedef void InternalArenaConstructable_; |
2701 | | typedef void DestructorSkippable_; |
2702 | | struct Impl_ { |
2703 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2704 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2705 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > i2c_bus_block_list_; |
2706 | | ::safepower_agent_config::EepromDeviceConfig* fru_eeprom_; |
2707 | | ::safepower_agent_config::EepromDeviceConfig* emulated_eeprom_; |
2708 | | int32_t max_fru_size_; |
2709 | | int32_t collection_interval_ms_; |
2710 | | int32_t error_timeout_ms_; |
2711 | | }; |
2712 | | union { Impl_ _impl_; }; |
2713 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
2714 | | }; |
2715 | | // ------------------------------------------------------------------- |
2716 | | |
2717 | | class NodeOsConfig final : |
2718 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.NodeOsConfig) */ { |
2719 | | public: |
2720 | 0 | inline NodeOsConfig() : NodeOsConfig(nullptr) {} |
2721 | | ~NodeOsConfig() override; |
2722 | | explicit PROTOBUF_CONSTEXPR NodeOsConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2723 | | |
2724 | | NodeOsConfig(const NodeOsConfig& from); |
2725 | | NodeOsConfig(NodeOsConfig&& from) noexcept |
2726 | 0 | : NodeOsConfig() { |
2727 | 0 | *this = ::std::move(from); |
2728 | 0 | } |
2729 | | |
2730 | 0 | inline NodeOsConfig& operator=(const NodeOsConfig& from) { |
2731 | 0 | CopyFrom(from); |
2732 | 0 | return *this; |
2733 | 0 | } |
2734 | 0 | inline NodeOsConfig& operator=(NodeOsConfig&& from) noexcept { |
2735 | 0 | if (this == &from) return *this; |
2736 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2737 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2738 | 0 | && GetOwningArena() != nullptr |
2739 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2740 | 0 | ) { |
2741 | 0 | InternalSwap(&from); |
2742 | 0 | } else { |
2743 | 0 | CopyFrom(from); |
2744 | 0 | } |
2745 | 0 | return *this; |
2746 | 0 | } |
2747 | | |
2748 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2749 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2750 | 0 | } |
2751 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2752 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2753 | 0 | } |
2754 | | |
2755 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2756 | 0 | return GetDescriptor(); |
2757 | 0 | } |
2758 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2759 | 0 | return default_instance().GetMetadata().descriptor; |
2760 | 0 | } |
2761 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2762 | 0 | return default_instance().GetMetadata().reflection; |
2763 | 0 | } |
2764 | 0 | static const NodeOsConfig& default_instance() { |
2765 | 0 | return *internal_default_instance(); |
2766 | 0 | } |
2767 | 0 | static inline const NodeOsConfig* internal_default_instance() { |
2768 | 0 | return reinterpret_cast<const NodeOsConfig*>( |
2769 | 0 | &_NodeOsConfig_default_instance_); |
2770 | 0 | } |
2771 | | static constexpr int kIndexInFileMessages = |
2772 | | 11; |
2773 | | |
2774 | 0 | friend void swap(NodeOsConfig& a, NodeOsConfig& b) { |
2775 | 0 | a.Swap(&b); |
2776 | 0 | } |
2777 | 0 | inline void Swap(NodeOsConfig* other) { |
2778 | 0 | if (other == this) return; |
2779 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2780 | 0 | if (GetOwningArena() != nullptr && |
2781 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2782 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2783 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2784 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2785 | 0 | InternalSwap(other); |
2786 | 0 | } else { |
2787 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2788 | 0 | } |
2789 | 0 | } |
2790 | 0 | void UnsafeArenaSwap(NodeOsConfig* other) { |
2791 | 0 | if (other == this) return; |
2792 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2793 | 0 | InternalSwap(other); |
2794 | 0 | } |
2795 | | |
2796 | | // implements Message ---------------------------------------------- |
2797 | | |
2798 | 0 | NodeOsConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2799 | 0 | return CreateMaybeMessage<NodeOsConfig>(arena); |
2800 | 0 | } |
2801 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2802 | | void CopyFrom(const NodeOsConfig& from); |
2803 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2804 | 0 | void MergeFrom( const NodeOsConfig& from) { |
2805 | 0 | NodeOsConfig::MergeImpl(*this, from); |
2806 | 0 | } |
2807 | | private: |
2808 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2809 | | public: |
2810 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2811 | | bool IsInitialized() const final; |
2812 | | |
2813 | | size_t ByteSizeLong() const final; |
2814 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2815 | | uint8_t* _InternalSerialize( |
2816 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2817 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2818 | | |
2819 | | private: |
2820 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2821 | | void SharedDtor(); |
2822 | | void SetCachedSize(int size) const final; |
2823 | | void InternalSwap(NodeOsConfig* other); |
2824 | | |
2825 | | private: |
2826 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2827 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2828 | 0 | return "safepower_agent_config.NodeOsConfig"; |
2829 | 0 | } |
2830 | | protected: |
2831 | | explicit NodeOsConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2832 | | bool is_message_owned = false); |
2833 | | public: |
2834 | | |
2835 | | static const ClassData _class_data_; |
2836 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2837 | | |
2838 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2839 | | |
2840 | | // nested types ---------------------------------------------------- |
2841 | | |
2842 | | // accessors ------------------------------------------------------- |
2843 | | |
2844 | | enum : int { |
2845 | | kBootCountPathFieldNumber = 1, |
2846 | | kShutdownDisruptionTimeoutSecondsFieldNumber = 2, |
2847 | | }; |
2848 | | // optional string boot_count_path = 1 [default = "/etc/bootcount"]; |
2849 | | bool has_boot_count_path() const; |
2850 | | private: |
2851 | | bool _internal_has_boot_count_path() const; |
2852 | | public: |
2853 | | void clear_boot_count_path(); |
2854 | | const std::string& boot_count_path() const; |
2855 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
2856 | | void set_boot_count_path(ArgT0&& arg0, ArgT... args); |
2857 | | std::string* mutable_boot_count_path(); |
2858 | | PROTOBUF_NODISCARD std::string* release_boot_count_path(); |
2859 | | void set_allocated_boot_count_path(std::string* boot_count_path); |
2860 | | private: |
2861 | | const std::string& _internal_boot_count_path() const; |
2862 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_boot_count_path(const std::string& value); |
2863 | | std::string* _internal_mutable_boot_count_path(); |
2864 | | public: |
2865 | | |
2866 | | // optional int32 shutdown_disruption_timeout_seconds = 2 [default = 900]; |
2867 | | bool has_shutdown_disruption_timeout_seconds() const; |
2868 | | private: |
2869 | | bool _internal_has_shutdown_disruption_timeout_seconds() const; |
2870 | | public: |
2871 | | void clear_shutdown_disruption_timeout_seconds(); |
2872 | | int32_t shutdown_disruption_timeout_seconds() const; |
2873 | | void set_shutdown_disruption_timeout_seconds(int32_t value); |
2874 | | private: |
2875 | | int32_t _internal_shutdown_disruption_timeout_seconds() const; |
2876 | | void _internal_set_shutdown_disruption_timeout_seconds(int32_t value); |
2877 | | public: |
2878 | | |
2879 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.NodeOsConfig) |
2880 | | private: |
2881 | | class _Internal; |
2882 | | |
2883 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2884 | | typedef void InternalArenaConstructable_; |
2885 | | typedef void DestructorSkippable_; |
2886 | | struct Impl_ { |
2887 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2888 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2889 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_boot_count_path_; |
2890 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr boot_count_path_; |
2891 | | int32_t shutdown_disruption_timeout_seconds_; |
2892 | | }; |
2893 | | union { Impl_ _impl_; }; |
2894 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
2895 | | }; |
2896 | | // ------------------------------------------------------------------- |
2897 | | |
2898 | | class PersistentStorageConfig final : |
2899 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.PersistentStorageConfig) */ { |
2900 | | public: |
2901 | 0 | inline PersistentStorageConfig() : PersistentStorageConfig(nullptr) {} |
2902 | | ~PersistentStorageConfig() override; |
2903 | | explicit PROTOBUF_CONSTEXPR PersistentStorageConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2904 | | |
2905 | | PersistentStorageConfig(const PersistentStorageConfig& from); |
2906 | | PersistentStorageConfig(PersistentStorageConfig&& from) noexcept |
2907 | 0 | : PersistentStorageConfig() { |
2908 | 0 | *this = ::std::move(from); |
2909 | 0 | } |
2910 | | |
2911 | 0 | inline PersistentStorageConfig& operator=(const PersistentStorageConfig& from) { |
2912 | 0 | CopyFrom(from); |
2913 | 0 | return *this; |
2914 | 0 | } |
2915 | 0 | inline PersistentStorageConfig& operator=(PersistentStorageConfig&& from) noexcept { |
2916 | 0 | if (this == &from) return *this; |
2917 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2918 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2919 | 0 | && GetOwningArena() != nullptr |
2920 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2921 | 0 | ) { |
2922 | 0 | InternalSwap(&from); |
2923 | 0 | } else { |
2924 | 0 | CopyFrom(from); |
2925 | 0 | } |
2926 | 0 | return *this; |
2927 | 0 | } |
2928 | | |
2929 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2930 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2931 | 0 | } |
2932 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2933 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2934 | 0 | } |
2935 | | |
2936 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2937 | 0 | return GetDescriptor(); |
2938 | 0 | } |
2939 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2940 | 0 | return default_instance().GetMetadata().descriptor; |
2941 | 0 | } |
2942 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2943 | 0 | return default_instance().GetMetadata().reflection; |
2944 | 0 | } |
2945 | 0 | static const PersistentStorageConfig& default_instance() { |
2946 | 0 | return *internal_default_instance(); |
2947 | 0 | } |
2948 | 0 | static inline const PersistentStorageConfig* internal_default_instance() { |
2949 | 0 | return reinterpret_cast<const PersistentStorageConfig*>( |
2950 | 0 | &_PersistentStorageConfig_default_instance_); |
2951 | 0 | } |
2952 | | static constexpr int kIndexInFileMessages = |
2953 | | 12; |
2954 | | |
2955 | 0 | friend void swap(PersistentStorageConfig& a, PersistentStorageConfig& b) { |
2956 | 0 | a.Swap(&b); |
2957 | 0 | } |
2958 | 0 | inline void Swap(PersistentStorageConfig* other) { |
2959 | 0 | if (other == this) return; |
2960 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2961 | 0 | if (GetOwningArena() != nullptr && |
2962 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2963 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2964 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2965 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2966 | 0 | InternalSwap(other); |
2967 | 0 | } else { |
2968 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2969 | 0 | } |
2970 | 0 | } |
2971 | 0 | void UnsafeArenaSwap(PersistentStorageConfig* other) { |
2972 | 0 | if (other == this) return; |
2973 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2974 | 0 | InternalSwap(other); |
2975 | 0 | } |
2976 | | |
2977 | | // implements Message ---------------------------------------------- |
2978 | | |
2979 | 0 | PersistentStorageConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2980 | 0 | return CreateMaybeMessage<PersistentStorageConfig>(arena); |
2981 | 0 | } |
2982 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2983 | | void CopyFrom(const PersistentStorageConfig& from); |
2984 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2985 | 0 | void MergeFrom( const PersistentStorageConfig& from) { |
2986 | 0 | PersistentStorageConfig::MergeImpl(*this, from); |
2987 | 0 | } |
2988 | | private: |
2989 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2990 | | public: |
2991 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2992 | | bool IsInitialized() const final; |
2993 | | |
2994 | | size_t ByteSizeLong() const final; |
2995 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2996 | | uint8_t* _InternalSerialize( |
2997 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2998 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2999 | | |
3000 | | private: |
3001 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3002 | | void SharedDtor(); |
3003 | | void SetCachedSize(int size) const final; |
3004 | | void InternalSwap(PersistentStorageConfig* other); |
3005 | | |
3006 | | private: |
3007 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3008 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3009 | 0 | return "safepower_agent_config.PersistentStorageConfig"; |
3010 | 0 | } |
3011 | | protected: |
3012 | | explicit PersistentStorageConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3013 | | bool is_message_owned = false); |
3014 | | public: |
3015 | | |
3016 | | static const ClassData _class_data_; |
3017 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3018 | | |
3019 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3020 | | |
3021 | | // nested types ---------------------------------------------------- |
3022 | | |
3023 | | // accessors ------------------------------------------------------- |
3024 | | |
3025 | | enum : int { |
3026 | | kDirPathFieldNumber = 1, |
3027 | | kMaxFileSizeFieldNumber = 2, |
3028 | | kProtoKeepNumberFieldNumber = 3, |
3029 | | }; |
3030 | | // optional string dir_path = 1; |
3031 | | bool has_dir_path() const; |
3032 | | private: |
3033 | | bool _internal_has_dir_path() const; |
3034 | | public: |
3035 | | void clear_dir_path(); |
3036 | | const std::string& dir_path() const; |
3037 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3038 | | void set_dir_path(ArgT0&& arg0, ArgT... args); |
3039 | | std::string* mutable_dir_path(); |
3040 | | PROTOBUF_NODISCARD std::string* release_dir_path(); |
3041 | | void set_allocated_dir_path(std::string* dir_path); |
3042 | | private: |
3043 | | const std::string& _internal_dir_path() const; |
3044 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_dir_path(const std::string& value); |
3045 | | std::string* _internal_mutable_dir_path(); |
3046 | | public: |
3047 | | |
3048 | | // optional int64 max_file_size = 2; |
3049 | | bool has_max_file_size() const; |
3050 | | private: |
3051 | | bool _internal_has_max_file_size() const; |
3052 | | public: |
3053 | | void clear_max_file_size(); |
3054 | | int64_t max_file_size() const; |
3055 | | void set_max_file_size(int64_t value); |
3056 | | private: |
3057 | | int64_t _internal_max_file_size() const; |
3058 | | void _internal_set_max_file_size(int64_t value); |
3059 | | public: |
3060 | | |
3061 | | // optional int64 proto_keep_number = 3; |
3062 | | bool has_proto_keep_number() const; |
3063 | | private: |
3064 | | bool _internal_has_proto_keep_number() const; |
3065 | | public: |
3066 | | void clear_proto_keep_number(); |
3067 | | int64_t proto_keep_number() const; |
3068 | | void set_proto_keep_number(int64_t value); |
3069 | | private: |
3070 | | int64_t _internal_proto_keep_number() const; |
3071 | | void _internal_set_proto_keep_number(int64_t value); |
3072 | | public: |
3073 | | |
3074 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.PersistentStorageConfig) |
3075 | | private: |
3076 | | class _Internal; |
3077 | | |
3078 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3079 | | typedef void InternalArenaConstructable_; |
3080 | | typedef void DestructorSkippable_; |
3081 | | struct Impl_ { |
3082 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3083 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3084 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dir_path_; |
3085 | | int64_t max_file_size_; |
3086 | | int64_t proto_keep_number_; |
3087 | | }; |
3088 | | union { Impl_ _impl_; }; |
3089 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
3090 | | }; |
3091 | | // ------------------------------------------------------------------- |
3092 | | |
3093 | | class StateMonitorConfig final : |
3094 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.StateMonitorConfig) */ { |
3095 | | public: |
3096 | 0 | inline StateMonitorConfig() : StateMonitorConfig(nullptr) {} |
3097 | | ~StateMonitorConfig() override; |
3098 | | explicit PROTOBUF_CONSTEXPR StateMonitorConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3099 | | |
3100 | | StateMonitorConfig(const StateMonitorConfig& from); |
3101 | | StateMonitorConfig(StateMonitorConfig&& from) noexcept |
3102 | 0 | : StateMonitorConfig() { |
3103 | 0 | *this = ::std::move(from); |
3104 | 0 | } |
3105 | | |
3106 | 0 | inline StateMonitorConfig& operator=(const StateMonitorConfig& from) { |
3107 | 0 | CopyFrom(from); |
3108 | 0 | return *this; |
3109 | 0 | } |
3110 | 0 | inline StateMonitorConfig& operator=(StateMonitorConfig&& from) noexcept { |
3111 | 0 | if (this == &from) return *this; |
3112 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3113 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3114 | 0 | && GetOwningArena() != nullptr |
3115 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3116 | 0 | ) { |
3117 | 0 | InternalSwap(&from); |
3118 | 0 | } else { |
3119 | 0 | CopyFrom(from); |
3120 | 0 | } |
3121 | 0 | return *this; |
3122 | 0 | } |
3123 | | |
3124 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3125 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3126 | 0 | } |
3127 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3128 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3129 | 0 | } |
3130 | | |
3131 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3132 | 0 | return GetDescriptor(); |
3133 | 0 | } |
3134 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3135 | 0 | return default_instance().GetMetadata().descriptor; |
3136 | 0 | } |
3137 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3138 | 0 | return default_instance().GetMetadata().reflection; |
3139 | 0 | } |
3140 | 0 | static const StateMonitorConfig& default_instance() { |
3141 | 0 | return *internal_default_instance(); |
3142 | 0 | } |
3143 | 0 | static inline const StateMonitorConfig* internal_default_instance() { |
3144 | 0 | return reinterpret_cast<const StateMonitorConfig*>( |
3145 | 0 | &_StateMonitorConfig_default_instance_); |
3146 | 0 | } |
3147 | | static constexpr int kIndexInFileMessages = |
3148 | | 13; |
3149 | | |
3150 | 0 | friend void swap(StateMonitorConfig& a, StateMonitorConfig& b) { |
3151 | 0 | a.Swap(&b); |
3152 | 0 | } |
3153 | 0 | inline void Swap(StateMonitorConfig* other) { |
3154 | 0 | if (other == this) return; |
3155 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3156 | 0 | if (GetOwningArena() != nullptr && |
3157 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3158 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3159 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3160 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3161 | 0 | InternalSwap(other); |
3162 | 0 | } else { |
3163 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3164 | 0 | } |
3165 | 0 | } |
3166 | 0 | void UnsafeArenaSwap(StateMonitorConfig* other) { |
3167 | 0 | if (other == this) return; |
3168 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3169 | 0 | InternalSwap(other); |
3170 | 0 | } |
3171 | | |
3172 | | // implements Message ---------------------------------------------- |
3173 | | |
3174 | 0 | StateMonitorConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3175 | 0 | return CreateMaybeMessage<StateMonitorConfig>(arena); |
3176 | 0 | } |
3177 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3178 | | void CopyFrom(const StateMonitorConfig& from); |
3179 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3180 | 0 | void MergeFrom( const StateMonitorConfig& from) { |
3181 | 0 | StateMonitorConfig::MergeImpl(*this, from); |
3182 | 0 | } |
3183 | | private: |
3184 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3185 | | public: |
3186 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3187 | | bool IsInitialized() const final; |
3188 | | |
3189 | | size_t ByteSizeLong() const final; |
3190 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3191 | | uint8_t* _InternalSerialize( |
3192 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3193 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3194 | | |
3195 | | private: |
3196 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3197 | | void SharedDtor(); |
3198 | | void SetCachedSize(int size) const final; |
3199 | | void InternalSwap(StateMonitorConfig* other); |
3200 | | |
3201 | | private: |
3202 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3203 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3204 | 0 | return "safepower_agent_config.StateMonitorConfig"; |
3205 | 0 | } |
3206 | | protected: |
3207 | | explicit StateMonitorConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3208 | | bool is_message_owned = false); |
3209 | | public: |
3210 | | |
3211 | | static const ClassData _class_data_; |
3212 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3213 | | |
3214 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3215 | | |
3216 | | // nested types ---------------------------------------------------- |
3217 | | |
3218 | | // accessors ------------------------------------------------------- |
3219 | | |
3220 | | enum : int { |
3221 | | kStateNameFieldNumber = 1, |
3222 | | kStateGatheringInfoFieldNumber = 2, |
3223 | | kSystemComponentFieldNumber = 3, |
3224 | | }; |
3225 | | // optional string state_name = 1; |
3226 | | bool has_state_name() const; |
3227 | | private: |
3228 | | bool _internal_has_state_name() const; |
3229 | | public: |
3230 | | void clear_state_name(); |
3231 | | const std::string& state_name() const; |
3232 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3233 | | void set_state_name(ArgT0&& arg0, ArgT... args); |
3234 | | std::string* mutable_state_name(); |
3235 | | PROTOBUF_NODISCARD std::string* release_state_name(); |
3236 | | void set_allocated_state_name(std::string* state_name); |
3237 | | private: |
3238 | | const std::string& _internal_state_name() const; |
3239 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_state_name(const std::string& value); |
3240 | | std::string* _internal_mutable_state_name(); |
3241 | | public: |
3242 | | |
3243 | | // optional .safepower_agent_config.StateGatheringInfo state_gathering_info = 2; |
3244 | | bool has_state_gathering_info() const; |
3245 | | private: |
3246 | | bool _internal_has_state_gathering_info() const; |
3247 | | public: |
3248 | | void clear_state_gathering_info(); |
3249 | | const ::safepower_agent_config::StateGatheringInfo& state_gathering_info() const; |
3250 | | PROTOBUF_NODISCARD ::safepower_agent_config::StateGatheringInfo* release_state_gathering_info(); |
3251 | | ::safepower_agent_config::StateGatheringInfo* mutable_state_gathering_info(); |
3252 | | void set_allocated_state_gathering_info(::safepower_agent_config::StateGatheringInfo* state_gathering_info); |
3253 | | private: |
3254 | | const ::safepower_agent_config::StateGatheringInfo& _internal_state_gathering_info() const; |
3255 | | ::safepower_agent_config::StateGatheringInfo* _internal_mutable_state_gathering_info(); |
3256 | | public: |
3257 | | void unsafe_arena_set_allocated_state_gathering_info( |
3258 | | ::safepower_agent_config::StateGatheringInfo* state_gathering_info); |
3259 | | ::safepower_agent_config::StateGatheringInfo* unsafe_arena_release_state_gathering_info(); |
3260 | | |
3261 | | // optional .safepower_agent_proto.SystemComponent system_component = 3; |
3262 | | bool has_system_component() const; |
3263 | | private: |
3264 | | bool _internal_has_system_component() const; |
3265 | | public: |
3266 | | void clear_system_component(); |
3267 | | const ::safepower_agent_proto::SystemComponent& system_component() const; |
3268 | | PROTOBUF_NODISCARD ::safepower_agent_proto::SystemComponent* release_system_component(); |
3269 | | ::safepower_agent_proto::SystemComponent* mutable_system_component(); |
3270 | | void set_allocated_system_component(::safepower_agent_proto::SystemComponent* system_component); |
3271 | | private: |
3272 | | const ::safepower_agent_proto::SystemComponent& _internal_system_component() const; |
3273 | | ::safepower_agent_proto::SystemComponent* _internal_mutable_system_component(); |
3274 | | public: |
3275 | | void unsafe_arena_set_allocated_system_component( |
3276 | | ::safepower_agent_proto::SystemComponent* system_component); |
3277 | | ::safepower_agent_proto::SystemComponent* unsafe_arena_release_system_component(); |
3278 | | |
3279 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.StateMonitorConfig) |
3280 | | private: |
3281 | | class _Internal; |
3282 | | |
3283 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3284 | | typedef void InternalArenaConstructable_; |
3285 | | typedef void DestructorSkippable_; |
3286 | | struct Impl_ { |
3287 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3288 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3289 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_name_; |
3290 | | ::safepower_agent_config::StateGatheringInfo* state_gathering_info_; |
3291 | | ::safepower_agent_proto::SystemComponent* system_component_; |
3292 | | }; |
3293 | | union { Impl_ _impl_; }; |
3294 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
3295 | | }; |
3296 | | // ------------------------------------------------------------------- |
3297 | | |
3298 | | class StateGatheringInfo final : |
3299 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.StateGatheringInfo) */ { |
3300 | | public: |
3301 | 0 | inline StateGatheringInfo() : StateGatheringInfo(nullptr) {} |
3302 | | ~StateGatheringInfo() override; |
3303 | | explicit PROTOBUF_CONSTEXPR StateGatheringInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3304 | | |
3305 | | StateGatheringInfo(const StateGatheringInfo& from); |
3306 | | StateGatheringInfo(StateGatheringInfo&& from) noexcept |
3307 | 0 | : StateGatheringInfo() { |
3308 | 0 | *this = ::std::move(from); |
3309 | 0 | } |
3310 | | |
3311 | 0 | inline StateGatheringInfo& operator=(const StateGatheringInfo& from) { |
3312 | 0 | CopyFrom(from); |
3313 | 0 | return *this; |
3314 | 0 | } |
3315 | 0 | inline StateGatheringInfo& operator=(StateGatheringInfo&& from) noexcept { |
3316 | 0 | if (this == &from) return *this; |
3317 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3318 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3319 | 0 | && GetOwningArena() != nullptr |
3320 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3321 | 0 | ) { |
3322 | 0 | InternalSwap(&from); |
3323 | 0 | } else { |
3324 | 0 | CopyFrom(from); |
3325 | 0 | } |
3326 | 0 | return *this; |
3327 | 0 | } |
3328 | | |
3329 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3330 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3331 | 0 | } |
3332 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3333 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3334 | 0 | } |
3335 | | |
3336 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3337 | 0 | return GetDescriptor(); |
3338 | 0 | } |
3339 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3340 | 0 | return default_instance().GetMetadata().descriptor; |
3341 | 0 | } |
3342 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3343 | 0 | return default_instance().GetMetadata().reflection; |
3344 | 0 | } |
3345 | 0 | static const StateGatheringInfo& default_instance() { |
3346 | 0 | return *internal_default_instance(); |
3347 | 0 | } |
3348 | | enum InfoCase { |
3349 | | kRedfish = 1, |
3350 | | kDbus = 2, |
3351 | | INFO_NOT_SET = 0, |
3352 | | }; |
3353 | | |
3354 | 0 | static inline const StateGatheringInfo* internal_default_instance() { |
3355 | 0 | return reinterpret_cast<const StateGatheringInfo*>( |
3356 | 0 | &_StateGatheringInfo_default_instance_); |
3357 | 0 | } |
3358 | | static constexpr int kIndexInFileMessages = |
3359 | | 14; |
3360 | | |
3361 | 0 | friend void swap(StateGatheringInfo& a, StateGatheringInfo& b) { |
3362 | 0 | a.Swap(&b); |
3363 | 0 | } |
3364 | 0 | inline void Swap(StateGatheringInfo* other) { |
3365 | 0 | if (other == this) return; |
3366 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3367 | 0 | if (GetOwningArena() != nullptr && |
3368 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3369 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3370 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3371 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3372 | 0 | InternalSwap(other); |
3373 | 0 | } else { |
3374 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3375 | 0 | } |
3376 | 0 | } |
3377 | 0 | void UnsafeArenaSwap(StateGatheringInfo* other) { |
3378 | 0 | if (other == this) return; |
3379 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3380 | 0 | InternalSwap(other); |
3381 | 0 | } |
3382 | | |
3383 | | // implements Message ---------------------------------------------- |
3384 | | |
3385 | 0 | StateGatheringInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3386 | 0 | return CreateMaybeMessage<StateGatheringInfo>(arena); |
3387 | 0 | } |
3388 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3389 | | void CopyFrom(const StateGatheringInfo& from); |
3390 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3391 | 0 | void MergeFrom( const StateGatheringInfo& from) { |
3392 | 0 | StateGatheringInfo::MergeImpl(*this, from); |
3393 | 0 | } |
3394 | | private: |
3395 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3396 | | public: |
3397 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3398 | | bool IsInitialized() const final; |
3399 | | |
3400 | | size_t ByteSizeLong() const final; |
3401 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3402 | | uint8_t* _InternalSerialize( |
3403 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3404 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3405 | | |
3406 | | private: |
3407 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3408 | | void SharedDtor(); |
3409 | | void SetCachedSize(int size) const final; |
3410 | | void InternalSwap(StateGatheringInfo* other); |
3411 | | |
3412 | | private: |
3413 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3414 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3415 | 0 | return "safepower_agent_config.StateGatheringInfo"; |
3416 | 0 | } |
3417 | | protected: |
3418 | | explicit StateGatheringInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3419 | | bool is_message_owned = false); |
3420 | | public: |
3421 | | |
3422 | | static const ClassData _class_data_; |
3423 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3424 | | |
3425 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3426 | | |
3427 | | // nested types ---------------------------------------------------- |
3428 | | |
3429 | | // accessors ------------------------------------------------------- |
3430 | | |
3431 | | enum : int { |
3432 | | kPrototypeFieldNumber = 4, |
3433 | | kCollectionIntervalMsFieldNumber = 3, |
3434 | | kRedfishFieldNumber = 1, |
3435 | | kDbusFieldNumber = 2, |
3436 | | }; |
3437 | | // optional .safepower_agent_proto.NodeState prototype = 4; |
3438 | | bool has_prototype() const; |
3439 | | private: |
3440 | | bool _internal_has_prototype() const; |
3441 | | public: |
3442 | | void clear_prototype(); |
3443 | | const ::safepower_agent_proto::NodeState& prototype() const; |
3444 | | PROTOBUF_NODISCARD ::safepower_agent_proto::NodeState* release_prototype(); |
3445 | | ::safepower_agent_proto::NodeState* mutable_prototype(); |
3446 | | void set_allocated_prototype(::safepower_agent_proto::NodeState* prototype); |
3447 | | private: |
3448 | | const ::safepower_agent_proto::NodeState& _internal_prototype() const; |
3449 | | ::safepower_agent_proto::NodeState* _internal_mutable_prototype(); |
3450 | | public: |
3451 | | void unsafe_arena_set_allocated_prototype( |
3452 | | ::safepower_agent_proto::NodeState* prototype); |
3453 | | ::safepower_agent_proto::NodeState* unsafe_arena_release_prototype(); |
3454 | | |
3455 | | // optional uint32 collection_interval_ms = 3; |
3456 | | bool has_collection_interval_ms() const; |
3457 | | private: |
3458 | | bool _internal_has_collection_interval_ms() const; |
3459 | | public: |
3460 | | void clear_collection_interval_ms(); |
3461 | | uint32_t collection_interval_ms() const; |
3462 | | void set_collection_interval_ms(uint32_t value); |
3463 | | private: |
3464 | | uint32_t _internal_collection_interval_ms() const; |
3465 | | void _internal_set_collection_interval_ms(uint32_t value); |
3466 | | public: |
3467 | | |
3468 | | // .safepower_agent_config.RedfishInfo redfish = 1; |
3469 | | bool has_redfish() const; |
3470 | | private: |
3471 | | bool _internal_has_redfish() const; |
3472 | | public: |
3473 | | void clear_redfish(); |
3474 | | const ::safepower_agent_config::RedfishInfo& redfish() const; |
3475 | | PROTOBUF_NODISCARD ::safepower_agent_config::RedfishInfo* release_redfish(); |
3476 | | ::safepower_agent_config::RedfishInfo* mutable_redfish(); |
3477 | | void set_allocated_redfish(::safepower_agent_config::RedfishInfo* redfish); |
3478 | | private: |
3479 | | const ::safepower_agent_config::RedfishInfo& _internal_redfish() const; |
3480 | | ::safepower_agent_config::RedfishInfo* _internal_mutable_redfish(); |
3481 | | public: |
3482 | | void unsafe_arena_set_allocated_redfish( |
3483 | | ::safepower_agent_config::RedfishInfo* redfish); |
3484 | | ::safepower_agent_config::RedfishInfo* unsafe_arena_release_redfish(); |
3485 | | |
3486 | | // .safepower_agent_config.DbusInfo dbus = 2; |
3487 | | bool has_dbus() const; |
3488 | | private: |
3489 | | bool _internal_has_dbus() const; |
3490 | | public: |
3491 | | void clear_dbus(); |
3492 | | const ::safepower_agent_config::DbusInfo& dbus() const; |
3493 | | PROTOBUF_NODISCARD ::safepower_agent_config::DbusInfo* release_dbus(); |
3494 | | ::safepower_agent_config::DbusInfo* mutable_dbus(); |
3495 | | void set_allocated_dbus(::safepower_agent_config::DbusInfo* dbus); |
3496 | | private: |
3497 | | const ::safepower_agent_config::DbusInfo& _internal_dbus() const; |
3498 | | ::safepower_agent_config::DbusInfo* _internal_mutable_dbus(); |
3499 | | public: |
3500 | | void unsafe_arena_set_allocated_dbus( |
3501 | | ::safepower_agent_config::DbusInfo* dbus); |
3502 | | ::safepower_agent_config::DbusInfo* unsafe_arena_release_dbus(); |
3503 | | |
3504 | | void clear_info(); |
3505 | | InfoCase info_case() const; |
3506 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.StateGatheringInfo) |
3507 | | private: |
3508 | | class _Internal; |
3509 | | void set_has_redfish(); |
3510 | | void set_has_dbus(); |
3511 | | |
3512 | | inline bool has_info() const; |
3513 | | inline void clear_has_info(); |
3514 | | |
3515 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3516 | | typedef void InternalArenaConstructable_; |
3517 | | typedef void DestructorSkippable_; |
3518 | | struct Impl_ { |
3519 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3520 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3521 | | ::safepower_agent_proto::NodeState* prototype_; |
3522 | | uint32_t collection_interval_ms_; |
3523 | | union InfoUnion { |
3524 | 0 | constexpr InfoUnion() : _constinit_{} {} |
3525 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
3526 | | ::safepower_agent_config::RedfishInfo* redfish_; |
3527 | | ::safepower_agent_config::DbusInfo* dbus_; |
3528 | | } info_; |
3529 | | uint32_t _oneof_case_[1]; |
3530 | | |
3531 | | }; |
3532 | | union { Impl_ _impl_; }; |
3533 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
3534 | | }; |
3535 | | // ------------------------------------------------------------------- |
3536 | | |
3537 | | class RedfishInfo final : |
3538 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.RedfishInfo) */ { |
3539 | | public: |
3540 | 0 | inline RedfishInfo() : RedfishInfo(nullptr) {} |
3541 | | ~RedfishInfo() override; |
3542 | | explicit PROTOBUF_CONSTEXPR RedfishInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3543 | | |
3544 | | RedfishInfo(const RedfishInfo& from); |
3545 | | RedfishInfo(RedfishInfo&& from) noexcept |
3546 | 0 | : RedfishInfo() { |
3547 | 0 | *this = ::std::move(from); |
3548 | 0 | } |
3549 | | |
3550 | 0 | inline RedfishInfo& operator=(const RedfishInfo& from) { |
3551 | 0 | CopyFrom(from); |
3552 | 0 | return *this; |
3553 | 0 | } |
3554 | 0 | inline RedfishInfo& operator=(RedfishInfo&& from) noexcept { |
3555 | 0 | if (this == &from) return *this; |
3556 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3557 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3558 | 0 | && GetOwningArena() != nullptr |
3559 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3560 | 0 | ) { |
3561 | 0 | InternalSwap(&from); |
3562 | 0 | } else { |
3563 | 0 | CopyFrom(from); |
3564 | 0 | } |
3565 | 0 | return *this; |
3566 | 0 | } |
3567 | | |
3568 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3569 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3570 | 0 | } |
3571 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3572 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3573 | 0 | } |
3574 | | |
3575 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3576 | 0 | return GetDescriptor(); |
3577 | 0 | } |
3578 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3579 | 0 | return default_instance().GetMetadata().descriptor; |
3580 | 0 | } |
3581 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3582 | 0 | return default_instance().GetMetadata().reflection; |
3583 | 0 | } |
3584 | 0 | static const RedfishInfo& default_instance() { |
3585 | 0 | return *internal_default_instance(); |
3586 | 0 | } |
3587 | 0 | static inline const RedfishInfo* internal_default_instance() { |
3588 | 0 | return reinterpret_cast<const RedfishInfo*>( |
3589 | 0 | &_RedfishInfo_default_instance_); |
3590 | 0 | } |
3591 | | static constexpr int kIndexInFileMessages = |
3592 | | 15; |
3593 | | |
3594 | 0 | friend void swap(RedfishInfo& a, RedfishInfo& b) { |
3595 | 0 | a.Swap(&b); |
3596 | 0 | } |
3597 | 0 | inline void Swap(RedfishInfo* other) { |
3598 | 0 | if (other == this) return; |
3599 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3600 | 0 | if (GetOwningArena() != nullptr && |
3601 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3602 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3603 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3604 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3605 | 0 | InternalSwap(other); |
3606 | 0 | } else { |
3607 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3608 | 0 | } |
3609 | 0 | } |
3610 | 0 | void UnsafeArenaSwap(RedfishInfo* other) { |
3611 | 0 | if (other == this) return; |
3612 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3613 | 0 | InternalSwap(other); |
3614 | 0 | } |
3615 | | |
3616 | | // implements Message ---------------------------------------------- |
3617 | | |
3618 | 0 | RedfishInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3619 | 0 | return CreateMaybeMessage<RedfishInfo>(arena); |
3620 | 0 | } |
3621 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3622 | | void CopyFrom(const RedfishInfo& from); |
3623 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3624 | 0 | void MergeFrom( const RedfishInfo& from) { |
3625 | 0 | RedfishInfo::MergeImpl(*this, from); |
3626 | 0 | } |
3627 | | private: |
3628 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3629 | | public: |
3630 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3631 | | bool IsInitialized() const final; |
3632 | | |
3633 | | size_t ByteSizeLong() const final; |
3634 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3635 | | uint8_t* _InternalSerialize( |
3636 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3637 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3638 | | |
3639 | | private: |
3640 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3641 | | void SharedDtor(); |
3642 | | void SetCachedSize(int size) const final; |
3643 | | void InternalSwap(RedfishInfo* other); |
3644 | | |
3645 | | private: |
3646 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3647 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3648 | 0 | return "safepower_agent_config.RedfishInfo"; |
3649 | 0 | } |
3650 | | protected: |
3651 | | explicit RedfishInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3652 | | bool is_message_owned = false); |
3653 | | public: |
3654 | | |
3655 | | static const ClassData _class_data_; |
3656 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3657 | | |
3658 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3659 | | |
3660 | | // nested types ---------------------------------------------------- |
3661 | | |
3662 | | // accessors ------------------------------------------------------- |
3663 | | |
3664 | | enum : int { |
3665 | | kUriFieldNumber = 1, |
3666 | | kJsonKeyFieldNumber = 2, |
3667 | | kIpFieldNumber = 3, |
3668 | | kPortFieldNumber = 4, |
3669 | | }; |
3670 | | // optional string uri = 1; |
3671 | | bool has_uri() const; |
3672 | | private: |
3673 | | bool _internal_has_uri() const; |
3674 | | public: |
3675 | | void clear_uri(); |
3676 | | const std::string& uri() const; |
3677 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3678 | | void set_uri(ArgT0&& arg0, ArgT... args); |
3679 | | std::string* mutable_uri(); |
3680 | | PROTOBUF_NODISCARD std::string* release_uri(); |
3681 | | void set_allocated_uri(std::string* uri); |
3682 | | private: |
3683 | | const std::string& _internal_uri() const; |
3684 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value); |
3685 | | std::string* _internal_mutable_uri(); |
3686 | | public: |
3687 | | |
3688 | | // optional string json_key = 2; |
3689 | | bool has_json_key() const; |
3690 | | private: |
3691 | | bool _internal_has_json_key() const; |
3692 | | public: |
3693 | | void clear_json_key(); |
3694 | | const std::string& json_key() const; |
3695 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3696 | | void set_json_key(ArgT0&& arg0, ArgT... args); |
3697 | | std::string* mutable_json_key(); |
3698 | | PROTOBUF_NODISCARD std::string* release_json_key(); |
3699 | | void set_allocated_json_key(std::string* json_key); |
3700 | | private: |
3701 | | const std::string& _internal_json_key() const; |
3702 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_key(const std::string& value); |
3703 | | std::string* _internal_mutable_json_key(); |
3704 | | public: |
3705 | | |
3706 | | // optional string ip = 3 [default = "127.0.0.1"]; |
3707 | | bool has_ip() const; |
3708 | | private: |
3709 | | bool _internal_has_ip() const; |
3710 | | public: |
3711 | | void clear_ip(); |
3712 | | const std::string& ip() const; |
3713 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3714 | | void set_ip(ArgT0&& arg0, ArgT... args); |
3715 | | std::string* mutable_ip(); |
3716 | | PROTOBUF_NODISCARD std::string* release_ip(); |
3717 | | void set_allocated_ip(std::string* ip); |
3718 | | private: |
3719 | | const std::string& _internal_ip() const; |
3720 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value); |
3721 | | std::string* _internal_mutable_ip(); |
3722 | | public: |
3723 | | |
3724 | | // optional int32 port = 4 [default = 80]; |
3725 | | bool has_port() const; |
3726 | | private: |
3727 | | bool _internal_has_port() const; |
3728 | | public: |
3729 | | void clear_port(); |
3730 | | int32_t port() const; |
3731 | | void set_port(int32_t value); |
3732 | | private: |
3733 | | int32_t _internal_port() const; |
3734 | | void _internal_set_port(int32_t value); |
3735 | | public: |
3736 | | |
3737 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.RedfishInfo) |
3738 | | private: |
3739 | | class _Internal; |
3740 | | |
3741 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3742 | | typedef void InternalArenaConstructable_; |
3743 | | typedef void DestructorSkippable_; |
3744 | | struct Impl_ { |
3745 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3746 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3747 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; |
3748 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_key_; |
3749 | | static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_ip_; |
3750 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; |
3751 | | int32_t port_; |
3752 | | }; |
3753 | | union { Impl_ _impl_; }; |
3754 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
3755 | | }; |
3756 | | // ------------------------------------------------------------------- |
3757 | | |
3758 | | class DbusInfo final : |
3759 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.DbusInfo) */ { |
3760 | | public: |
3761 | 0 | inline DbusInfo() : DbusInfo(nullptr) {} |
3762 | | ~DbusInfo() override; |
3763 | | explicit PROTOBUF_CONSTEXPR DbusInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3764 | | |
3765 | | DbusInfo(const DbusInfo& from); |
3766 | | DbusInfo(DbusInfo&& from) noexcept |
3767 | 0 | : DbusInfo() { |
3768 | 0 | *this = ::std::move(from); |
3769 | 0 | } |
3770 | | |
3771 | 0 | inline DbusInfo& operator=(const DbusInfo& from) { |
3772 | 0 | CopyFrom(from); |
3773 | 0 | return *this; |
3774 | 0 | } |
3775 | 0 | inline DbusInfo& operator=(DbusInfo&& from) noexcept { |
3776 | 0 | if (this == &from) return *this; |
3777 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3778 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3779 | 0 | && GetOwningArena() != nullptr |
3780 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3781 | 0 | ) { |
3782 | 0 | InternalSwap(&from); |
3783 | 0 | } else { |
3784 | 0 | CopyFrom(from); |
3785 | 0 | } |
3786 | 0 | return *this; |
3787 | 0 | } |
3788 | | |
3789 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3790 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3791 | 0 | } |
3792 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3793 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3794 | 0 | } |
3795 | | |
3796 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3797 | 0 | return GetDescriptor(); |
3798 | 0 | } |
3799 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3800 | 0 | return default_instance().GetMetadata().descriptor; |
3801 | 0 | } |
3802 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3803 | 0 | return default_instance().GetMetadata().reflection; |
3804 | 0 | } |
3805 | 0 | static const DbusInfo& default_instance() { |
3806 | 0 | return *internal_default_instance(); |
3807 | 0 | } |
3808 | 0 | static inline const DbusInfo* internal_default_instance() { |
3809 | 0 | return reinterpret_cast<const DbusInfo*>( |
3810 | 0 | &_DbusInfo_default_instance_); |
3811 | 0 | } |
3812 | | static constexpr int kIndexInFileMessages = |
3813 | | 16; |
3814 | | |
3815 | 0 | friend void swap(DbusInfo& a, DbusInfo& b) { |
3816 | 0 | a.Swap(&b); |
3817 | 0 | } |
3818 | 0 | inline void Swap(DbusInfo* other) { |
3819 | 0 | if (other == this) return; |
3820 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3821 | 0 | if (GetOwningArena() != nullptr && |
3822 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3823 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3824 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3825 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3826 | 0 | InternalSwap(other); |
3827 | 0 | } else { |
3828 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3829 | 0 | } |
3830 | 0 | } |
3831 | 0 | void UnsafeArenaSwap(DbusInfo* other) { |
3832 | 0 | if (other == this) return; |
3833 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3834 | 0 | InternalSwap(other); |
3835 | 0 | } |
3836 | | |
3837 | | // implements Message ---------------------------------------------- |
3838 | | |
3839 | 0 | DbusInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3840 | 0 | return CreateMaybeMessage<DbusInfo>(arena); |
3841 | 0 | } |
3842 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3843 | | void CopyFrom(const DbusInfo& from); |
3844 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3845 | 0 | void MergeFrom( const DbusInfo& from) { |
3846 | 0 | DbusInfo::MergeImpl(*this, from); |
3847 | 0 | } |
3848 | | private: |
3849 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3850 | | public: |
3851 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3852 | | bool IsInitialized() const final; |
3853 | | |
3854 | | size_t ByteSizeLong() const final; |
3855 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3856 | | uint8_t* _InternalSerialize( |
3857 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3858 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3859 | | |
3860 | | private: |
3861 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3862 | | void SharedDtor(); |
3863 | | void SetCachedSize(int size) const final; |
3864 | | void InternalSwap(DbusInfo* other); |
3865 | | |
3866 | | private: |
3867 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3868 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3869 | 0 | return "safepower_agent_config.DbusInfo"; |
3870 | 0 | } |
3871 | | protected: |
3872 | | explicit DbusInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3873 | | bool is_message_owned = false); |
3874 | | public: |
3875 | | |
3876 | | static const ClassData _class_data_; |
3877 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3878 | | |
3879 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3880 | | |
3881 | | // nested types ---------------------------------------------------- |
3882 | | |
3883 | | // accessors ------------------------------------------------------- |
3884 | | |
3885 | | enum : int { |
3886 | | kDbusPathFieldNumber = 1, |
3887 | | kDbusMethodFieldNumber = 2, |
3888 | | kDbusInterfaceFieldNumber = 3, |
3889 | | kDbusValueFieldNumber = 4, |
3890 | | }; |
3891 | | // optional string dbus_path = 1; |
3892 | | bool has_dbus_path() const; |
3893 | | private: |
3894 | | bool _internal_has_dbus_path() const; |
3895 | | public: |
3896 | | void clear_dbus_path(); |
3897 | | const std::string& dbus_path() const; |
3898 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3899 | | void set_dbus_path(ArgT0&& arg0, ArgT... args); |
3900 | | std::string* mutable_dbus_path(); |
3901 | | PROTOBUF_NODISCARD std::string* release_dbus_path(); |
3902 | | void set_allocated_dbus_path(std::string* dbus_path); |
3903 | | private: |
3904 | | const std::string& _internal_dbus_path() const; |
3905 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbus_path(const std::string& value); |
3906 | | std::string* _internal_mutable_dbus_path(); |
3907 | | public: |
3908 | | |
3909 | | // optional string dbus_method = 2; |
3910 | | bool has_dbus_method() const; |
3911 | | private: |
3912 | | bool _internal_has_dbus_method() const; |
3913 | | public: |
3914 | | void clear_dbus_method(); |
3915 | | const std::string& dbus_method() const; |
3916 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3917 | | void set_dbus_method(ArgT0&& arg0, ArgT... args); |
3918 | | std::string* mutable_dbus_method(); |
3919 | | PROTOBUF_NODISCARD std::string* release_dbus_method(); |
3920 | | void set_allocated_dbus_method(std::string* dbus_method); |
3921 | | private: |
3922 | | const std::string& _internal_dbus_method() const; |
3923 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbus_method(const std::string& value); |
3924 | | std::string* _internal_mutable_dbus_method(); |
3925 | | public: |
3926 | | |
3927 | | // optional string dbus_interface = 3; |
3928 | | bool has_dbus_interface() const; |
3929 | | private: |
3930 | | bool _internal_has_dbus_interface() const; |
3931 | | public: |
3932 | | void clear_dbus_interface(); |
3933 | | const std::string& dbus_interface() const; |
3934 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3935 | | void set_dbus_interface(ArgT0&& arg0, ArgT... args); |
3936 | | std::string* mutable_dbus_interface(); |
3937 | | PROTOBUF_NODISCARD std::string* release_dbus_interface(); |
3938 | | void set_allocated_dbus_interface(std::string* dbus_interface); |
3939 | | private: |
3940 | | const std::string& _internal_dbus_interface() const; |
3941 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbus_interface(const std::string& value); |
3942 | | std::string* _internal_mutable_dbus_interface(); |
3943 | | public: |
3944 | | |
3945 | | // optional string dbus_value = 4; |
3946 | | bool has_dbus_value() const; |
3947 | | private: |
3948 | | bool _internal_has_dbus_value() const; |
3949 | | public: |
3950 | | void clear_dbus_value(); |
3951 | | const std::string& dbus_value() const; |
3952 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
3953 | | void set_dbus_value(ArgT0&& arg0, ArgT... args); |
3954 | | std::string* mutable_dbus_value(); |
3955 | | PROTOBUF_NODISCARD std::string* release_dbus_value(); |
3956 | | void set_allocated_dbus_value(std::string* dbus_value); |
3957 | | private: |
3958 | | const std::string& _internal_dbus_value() const; |
3959 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_dbus_value(const std::string& value); |
3960 | | std::string* _internal_mutable_dbus_value(); |
3961 | | public: |
3962 | | |
3963 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.DbusInfo) |
3964 | | private: |
3965 | | class _Internal; |
3966 | | |
3967 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3968 | | typedef void InternalArenaConstructable_; |
3969 | | typedef void DestructorSkippable_; |
3970 | | struct Impl_ { |
3971 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3972 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3973 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbus_path_; |
3974 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbus_method_; |
3975 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbus_interface_; |
3976 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dbus_value_; |
3977 | | }; |
3978 | | union { Impl_ _impl_; }; |
3979 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
3980 | | }; |
3981 | | // ------------------------------------------------------------------- |
3982 | | |
3983 | | class ActionConfig final : |
3984 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.ActionConfig) */ { |
3985 | | public: |
3986 | 0 | inline ActionConfig() : ActionConfig(nullptr) {} |
3987 | | ~ActionConfig() override; |
3988 | | explicit PROTOBUF_CONSTEXPR ActionConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3989 | | |
3990 | | ActionConfig(const ActionConfig& from); |
3991 | | ActionConfig(ActionConfig&& from) noexcept |
3992 | 0 | : ActionConfig() { |
3993 | 0 | *this = ::std::move(from); |
3994 | 0 | } |
3995 | | |
3996 | 0 | inline ActionConfig& operator=(const ActionConfig& from) { |
3997 | 0 | CopyFrom(from); |
3998 | 0 | return *this; |
3999 | 0 | } |
4000 | 0 | inline ActionConfig& operator=(ActionConfig&& from) noexcept { |
4001 | 0 | if (this == &from) return *this; |
4002 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4003 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4004 | 0 | && GetOwningArena() != nullptr |
4005 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4006 | 0 | ) { |
4007 | 0 | InternalSwap(&from); |
4008 | 0 | } else { |
4009 | 0 | CopyFrom(from); |
4010 | 0 | } |
4011 | 0 | return *this; |
4012 | 0 | } |
4013 | | |
4014 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4015 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4016 | 0 | } |
4017 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4018 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4019 | 0 | } |
4020 | | |
4021 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4022 | 0 | return GetDescriptor(); |
4023 | 0 | } |
4024 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4025 | 0 | return default_instance().GetMetadata().descriptor; |
4026 | 0 | } |
4027 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4028 | 0 | return default_instance().GetMetadata().reflection; |
4029 | 0 | } |
4030 | 0 | static const ActionConfig& default_instance() { |
4031 | 0 | return *internal_default_instance(); |
4032 | 0 | } |
4033 | | enum InfoCase { |
4034 | | kRedfish = 4, |
4035 | | kDbus = 5, |
4036 | | kExec = 6, |
4037 | | INFO_NOT_SET = 0, |
4038 | | }; |
4039 | | |
4040 | 0 | static inline const ActionConfig* internal_default_instance() { |
4041 | 0 | return reinterpret_cast<const ActionConfig*>( |
4042 | 0 | &_ActionConfig_default_instance_); |
4043 | 0 | } |
4044 | | static constexpr int kIndexInFileMessages = |
4045 | | 17; |
4046 | | |
4047 | 0 | friend void swap(ActionConfig& a, ActionConfig& b) { |
4048 | 0 | a.Swap(&b); |
4049 | 0 | } |
4050 | 0 | inline void Swap(ActionConfig* other) { |
4051 | 0 | if (other == this) return; |
4052 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4053 | 0 | if (GetOwningArena() != nullptr && |
4054 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4055 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4056 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4057 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4058 | 0 | InternalSwap(other); |
4059 | 0 | } else { |
4060 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4061 | 0 | } |
4062 | 0 | } |
4063 | 0 | void UnsafeArenaSwap(ActionConfig* other) { |
4064 | 0 | if (other == this) return; |
4065 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4066 | 0 | InternalSwap(other); |
4067 | 0 | } |
4068 | | |
4069 | | // implements Message ---------------------------------------------- |
4070 | | |
4071 | 0 | ActionConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4072 | 0 | return CreateMaybeMessage<ActionConfig>(arena); |
4073 | 0 | } |
4074 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4075 | | void CopyFrom(const ActionConfig& from); |
4076 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4077 | 0 | void MergeFrom( const ActionConfig& from) { |
4078 | 0 | ActionConfig::MergeImpl(*this, from); |
4079 | 0 | } |
4080 | | private: |
4081 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4082 | | public: |
4083 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4084 | | bool IsInitialized() const final; |
4085 | | |
4086 | | size_t ByteSizeLong() const final; |
4087 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4088 | | uint8_t* _InternalSerialize( |
4089 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4090 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4091 | | |
4092 | | private: |
4093 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4094 | | void SharedDtor(); |
4095 | | void SetCachedSize(int size) const final; |
4096 | | void InternalSwap(ActionConfig* other); |
4097 | | |
4098 | | private: |
4099 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4100 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4101 | 0 | return "safepower_agent_config.ActionConfig"; |
4102 | 0 | } |
4103 | | protected: |
4104 | | explicit ActionConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4105 | | bool is_message_owned = false); |
4106 | | public: |
4107 | | |
4108 | | static const ClassData _class_data_; |
4109 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4110 | | |
4111 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4112 | | |
4113 | | // nested types ---------------------------------------------------- |
4114 | | |
4115 | | // accessors ------------------------------------------------------- |
4116 | | |
4117 | | enum : int { |
4118 | | kActionNameFieldNumber = 1, |
4119 | | kActionFieldNumber = 2, |
4120 | | kDisruptionTimeoutSecondsFieldNumber = 3, |
4121 | | kRedfishFieldNumber = 4, |
4122 | | kDbusFieldNumber = 5, |
4123 | | kExecFieldNumber = 6, |
4124 | | }; |
4125 | | // optional string action_name = 1; |
4126 | | bool has_action_name() const; |
4127 | | private: |
4128 | | bool _internal_has_action_name() const; |
4129 | | public: |
4130 | | void clear_action_name(); |
4131 | | const std::string& action_name() const; |
4132 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4133 | | void set_action_name(ArgT0&& arg0, ArgT... args); |
4134 | | std::string* mutable_action_name(); |
4135 | | PROTOBUF_NODISCARD std::string* release_action_name(); |
4136 | | void set_allocated_action_name(std::string* action_name); |
4137 | | private: |
4138 | | const std::string& _internal_action_name() const; |
4139 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_action_name(const std::string& value); |
4140 | | std::string* _internal_mutable_action_name(); |
4141 | | public: |
4142 | | |
4143 | | // optional .safepower_agent_proto.Action action = 2; |
4144 | | bool has_action() const; |
4145 | | private: |
4146 | | bool _internal_has_action() const; |
4147 | | public: |
4148 | | void clear_action(); |
4149 | | const ::safepower_agent_proto::Action& action() const; |
4150 | | PROTOBUF_NODISCARD ::safepower_agent_proto::Action* release_action(); |
4151 | | ::safepower_agent_proto::Action* mutable_action(); |
4152 | | void set_allocated_action(::safepower_agent_proto::Action* action); |
4153 | | private: |
4154 | | const ::safepower_agent_proto::Action& _internal_action() const; |
4155 | | ::safepower_agent_proto::Action* _internal_mutable_action(); |
4156 | | public: |
4157 | | void unsafe_arena_set_allocated_action( |
4158 | | ::safepower_agent_proto::Action* action); |
4159 | | ::safepower_agent_proto::Action* unsafe_arena_release_action(); |
4160 | | |
4161 | | // optional int32 disruption_timeout_seconds = 3; |
4162 | | bool has_disruption_timeout_seconds() const; |
4163 | | private: |
4164 | | bool _internal_has_disruption_timeout_seconds() const; |
4165 | | public: |
4166 | | void clear_disruption_timeout_seconds(); |
4167 | | int32_t disruption_timeout_seconds() const; |
4168 | | void set_disruption_timeout_seconds(int32_t value); |
4169 | | private: |
4170 | | int32_t _internal_disruption_timeout_seconds() const; |
4171 | | void _internal_set_disruption_timeout_seconds(int32_t value); |
4172 | | public: |
4173 | | |
4174 | | // .safepower_agent_config.RedfishAction redfish = 4; |
4175 | | bool has_redfish() const; |
4176 | | private: |
4177 | | bool _internal_has_redfish() const; |
4178 | | public: |
4179 | | void clear_redfish(); |
4180 | | const ::safepower_agent_config::RedfishAction& redfish() const; |
4181 | | PROTOBUF_NODISCARD ::safepower_agent_config::RedfishAction* release_redfish(); |
4182 | | ::safepower_agent_config::RedfishAction* mutable_redfish(); |
4183 | | void set_allocated_redfish(::safepower_agent_config::RedfishAction* redfish); |
4184 | | private: |
4185 | | const ::safepower_agent_config::RedfishAction& _internal_redfish() const; |
4186 | | ::safepower_agent_config::RedfishAction* _internal_mutable_redfish(); |
4187 | | public: |
4188 | | void unsafe_arena_set_allocated_redfish( |
4189 | | ::safepower_agent_config::RedfishAction* redfish); |
4190 | | ::safepower_agent_config::RedfishAction* unsafe_arena_release_redfish(); |
4191 | | |
4192 | | // .safepower_agent_config.DbusAction dbus = 5; |
4193 | | bool has_dbus() const; |
4194 | | private: |
4195 | | bool _internal_has_dbus() const; |
4196 | | public: |
4197 | | void clear_dbus(); |
4198 | | const ::safepower_agent_config::DbusAction& dbus() const; |
4199 | | PROTOBUF_NODISCARD ::safepower_agent_config::DbusAction* release_dbus(); |
4200 | | ::safepower_agent_config::DbusAction* mutable_dbus(); |
4201 | | void set_allocated_dbus(::safepower_agent_config::DbusAction* dbus); |
4202 | | private: |
4203 | | const ::safepower_agent_config::DbusAction& _internal_dbus() const; |
4204 | | ::safepower_agent_config::DbusAction* _internal_mutable_dbus(); |
4205 | | public: |
4206 | | void unsafe_arena_set_allocated_dbus( |
4207 | | ::safepower_agent_config::DbusAction* dbus); |
4208 | | ::safepower_agent_config::DbusAction* unsafe_arena_release_dbus(); |
4209 | | |
4210 | | // .safepower_agent_config.ExecAction exec = 6; |
4211 | | bool has_exec() const; |
4212 | | private: |
4213 | | bool _internal_has_exec() const; |
4214 | | public: |
4215 | | void clear_exec(); |
4216 | | const ::safepower_agent_config::ExecAction& exec() const; |
4217 | | PROTOBUF_NODISCARD ::safepower_agent_config::ExecAction* release_exec(); |
4218 | | ::safepower_agent_config::ExecAction* mutable_exec(); |
4219 | | void set_allocated_exec(::safepower_agent_config::ExecAction* exec); |
4220 | | private: |
4221 | | const ::safepower_agent_config::ExecAction& _internal_exec() const; |
4222 | | ::safepower_agent_config::ExecAction* _internal_mutable_exec(); |
4223 | | public: |
4224 | | void unsafe_arena_set_allocated_exec( |
4225 | | ::safepower_agent_config::ExecAction* exec); |
4226 | | ::safepower_agent_config::ExecAction* unsafe_arena_release_exec(); |
4227 | | |
4228 | | void clear_info(); |
4229 | | InfoCase info_case() const; |
4230 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.ActionConfig) |
4231 | | private: |
4232 | | class _Internal; |
4233 | | void set_has_redfish(); |
4234 | | void set_has_dbus(); |
4235 | | void set_has_exec(); |
4236 | | |
4237 | | inline bool has_info() const; |
4238 | | inline void clear_has_info(); |
4239 | | |
4240 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4241 | | typedef void InternalArenaConstructable_; |
4242 | | typedef void DestructorSkippable_; |
4243 | | struct Impl_ { |
4244 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4245 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4246 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr action_name_; |
4247 | | ::safepower_agent_proto::Action* action_; |
4248 | | int32_t disruption_timeout_seconds_; |
4249 | | union InfoUnion { |
4250 | 0 | constexpr InfoUnion() : _constinit_{} {} |
4251 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
4252 | | ::safepower_agent_config::RedfishAction* redfish_; |
4253 | | ::safepower_agent_config::DbusAction* dbus_; |
4254 | | ::safepower_agent_config::ExecAction* exec_; |
4255 | | } info_; |
4256 | | uint32_t _oneof_case_[1]; |
4257 | | |
4258 | | }; |
4259 | | union { Impl_ _impl_; }; |
4260 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
4261 | | }; |
4262 | | // ------------------------------------------------------------------- |
4263 | | |
4264 | | class ExecAction final : |
4265 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.ExecAction) */ { |
4266 | | public: |
4267 | 0 | inline ExecAction() : ExecAction(nullptr) {} |
4268 | | ~ExecAction() override; |
4269 | | explicit PROTOBUF_CONSTEXPR ExecAction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4270 | | |
4271 | | ExecAction(const ExecAction& from); |
4272 | | ExecAction(ExecAction&& from) noexcept |
4273 | 0 | : ExecAction() { |
4274 | 0 | *this = ::std::move(from); |
4275 | 0 | } |
4276 | | |
4277 | 0 | inline ExecAction& operator=(const ExecAction& from) { |
4278 | 0 | CopyFrom(from); |
4279 | 0 | return *this; |
4280 | 0 | } |
4281 | 0 | inline ExecAction& operator=(ExecAction&& from) noexcept { |
4282 | 0 | if (this == &from) return *this; |
4283 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4284 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4285 | 0 | && GetOwningArena() != nullptr |
4286 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4287 | 0 | ) { |
4288 | 0 | InternalSwap(&from); |
4289 | 0 | } else { |
4290 | 0 | CopyFrom(from); |
4291 | 0 | } |
4292 | 0 | return *this; |
4293 | 0 | } |
4294 | | |
4295 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4296 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4297 | 0 | } |
4298 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4299 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4300 | 0 | } |
4301 | | |
4302 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4303 | 0 | return GetDescriptor(); |
4304 | 0 | } |
4305 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4306 | 0 | return default_instance().GetMetadata().descriptor; |
4307 | 0 | } |
4308 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4309 | 0 | return default_instance().GetMetadata().reflection; |
4310 | 0 | } |
4311 | 0 | static const ExecAction& default_instance() { |
4312 | 0 | return *internal_default_instance(); |
4313 | 0 | } |
4314 | 0 | static inline const ExecAction* internal_default_instance() { |
4315 | 0 | return reinterpret_cast<const ExecAction*>( |
4316 | 0 | &_ExecAction_default_instance_); |
4317 | 0 | } |
4318 | | static constexpr int kIndexInFileMessages = |
4319 | | 18; |
4320 | | |
4321 | 0 | friend void swap(ExecAction& a, ExecAction& b) { |
4322 | 0 | a.Swap(&b); |
4323 | 0 | } |
4324 | 0 | inline void Swap(ExecAction* other) { |
4325 | 0 | if (other == this) return; |
4326 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4327 | 0 | if (GetOwningArena() != nullptr && |
4328 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4329 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4330 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4331 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4332 | 0 | InternalSwap(other); |
4333 | 0 | } else { |
4334 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4335 | 0 | } |
4336 | 0 | } |
4337 | 0 | void UnsafeArenaSwap(ExecAction* other) { |
4338 | 0 | if (other == this) return; |
4339 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4340 | 0 | InternalSwap(other); |
4341 | 0 | } |
4342 | | |
4343 | | // implements Message ---------------------------------------------- |
4344 | | |
4345 | 0 | ExecAction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4346 | 0 | return CreateMaybeMessage<ExecAction>(arena); |
4347 | 0 | } |
4348 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4349 | | void CopyFrom(const ExecAction& from); |
4350 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4351 | 0 | void MergeFrom( const ExecAction& from) { |
4352 | 0 | ExecAction::MergeImpl(*this, from); |
4353 | 0 | } |
4354 | | private: |
4355 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4356 | | public: |
4357 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4358 | | bool IsInitialized() const final; |
4359 | | |
4360 | | size_t ByteSizeLong() const final; |
4361 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4362 | | uint8_t* _InternalSerialize( |
4363 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4364 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4365 | | |
4366 | | private: |
4367 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4368 | | void SharedDtor(); |
4369 | | void SetCachedSize(int size) const final; |
4370 | | void InternalSwap(ExecAction* other); |
4371 | | |
4372 | | private: |
4373 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4374 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4375 | 0 | return "safepower_agent_config.ExecAction"; |
4376 | 0 | } |
4377 | | protected: |
4378 | | explicit ExecAction(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4379 | | bool is_message_owned = false); |
4380 | | public: |
4381 | | |
4382 | | static const ClassData _class_data_; |
4383 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4384 | | |
4385 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4386 | | |
4387 | | // nested types ---------------------------------------------------- |
4388 | | |
4389 | | // accessors ------------------------------------------------------- |
4390 | | |
4391 | | enum : int { |
4392 | | kArgsFieldNumber = 2, |
4393 | | kCommandFieldNumber = 1, |
4394 | | kExpectedExitCodeFieldNumber = 3, |
4395 | | kTimeoutSecondsFieldNumber = 4, |
4396 | | }; |
4397 | | // repeated string args = 2; |
4398 | | int args_size() const; |
4399 | | private: |
4400 | | int _internal_args_size() const; |
4401 | | public: |
4402 | | void clear_args(); |
4403 | | const std::string& args(int index) const; |
4404 | | std::string* mutable_args(int index); |
4405 | | void set_args(int index, const std::string& value); |
4406 | | void set_args(int index, std::string&& value); |
4407 | | void set_args(int index, const char* value); |
4408 | | void set_args(int index, const char* value, size_t size); |
4409 | | std::string* add_args(); |
4410 | | void add_args(const std::string& value); |
4411 | | void add_args(std::string&& value); |
4412 | | void add_args(const char* value); |
4413 | | void add_args(const char* value, size_t size); |
4414 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& args() const; |
4415 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_args(); |
4416 | | private: |
4417 | | const std::string& _internal_args(int index) const; |
4418 | | std::string* _internal_add_args(); |
4419 | | public: |
4420 | | |
4421 | | // optional string command = 1; |
4422 | | bool has_command() const; |
4423 | | private: |
4424 | | bool _internal_has_command() const; |
4425 | | public: |
4426 | | void clear_command(); |
4427 | | const std::string& command() const; |
4428 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4429 | | void set_command(ArgT0&& arg0, ArgT... args); |
4430 | | std::string* mutable_command(); |
4431 | | PROTOBUF_NODISCARD std::string* release_command(); |
4432 | | void set_allocated_command(std::string* command); |
4433 | | private: |
4434 | | const std::string& _internal_command() const; |
4435 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_command(const std::string& value); |
4436 | | std::string* _internal_mutable_command(); |
4437 | | public: |
4438 | | |
4439 | | // optional int32 expected_exit_code = 3; |
4440 | | bool has_expected_exit_code() const; |
4441 | | private: |
4442 | | bool _internal_has_expected_exit_code() const; |
4443 | | public: |
4444 | | void clear_expected_exit_code(); |
4445 | | int32_t expected_exit_code() const; |
4446 | | void set_expected_exit_code(int32_t value); |
4447 | | private: |
4448 | | int32_t _internal_expected_exit_code() const; |
4449 | | void _internal_set_expected_exit_code(int32_t value); |
4450 | | public: |
4451 | | |
4452 | | // optional int32 timeout_seconds = 4 [default = 1]; |
4453 | | bool has_timeout_seconds() const; |
4454 | | private: |
4455 | | bool _internal_has_timeout_seconds() const; |
4456 | | public: |
4457 | | void clear_timeout_seconds(); |
4458 | | int32_t timeout_seconds() const; |
4459 | | void set_timeout_seconds(int32_t value); |
4460 | | private: |
4461 | | int32_t _internal_timeout_seconds() const; |
4462 | | void _internal_set_timeout_seconds(int32_t value); |
4463 | | public: |
4464 | | |
4465 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.ExecAction) |
4466 | | private: |
4467 | | class _Internal; |
4468 | | |
4469 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4470 | | typedef void InternalArenaConstructable_; |
4471 | | typedef void DestructorSkippable_; |
4472 | | struct Impl_ { |
4473 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4474 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4475 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> args_; |
4476 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr command_; |
4477 | | int32_t expected_exit_code_; |
4478 | | int32_t timeout_seconds_; |
4479 | | }; |
4480 | | union { Impl_ _impl_; }; |
4481 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
4482 | | }; |
4483 | | // ------------------------------------------------------------------- |
4484 | | |
4485 | | class RedfishAction final : |
4486 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.RedfishAction) */ { |
4487 | | public: |
4488 | 0 | inline RedfishAction() : RedfishAction(nullptr) {} |
4489 | | ~RedfishAction() override; |
4490 | | explicit PROTOBUF_CONSTEXPR RedfishAction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4491 | | |
4492 | | RedfishAction(const RedfishAction& from); |
4493 | | RedfishAction(RedfishAction&& from) noexcept |
4494 | 0 | : RedfishAction() { |
4495 | 0 | *this = ::std::move(from); |
4496 | 0 | } |
4497 | | |
4498 | 0 | inline RedfishAction& operator=(const RedfishAction& from) { |
4499 | 0 | CopyFrom(from); |
4500 | 0 | return *this; |
4501 | 0 | } |
4502 | 0 | inline RedfishAction& operator=(RedfishAction&& from) noexcept { |
4503 | 0 | if (this == &from) return *this; |
4504 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4505 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4506 | 0 | && GetOwningArena() != nullptr |
4507 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4508 | 0 | ) { |
4509 | 0 | InternalSwap(&from); |
4510 | 0 | } else { |
4511 | 0 | CopyFrom(from); |
4512 | 0 | } |
4513 | 0 | return *this; |
4514 | 0 | } |
4515 | | |
4516 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4517 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4518 | 0 | } |
4519 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4520 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4521 | 0 | } |
4522 | | |
4523 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4524 | 0 | return GetDescriptor(); |
4525 | 0 | } |
4526 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4527 | 0 | return default_instance().GetMetadata().descriptor; |
4528 | 0 | } |
4529 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4530 | 0 | return default_instance().GetMetadata().reflection; |
4531 | 0 | } |
4532 | 0 | static const RedfishAction& default_instance() { |
4533 | 0 | return *internal_default_instance(); |
4534 | 0 | } |
4535 | 0 | static inline const RedfishAction* internal_default_instance() { |
4536 | 0 | return reinterpret_cast<const RedfishAction*>( |
4537 | 0 | &_RedfishAction_default_instance_); |
4538 | 0 | } |
4539 | | static constexpr int kIndexInFileMessages = |
4540 | | 19; |
4541 | | |
4542 | 0 | friend void swap(RedfishAction& a, RedfishAction& b) { |
4543 | 0 | a.Swap(&b); |
4544 | 0 | } |
4545 | 0 | inline void Swap(RedfishAction* other) { |
4546 | 0 | if (other == this) return; |
4547 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4548 | 0 | if (GetOwningArena() != nullptr && |
4549 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4550 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4551 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4552 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4553 | 0 | InternalSwap(other); |
4554 | 0 | } else { |
4555 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4556 | 0 | } |
4557 | 0 | } |
4558 | 0 | void UnsafeArenaSwap(RedfishAction* other) { |
4559 | 0 | if (other == this) return; |
4560 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4561 | 0 | InternalSwap(other); |
4562 | 0 | } |
4563 | | |
4564 | | // implements Message ---------------------------------------------- |
4565 | | |
4566 | 0 | RedfishAction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4567 | 0 | return CreateMaybeMessage<RedfishAction>(arena); |
4568 | 0 | } |
4569 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4570 | | void CopyFrom(const RedfishAction& from); |
4571 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4572 | 0 | void MergeFrom( const RedfishAction& from) { |
4573 | 0 | RedfishAction::MergeImpl(*this, from); |
4574 | 0 | } |
4575 | | private: |
4576 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4577 | | public: |
4578 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4579 | | bool IsInitialized() const final; |
4580 | | |
4581 | | size_t ByteSizeLong() const final; |
4582 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4583 | | uint8_t* _InternalSerialize( |
4584 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4585 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4586 | | |
4587 | | private: |
4588 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4589 | | void SharedDtor(); |
4590 | | void SetCachedSize(int size) const final; |
4591 | | void InternalSwap(RedfishAction* other); |
4592 | | |
4593 | | private: |
4594 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4595 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4596 | 0 | return "safepower_agent_config.RedfishAction"; |
4597 | 0 | } |
4598 | | protected: |
4599 | | explicit RedfishAction(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4600 | | bool is_message_owned = false); |
4601 | | public: |
4602 | | |
4603 | | static const ClassData _class_data_; |
4604 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4605 | | |
4606 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4607 | | |
4608 | | // nested types ---------------------------------------------------- |
4609 | | |
4610 | | // accessors ------------------------------------------------------- |
4611 | | |
4612 | | enum : int { |
4613 | | kUriFieldNumber = 1, |
4614 | | kJsonBodyFieldNumber = 2, |
4615 | | kIpFieldNumber = 3, |
4616 | | kPortFieldNumber = 4, |
4617 | | kCallTimeoutSecondsFieldNumber = 5, |
4618 | | }; |
4619 | | // optional string uri = 1; |
4620 | | bool has_uri() const; |
4621 | | private: |
4622 | | bool _internal_has_uri() const; |
4623 | | public: |
4624 | | void clear_uri(); |
4625 | | const std::string& uri() const; |
4626 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4627 | | void set_uri(ArgT0&& arg0, ArgT... args); |
4628 | | std::string* mutable_uri(); |
4629 | | PROTOBUF_NODISCARD std::string* release_uri(); |
4630 | | void set_allocated_uri(std::string* uri); |
4631 | | private: |
4632 | | const std::string& _internal_uri() const; |
4633 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value); |
4634 | | std::string* _internal_mutable_uri(); |
4635 | | public: |
4636 | | |
4637 | | // optional string json_body = 2; |
4638 | | bool has_json_body() const; |
4639 | | private: |
4640 | | bool _internal_has_json_body() const; |
4641 | | public: |
4642 | | void clear_json_body(); |
4643 | | const std::string& json_body() const; |
4644 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4645 | | void set_json_body(ArgT0&& arg0, ArgT... args); |
4646 | | std::string* mutable_json_body(); |
4647 | | PROTOBUF_NODISCARD std::string* release_json_body(); |
4648 | | void set_allocated_json_body(std::string* json_body); |
4649 | | private: |
4650 | | const std::string& _internal_json_body() const; |
4651 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_body(const std::string& value); |
4652 | | std::string* _internal_mutable_json_body(); |
4653 | | public: |
4654 | | |
4655 | | // optional string ip = 3; |
4656 | | bool has_ip() const; |
4657 | | private: |
4658 | | bool _internal_has_ip() const; |
4659 | | public: |
4660 | | void clear_ip(); |
4661 | | const std::string& ip() const; |
4662 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4663 | | void set_ip(ArgT0&& arg0, ArgT... args); |
4664 | | std::string* mutable_ip(); |
4665 | | PROTOBUF_NODISCARD std::string* release_ip(); |
4666 | | void set_allocated_ip(std::string* ip); |
4667 | | private: |
4668 | | const std::string& _internal_ip() const; |
4669 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip(const std::string& value); |
4670 | | std::string* _internal_mutable_ip(); |
4671 | | public: |
4672 | | |
4673 | | // optional uint32 port = 4; |
4674 | | bool has_port() const; |
4675 | | private: |
4676 | | bool _internal_has_port() const; |
4677 | | public: |
4678 | | void clear_port(); |
4679 | | uint32_t port() const; |
4680 | | void set_port(uint32_t value); |
4681 | | private: |
4682 | | uint32_t _internal_port() const; |
4683 | | void _internal_set_port(uint32_t value); |
4684 | | public: |
4685 | | |
4686 | | // optional int32 call_timeout_seconds = 5; |
4687 | | bool has_call_timeout_seconds() const; |
4688 | | private: |
4689 | | bool _internal_has_call_timeout_seconds() const; |
4690 | | public: |
4691 | | void clear_call_timeout_seconds(); |
4692 | | int32_t call_timeout_seconds() const; |
4693 | | void set_call_timeout_seconds(int32_t value); |
4694 | | private: |
4695 | | int32_t _internal_call_timeout_seconds() const; |
4696 | | void _internal_set_call_timeout_seconds(int32_t value); |
4697 | | public: |
4698 | | |
4699 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.RedfishAction) |
4700 | | private: |
4701 | | class _Internal; |
4702 | | |
4703 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4704 | | typedef void InternalArenaConstructable_; |
4705 | | typedef void DestructorSkippable_; |
4706 | | struct Impl_ { |
4707 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4708 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4709 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; |
4710 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_body_; |
4711 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; |
4712 | | uint32_t port_; |
4713 | | int32_t call_timeout_seconds_; |
4714 | | }; |
4715 | | union { Impl_ _impl_; }; |
4716 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
4717 | | }; |
4718 | | // ------------------------------------------------------------------- |
4719 | | |
4720 | | class DbusAction final : |
4721 | | public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:safepower_agent_config.DbusAction) */ { |
4722 | | public: |
4723 | 0 | inline DbusAction() : DbusAction(nullptr) {} |
4724 | | explicit PROTOBUF_CONSTEXPR DbusAction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4725 | | |
4726 | | DbusAction(const DbusAction& from); |
4727 | | DbusAction(DbusAction&& from) noexcept |
4728 | 0 | : DbusAction() { |
4729 | 0 | *this = ::std::move(from); |
4730 | 0 | } |
4731 | | |
4732 | 0 | inline DbusAction& operator=(const DbusAction& from) { |
4733 | 0 | CopyFrom(from); |
4734 | 0 | return *this; |
4735 | 0 | } |
4736 | 0 | inline DbusAction& operator=(DbusAction&& from) noexcept { |
4737 | 0 | if (this == &from) return *this; |
4738 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4739 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4740 | 0 | && GetOwningArena() != nullptr |
4741 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4742 | 0 | ) { |
4743 | 0 | InternalSwap(&from); |
4744 | 0 | } else { |
4745 | 0 | CopyFrom(from); |
4746 | 0 | } |
4747 | 0 | return *this; |
4748 | 0 | } |
4749 | | |
4750 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4751 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4752 | 0 | } |
4753 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4754 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4755 | 0 | } |
4756 | | |
4757 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4758 | 0 | return GetDescriptor(); |
4759 | 0 | } |
4760 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4761 | 0 | return default_instance().GetMetadata().descriptor; |
4762 | 0 | } |
4763 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4764 | 0 | return default_instance().GetMetadata().reflection; |
4765 | 0 | } |
4766 | 0 | static const DbusAction& default_instance() { |
4767 | 0 | return *internal_default_instance(); |
4768 | 0 | } |
4769 | 0 | static inline const DbusAction* internal_default_instance() { |
4770 | 0 | return reinterpret_cast<const DbusAction*>( |
4771 | 0 | &_DbusAction_default_instance_); |
4772 | 0 | } |
4773 | | static constexpr int kIndexInFileMessages = |
4774 | | 20; |
4775 | | |
4776 | 0 | friend void swap(DbusAction& a, DbusAction& b) { |
4777 | 0 | a.Swap(&b); |
4778 | 0 | } |
4779 | 0 | inline void Swap(DbusAction* other) { |
4780 | 0 | if (other == this) return; |
4781 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4782 | 0 | if (GetOwningArena() != nullptr && |
4783 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4784 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4785 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4786 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4787 | 0 | InternalSwap(other); |
4788 | 0 | } else { |
4789 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4790 | 0 | } |
4791 | 0 | } |
4792 | 0 | void UnsafeArenaSwap(DbusAction* other) { |
4793 | 0 | if (other == this) return; |
4794 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4795 | 0 | InternalSwap(other); |
4796 | 0 | } |
4797 | | |
4798 | | // implements Message ---------------------------------------------- |
4799 | | |
4800 | 0 | DbusAction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4801 | 0 | return CreateMaybeMessage<DbusAction>(arena); |
4802 | 0 | } |
4803 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; |
4804 | 0 | inline void CopyFrom(const DbusAction& from) { |
4805 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); |
4806 | 0 | } |
4807 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; |
4808 | 0 | void MergeFrom(const DbusAction& from) { |
4809 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); |
4810 | 0 | } |
4811 | | public: |
4812 | | |
4813 | | private: |
4814 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4815 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4816 | 0 | return "safepower_agent_config.DbusAction"; |
4817 | 0 | } |
4818 | | protected: |
4819 | | explicit DbusAction(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4820 | | bool is_message_owned = false); |
4821 | | public: |
4822 | | |
4823 | | static const ClassData _class_data_; |
4824 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4825 | | |
4826 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4827 | | |
4828 | | // nested types ---------------------------------------------------- |
4829 | | |
4830 | | // accessors ------------------------------------------------------- |
4831 | | |
4832 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.DbusAction) |
4833 | | private: |
4834 | | class _Internal; |
4835 | | |
4836 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4837 | | typedef void InternalArenaConstructable_; |
4838 | | typedef void DestructorSkippable_; |
4839 | | struct Impl_ { |
4840 | | }; |
4841 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
4842 | | }; |
4843 | | // ------------------------------------------------------------------- |
4844 | | |
4845 | | class GrpcConfig final : |
4846 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:safepower_agent_config.GrpcConfig) */ { |
4847 | | public: |
4848 | 0 | inline GrpcConfig() : GrpcConfig(nullptr) {} |
4849 | | ~GrpcConfig() override; |
4850 | | explicit PROTOBUF_CONSTEXPR GrpcConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4851 | | |
4852 | | GrpcConfig(const GrpcConfig& from); |
4853 | | GrpcConfig(GrpcConfig&& from) noexcept |
4854 | 0 | : GrpcConfig() { |
4855 | 0 | *this = ::std::move(from); |
4856 | 0 | } |
4857 | | |
4858 | 0 | inline GrpcConfig& operator=(const GrpcConfig& from) { |
4859 | 0 | CopyFrom(from); |
4860 | 0 | return *this; |
4861 | 0 | } |
4862 | 0 | inline GrpcConfig& operator=(GrpcConfig&& from) noexcept { |
4863 | 0 | if (this == &from) return *this; |
4864 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4865 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4866 | 0 | && GetOwningArena() != nullptr |
4867 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4868 | 0 | ) { |
4869 | 0 | InternalSwap(&from); |
4870 | 0 | } else { |
4871 | 0 | CopyFrom(from); |
4872 | 0 | } |
4873 | 0 | return *this; |
4874 | 0 | } |
4875 | | |
4876 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4877 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4878 | 0 | } |
4879 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4880 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4881 | 0 | } |
4882 | | |
4883 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4884 | 0 | return GetDescriptor(); |
4885 | 0 | } |
4886 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4887 | 0 | return default_instance().GetMetadata().descriptor; |
4888 | 0 | } |
4889 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4890 | 0 | return default_instance().GetMetadata().reflection; |
4891 | 0 | } |
4892 | 0 | static const GrpcConfig& default_instance() { |
4893 | 0 | return *internal_default_instance(); |
4894 | 0 | } |
4895 | 0 | static inline const GrpcConfig* internal_default_instance() { |
4896 | 0 | return reinterpret_cast<const GrpcConfig*>( |
4897 | 0 | &_GrpcConfig_default_instance_); |
4898 | 0 | } |
4899 | | static constexpr int kIndexInFileMessages = |
4900 | | 21; |
4901 | | |
4902 | 0 | friend void swap(GrpcConfig& a, GrpcConfig& b) { |
4903 | 0 | a.Swap(&b); |
4904 | 0 | } |
4905 | 0 | inline void Swap(GrpcConfig* other) { |
4906 | 0 | if (other == this) return; |
4907 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4908 | 0 | if (GetOwningArena() != nullptr && |
4909 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4910 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4911 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4912 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4913 | 0 | InternalSwap(other); |
4914 | 0 | } else { |
4915 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4916 | 0 | } |
4917 | 0 | } |
4918 | 0 | void UnsafeArenaSwap(GrpcConfig* other) { |
4919 | 0 | if (other == this) return; |
4920 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4921 | 0 | InternalSwap(other); |
4922 | 0 | } |
4923 | | |
4924 | | // implements Message ---------------------------------------------- |
4925 | | |
4926 | 0 | GrpcConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4927 | 0 | return CreateMaybeMessage<GrpcConfig>(arena); |
4928 | 0 | } |
4929 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4930 | | void CopyFrom(const GrpcConfig& from); |
4931 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4932 | 0 | void MergeFrom( const GrpcConfig& from) { |
4933 | 0 | GrpcConfig::MergeImpl(*this, from); |
4934 | 0 | } |
4935 | | private: |
4936 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4937 | | public: |
4938 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4939 | | bool IsInitialized() const final; |
4940 | | |
4941 | | size_t ByteSizeLong() const final; |
4942 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4943 | | uint8_t* _InternalSerialize( |
4944 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4945 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4946 | | |
4947 | | private: |
4948 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4949 | | void SharedDtor(); |
4950 | | void SetCachedSize(int size) const final; |
4951 | | void InternalSwap(GrpcConfig* other); |
4952 | | |
4953 | | private: |
4954 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4955 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4956 | 0 | return "safepower_agent_config.GrpcConfig"; |
4957 | 0 | } |
4958 | | protected: |
4959 | | explicit GrpcConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4960 | | bool is_message_owned = false); |
4961 | | public: |
4962 | | |
4963 | | static const ClassData _class_data_; |
4964 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4965 | | |
4966 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4967 | | |
4968 | | // nested types ---------------------------------------------------- |
4969 | | |
4970 | | // accessors ------------------------------------------------------- |
4971 | | |
4972 | | enum : int { |
4973 | | kPortFieldNumber = 7, |
4974 | | kKeepaliveTimeMsFieldNumber = 1, |
4975 | | kKeepaliveTimeoutMsFieldNumber = 2, |
4976 | | kKeepalivePermitWithoutCallsFieldNumber = 3, |
4977 | | kMaxPingsWithoutDataFieldNumber = 4, |
4978 | | kMinRecvPingIntervalWithoutDataMsFieldNumber = 5, |
4979 | | kMaxPingStrikesFieldNumber = 6, |
4980 | | }; |
4981 | | // optional int32 port = 7 [default = 20120]; |
4982 | | bool has_port() const; |
4983 | | private: |
4984 | | bool _internal_has_port() const; |
4985 | | public: |
4986 | | void clear_port(); |
4987 | | int32_t port() const; |
4988 | | void set_port(int32_t value); |
4989 | | private: |
4990 | | int32_t _internal_port() const; |
4991 | | void _internal_set_port(int32_t value); |
4992 | | public: |
4993 | | |
4994 | | // optional int32 keepalive_time_ms = 1 [default = 600000]; |
4995 | | bool has_keepalive_time_ms() const; |
4996 | | private: |
4997 | | bool _internal_has_keepalive_time_ms() const; |
4998 | | public: |
4999 | | void clear_keepalive_time_ms(); |
5000 | | int32_t keepalive_time_ms() const; |
5001 | | void set_keepalive_time_ms(int32_t value); |
5002 | | private: |
5003 | | int32_t _internal_keepalive_time_ms() const; |
5004 | | void _internal_set_keepalive_time_ms(int32_t value); |
5005 | | public: |
5006 | | |
5007 | | // optional int32 keepalive_timeout_ms = 2 [default = 20000]; |
5008 | | bool has_keepalive_timeout_ms() const; |
5009 | | private: |
5010 | | bool _internal_has_keepalive_timeout_ms() const; |
5011 | | public: |
5012 | | void clear_keepalive_timeout_ms(); |
5013 | | int32_t keepalive_timeout_ms() const; |
5014 | | void set_keepalive_timeout_ms(int32_t value); |
5015 | | private: |
5016 | | int32_t _internal_keepalive_timeout_ms() const; |
5017 | | void _internal_set_keepalive_timeout_ms(int32_t value); |
5018 | | public: |
5019 | | |
5020 | | // optional int32 keepalive_permit_without_calls = 3 [default = 1]; |
5021 | | bool has_keepalive_permit_without_calls() const; |
5022 | | private: |
5023 | | bool _internal_has_keepalive_permit_without_calls() const; |
5024 | | public: |
5025 | | void clear_keepalive_permit_without_calls(); |
5026 | | int32_t keepalive_permit_without_calls() const; |
5027 | | void set_keepalive_permit_without_calls(int32_t value); |
5028 | | private: |
5029 | | int32_t _internal_keepalive_permit_without_calls() const; |
5030 | | void _internal_set_keepalive_permit_without_calls(int32_t value); |
5031 | | public: |
5032 | | |
5033 | | // optional int32 max_pings_without_data = 4 [default = 2]; |
5034 | | bool has_max_pings_without_data() const; |
5035 | | private: |
5036 | | bool _internal_has_max_pings_without_data() const; |
5037 | | public: |
5038 | | void clear_max_pings_without_data(); |
5039 | | int32_t max_pings_without_data() const; |
5040 | | void set_max_pings_without_data(int32_t value); |
5041 | | private: |
5042 | | int32_t _internal_max_pings_without_data() const; |
5043 | | void _internal_set_max_pings_without_data(int32_t value); |
5044 | | public: |
5045 | | |
5046 | | // optional int32 min_recv_ping_interval_without_data_ms = 5 [default = 10000]; |
5047 | | bool has_min_recv_ping_interval_without_data_ms() const; |
5048 | | private: |
5049 | | bool _internal_has_min_recv_ping_interval_without_data_ms() const; |
5050 | | public: |
5051 | | void clear_min_recv_ping_interval_without_data_ms(); |
5052 | | int32_t min_recv_ping_interval_without_data_ms() const; |
5053 | | void set_min_recv_ping_interval_without_data_ms(int32_t value); |
5054 | | private: |
5055 | | int32_t _internal_min_recv_ping_interval_without_data_ms() const; |
5056 | | void _internal_set_min_recv_ping_interval_without_data_ms(int32_t value); |
5057 | | public: |
5058 | | |
5059 | | // optional int32 max_ping_strikes = 6 [default = 2]; |
5060 | | bool has_max_ping_strikes() const; |
5061 | | private: |
5062 | | bool _internal_has_max_ping_strikes() const; |
5063 | | public: |
5064 | | void clear_max_ping_strikes(); |
5065 | | int32_t max_ping_strikes() const; |
5066 | | void set_max_ping_strikes(int32_t value); |
5067 | | private: |
5068 | | int32_t _internal_max_ping_strikes() const; |
5069 | | void _internal_set_max_ping_strikes(int32_t value); |
5070 | | public: |
5071 | | |
5072 | | // @@protoc_insertion_point(class_scope:safepower_agent_config.GrpcConfig) |
5073 | | private: |
5074 | | class _Internal; |
5075 | | |
5076 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
5077 | | typedef void InternalArenaConstructable_; |
5078 | | typedef void DestructorSkippable_; |
5079 | | struct Impl_ { |
5080 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
5081 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
5082 | | int32_t port_; |
5083 | | int32_t keepalive_time_ms_; |
5084 | | int32_t keepalive_timeout_ms_; |
5085 | | int32_t keepalive_permit_without_calls_; |
5086 | | int32_t max_pings_without_data_; |
5087 | | int32_t min_recv_ping_interval_without_data_ms_; |
5088 | | int32_t max_ping_strikes_; |
5089 | | }; |
5090 | | union { Impl_ _impl_; }; |
5091 | | friend struct ::TableStruct_safepower_5fagent_5fconfig_2eproto; |
5092 | | }; |
5093 | | // =================================================================== |
5094 | | |
5095 | | |
5096 | | // =================================================================== |
5097 | | |
5098 | | #ifdef __GNUC__ |
5099 | | #pragma GCC diagnostic push |
5100 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
5101 | | #endif // __GNUC__ |
5102 | | // SafePowerAgentConfig |
5103 | | |
5104 | | // optional .safepower_agent_config.GpowerdConfig gpowerd_config = 1; |
5105 | 0 | inline bool SafePowerAgentConfig::_internal_has_gpowerd_config() const { |
5106 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
5107 | 0 | PROTOBUF_ASSUME(!value || _impl_.gpowerd_config_ != nullptr); |
5108 | 0 | return value; |
5109 | 0 | } |
5110 | 0 | inline bool SafePowerAgentConfig::has_gpowerd_config() const { |
5111 | 0 | return _internal_has_gpowerd_config(); |
5112 | 0 | } |
5113 | 0 | inline void SafePowerAgentConfig::clear_gpowerd_config() { |
5114 | 0 | if (_impl_.gpowerd_config_ != nullptr) _impl_.gpowerd_config_->Clear(); |
5115 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
5116 | 0 | } |
5117 | 0 | inline const ::safepower_agent_config::GpowerdConfig& SafePowerAgentConfig::_internal_gpowerd_config() const { |
5118 | 0 | const ::safepower_agent_config::GpowerdConfig* p = _impl_.gpowerd_config_; |
5119 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::GpowerdConfig&>( |
5120 | 0 | ::safepower_agent_config::_GpowerdConfig_default_instance_); |
5121 | 0 | } |
5122 | 0 | inline const ::safepower_agent_config::GpowerdConfig& SafePowerAgentConfig::gpowerd_config() const { |
5123 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.gpowerd_config) |
5124 | 0 | return _internal_gpowerd_config(); |
5125 | 0 | } |
5126 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_gpowerd_config( |
5127 | 0 | ::safepower_agent_config::GpowerdConfig* gpowerd_config) { |
5128 | 0 | if (GetArenaForAllocation() == nullptr) { |
5129 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.gpowerd_config_); |
5130 | 0 | } |
5131 | 0 | _impl_.gpowerd_config_ = gpowerd_config; |
5132 | 0 | if (gpowerd_config) { |
5133 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
5134 | 0 | } else { |
5135 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
5136 | 0 | } |
5137 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.gpowerd_config) |
5138 | 0 | } |
5139 | 0 | inline ::safepower_agent_config::GpowerdConfig* SafePowerAgentConfig::release_gpowerd_config() { |
5140 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
5141 | 0 | ::safepower_agent_config::GpowerdConfig* temp = _impl_.gpowerd_config_; |
5142 | 0 | _impl_.gpowerd_config_ = nullptr; |
5143 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5144 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5145 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5146 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5147 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5148 | 0 | if (GetArenaForAllocation() != nullptr) { |
5149 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5150 | 0 | } |
5151 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5152 | 0 | return temp; |
5153 | 0 | } |
5154 | 0 | inline ::safepower_agent_config::GpowerdConfig* SafePowerAgentConfig::unsafe_arena_release_gpowerd_config() { |
5155 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.gpowerd_config) |
5156 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
5157 | 0 | ::safepower_agent_config::GpowerdConfig* temp = _impl_.gpowerd_config_; |
5158 | 0 | _impl_.gpowerd_config_ = nullptr; |
5159 | 0 | return temp; |
5160 | 0 | } |
5161 | 0 | inline ::safepower_agent_config::GpowerdConfig* SafePowerAgentConfig::_internal_mutable_gpowerd_config() { |
5162 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
5163 | 0 | if (_impl_.gpowerd_config_ == nullptr) { |
5164 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::GpowerdConfig>(GetArenaForAllocation()); |
5165 | 0 | _impl_.gpowerd_config_ = p; |
5166 | 0 | } |
5167 | 0 | return _impl_.gpowerd_config_; |
5168 | 0 | } |
5169 | 0 | inline ::safepower_agent_config::GpowerdConfig* SafePowerAgentConfig::mutable_gpowerd_config() { |
5170 | 0 | ::safepower_agent_config::GpowerdConfig* _msg = _internal_mutable_gpowerd_config(); |
5171 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.gpowerd_config) |
5172 | 0 | return _msg; |
5173 | 0 | } |
5174 | 0 | inline void SafePowerAgentConfig::set_allocated_gpowerd_config(::safepower_agent_config::GpowerdConfig* gpowerd_config) { |
5175 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5176 | 0 | if (message_arena == nullptr) { |
5177 | 0 | delete _impl_.gpowerd_config_; |
5178 | 0 | } |
5179 | 0 | if (gpowerd_config) { |
5180 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5181 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(gpowerd_config); |
5182 | 0 | if (message_arena != submessage_arena) { |
5183 | 0 | gpowerd_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5184 | 0 | message_arena, gpowerd_config, submessage_arena); |
5185 | 0 | } |
5186 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
5187 | 0 | } else { |
5188 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
5189 | 0 | } |
5190 | 0 | _impl_.gpowerd_config_ = gpowerd_config; |
5191 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.gpowerd_config) |
5192 | 0 | } |
5193 | | |
5194 | | // repeated .safepower_agent_config.ActionConfig action_configs = 2; |
5195 | 0 | inline int SafePowerAgentConfig::_internal_action_configs_size() const { |
5196 | 0 | return _impl_.action_configs_.size(); |
5197 | 0 | } |
5198 | 0 | inline int SafePowerAgentConfig::action_configs_size() const { |
5199 | 0 | return _internal_action_configs_size(); |
5200 | 0 | } |
5201 | 0 | inline void SafePowerAgentConfig::clear_action_configs() { |
5202 | 0 | _impl_.action_configs_.Clear(); |
5203 | 0 | } |
5204 | 0 | inline ::safepower_agent_config::ActionConfig* SafePowerAgentConfig::mutable_action_configs(int index) { |
5205 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.action_configs) |
5206 | 0 | return _impl_.action_configs_.Mutable(index); |
5207 | 0 | } |
5208 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::ActionConfig >* |
5209 | 0 | SafePowerAgentConfig::mutable_action_configs() { |
5210 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_config.SafePowerAgentConfig.action_configs) |
5211 | 0 | return &_impl_.action_configs_; |
5212 | 0 | } |
5213 | 0 | inline const ::safepower_agent_config::ActionConfig& SafePowerAgentConfig::_internal_action_configs(int index) const { |
5214 | 0 | return _impl_.action_configs_.Get(index); |
5215 | 0 | } |
5216 | 0 | inline const ::safepower_agent_config::ActionConfig& SafePowerAgentConfig::action_configs(int index) const { |
5217 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.action_configs) |
5218 | 0 | return _internal_action_configs(index); |
5219 | 0 | } |
5220 | 0 | inline ::safepower_agent_config::ActionConfig* SafePowerAgentConfig::_internal_add_action_configs() { |
5221 | 0 | return _impl_.action_configs_.Add(); |
5222 | 0 | } |
5223 | 0 | inline ::safepower_agent_config::ActionConfig* SafePowerAgentConfig::add_action_configs() { |
5224 | 0 | ::safepower_agent_config::ActionConfig* _add = _internal_add_action_configs(); |
5225 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.SafePowerAgentConfig.action_configs) |
5226 | 0 | return _add; |
5227 | 0 | } |
5228 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::ActionConfig >& |
5229 | 0 | SafePowerAgentConfig::action_configs() const { |
5230 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_config.SafePowerAgentConfig.action_configs) |
5231 | 0 | return _impl_.action_configs_; |
5232 | 0 | } |
5233 | | |
5234 | | // optional .safepower_agent_config.PersistentStorageConfig persistent_storage_config = 3; |
5235 | 0 | inline bool SafePowerAgentConfig::_internal_has_persistent_storage_config() const { |
5236 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
5237 | 0 | PROTOBUF_ASSUME(!value || _impl_.persistent_storage_config_ != nullptr); |
5238 | 0 | return value; |
5239 | 0 | } |
5240 | 0 | inline bool SafePowerAgentConfig::has_persistent_storage_config() const { |
5241 | 0 | return _internal_has_persistent_storage_config(); |
5242 | 0 | } |
5243 | 0 | inline void SafePowerAgentConfig::clear_persistent_storage_config() { |
5244 | 0 | if (_impl_.persistent_storage_config_ != nullptr) _impl_.persistent_storage_config_->Clear(); |
5245 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
5246 | 0 | } |
5247 | 0 | inline const ::safepower_agent_config::PersistentStorageConfig& SafePowerAgentConfig::_internal_persistent_storage_config() const { |
5248 | 0 | const ::safepower_agent_config::PersistentStorageConfig* p = _impl_.persistent_storage_config_; |
5249 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::PersistentStorageConfig&>( |
5250 | 0 | ::safepower_agent_config::_PersistentStorageConfig_default_instance_); |
5251 | 0 | } |
5252 | 0 | inline const ::safepower_agent_config::PersistentStorageConfig& SafePowerAgentConfig::persistent_storage_config() const { |
5253 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.persistent_storage_config) |
5254 | 0 | return _internal_persistent_storage_config(); |
5255 | 0 | } |
5256 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_persistent_storage_config( |
5257 | 0 | ::safepower_agent_config::PersistentStorageConfig* persistent_storage_config) { |
5258 | 0 | if (GetArenaForAllocation() == nullptr) { |
5259 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.persistent_storage_config_); |
5260 | 0 | } |
5261 | 0 | _impl_.persistent_storage_config_ = persistent_storage_config; |
5262 | 0 | if (persistent_storage_config) { |
5263 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
5264 | 0 | } else { |
5265 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
5266 | 0 | } |
5267 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.persistent_storage_config) |
5268 | 0 | } |
5269 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* SafePowerAgentConfig::release_persistent_storage_config() { |
5270 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
5271 | 0 | ::safepower_agent_config::PersistentStorageConfig* temp = _impl_.persistent_storage_config_; |
5272 | 0 | _impl_.persistent_storage_config_ = nullptr; |
5273 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5274 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5275 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5276 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5277 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5278 | 0 | if (GetArenaForAllocation() != nullptr) { |
5279 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5280 | 0 | } |
5281 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5282 | 0 | return temp; |
5283 | 0 | } |
5284 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* SafePowerAgentConfig::unsafe_arena_release_persistent_storage_config() { |
5285 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.persistent_storage_config) |
5286 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
5287 | 0 | ::safepower_agent_config::PersistentStorageConfig* temp = _impl_.persistent_storage_config_; |
5288 | 0 | _impl_.persistent_storage_config_ = nullptr; |
5289 | 0 | return temp; |
5290 | 0 | } |
5291 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* SafePowerAgentConfig::_internal_mutable_persistent_storage_config() { |
5292 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
5293 | 0 | if (_impl_.persistent_storage_config_ == nullptr) { |
5294 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::PersistentStorageConfig>(GetArenaForAllocation()); |
5295 | 0 | _impl_.persistent_storage_config_ = p; |
5296 | 0 | } |
5297 | 0 | return _impl_.persistent_storage_config_; |
5298 | 0 | } |
5299 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* SafePowerAgentConfig::mutable_persistent_storage_config() { |
5300 | 0 | ::safepower_agent_config::PersistentStorageConfig* _msg = _internal_mutable_persistent_storage_config(); |
5301 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.persistent_storage_config) |
5302 | 0 | return _msg; |
5303 | 0 | } |
5304 | 0 | inline void SafePowerAgentConfig::set_allocated_persistent_storage_config(::safepower_agent_config::PersistentStorageConfig* persistent_storage_config) { |
5305 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5306 | 0 | if (message_arena == nullptr) { |
5307 | 0 | delete _impl_.persistent_storage_config_; |
5308 | 0 | } |
5309 | 0 | if (persistent_storage_config) { |
5310 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5311 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(persistent_storage_config); |
5312 | 0 | if (message_arena != submessage_arena) { |
5313 | 0 | persistent_storage_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5314 | 0 | message_arena, persistent_storage_config, submessage_arena); |
5315 | 0 | } |
5316 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
5317 | 0 | } else { |
5318 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
5319 | 0 | } |
5320 | 0 | _impl_.persistent_storage_config_ = persistent_storage_config; |
5321 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.persistent_storage_config) |
5322 | 0 | } |
5323 | | |
5324 | | // optional .safepower_agent_config.NodeOsConfig node_os_config = 4; |
5325 | 0 | inline bool SafePowerAgentConfig::_internal_has_node_os_config() const { |
5326 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
5327 | 0 | PROTOBUF_ASSUME(!value || _impl_.node_os_config_ != nullptr); |
5328 | 0 | return value; |
5329 | 0 | } |
5330 | 0 | inline bool SafePowerAgentConfig::has_node_os_config() const { |
5331 | 0 | return _internal_has_node_os_config(); |
5332 | 0 | } |
5333 | 0 | inline void SafePowerAgentConfig::clear_node_os_config() { |
5334 | 0 | if (_impl_.node_os_config_ != nullptr) _impl_.node_os_config_->Clear(); |
5335 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
5336 | 0 | } |
5337 | 0 | inline const ::safepower_agent_config::NodeOsConfig& SafePowerAgentConfig::_internal_node_os_config() const { |
5338 | 0 | const ::safepower_agent_config::NodeOsConfig* p = _impl_.node_os_config_; |
5339 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::NodeOsConfig&>( |
5340 | 0 | ::safepower_agent_config::_NodeOsConfig_default_instance_); |
5341 | 0 | } |
5342 | 0 | inline const ::safepower_agent_config::NodeOsConfig& SafePowerAgentConfig::node_os_config() const { |
5343 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.node_os_config) |
5344 | 0 | return _internal_node_os_config(); |
5345 | 0 | } |
5346 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_node_os_config( |
5347 | 0 | ::safepower_agent_config::NodeOsConfig* node_os_config) { |
5348 | 0 | if (GetArenaForAllocation() == nullptr) { |
5349 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.node_os_config_); |
5350 | 0 | } |
5351 | 0 | _impl_.node_os_config_ = node_os_config; |
5352 | 0 | if (node_os_config) { |
5353 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
5354 | 0 | } else { |
5355 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
5356 | 0 | } |
5357 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.node_os_config) |
5358 | 0 | } |
5359 | 0 | inline ::safepower_agent_config::NodeOsConfig* SafePowerAgentConfig::release_node_os_config() { |
5360 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
5361 | 0 | ::safepower_agent_config::NodeOsConfig* temp = _impl_.node_os_config_; |
5362 | 0 | _impl_.node_os_config_ = nullptr; |
5363 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5364 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5365 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5366 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5367 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5368 | 0 | if (GetArenaForAllocation() != nullptr) { |
5369 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5370 | 0 | } |
5371 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5372 | 0 | return temp; |
5373 | 0 | } |
5374 | 0 | inline ::safepower_agent_config::NodeOsConfig* SafePowerAgentConfig::unsafe_arena_release_node_os_config() { |
5375 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.node_os_config) |
5376 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
5377 | 0 | ::safepower_agent_config::NodeOsConfig* temp = _impl_.node_os_config_; |
5378 | 0 | _impl_.node_os_config_ = nullptr; |
5379 | 0 | return temp; |
5380 | 0 | } |
5381 | 0 | inline ::safepower_agent_config::NodeOsConfig* SafePowerAgentConfig::_internal_mutable_node_os_config() { |
5382 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
5383 | 0 | if (_impl_.node_os_config_ == nullptr) { |
5384 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::NodeOsConfig>(GetArenaForAllocation()); |
5385 | 0 | _impl_.node_os_config_ = p; |
5386 | 0 | } |
5387 | 0 | return _impl_.node_os_config_; |
5388 | 0 | } |
5389 | 0 | inline ::safepower_agent_config::NodeOsConfig* SafePowerAgentConfig::mutable_node_os_config() { |
5390 | 0 | ::safepower_agent_config::NodeOsConfig* _msg = _internal_mutable_node_os_config(); |
5391 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.node_os_config) |
5392 | 0 | return _msg; |
5393 | 0 | } |
5394 | 0 | inline void SafePowerAgentConfig::set_allocated_node_os_config(::safepower_agent_config::NodeOsConfig* node_os_config) { |
5395 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5396 | 0 | if (message_arena == nullptr) { |
5397 | 0 | delete _impl_.node_os_config_; |
5398 | 0 | } |
5399 | 0 | if (node_os_config) { |
5400 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5401 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(node_os_config); |
5402 | 0 | if (message_arena != submessage_arena) { |
5403 | 0 | node_os_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5404 | 0 | message_arena, node_os_config, submessage_arena); |
5405 | 0 | } |
5406 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
5407 | 0 | } else { |
5408 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
5409 | 0 | } |
5410 | 0 | _impl_.node_os_config_ = node_os_config; |
5411 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.node_os_config) |
5412 | 0 | } |
5413 | | |
5414 | | // optional .safepower_agent_config.GrpcConfig grpc_config = 5; |
5415 | 0 | inline bool SafePowerAgentConfig::_internal_has_grpc_config() const { |
5416 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
5417 | 0 | PROTOBUF_ASSUME(!value || _impl_.grpc_config_ != nullptr); |
5418 | 0 | return value; |
5419 | 0 | } |
5420 | 0 | inline bool SafePowerAgentConfig::has_grpc_config() const { |
5421 | 0 | return _internal_has_grpc_config(); |
5422 | 0 | } |
5423 | 0 | inline void SafePowerAgentConfig::clear_grpc_config() { |
5424 | 0 | if (_impl_.grpc_config_ != nullptr) _impl_.grpc_config_->Clear(); |
5425 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
5426 | 0 | } |
5427 | 0 | inline const ::safepower_agent_config::GrpcConfig& SafePowerAgentConfig::_internal_grpc_config() const { |
5428 | 0 | const ::safepower_agent_config::GrpcConfig* p = _impl_.grpc_config_; |
5429 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::GrpcConfig&>( |
5430 | 0 | ::safepower_agent_config::_GrpcConfig_default_instance_); |
5431 | 0 | } |
5432 | 0 | inline const ::safepower_agent_config::GrpcConfig& SafePowerAgentConfig::grpc_config() const { |
5433 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.grpc_config) |
5434 | 0 | return _internal_grpc_config(); |
5435 | 0 | } |
5436 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_grpc_config( |
5437 | 0 | ::safepower_agent_config::GrpcConfig* grpc_config) { |
5438 | 0 | if (GetArenaForAllocation() == nullptr) { |
5439 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.grpc_config_); |
5440 | 0 | } |
5441 | 0 | _impl_.grpc_config_ = grpc_config; |
5442 | 0 | if (grpc_config) { |
5443 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
5444 | 0 | } else { |
5445 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
5446 | 0 | } |
5447 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.grpc_config) |
5448 | 0 | } |
5449 | 0 | inline ::safepower_agent_config::GrpcConfig* SafePowerAgentConfig::release_grpc_config() { |
5450 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
5451 | 0 | ::safepower_agent_config::GrpcConfig* temp = _impl_.grpc_config_; |
5452 | 0 | _impl_.grpc_config_ = nullptr; |
5453 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5454 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5455 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5456 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5457 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5458 | 0 | if (GetArenaForAllocation() != nullptr) { |
5459 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5460 | 0 | } |
5461 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5462 | 0 | return temp; |
5463 | 0 | } |
5464 | 0 | inline ::safepower_agent_config::GrpcConfig* SafePowerAgentConfig::unsafe_arena_release_grpc_config() { |
5465 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.grpc_config) |
5466 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
5467 | 0 | ::safepower_agent_config::GrpcConfig* temp = _impl_.grpc_config_; |
5468 | 0 | _impl_.grpc_config_ = nullptr; |
5469 | 0 | return temp; |
5470 | 0 | } |
5471 | 0 | inline ::safepower_agent_config::GrpcConfig* SafePowerAgentConfig::_internal_mutable_grpc_config() { |
5472 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
5473 | 0 | if (_impl_.grpc_config_ == nullptr) { |
5474 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::GrpcConfig>(GetArenaForAllocation()); |
5475 | 0 | _impl_.grpc_config_ = p; |
5476 | 0 | } |
5477 | 0 | return _impl_.grpc_config_; |
5478 | 0 | } |
5479 | 0 | inline ::safepower_agent_config::GrpcConfig* SafePowerAgentConfig::mutable_grpc_config() { |
5480 | 0 | ::safepower_agent_config::GrpcConfig* _msg = _internal_mutable_grpc_config(); |
5481 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.grpc_config) |
5482 | 0 | return _msg; |
5483 | 0 | } |
5484 | 0 | inline void SafePowerAgentConfig::set_allocated_grpc_config(::safepower_agent_config::GrpcConfig* grpc_config) { |
5485 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5486 | 0 | if (message_arena == nullptr) { |
5487 | 0 | delete _impl_.grpc_config_; |
5488 | 0 | } |
5489 | 0 | if (grpc_config) { |
5490 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5491 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(grpc_config); |
5492 | 0 | if (message_arena != submessage_arena) { |
5493 | 0 | grpc_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5494 | 0 | message_arena, grpc_config, submessage_arena); |
5495 | 0 | } |
5496 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
5497 | 0 | } else { |
5498 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
5499 | 0 | } |
5500 | 0 | _impl_.grpc_config_ = grpc_config; |
5501 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.grpc_config) |
5502 | 0 | } |
5503 | | |
5504 | | // optional .safepower_agent_config.ConditionValidationOptions condition_validation_options = 6; |
5505 | 0 | inline bool SafePowerAgentConfig::_internal_has_condition_validation_options() const { |
5506 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; |
5507 | 0 | PROTOBUF_ASSUME(!value || _impl_.condition_validation_options_ != nullptr); |
5508 | 0 | return value; |
5509 | 0 | } |
5510 | 0 | inline bool SafePowerAgentConfig::has_condition_validation_options() const { |
5511 | 0 | return _internal_has_condition_validation_options(); |
5512 | 0 | } |
5513 | 0 | inline void SafePowerAgentConfig::clear_condition_validation_options() { |
5514 | 0 | if (_impl_.condition_validation_options_ != nullptr) _impl_.condition_validation_options_->Clear(); |
5515 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
5516 | 0 | } |
5517 | 0 | inline const ::safepower_agent_config::ConditionValidationOptions& SafePowerAgentConfig::_internal_condition_validation_options() const { |
5518 | 0 | const ::safepower_agent_config::ConditionValidationOptions* p = _impl_.condition_validation_options_; |
5519 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::ConditionValidationOptions&>( |
5520 | 0 | ::safepower_agent_config::_ConditionValidationOptions_default_instance_); |
5521 | 0 | } |
5522 | 0 | inline const ::safepower_agent_config::ConditionValidationOptions& SafePowerAgentConfig::condition_validation_options() const { |
5523 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.condition_validation_options) |
5524 | 0 | return _internal_condition_validation_options(); |
5525 | 0 | } |
5526 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_condition_validation_options( |
5527 | 0 | ::safepower_agent_config::ConditionValidationOptions* condition_validation_options) { |
5528 | 0 | if (GetArenaForAllocation() == nullptr) { |
5529 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.condition_validation_options_); |
5530 | 0 | } |
5531 | 0 | _impl_.condition_validation_options_ = condition_validation_options; |
5532 | 0 | if (condition_validation_options) { |
5533 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
5534 | 0 | } else { |
5535 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
5536 | 0 | } |
5537 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.condition_validation_options) |
5538 | 0 | } |
5539 | 0 | inline ::safepower_agent_config::ConditionValidationOptions* SafePowerAgentConfig::release_condition_validation_options() { |
5540 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
5541 | 0 | ::safepower_agent_config::ConditionValidationOptions* temp = _impl_.condition_validation_options_; |
5542 | 0 | _impl_.condition_validation_options_ = nullptr; |
5543 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5544 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5545 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5546 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5547 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5548 | 0 | if (GetArenaForAllocation() != nullptr) { |
5549 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5550 | 0 | } |
5551 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5552 | 0 | return temp; |
5553 | 0 | } |
5554 | 0 | inline ::safepower_agent_config::ConditionValidationOptions* SafePowerAgentConfig::unsafe_arena_release_condition_validation_options() { |
5555 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.condition_validation_options) |
5556 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
5557 | 0 | ::safepower_agent_config::ConditionValidationOptions* temp = _impl_.condition_validation_options_; |
5558 | 0 | _impl_.condition_validation_options_ = nullptr; |
5559 | 0 | return temp; |
5560 | 0 | } |
5561 | 0 | inline ::safepower_agent_config::ConditionValidationOptions* SafePowerAgentConfig::_internal_mutable_condition_validation_options() { |
5562 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
5563 | 0 | if (_impl_.condition_validation_options_ == nullptr) { |
5564 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::ConditionValidationOptions>(GetArenaForAllocation()); |
5565 | 0 | _impl_.condition_validation_options_ = p; |
5566 | 0 | } |
5567 | 0 | return _impl_.condition_validation_options_; |
5568 | 0 | } |
5569 | 0 | inline ::safepower_agent_config::ConditionValidationOptions* SafePowerAgentConfig::mutable_condition_validation_options() { |
5570 | 0 | ::safepower_agent_config::ConditionValidationOptions* _msg = _internal_mutable_condition_validation_options(); |
5571 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.condition_validation_options) |
5572 | 0 | return _msg; |
5573 | 0 | } |
5574 | 0 | inline void SafePowerAgentConfig::set_allocated_condition_validation_options(::safepower_agent_config::ConditionValidationOptions* condition_validation_options) { |
5575 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5576 | 0 | if (message_arena == nullptr) { |
5577 | 0 | delete _impl_.condition_validation_options_; |
5578 | 0 | } |
5579 | 0 | if (condition_validation_options) { |
5580 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5581 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(condition_validation_options); |
5582 | 0 | if (message_arena != submessage_arena) { |
5583 | 0 | condition_validation_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5584 | 0 | message_arena, condition_validation_options, submessage_arena); |
5585 | 0 | } |
5586 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
5587 | 0 | } else { |
5588 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
5589 | 0 | } |
5590 | 0 | _impl_.condition_validation_options_ = condition_validation_options; |
5591 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.condition_validation_options) |
5592 | 0 | } |
5593 | | |
5594 | | // optional string offline_node_entities_path = 7; |
5595 | 0 | inline bool SafePowerAgentConfig::_internal_has_offline_node_entities_path() const { |
5596 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
5597 | 0 | return value; |
5598 | 0 | } |
5599 | 0 | inline bool SafePowerAgentConfig::has_offline_node_entities_path() const { |
5600 | 0 | return _internal_has_offline_node_entities_path(); |
5601 | 0 | } |
5602 | 0 | inline void SafePowerAgentConfig::clear_offline_node_entities_path() { |
5603 | 0 | _impl_.offline_node_entities_path_.ClearToEmpty(); |
5604 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
5605 | 0 | } |
5606 | 0 | inline const std::string& SafePowerAgentConfig::offline_node_entities_path() const { |
5607 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.offline_node_entities_path) |
5608 | 0 | return _internal_offline_node_entities_path(); |
5609 | 0 | } |
5610 | | template <typename ArgT0, typename... ArgT> |
5611 | | inline PROTOBUF_ALWAYS_INLINE |
5612 | | void SafePowerAgentConfig::set_offline_node_entities_path(ArgT0&& arg0, ArgT... args) { |
5613 | | _impl_._has_bits_[0] |= 0x00000001u; |
5614 | | _impl_.offline_node_entities_path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
5615 | | // @@protoc_insertion_point(field_set:safepower_agent_config.SafePowerAgentConfig.offline_node_entities_path) |
5616 | | } |
5617 | 0 | inline std::string* SafePowerAgentConfig::mutable_offline_node_entities_path() { |
5618 | 0 | std::string* _s = _internal_mutable_offline_node_entities_path(); |
5619 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.offline_node_entities_path) |
5620 | 0 | return _s; |
5621 | 0 | } |
5622 | 0 | inline const std::string& SafePowerAgentConfig::_internal_offline_node_entities_path() const { |
5623 | 0 | return _impl_.offline_node_entities_path_.Get(); |
5624 | 0 | } |
5625 | 0 | inline void SafePowerAgentConfig::_internal_set_offline_node_entities_path(const std::string& value) { |
5626 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
5627 | 0 | _impl_.offline_node_entities_path_.Set(value, GetArenaForAllocation()); |
5628 | 0 | } |
5629 | 0 | inline std::string* SafePowerAgentConfig::_internal_mutable_offline_node_entities_path() { |
5630 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
5631 | 0 | return _impl_.offline_node_entities_path_.Mutable(GetArenaForAllocation()); |
5632 | 0 | } |
5633 | 0 | inline std::string* SafePowerAgentConfig::release_offline_node_entities_path() { |
5634 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.offline_node_entities_path) |
5635 | 0 | if (!_internal_has_offline_node_entities_path()) { |
5636 | 0 | return nullptr; |
5637 | 0 | } |
5638 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
5639 | 0 | auto* p = _impl_.offline_node_entities_path_.Release(); |
5640 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
5641 | 0 | if (_impl_.offline_node_entities_path_.IsDefault()) { |
5642 | 0 | _impl_.offline_node_entities_path_.Set("", GetArenaForAllocation()); |
5643 | 0 | } |
5644 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
5645 | 0 | return p; |
5646 | 0 | } |
5647 | 0 | inline void SafePowerAgentConfig::set_allocated_offline_node_entities_path(std::string* offline_node_entities_path) { |
5648 | 0 | if (offline_node_entities_path != nullptr) { |
5649 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
5650 | 0 | } else { |
5651 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
5652 | 0 | } |
5653 | 0 | _impl_.offline_node_entities_path_.SetAllocated(offline_node_entities_path, GetArenaForAllocation()); |
5654 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
5655 | 0 | if (_impl_.offline_node_entities_path_.IsDefault()) { |
5656 | 0 | _impl_.offline_node_entities_path_.Set("", GetArenaForAllocation()); |
5657 | 0 | } |
5658 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
5659 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.offline_node_entities_path) |
5660 | 0 | } |
5661 | | |
5662 | | // optional bool enable_insecure_grpc = 8 [default = false]; |
5663 | 0 | inline bool SafePowerAgentConfig::_internal_has_enable_insecure_grpc() const { |
5664 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; |
5665 | 0 | return value; |
5666 | 0 | } |
5667 | 0 | inline bool SafePowerAgentConfig::has_enable_insecure_grpc() const { |
5668 | 0 | return _internal_has_enable_insecure_grpc(); |
5669 | 0 | } |
5670 | 0 | inline void SafePowerAgentConfig::clear_enable_insecure_grpc() { |
5671 | 0 | _impl_.enable_insecure_grpc_ = false; |
5672 | 0 | _impl_._has_bits_[0] &= ~0x00000100u; |
5673 | 0 | } |
5674 | 0 | inline bool SafePowerAgentConfig::_internal_enable_insecure_grpc() const { |
5675 | 0 | return _impl_.enable_insecure_grpc_; |
5676 | 0 | } |
5677 | 0 | inline bool SafePowerAgentConfig::enable_insecure_grpc() const { |
5678 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.enable_insecure_grpc) |
5679 | 0 | return _internal_enable_insecure_grpc(); |
5680 | 0 | } |
5681 | 0 | inline void SafePowerAgentConfig::_internal_set_enable_insecure_grpc(bool value) { |
5682 | 0 | _impl_._has_bits_[0] |= 0x00000100u; |
5683 | 0 | _impl_.enable_insecure_grpc_ = value; |
5684 | 0 | } |
5685 | 0 | inline void SafePowerAgentConfig::set_enable_insecure_grpc(bool value) { |
5686 | 0 | _internal_set_enable_insecure_grpc(value); |
5687 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.SafePowerAgentConfig.enable_insecure_grpc) |
5688 | 0 | } |
5689 | | |
5690 | | // optional int32 insecure_grpc_port = 9 [default = 20130]; |
5691 | 0 | inline bool SafePowerAgentConfig::_internal_has_insecure_grpc_port() const { |
5692 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; |
5693 | 0 | return value; |
5694 | 0 | } |
5695 | 0 | inline bool SafePowerAgentConfig::has_insecure_grpc_port() const { |
5696 | 0 | return _internal_has_insecure_grpc_port(); |
5697 | 0 | } |
5698 | 0 | inline void SafePowerAgentConfig::clear_insecure_grpc_port() { |
5699 | 0 | _impl_.insecure_grpc_port_ = 20130; |
5700 | 0 | _impl_._has_bits_[0] &= ~0x00000200u; |
5701 | 0 | } |
5702 | 0 | inline int32_t SafePowerAgentConfig::_internal_insecure_grpc_port() const { |
5703 | 0 | return _impl_.insecure_grpc_port_; |
5704 | 0 | } |
5705 | 0 | inline int32_t SafePowerAgentConfig::insecure_grpc_port() const { |
5706 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.insecure_grpc_port) |
5707 | 0 | return _internal_insecure_grpc_port(); |
5708 | 0 | } |
5709 | 0 | inline void SafePowerAgentConfig::_internal_set_insecure_grpc_port(int32_t value) { |
5710 | 0 | _impl_._has_bits_[0] |= 0x00000200u; |
5711 | 0 | _impl_.insecure_grpc_port_ = value; |
5712 | 0 | } |
5713 | 0 | inline void SafePowerAgentConfig::set_insecure_grpc_port(int32_t value) { |
5714 | 0 | _internal_set_insecure_grpc_port(value); |
5715 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.SafePowerAgentConfig.insecure_grpc_port) |
5716 | 0 | } |
5717 | | |
5718 | | // optional .safepower_agent_config.SystemdTargetMonitorConfig systemd_target_monitor_config = 10; |
5719 | 0 | inline bool SafePowerAgentConfig::_internal_has_systemd_target_monitor_config() const { |
5720 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; |
5721 | 0 | PROTOBUF_ASSUME(!value || _impl_.systemd_target_monitor_config_ != nullptr); |
5722 | 0 | return value; |
5723 | 0 | } |
5724 | 0 | inline bool SafePowerAgentConfig::has_systemd_target_monitor_config() const { |
5725 | 0 | return _internal_has_systemd_target_monitor_config(); |
5726 | 0 | } |
5727 | 0 | inline void SafePowerAgentConfig::clear_systemd_target_monitor_config() { |
5728 | 0 | if (_impl_.systemd_target_monitor_config_ != nullptr) _impl_.systemd_target_monitor_config_->Clear(); |
5729 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
5730 | 0 | } |
5731 | 0 | inline const ::safepower_agent_config::SystemdTargetMonitorConfig& SafePowerAgentConfig::_internal_systemd_target_monitor_config() const { |
5732 | 0 | const ::safepower_agent_config::SystemdTargetMonitorConfig* p = _impl_.systemd_target_monitor_config_; |
5733 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::SystemdTargetMonitorConfig&>( |
5734 | 0 | ::safepower_agent_config::_SystemdTargetMonitorConfig_default_instance_); |
5735 | 0 | } |
5736 | 0 | inline const ::safepower_agent_config::SystemdTargetMonitorConfig& SafePowerAgentConfig::systemd_target_monitor_config() const { |
5737 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.systemd_target_monitor_config) |
5738 | 0 | return _internal_systemd_target_monitor_config(); |
5739 | 0 | } |
5740 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_systemd_target_monitor_config( |
5741 | 0 | ::safepower_agent_config::SystemdTargetMonitorConfig* systemd_target_monitor_config) { |
5742 | 0 | if (GetArenaForAllocation() == nullptr) { |
5743 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.systemd_target_monitor_config_); |
5744 | 0 | } |
5745 | 0 | _impl_.systemd_target_monitor_config_ = systemd_target_monitor_config; |
5746 | 0 | if (systemd_target_monitor_config) { |
5747 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
5748 | 0 | } else { |
5749 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
5750 | 0 | } |
5751 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.systemd_target_monitor_config) |
5752 | 0 | } |
5753 | 0 | inline ::safepower_agent_config::SystemdTargetMonitorConfig* SafePowerAgentConfig::release_systemd_target_monitor_config() { |
5754 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
5755 | 0 | ::safepower_agent_config::SystemdTargetMonitorConfig* temp = _impl_.systemd_target_monitor_config_; |
5756 | 0 | _impl_.systemd_target_monitor_config_ = nullptr; |
5757 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5758 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5759 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5760 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5761 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5762 | 0 | if (GetArenaForAllocation() != nullptr) { |
5763 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5764 | 0 | } |
5765 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5766 | 0 | return temp; |
5767 | 0 | } |
5768 | 0 | inline ::safepower_agent_config::SystemdTargetMonitorConfig* SafePowerAgentConfig::unsafe_arena_release_systemd_target_monitor_config() { |
5769 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.systemd_target_monitor_config) |
5770 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
5771 | 0 | ::safepower_agent_config::SystemdTargetMonitorConfig* temp = _impl_.systemd_target_monitor_config_; |
5772 | 0 | _impl_.systemd_target_monitor_config_ = nullptr; |
5773 | 0 | return temp; |
5774 | 0 | } |
5775 | 0 | inline ::safepower_agent_config::SystemdTargetMonitorConfig* SafePowerAgentConfig::_internal_mutable_systemd_target_monitor_config() { |
5776 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
5777 | 0 | if (_impl_.systemd_target_monitor_config_ == nullptr) { |
5778 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::SystemdTargetMonitorConfig>(GetArenaForAllocation()); |
5779 | 0 | _impl_.systemd_target_monitor_config_ = p; |
5780 | 0 | } |
5781 | 0 | return _impl_.systemd_target_monitor_config_; |
5782 | 0 | } |
5783 | 0 | inline ::safepower_agent_config::SystemdTargetMonitorConfig* SafePowerAgentConfig::mutable_systemd_target_monitor_config() { |
5784 | 0 | ::safepower_agent_config::SystemdTargetMonitorConfig* _msg = _internal_mutable_systemd_target_monitor_config(); |
5785 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.systemd_target_monitor_config) |
5786 | 0 | return _msg; |
5787 | 0 | } |
5788 | 0 | inline void SafePowerAgentConfig::set_allocated_systemd_target_monitor_config(::safepower_agent_config::SystemdTargetMonitorConfig* systemd_target_monitor_config) { |
5789 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5790 | 0 | if (message_arena == nullptr) { |
5791 | 0 | delete _impl_.systemd_target_monitor_config_; |
5792 | 0 | } |
5793 | 0 | if (systemd_target_monitor_config) { |
5794 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5795 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(systemd_target_monitor_config); |
5796 | 0 | if (message_arena != submessage_arena) { |
5797 | 0 | systemd_target_monitor_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5798 | 0 | message_arena, systemd_target_monitor_config, submessage_arena); |
5799 | 0 | } |
5800 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
5801 | 0 | } else { |
5802 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
5803 | 0 | } |
5804 | 0 | _impl_.systemd_target_monitor_config_ = systemd_target_monitor_config; |
5805 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.systemd_target_monitor_config) |
5806 | 0 | } |
5807 | | |
5808 | | // optional .safepower_agent_proto.BuildInfo build_info = 11; |
5809 | 0 | inline bool SafePowerAgentConfig::_internal_has_build_info() const { |
5810 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; |
5811 | 0 | PROTOBUF_ASSUME(!value || _impl_.build_info_ != nullptr); |
5812 | 0 | return value; |
5813 | 0 | } |
5814 | 0 | inline bool SafePowerAgentConfig::has_build_info() const { |
5815 | 0 | return _internal_has_build_info(); |
5816 | 0 | } |
5817 | 0 | inline const ::safepower_agent_proto::BuildInfo& SafePowerAgentConfig::_internal_build_info() const { |
5818 | 0 | const ::safepower_agent_proto::BuildInfo* p = _impl_.build_info_; |
5819 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::BuildInfo&>( |
5820 | 0 | ::safepower_agent_proto::_BuildInfo_default_instance_); |
5821 | 0 | } |
5822 | 0 | inline const ::safepower_agent_proto::BuildInfo& SafePowerAgentConfig::build_info() const { |
5823 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SafePowerAgentConfig.build_info) |
5824 | 0 | return _internal_build_info(); |
5825 | 0 | } |
5826 | | inline void SafePowerAgentConfig::unsafe_arena_set_allocated_build_info( |
5827 | 0 | ::safepower_agent_proto::BuildInfo* build_info) { |
5828 | 0 | if (GetArenaForAllocation() == nullptr) { |
5829 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.build_info_); |
5830 | 0 | } |
5831 | 0 | _impl_.build_info_ = build_info; |
5832 | 0 | if (build_info) { |
5833 | 0 | _impl_._has_bits_[0] |= 0x00000080u; |
5834 | 0 | } else { |
5835 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
5836 | 0 | } |
5837 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.SafePowerAgentConfig.build_info) |
5838 | 0 | } |
5839 | 0 | inline ::safepower_agent_proto::BuildInfo* SafePowerAgentConfig::release_build_info() { |
5840 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
5841 | 0 | ::safepower_agent_proto::BuildInfo* temp = _impl_.build_info_; |
5842 | 0 | _impl_.build_info_ = nullptr; |
5843 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
5844 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
5845 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5846 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
5847 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
5848 | 0 | if (GetArenaForAllocation() != nullptr) { |
5849 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5850 | 0 | } |
5851 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
5852 | 0 | return temp; |
5853 | 0 | } |
5854 | 0 | inline ::safepower_agent_proto::BuildInfo* SafePowerAgentConfig::unsafe_arena_release_build_info() { |
5855 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SafePowerAgentConfig.build_info) |
5856 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
5857 | 0 | ::safepower_agent_proto::BuildInfo* temp = _impl_.build_info_; |
5858 | 0 | _impl_.build_info_ = nullptr; |
5859 | 0 | return temp; |
5860 | 0 | } |
5861 | 0 | inline ::safepower_agent_proto::BuildInfo* SafePowerAgentConfig::_internal_mutable_build_info() { |
5862 | 0 | _impl_._has_bits_[0] |= 0x00000080u; |
5863 | 0 | if (_impl_.build_info_ == nullptr) { |
5864 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_proto::BuildInfo>(GetArenaForAllocation()); |
5865 | 0 | _impl_.build_info_ = p; |
5866 | 0 | } |
5867 | 0 | return _impl_.build_info_; |
5868 | 0 | } |
5869 | 0 | inline ::safepower_agent_proto::BuildInfo* SafePowerAgentConfig::mutable_build_info() { |
5870 | 0 | ::safepower_agent_proto::BuildInfo* _msg = _internal_mutable_build_info(); |
5871 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SafePowerAgentConfig.build_info) |
5872 | 0 | return _msg; |
5873 | 0 | } |
5874 | 0 | inline void SafePowerAgentConfig::set_allocated_build_info(::safepower_agent_proto::BuildInfo* build_info) { |
5875 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
5876 | 0 | if (message_arena == nullptr) { |
5877 | 0 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.build_info_); |
5878 | 0 | } |
5879 | 0 | if (build_info) { |
5880 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
5881 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
5882 | 0 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(build_info)); |
5883 | 0 | if (message_arena != submessage_arena) { |
5884 | 0 | build_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5885 | 0 | message_arena, build_info, submessage_arena); |
5886 | 0 | } |
5887 | 0 | _impl_._has_bits_[0] |= 0x00000080u; |
5888 | 0 | } else { |
5889 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
5890 | 0 | } |
5891 | 0 | _impl_.build_info_ = build_info; |
5892 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SafePowerAgentConfig.build_info) |
5893 | 0 | } |
5894 | | |
5895 | | // ------------------------------------------------------------------- |
5896 | | |
5897 | | // SystemdTargetMonitorConfig |
5898 | | |
5899 | | // optional uint32 poll_interval_seconds = 1 [default = 10]; |
5900 | 0 | inline bool SystemdTargetMonitorConfig::_internal_has_poll_interval_seconds() const { |
5901 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
5902 | 0 | return value; |
5903 | 0 | } |
5904 | 0 | inline bool SystemdTargetMonitorConfig::has_poll_interval_seconds() const { |
5905 | 0 | return _internal_has_poll_interval_seconds(); |
5906 | 0 | } |
5907 | 0 | inline void SystemdTargetMonitorConfig::clear_poll_interval_seconds() { |
5908 | 0 | _impl_.poll_interval_seconds_ = 10u; |
5909 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
5910 | 0 | } |
5911 | 0 | inline uint32_t SystemdTargetMonitorConfig::_internal_poll_interval_seconds() const { |
5912 | 0 | return _impl_.poll_interval_seconds_; |
5913 | 0 | } |
5914 | 0 | inline uint32_t SystemdTargetMonitorConfig::poll_interval_seconds() const { |
5915 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SystemdTargetMonitorConfig.poll_interval_seconds) |
5916 | 0 | return _internal_poll_interval_seconds(); |
5917 | 0 | } |
5918 | 0 | inline void SystemdTargetMonitorConfig::_internal_set_poll_interval_seconds(uint32_t value) { |
5919 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
5920 | 0 | _impl_.poll_interval_seconds_ = value; |
5921 | 0 | } |
5922 | 0 | inline void SystemdTargetMonitorConfig::set_poll_interval_seconds(uint32_t value) { |
5923 | 0 | _internal_set_poll_interval_seconds(value); |
5924 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.SystemdTargetMonitorConfig.poll_interval_seconds) |
5925 | 0 | } |
5926 | | |
5927 | | // optional string dbus_address = 2 [default = "system"]; |
5928 | 0 | inline bool SystemdTargetMonitorConfig::_internal_has_dbus_address() const { |
5929 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
5930 | 0 | return value; |
5931 | 0 | } |
5932 | 0 | inline bool SystemdTargetMonitorConfig::has_dbus_address() const { |
5933 | 0 | return _internal_has_dbus_address(); |
5934 | 0 | } |
5935 | 0 | inline void SystemdTargetMonitorConfig::clear_dbus_address() { |
5936 | 0 | _impl_.dbus_address_.ClearToDefault(::safepower_agent_config::SystemdTargetMonitorConfig::Impl_::_i_give_permission_to_break_this_code_default_dbus_address_, GetArenaForAllocation()); |
5937 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
5938 | 0 | } |
5939 | 0 | inline const std::string& SystemdTargetMonitorConfig::dbus_address() const { |
5940 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SystemdTargetMonitorConfig.dbus_address) |
5941 | 0 | if (_impl_.dbus_address_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_dbus_address_.get(); |
5942 | 0 | return _internal_dbus_address(); |
5943 | 0 | } |
5944 | | template <typename ArgT0, typename... ArgT> |
5945 | | inline PROTOBUF_ALWAYS_INLINE |
5946 | | void SystemdTargetMonitorConfig::set_dbus_address(ArgT0&& arg0, ArgT... args) { |
5947 | | _impl_._has_bits_[0] |= 0x00000001u; |
5948 | | _impl_.dbus_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
5949 | | // @@protoc_insertion_point(field_set:safepower_agent_config.SystemdTargetMonitorConfig.dbus_address) |
5950 | | } |
5951 | 0 | inline std::string* SystemdTargetMonitorConfig::mutable_dbus_address() { |
5952 | 0 | std::string* _s = _internal_mutable_dbus_address(); |
5953 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.SystemdTargetMonitorConfig.dbus_address) |
5954 | 0 | return _s; |
5955 | 0 | } |
5956 | 0 | inline const std::string& SystemdTargetMonitorConfig::_internal_dbus_address() const { |
5957 | 0 | return _impl_.dbus_address_.Get(); |
5958 | 0 | } |
5959 | 0 | inline void SystemdTargetMonitorConfig::_internal_set_dbus_address(const std::string& value) { |
5960 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
5961 | 0 | _impl_.dbus_address_.Set(value, GetArenaForAllocation()); |
5962 | 0 | } |
5963 | 0 | inline std::string* SystemdTargetMonitorConfig::_internal_mutable_dbus_address() { |
5964 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
5965 | 0 | return _impl_.dbus_address_.Mutable(::safepower_agent_config::SystemdTargetMonitorConfig::Impl_::_i_give_permission_to_break_this_code_default_dbus_address_, GetArenaForAllocation()); |
5966 | 0 | } |
5967 | 0 | inline std::string* SystemdTargetMonitorConfig::release_dbus_address() { |
5968 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.SystemdTargetMonitorConfig.dbus_address) |
5969 | 0 | if (!_internal_has_dbus_address()) { |
5970 | 0 | return nullptr; |
5971 | 0 | } |
5972 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
5973 | 0 | auto* p = _impl_.dbus_address_.Release(); |
5974 | 0 | return p; |
5975 | 0 | } |
5976 | 0 | inline void SystemdTargetMonitorConfig::set_allocated_dbus_address(std::string* dbus_address) { |
5977 | 0 | if (dbus_address != nullptr) { |
5978 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
5979 | 0 | } else { |
5980 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
5981 | 0 | } |
5982 | 0 | _impl_.dbus_address_.SetAllocated(dbus_address, GetArenaForAllocation()); |
5983 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.SystemdTargetMonitorConfig.dbus_address) |
5984 | 0 | } |
5985 | | |
5986 | | // optional int32 systemd_client_timeout_ms = 3 [default = 5000]; |
5987 | 0 | inline bool SystemdTargetMonitorConfig::_internal_has_systemd_client_timeout_ms() const { |
5988 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
5989 | 0 | return value; |
5990 | 0 | } |
5991 | 0 | inline bool SystemdTargetMonitorConfig::has_systemd_client_timeout_ms() const { |
5992 | 0 | return _internal_has_systemd_client_timeout_ms(); |
5993 | 0 | } |
5994 | 0 | inline void SystemdTargetMonitorConfig::clear_systemd_client_timeout_ms() { |
5995 | 0 | _impl_.systemd_client_timeout_ms_ = 5000; |
5996 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
5997 | 0 | } |
5998 | 0 | inline int32_t SystemdTargetMonitorConfig::_internal_systemd_client_timeout_ms() const { |
5999 | 0 | return _impl_.systemd_client_timeout_ms_; |
6000 | 0 | } |
6001 | 0 | inline int32_t SystemdTargetMonitorConfig::systemd_client_timeout_ms() const { |
6002 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SystemdTargetMonitorConfig.systemd_client_timeout_ms) |
6003 | 0 | return _internal_systemd_client_timeout_ms(); |
6004 | 0 | } |
6005 | 0 | inline void SystemdTargetMonitorConfig::_internal_set_systemd_client_timeout_ms(int32_t value) { |
6006 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
6007 | 0 | _impl_.systemd_client_timeout_ms_ = value; |
6008 | 0 | } |
6009 | 0 | inline void SystemdTargetMonitorConfig::set_systemd_client_timeout_ms(int32_t value) { |
6010 | 0 | _internal_set_systemd_client_timeout_ms(value); |
6011 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.SystemdTargetMonitorConfig.systemd_client_timeout_ms) |
6012 | 0 | } |
6013 | | |
6014 | | // optional int32 max_consecutive_failures = 4 [default = 5]; |
6015 | 0 | inline bool SystemdTargetMonitorConfig::_internal_has_max_consecutive_failures() const { |
6016 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
6017 | 0 | return value; |
6018 | 0 | } |
6019 | 0 | inline bool SystemdTargetMonitorConfig::has_max_consecutive_failures() const { |
6020 | 0 | return _internal_has_max_consecutive_failures(); |
6021 | 0 | } |
6022 | 0 | inline void SystemdTargetMonitorConfig::clear_max_consecutive_failures() { |
6023 | 0 | _impl_.max_consecutive_failures_ = 5; |
6024 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6025 | 0 | } |
6026 | 0 | inline int32_t SystemdTargetMonitorConfig::_internal_max_consecutive_failures() const { |
6027 | 0 | return _impl_.max_consecutive_failures_; |
6028 | 0 | } |
6029 | 0 | inline int32_t SystemdTargetMonitorConfig::max_consecutive_failures() const { |
6030 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.SystemdTargetMonitorConfig.max_consecutive_failures) |
6031 | 0 | return _internal_max_consecutive_failures(); |
6032 | 0 | } |
6033 | 0 | inline void SystemdTargetMonitorConfig::_internal_set_max_consecutive_failures(int32_t value) { |
6034 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6035 | 0 | _impl_.max_consecutive_failures_ = value; |
6036 | 0 | } |
6037 | 0 | inline void SystemdTargetMonitorConfig::set_max_consecutive_failures(int32_t value) { |
6038 | 0 | _internal_set_max_consecutive_failures(value); |
6039 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.SystemdTargetMonitorConfig.max_consecutive_failures) |
6040 | 0 | } |
6041 | | |
6042 | | // ------------------------------------------------------------------- |
6043 | | |
6044 | | // ConditionValidationOptions |
6045 | | |
6046 | | // optional int32 max_boots = 1 [default = 4]; |
6047 | 0 | inline bool ConditionValidationOptions::_internal_has_max_boots() const { |
6048 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
6049 | 0 | return value; |
6050 | 0 | } |
6051 | 0 | inline bool ConditionValidationOptions::has_max_boots() const { |
6052 | 0 | return _internal_has_max_boots(); |
6053 | 0 | } |
6054 | 0 | inline void ConditionValidationOptions::clear_max_boots() { |
6055 | 0 | _impl_.max_boots_ = 4; |
6056 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6057 | 0 | } |
6058 | 6.88k | inline int32_t ConditionValidationOptions::_internal_max_boots() const { |
6059 | 6.88k | return _impl_.max_boots_; |
6060 | 6.88k | } |
6061 | 6.88k | inline int32_t ConditionValidationOptions::max_boots() const { |
6062 | | // @@protoc_insertion_point(field_get:safepower_agent_config.ConditionValidationOptions.max_boots) |
6063 | 6.88k | return _internal_max_boots(); |
6064 | 6.88k | } |
6065 | 6.88k | inline void ConditionValidationOptions::_internal_set_max_boots(int32_t value) { |
6066 | 6.88k | _impl_._has_bits_[0] |= 0x00000001u; |
6067 | 6.88k | _impl_.max_boots_ = value; |
6068 | 6.88k | } |
6069 | 6.88k | inline void ConditionValidationOptions::set_max_boots(int32_t value) { |
6070 | 6.88k | _internal_set_max_boots(value); |
6071 | | // @@protoc_insertion_point(field_set:safepower_agent_config.ConditionValidationOptions.max_boots) |
6072 | 6.88k | } |
6073 | | |
6074 | | // optional int32 max_timeout_seconds = 2 [default = 7200]; |
6075 | 0 | inline bool ConditionValidationOptions::_internal_has_max_timeout_seconds() const { |
6076 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
6077 | 0 | return value; |
6078 | 0 | } |
6079 | 0 | inline bool ConditionValidationOptions::has_max_timeout_seconds() const { |
6080 | 0 | return _internal_has_max_timeout_seconds(); |
6081 | 0 | } |
6082 | 0 | inline void ConditionValidationOptions::clear_max_timeout_seconds() { |
6083 | 0 | _impl_.max_timeout_seconds_ = 7200; |
6084 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6085 | 0 | } |
6086 | 1.87k | inline int32_t ConditionValidationOptions::_internal_max_timeout_seconds() const { |
6087 | 1.87k | return _impl_.max_timeout_seconds_; |
6088 | 1.87k | } |
6089 | 1.87k | inline int32_t ConditionValidationOptions::max_timeout_seconds() const { |
6090 | | // @@protoc_insertion_point(field_get:safepower_agent_config.ConditionValidationOptions.max_timeout_seconds) |
6091 | 1.87k | return _internal_max_timeout_seconds(); |
6092 | 1.87k | } |
6093 | 6.88k | inline void ConditionValidationOptions::_internal_set_max_timeout_seconds(int32_t value) { |
6094 | 6.88k | _impl_._has_bits_[0] |= 0x00000002u; |
6095 | 6.88k | _impl_.max_timeout_seconds_ = value; |
6096 | 6.88k | } |
6097 | 6.88k | inline void ConditionValidationOptions::set_max_timeout_seconds(int32_t value) { |
6098 | 6.88k | _internal_set_max_timeout_seconds(value); |
6099 | | // @@protoc_insertion_point(field_set:safepower_agent_config.ConditionValidationOptions.max_timeout_seconds) |
6100 | 6.88k | } |
6101 | | |
6102 | | // optional int64 validation_retry_interval_ms = 3 [default = 1000]; |
6103 | 0 | inline bool ConditionValidationOptions::_internal_has_validation_retry_interval_ms() const { |
6104 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
6105 | 0 | return value; |
6106 | 0 | } |
6107 | 0 | inline bool ConditionValidationOptions::has_validation_retry_interval_ms() const { |
6108 | 0 | return _internal_has_validation_retry_interval_ms(); |
6109 | 0 | } |
6110 | 0 | inline void ConditionValidationOptions::clear_validation_retry_interval_ms() { |
6111 | 0 | _impl_.validation_retry_interval_ms_ = int64_t{1000}; |
6112 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6113 | 0 | } |
6114 | 0 | inline int64_t ConditionValidationOptions::_internal_validation_retry_interval_ms() const { |
6115 | 0 | return _impl_.validation_retry_interval_ms_; |
6116 | 0 | } |
6117 | 0 | inline int64_t ConditionValidationOptions::validation_retry_interval_ms() const { |
6118 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ConditionValidationOptions.validation_retry_interval_ms) |
6119 | 0 | return _internal_validation_retry_interval_ms(); |
6120 | 0 | } |
6121 | 0 | inline void ConditionValidationOptions::_internal_set_validation_retry_interval_ms(int64_t value) { |
6122 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6123 | 0 | _impl_.validation_retry_interval_ms_ = value; |
6124 | 0 | } |
6125 | 0 | inline void ConditionValidationOptions::set_validation_retry_interval_ms(int64_t value) { |
6126 | 0 | _internal_set_validation_retry_interval_ms(value); |
6127 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.ConditionValidationOptions.validation_retry_interval_ms) |
6128 | 0 | } |
6129 | | |
6130 | | // ------------------------------------------------------------------- |
6131 | | |
6132 | | // GpowerdConfig |
6133 | | |
6134 | | // repeated .safepower_agent_config.StateMonitorConfig state_monitor_config = 1; |
6135 | 0 | inline int GpowerdConfig::_internal_state_monitor_config_size() const { |
6136 | 0 | return _impl_.state_monitor_config_.size(); |
6137 | 0 | } |
6138 | 0 | inline int GpowerdConfig::state_monitor_config_size() const { |
6139 | 0 | return _internal_state_monitor_config_size(); |
6140 | 0 | } |
6141 | 0 | inline void GpowerdConfig::clear_state_monitor_config() { |
6142 | 0 | _impl_.state_monitor_config_.Clear(); |
6143 | 0 | } |
6144 | 0 | inline ::safepower_agent_config::StateMonitorConfig* GpowerdConfig::mutable_state_monitor_config(int index) { |
6145 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.state_monitor_config) |
6146 | 0 | return _impl_.state_monitor_config_.Mutable(index); |
6147 | 0 | } |
6148 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::StateMonitorConfig >* |
6149 | 0 | GpowerdConfig::mutable_state_monitor_config() { |
6150 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_config.GpowerdConfig.state_monitor_config) |
6151 | 0 | return &_impl_.state_monitor_config_; |
6152 | 0 | } |
6153 | 0 | inline const ::safepower_agent_config::StateMonitorConfig& GpowerdConfig::_internal_state_monitor_config(int index) const { |
6154 | 0 | return _impl_.state_monitor_config_.Get(index); |
6155 | 0 | } |
6156 | 0 | inline const ::safepower_agent_config::StateMonitorConfig& GpowerdConfig::state_monitor_config(int index) const { |
6157 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.state_monitor_config) |
6158 | 0 | return _internal_state_monitor_config(index); |
6159 | 0 | } |
6160 | 0 | inline ::safepower_agent_config::StateMonitorConfig* GpowerdConfig::_internal_add_state_monitor_config() { |
6161 | 0 | return _impl_.state_monitor_config_.Add(); |
6162 | 0 | } |
6163 | 0 | inline ::safepower_agent_config::StateMonitorConfig* GpowerdConfig::add_state_monitor_config() { |
6164 | 0 | ::safepower_agent_config::StateMonitorConfig* _add = _internal_add_state_monitor_config(); |
6165 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.GpowerdConfig.state_monitor_config) |
6166 | 0 | return _add; |
6167 | 0 | } |
6168 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::StateMonitorConfig >& |
6169 | 0 | GpowerdConfig::state_monitor_config() const { |
6170 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_config.GpowerdConfig.state_monitor_config) |
6171 | 0 | return _impl_.state_monitor_config_; |
6172 | 0 | } |
6173 | | |
6174 | | // optional .safepower_agent_config.PersistentStorageConfig persistent_storage_config = 2 [deprecated = true]; |
6175 | 0 | inline bool GpowerdConfig::_internal_has_persistent_storage_config() const { |
6176 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
6177 | 0 | PROTOBUF_ASSUME(!value || _impl_.persistent_storage_config_ != nullptr); |
6178 | 0 | return value; |
6179 | 0 | } |
6180 | 0 | inline bool GpowerdConfig::has_persistent_storage_config() const { |
6181 | 0 | return _internal_has_persistent_storage_config(); |
6182 | 0 | } |
6183 | 0 | inline void GpowerdConfig::clear_persistent_storage_config() { |
6184 | 0 | if (_impl_.persistent_storage_config_ != nullptr) _impl_.persistent_storage_config_->Clear(); |
6185 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6186 | 0 | } |
6187 | 0 | inline const ::safepower_agent_config::PersistentStorageConfig& GpowerdConfig::_internal_persistent_storage_config() const { |
6188 | 0 | const ::safepower_agent_config::PersistentStorageConfig* p = _impl_.persistent_storage_config_; |
6189 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::PersistentStorageConfig&>( |
6190 | 0 | ::safepower_agent_config::_PersistentStorageConfig_default_instance_); |
6191 | 0 | } |
6192 | 0 | inline const ::safepower_agent_config::PersistentStorageConfig& GpowerdConfig::persistent_storage_config() const { |
6193 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.persistent_storage_config) |
6194 | 0 | return _internal_persistent_storage_config(); |
6195 | 0 | } |
6196 | | inline void GpowerdConfig::unsafe_arena_set_allocated_persistent_storage_config( |
6197 | 0 | ::safepower_agent_config::PersistentStorageConfig* persistent_storage_config) { |
6198 | 0 | if (GetArenaForAllocation() == nullptr) { |
6199 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.persistent_storage_config_); |
6200 | 0 | } |
6201 | 0 | _impl_.persistent_storage_config_ = persistent_storage_config; |
6202 | 0 | if (persistent_storage_config) { |
6203 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
6204 | 0 | } else { |
6205 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6206 | 0 | } |
6207 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GpowerdConfig.persistent_storage_config) |
6208 | 0 | } |
6209 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* GpowerdConfig::release_persistent_storage_config() { |
6210 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6211 | 0 | ::safepower_agent_config::PersistentStorageConfig* temp = _impl_.persistent_storage_config_; |
6212 | 0 | _impl_.persistent_storage_config_ = nullptr; |
6213 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
6214 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
6215 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6216 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
6217 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
6218 | 0 | if (GetArenaForAllocation() != nullptr) { |
6219 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6220 | 0 | } |
6221 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
6222 | 0 | return temp; |
6223 | 0 | } |
6224 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* GpowerdConfig::unsafe_arena_release_persistent_storage_config() { |
6225 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GpowerdConfig.persistent_storage_config) |
6226 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6227 | 0 | ::safepower_agent_config::PersistentStorageConfig* temp = _impl_.persistent_storage_config_; |
6228 | 0 | _impl_.persistent_storage_config_ = nullptr; |
6229 | 0 | return temp; |
6230 | 0 | } |
6231 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* GpowerdConfig::_internal_mutable_persistent_storage_config() { |
6232 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
6233 | 0 | if (_impl_.persistent_storage_config_ == nullptr) { |
6234 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::PersistentStorageConfig>(GetArenaForAllocation()); |
6235 | 0 | _impl_.persistent_storage_config_ = p; |
6236 | 0 | } |
6237 | 0 | return _impl_.persistent_storage_config_; |
6238 | 0 | } |
6239 | 0 | inline ::safepower_agent_config::PersistentStorageConfig* GpowerdConfig::mutable_persistent_storage_config() { |
6240 | 0 | ::safepower_agent_config::PersistentStorageConfig* _msg = _internal_mutable_persistent_storage_config(); |
6241 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.persistent_storage_config) |
6242 | 0 | return _msg; |
6243 | 0 | } |
6244 | 0 | inline void GpowerdConfig::set_allocated_persistent_storage_config(::safepower_agent_config::PersistentStorageConfig* persistent_storage_config) { |
6245 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
6246 | 0 | if (message_arena == nullptr) { |
6247 | 0 | delete _impl_.persistent_storage_config_; |
6248 | 0 | } |
6249 | 0 | if (persistent_storage_config) { |
6250 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
6251 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(persistent_storage_config); |
6252 | 0 | if (message_arena != submessage_arena) { |
6253 | 0 | persistent_storage_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
6254 | 0 | message_arena, persistent_storage_config, submessage_arena); |
6255 | 0 | } |
6256 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
6257 | 0 | } else { |
6258 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6259 | 0 | } |
6260 | 0 | _impl_.persistent_storage_config_ = persistent_storage_config; |
6261 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.GpowerdConfig.persistent_storage_config) |
6262 | 0 | } |
6263 | | |
6264 | | // optional .safepower_agent_config.PingConfig ping_config = 3; |
6265 | 0 | inline bool GpowerdConfig::_internal_has_ping_config() const { |
6266 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
6267 | 0 | PROTOBUF_ASSUME(!value || _impl_.ping_config_ != nullptr); |
6268 | 0 | return value; |
6269 | 0 | } |
6270 | 0 | inline bool GpowerdConfig::has_ping_config() const { |
6271 | 0 | return _internal_has_ping_config(); |
6272 | 0 | } |
6273 | 0 | inline void GpowerdConfig::clear_ping_config() { |
6274 | 0 | if (_impl_.ping_config_ != nullptr) _impl_.ping_config_->Clear(); |
6275 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6276 | 0 | } |
6277 | 0 | inline const ::safepower_agent_config::PingConfig& GpowerdConfig::_internal_ping_config() const { |
6278 | 0 | const ::safepower_agent_config::PingConfig* p = _impl_.ping_config_; |
6279 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::PingConfig&>( |
6280 | 0 | ::safepower_agent_config::_PingConfig_default_instance_); |
6281 | 0 | } |
6282 | 0 | inline const ::safepower_agent_config::PingConfig& GpowerdConfig::ping_config() const { |
6283 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.ping_config) |
6284 | 0 | return _internal_ping_config(); |
6285 | 0 | } |
6286 | | inline void GpowerdConfig::unsafe_arena_set_allocated_ping_config( |
6287 | 0 | ::safepower_agent_config::PingConfig* ping_config) { |
6288 | 0 | if (GetArenaForAllocation() == nullptr) { |
6289 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.ping_config_); |
6290 | 0 | } |
6291 | 0 | _impl_.ping_config_ = ping_config; |
6292 | 0 | if (ping_config) { |
6293 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6294 | 0 | } else { |
6295 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6296 | 0 | } |
6297 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GpowerdConfig.ping_config) |
6298 | 0 | } |
6299 | 0 | inline ::safepower_agent_config::PingConfig* GpowerdConfig::release_ping_config() { |
6300 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6301 | 0 | ::safepower_agent_config::PingConfig* temp = _impl_.ping_config_; |
6302 | 0 | _impl_.ping_config_ = nullptr; |
6303 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
6304 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
6305 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6306 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
6307 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
6308 | 0 | if (GetArenaForAllocation() != nullptr) { |
6309 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6310 | 0 | } |
6311 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
6312 | 0 | return temp; |
6313 | 0 | } |
6314 | 0 | inline ::safepower_agent_config::PingConfig* GpowerdConfig::unsafe_arena_release_ping_config() { |
6315 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GpowerdConfig.ping_config) |
6316 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6317 | 0 | ::safepower_agent_config::PingConfig* temp = _impl_.ping_config_; |
6318 | 0 | _impl_.ping_config_ = nullptr; |
6319 | 0 | return temp; |
6320 | 0 | } |
6321 | 0 | inline ::safepower_agent_config::PingConfig* GpowerdConfig::_internal_mutable_ping_config() { |
6322 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6323 | 0 | if (_impl_.ping_config_ == nullptr) { |
6324 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::PingConfig>(GetArenaForAllocation()); |
6325 | 0 | _impl_.ping_config_ = p; |
6326 | 0 | } |
6327 | 0 | return _impl_.ping_config_; |
6328 | 0 | } |
6329 | 0 | inline ::safepower_agent_config::PingConfig* GpowerdConfig::mutable_ping_config() { |
6330 | 0 | ::safepower_agent_config::PingConfig* _msg = _internal_mutable_ping_config(); |
6331 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.ping_config) |
6332 | 0 | return _msg; |
6333 | 0 | } |
6334 | 0 | inline void GpowerdConfig::set_allocated_ping_config(::safepower_agent_config::PingConfig* ping_config) { |
6335 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
6336 | 0 | if (message_arena == nullptr) { |
6337 | 0 | delete _impl_.ping_config_; |
6338 | 0 | } |
6339 | 0 | if (ping_config) { |
6340 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
6341 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ping_config); |
6342 | 0 | if (message_arena != submessage_arena) { |
6343 | 0 | ping_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
6344 | 0 | message_arena, ping_config, submessage_arena); |
6345 | 0 | } |
6346 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6347 | 0 | } else { |
6348 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6349 | 0 | } |
6350 | 0 | _impl_.ping_config_ = ping_config; |
6351 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.GpowerdConfig.ping_config) |
6352 | 0 | } |
6353 | | |
6354 | | // optional .safepower_agent_config.AddressLookupConfig address_lookup_config = 4; |
6355 | 0 | inline bool GpowerdConfig::_internal_has_address_lookup_config() const { |
6356 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
6357 | 0 | PROTOBUF_ASSUME(!value || _impl_.address_lookup_config_ != nullptr); |
6358 | 0 | return value; |
6359 | 0 | } |
6360 | 0 | inline bool GpowerdConfig::has_address_lookup_config() const { |
6361 | 0 | return _internal_has_address_lookup_config(); |
6362 | 0 | } |
6363 | 0 | inline void GpowerdConfig::clear_address_lookup_config() { |
6364 | 0 | if (_impl_.address_lookup_config_ != nullptr) _impl_.address_lookup_config_->Clear(); |
6365 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6366 | 0 | } |
6367 | 0 | inline const ::safepower_agent_config::AddressLookupConfig& GpowerdConfig::_internal_address_lookup_config() const { |
6368 | 0 | const ::safepower_agent_config::AddressLookupConfig* p = _impl_.address_lookup_config_; |
6369 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::AddressLookupConfig&>( |
6370 | 0 | ::safepower_agent_config::_AddressLookupConfig_default_instance_); |
6371 | 0 | } |
6372 | 0 | inline const ::safepower_agent_config::AddressLookupConfig& GpowerdConfig::address_lookup_config() const { |
6373 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.address_lookup_config) |
6374 | 0 | return _internal_address_lookup_config(); |
6375 | 0 | } |
6376 | | inline void GpowerdConfig::unsafe_arena_set_allocated_address_lookup_config( |
6377 | 0 | ::safepower_agent_config::AddressLookupConfig* address_lookup_config) { |
6378 | 0 | if (GetArenaForAllocation() == nullptr) { |
6379 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.address_lookup_config_); |
6380 | 0 | } |
6381 | 0 | _impl_.address_lookup_config_ = address_lookup_config; |
6382 | 0 | if (address_lookup_config) { |
6383 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6384 | 0 | } else { |
6385 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6386 | 0 | } |
6387 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GpowerdConfig.address_lookup_config) |
6388 | 0 | } |
6389 | 0 | inline ::safepower_agent_config::AddressLookupConfig* GpowerdConfig::release_address_lookup_config() { |
6390 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6391 | 0 | ::safepower_agent_config::AddressLookupConfig* temp = _impl_.address_lookup_config_; |
6392 | 0 | _impl_.address_lookup_config_ = nullptr; |
6393 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
6394 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
6395 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6396 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
6397 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
6398 | 0 | if (GetArenaForAllocation() != nullptr) { |
6399 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6400 | 0 | } |
6401 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
6402 | 0 | return temp; |
6403 | 0 | } |
6404 | 0 | inline ::safepower_agent_config::AddressLookupConfig* GpowerdConfig::unsafe_arena_release_address_lookup_config() { |
6405 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GpowerdConfig.address_lookup_config) |
6406 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6407 | 0 | ::safepower_agent_config::AddressLookupConfig* temp = _impl_.address_lookup_config_; |
6408 | 0 | _impl_.address_lookup_config_ = nullptr; |
6409 | 0 | return temp; |
6410 | 0 | } |
6411 | 0 | inline ::safepower_agent_config::AddressLookupConfig* GpowerdConfig::_internal_mutable_address_lookup_config() { |
6412 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6413 | 0 | if (_impl_.address_lookup_config_ == nullptr) { |
6414 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::AddressLookupConfig>(GetArenaForAllocation()); |
6415 | 0 | _impl_.address_lookup_config_ = p; |
6416 | 0 | } |
6417 | 0 | return _impl_.address_lookup_config_; |
6418 | 0 | } |
6419 | 0 | inline ::safepower_agent_config::AddressLookupConfig* GpowerdConfig::mutable_address_lookup_config() { |
6420 | 0 | ::safepower_agent_config::AddressLookupConfig* _msg = _internal_mutable_address_lookup_config(); |
6421 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.address_lookup_config) |
6422 | 0 | return _msg; |
6423 | 0 | } |
6424 | 0 | inline void GpowerdConfig::set_allocated_address_lookup_config(::safepower_agent_config::AddressLookupConfig* address_lookup_config) { |
6425 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
6426 | 0 | if (message_arena == nullptr) { |
6427 | 0 | delete _impl_.address_lookup_config_; |
6428 | 0 | } |
6429 | 0 | if (address_lookup_config) { |
6430 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
6431 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(address_lookup_config); |
6432 | 0 | if (message_arena != submessage_arena) { |
6433 | 0 | address_lookup_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
6434 | 0 | message_arena, address_lookup_config, submessage_arena); |
6435 | 0 | } |
6436 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6437 | 0 | } else { |
6438 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6439 | 0 | } |
6440 | 0 | _impl_.address_lookup_config_ = address_lookup_config; |
6441 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.GpowerdConfig.address_lookup_config) |
6442 | 0 | } |
6443 | | |
6444 | | // repeated .safepower_agent_config.HealthCheck health_check = 6; |
6445 | 0 | inline int GpowerdConfig::_internal_health_check_size() const { |
6446 | 0 | return _impl_.health_check_.size(); |
6447 | 0 | } |
6448 | 0 | inline int GpowerdConfig::health_check_size() const { |
6449 | 0 | return _internal_health_check_size(); |
6450 | 0 | } |
6451 | 0 | inline void GpowerdConfig::clear_health_check() { |
6452 | 0 | _impl_.health_check_.Clear(); |
6453 | 0 | } |
6454 | 0 | inline ::safepower_agent_config::HealthCheck* GpowerdConfig::mutable_health_check(int index) { |
6455 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.health_check) |
6456 | 0 | return _impl_.health_check_.Mutable(index); |
6457 | 0 | } |
6458 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::HealthCheck >* |
6459 | 0 | GpowerdConfig::mutable_health_check() { |
6460 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_config.GpowerdConfig.health_check) |
6461 | 0 | return &_impl_.health_check_; |
6462 | 0 | } |
6463 | 0 | inline const ::safepower_agent_config::HealthCheck& GpowerdConfig::_internal_health_check(int index) const { |
6464 | 0 | return _impl_.health_check_.Get(index); |
6465 | 0 | } |
6466 | 0 | inline const ::safepower_agent_config::HealthCheck& GpowerdConfig::health_check(int index) const { |
6467 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.health_check) |
6468 | 0 | return _internal_health_check(index); |
6469 | 0 | } |
6470 | 0 | inline ::safepower_agent_config::HealthCheck* GpowerdConfig::_internal_add_health_check() { |
6471 | 0 | return _impl_.health_check_.Add(); |
6472 | 0 | } |
6473 | 0 | inline ::safepower_agent_config::HealthCheck* GpowerdConfig::add_health_check() { |
6474 | 0 | ::safepower_agent_config::HealthCheck* _add = _internal_add_health_check(); |
6475 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.GpowerdConfig.health_check) |
6476 | 0 | return _add; |
6477 | 0 | } |
6478 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::safepower_agent_config::HealthCheck >& |
6479 | 0 | GpowerdConfig::health_check() const { |
6480 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_config.GpowerdConfig.health_check) |
6481 | 0 | return _impl_.health_check_; |
6482 | 0 | } |
6483 | | |
6484 | | // .safepower_agent_config.RedfishBootCountConfig redfish_boot_count_config = 5; |
6485 | 0 | inline bool GpowerdConfig::_internal_has_redfish_boot_count_config() const { |
6486 | 0 | return boot_count_config_case() == kRedfishBootCountConfig; |
6487 | 0 | } |
6488 | 0 | inline bool GpowerdConfig::has_redfish_boot_count_config() const { |
6489 | 0 | return _internal_has_redfish_boot_count_config(); |
6490 | 0 | } |
6491 | 0 | inline void GpowerdConfig::set_has_redfish_boot_count_config() { |
6492 | 0 | _impl_._oneof_case_[0] = kRedfishBootCountConfig; |
6493 | 0 | } |
6494 | 0 | inline void GpowerdConfig::clear_redfish_boot_count_config() { |
6495 | 0 | if (_internal_has_redfish_boot_count_config()) { |
6496 | 0 | if (GetArenaForAllocation() == nullptr) { |
6497 | 0 | delete _impl_.boot_count_config_.redfish_boot_count_config_; |
6498 | 0 | } |
6499 | 0 | clear_has_boot_count_config(); |
6500 | 0 | } |
6501 | 0 | } |
6502 | 0 | inline ::safepower_agent_config::RedfishBootCountConfig* GpowerdConfig::release_redfish_boot_count_config() { |
6503 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GpowerdConfig.redfish_boot_count_config) |
6504 | 0 | if (_internal_has_redfish_boot_count_config()) { |
6505 | 0 | clear_has_boot_count_config(); |
6506 | 0 | ::safepower_agent_config::RedfishBootCountConfig* temp = _impl_.boot_count_config_.redfish_boot_count_config_; |
6507 | 0 | if (GetArenaForAllocation() != nullptr) { |
6508 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6509 | 0 | } |
6510 | 0 | _impl_.boot_count_config_.redfish_boot_count_config_ = nullptr; |
6511 | 0 | return temp; |
6512 | 0 | } else { |
6513 | 0 | return nullptr; |
6514 | 0 | } |
6515 | 0 | } |
6516 | 0 | inline const ::safepower_agent_config::RedfishBootCountConfig& GpowerdConfig::_internal_redfish_boot_count_config() const { |
6517 | 0 | return _internal_has_redfish_boot_count_config() |
6518 | 0 | ? *_impl_.boot_count_config_.redfish_boot_count_config_ |
6519 | 0 | : reinterpret_cast< ::safepower_agent_config::RedfishBootCountConfig&>(::safepower_agent_config::_RedfishBootCountConfig_default_instance_); |
6520 | 0 | } |
6521 | 0 | inline const ::safepower_agent_config::RedfishBootCountConfig& GpowerdConfig::redfish_boot_count_config() const { |
6522 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.redfish_boot_count_config) |
6523 | 0 | return _internal_redfish_boot_count_config(); |
6524 | 0 | } |
6525 | 0 | inline ::safepower_agent_config::RedfishBootCountConfig* GpowerdConfig::unsafe_arena_release_redfish_boot_count_config() { |
6526 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.GpowerdConfig.redfish_boot_count_config) |
6527 | 0 | if (_internal_has_redfish_boot_count_config()) { |
6528 | 0 | clear_has_boot_count_config(); |
6529 | 0 | ::safepower_agent_config::RedfishBootCountConfig* temp = _impl_.boot_count_config_.redfish_boot_count_config_; |
6530 | 0 | _impl_.boot_count_config_.redfish_boot_count_config_ = nullptr; |
6531 | 0 | return temp; |
6532 | 0 | } else { |
6533 | 0 | return nullptr; |
6534 | 0 | } |
6535 | 0 | } |
6536 | 0 | inline void GpowerdConfig::unsafe_arena_set_allocated_redfish_boot_count_config(::safepower_agent_config::RedfishBootCountConfig* redfish_boot_count_config) { |
6537 | 0 | clear_boot_count_config(); |
6538 | 0 | if (redfish_boot_count_config) { |
6539 | 0 | set_has_redfish_boot_count_config(); |
6540 | 0 | _impl_.boot_count_config_.redfish_boot_count_config_ = redfish_boot_count_config; |
6541 | 0 | } |
6542 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GpowerdConfig.redfish_boot_count_config) |
6543 | 0 | } |
6544 | 0 | inline ::safepower_agent_config::RedfishBootCountConfig* GpowerdConfig::_internal_mutable_redfish_boot_count_config() { |
6545 | 0 | if (!_internal_has_redfish_boot_count_config()) { |
6546 | 0 | clear_boot_count_config(); |
6547 | 0 | set_has_redfish_boot_count_config(); |
6548 | 0 | _impl_.boot_count_config_.redfish_boot_count_config_ = CreateMaybeMessage< ::safepower_agent_config::RedfishBootCountConfig >(GetArenaForAllocation()); |
6549 | 0 | } |
6550 | 0 | return _impl_.boot_count_config_.redfish_boot_count_config_; |
6551 | 0 | } |
6552 | 0 | inline ::safepower_agent_config::RedfishBootCountConfig* GpowerdConfig::mutable_redfish_boot_count_config() { |
6553 | 0 | ::safepower_agent_config::RedfishBootCountConfig* _msg = _internal_mutable_redfish_boot_count_config(); |
6554 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.redfish_boot_count_config) |
6555 | 0 | return _msg; |
6556 | 0 | } |
6557 | | |
6558 | | // .safepower_agent_config.InternalBootCountConfig internal_boot_count_config = 8; |
6559 | 0 | inline bool GpowerdConfig::_internal_has_internal_boot_count_config() const { |
6560 | 0 | return boot_count_config_case() == kInternalBootCountConfig; |
6561 | 0 | } |
6562 | 0 | inline bool GpowerdConfig::has_internal_boot_count_config() const { |
6563 | 0 | return _internal_has_internal_boot_count_config(); |
6564 | 0 | } |
6565 | 0 | inline void GpowerdConfig::set_has_internal_boot_count_config() { |
6566 | 0 | _impl_._oneof_case_[0] = kInternalBootCountConfig; |
6567 | 0 | } |
6568 | 0 | inline void GpowerdConfig::clear_internal_boot_count_config() { |
6569 | 0 | if (_internal_has_internal_boot_count_config()) { |
6570 | 0 | if (GetArenaForAllocation() == nullptr) { |
6571 | 0 | delete _impl_.boot_count_config_.internal_boot_count_config_; |
6572 | 0 | } |
6573 | 0 | clear_has_boot_count_config(); |
6574 | 0 | } |
6575 | 0 | } |
6576 | 0 | inline ::safepower_agent_config::InternalBootCountConfig* GpowerdConfig::release_internal_boot_count_config() { |
6577 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GpowerdConfig.internal_boot_count_config) |
6578 | 0 | if (_internal_has_internal_boot_count_config()) { |
6579 | 0 | clear_has_boot_count_config(); |
6580 | 0 | ::safepower_agent_config::InternalBootCountConfig* temp = _impl_.boot_count_config_.internal_boot_count_config_; |
6581 | 0 | if (GetArenaForAllocation() != nullptr) { |
6582 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6583 | 0 | } |
6584 | 0 | _impl_.boot_count_config_.internal_boot_count_config_ = nullptr; |
6585 | 0 | return temp; |
6586 | 0 | } else { |
6587 | 0 | return nullptr; |
6588 | 0 | } |
6589 | 0 | } |
6590 | 0 | inline const ::safepower_agent_config::InternalBootCountConfig& GpowerdConfig::_internal_internal_boot_count_config() const { |
6591 | 0 | return _internal_has_internal_boot_count_config() |
6592 | 0 | ? *_impl_.boot_count_config_.internal_boot_count_config_ |
6593 | 0 | : reinterpret_cast< ::safepower_agent_config::InternalBootCountConfig&>(::safepower_agent_config::_InternalBootCountConfig_default_instance_); |
6594 | 0 | } |
6595 | 0 | inline const ::safepower_agent_config::InternalBootCountConfig& GpowerdConfig::internal_boot_count_config() const { |
6596 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.internal_boot_count_config) |
6597 | 0 | return _internal_internal_boot_count_config(); |
6598 | 0 | } |
6599 | 0 | inline ::safepower_agent_config::InternalBootCountConfig* GpowerdConfig::unsafe_arena_release_internal_boot_count_config() { |
6600 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.GpowerdConfig.internal_boot_count_config) |
6601 | 0 | if (_internal_has_internal_boot_count_config()) { |
6602 | 0 | clear_has_boot_count_config(); |
6603 | 0 | ::safepower_agent_config::InternalBootCountConfig* temp = _impl_.boot_count_config_.internal_boot_count_config_; |
6604 | 0 | _impl_.boot_count_config_.internal_boot_count_config_ = nullptr; |
6605 | 0 | return temp; |
6606 | 0 | } else { |
6607 | 0 | return nullptr; |
6608 | 0 | } |
6609 | 0 | } |
6610 | 0 | inline void GpowerdConfig::unsafe_arena_set_allocated_internal_boot_count_config(::safepower_agent_config::InternalBootCountConfig* internal_boot_count_config) { |
6611 | 0 | clear_boot_count_config(); |
6612 | 0 | if (internal_boot_count_config) { |
6613 | 0 | set_has_internal_boot_count_config(); |
6614 | 0 | _impl_.boot_count_config_.internal_boot_count_config_ = internal_boot_count_config; |
6615 | 0 | } |
6616 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GpowerdConfig.internal_boot_count_config) |
6617 | 0 | } |
6618 | 0 | inline ::safepower_agent_config::InternalBootCountConfig* GpowerdConfig::_internal_mutable_internal_boot_count_config() { |
6619 | 0 | if (!_internal_has_internal_boot_count_config()) { |
6620 | 0 | clear_boot_count_config(); |
6621 | 0 | set_has_internal_boot_count_config(); |
6622 | 0 | _impl_.boot_count_config_.internal_boot_count_config_ = CreateMaybeMessage< ::safepower_agent_config::InternalBootCountConfig >(GetArenaForAllocation()); |
6623 | 0 | } |
6624 | 0 | return _impl_.boot_count_config_.internal_boot_count_config_; |
6625 | 0 | } |
6626 | 0 | inline ::safepower_agent_config::InternalBootCountConfig* GpowerdConfig::mutable_internal_boot_count_config() { |
6627 | 0 | ::safepower_agent_config::InternalBootCountConfig* _msg = _internal_mutable_internal_boot_count_config(); |
6628 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.internal_boot_count_config) |
6629 | 0 | return _msg; |
6630 | 0 | } |
6631 | | |
6632 | | // optional .safepower_agent_config.GnicMonitorConfig gnic_monitor_config = 9; |
6633 | 0 | inline bool GpowerdConfig::_internal_has_gnic_monitor_config() const { |
6634 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
6635 | 0 | PROTOBUF_ASSUME(!value || _impl_.gnic_monitor_config_ != nullptr); |
6636 | 0 | return value; |
6637 | 0 | } |
6638 | 0 | inline bool GpowerdConfig::has_gnic_monitor_config() const { |
6639 | 0 | return _internal_has_gnic_monitor_config(); |
6640 | 0 | } |
6641 | 0 | inline void GpowerdConfig::clear_gnic_monitor_config() { |
6642 | 0 | if (_impl_.gnic_monitor_config_ != nullptr) _impl_.gnic_monitor_config_->Clear(); |
6643 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
6644 | 0 | } |
6645 | 0 | inline const ::safepower_agent_config::GnicMonitorConfig& GpowerdConfig::_internal_gnic_monitor_config() const { |
6646 | 0 | const ::safepower_agent_config::GnicMonitorConfig* p = _impl_.gnic_monitor_config_; |
6647 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::GnicMonitorConfig&>( |
6648 | 0 | ::safepower_agent_config::_GnicMonitorConfig_default_instance_); |
6649 | 0 | } |
6650 | 0 | inline const ::safepower_agent_config::GnicMonitorConfig& GpowerdConfig::gnic_monitor_config() const { |
6651 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GpowerdConfig.gnic_monitor_config) |
6652 | 0 | return _internal_gnic_monitor_config(); |
6653 | 0 | } |
6654 | | inline void GpowerdConfig::unsafe_arena_set_allocated_gnic_monitor_config( |
6655 | 0 | ::safepower_agent_config::GnicMonitorConfig* gnic_monitor_config) { |
6656 | 0 | if (GetArenaForAllocation() == nullptr) { |
6657 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.gnic_monitor_config_); |
6658 | 0 | } |
6659 | 0 | _impl_.gnic_monitor_config_ = gnic_monitor_config; |
6660 | 0 | if (gnic_monitor_config) { |
6661 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
6662 | 0 | } else { |
6663 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
6664 | 0 | } |
6665 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GpowerdConfig.gnic_monitor_config) |
6666 | 0 | } |
6667 | 0 | inline ::safepower_agent_config::GnicMonitorConfig* GpowerdConfig::release_gnic_monitor_config() { |
6668 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
6669 | 0 | ::safepower_agent_config::GnicMonitorConfig* temp = _impl_.gnic_monitor_config_; |
6670 | 0 | _impl_.gnic_monitor_config_ = nullptr; |
6671 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
6672 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
6673 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6674 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
6675 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
6676 | 0 | if (GetArenaForAllocation() != nullptr) { |
6677 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
6678 | 0 | } |
6679 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
6680 | 0 | return temp; |
6681 | 0 | } |
6682 | 0 | inline ::safepower_agent_config::GnicMonitorConfig* GpowerdConfig::unsafe_arena_release_gnic_monitor_config() { |
6683 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GpowerdConfig.gnic_monitor_config) |
6684 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
6685 | 0 | ::safepower_agent_config::GnicMonitorConfig* temp = _impl_.gnic_monitor_config_; |
6686 | 0 | _impl_.gnic_monitor_config_ = nullptr; |
6687 | 0 | return temp; |
6688 | 0 | } |
6689 | 0 | inline ::safepower_agent_config::GnicMonitorConfig* GpowerdConfig::_internal_mutable_gnic_monitor_config() { |
6690 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
6691 | 0 | if (_impl_.gnic_monitor_config_ == nullptr) { |
6692 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::GnicMonitorConfig>(GetArenaForAllocation()); |
6693 | 0 | _impl_.gnic_monitor_config_ = p; |
6694 | 0 | } |
6695 | 0 | return _impl_.gnic_monitor_config_; |
6696 | 0 | } |
6697 | 0 | inline ::safepower_agent_config::GnicMonitorConfig* GpowerdConfig::mutable_gnic_monitor_config() { |
6698 | 0 | ::safepower_agent_config::GnicMonitorConfig* _msg = _internal_mutable_gnic_monitor_config(); |
6699 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GpowerdConfig.gnic_monitor_config) |
6700 | 0 | return _msg; |
6701 | 0 | } |
6702 | 0 | inline void GpowerdConfig::set_allocated_gnic_monitor_config(::safepower_agent_config::GnicMonitorConfig* gnic_monitor_config) { |
6703 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
6704 | 0 | if (message_arena == nullptr) { |
6705 | 0 | delete _impl_.gnic_monitor_config_; |
6706 | 0 | } |
6707 | 0 | if (gnic_monitor_config) { |
6708 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
6709 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(gnic_monitor_config); |
6710 | 0 | if (message_arena != submessage_arena) { |
6711 | 0 | gnic_monitor_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
6712 | 0 | message_arena, gnic_monitor_config, submessage_arena); |
6713 | 0 | } |
6714 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
6715 | 0 | } else { |
6716 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
6717 | 0 | } |
6718 | 0 | _impl_.gnic_monitor_config_ = gnic_monitor_config; |
6719 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.GpowerdConfig.gnic_monitor_config) |
6720 | 0 | } |
6721 | | |
6722 | 0 | inline bool GpowerdConfig::has_boot_count_config() const { |
6723 | 0 | return boot_count_config_case() != BOOT_COUNT_CONFIG_NOT_SET; |
6724 | 0 | } |
6725 | 0 | inline void GpowerdConfig::clear_has_boot_count_config() { |
6726 | 0 | _impl_._oneof_case_[0] = BOOT_COUNT_CONFIG_NOT_SET; |
6727 | 0 | } |
6728 | 0 | inline GpowerdConfig::BootCountConfigCase GpowerdConfig::boot_count_config_case() const { |
6729 | 0 | return GpowerdConfig::BootCountConfigCase(_impl_._oneof_case_[0]); |
6730 | 0 | } |
6731 | | // ------------------------------------------------------------------- |
6732 | | |
6733 | | // HealthCheck |
6734 | | |
6735 | | // optional int32 port = 1; |
6736 | 0 | inline bool HealthCheck::_internal_has_port() const { |
6737 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
6738 | 0 | return value; |
6739 | 0 | } |
6740 | 0 | inline bool HealthCheck::has_port() const { |
6741 | 0 | return _internal_has_port(); |
6742 | 0 | } |
6743 | 0 | inline void HealthCheck::clear_port() { |
6744 | 0 | _impl_.port_ = 0; |
6745 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
6746 | 0 | } |
6747 | 0 | inline int32_t HealthCheck::_internal_port() const { |
6748 | 0 | return _impl_.port_; |
6749 | 0 | } |
6750 | 0 | inline int32_t HealthCheck::port() const { |
6751 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.port) |
6752 | 0 | return _internal_port(); |
6753 | 0 | } |
6754 | 0 | inline void HealthCheck::_internal_set_port(int32_t value) { |
6755 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
6756 | 0 | _impl_.port_ = value; |
6757 | 0 | } |
6758 | 0 | inline void HealthCheck::set_port(int32_t value) { |
6759 | 0 | _internal_set_port(value); |
6760 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.port) |
6761 | 0 | } |
6762 | | |
6763 | | // optional string daemon_name = 2; |
6764 | 0 | inline bool HealthCheck::_internal_has_daemon_name() const { |
6765 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
6766 | 0 | return value; |
6767 | 0 | } |
6768 | 0 | inline bool HealthCheck::has_daemon_name() const { |
6769 | 0 | return _internal_has_daemon_name(); |
6770 | 0 | } |
6771 | 0 | inline void HealthCheck::clear_daemon_name() { |
6772 | 0 | _impl_.daemon_name_.ClearToEmpty(); |
6773 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6774 | 0 | } |
6775 | 0 | inline const std::string& HealthCheck::daemon_name() const { |
6776 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.daemon_name) |
6777 | 0 | return _internal_daemon_name(); |
6778 | 0 | } |
6779 | | template <typename ArgT0, typename... ArgT> |
6780 | | inline PROTOBUF_ALWAYS_INLINE |
6781 | | void HealthCheck::set_daemon_name(ArgT0&& arg0, ArgT... args) { |
6782 | | _impl_._has_bits_[0] |= 0x00000001u; |
6783 | | _impl_.daemon_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
6784 | | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.daemon_name) |
6785 | | } |
6786 | 0 | inline std::string* HealthCheck::mutable_daemon_name() { |
6787 | 0 | std::string* _s = _internal_mutable_daemon_name(); |
6788 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.HealthCheck.daemon_name) |
6789 | 0 | return _s; |
6790 | 0 | } |
6791 | 0 | inline const std::string& HealthCheck::_internal_daemon_name() const { |
6792 | 0 | return _impl_.daemon_name_.Get(); |
6793 | 0 | } |
6794 | 0 | inline void HealthCheck::_internal_set_daemon_name(const std::string& value) { |
6795 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
6796 | 0 | _impl_.daemon_name_.Set(value, GetArenaForAllocation()); |
6797 | 0 | } |
6798 | 0 | inline std::string* HealthCheck::_internal_mutable_daemon_name() { |
6799 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
6800 | 0 | return _impl_.daemon_name_.Mutable(GetArenaForAllocation()); |
6801 | 0 | } |
6802 | 0 | inline std::string* HealthCheck::release_daemon_name() { |
6803 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.HealthCheck.daemon_name) |
6804 | 0 | if (!_internal_has_daemon_name()) { |
6805 | 0 | return nullptr; |
6806 | 0 | } |
6807 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6808 | 0 | auto* p = _impl_.daemon_name_.Release(); |
6809 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
6810 | 0 | if (_impl_.daemon_name_.IsDefault()) { |
6811 | 0 | _impl_.daemon_name_.Set("", GetArenaForAllocation()); |
6812 | 0 | } |
6813 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
6814 | 0 | return p; |
6815 | 0 | } |
6816 | 0 | inline void HealthCheck::set_allocated_daemon_name(std::string* daemon_name) { |
6817 | 0 | if (daemon_name != nullptr) { |
6818 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
6819 | 0 | } else { |
6820 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
6821 | 0 | } |
6822 | 0 | _impl_.daemon_name_.SetAllocated(daemon_name, GetArenaForAllocation()); |
6823 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
6824 | 0 | if (_impl_.daemon_name_.IsDefault()) { |
6825 | 0 | _impl_.daemon_name_.Set("", GetArenaForAllocation()); |
6826 | 0 | } |
6827 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
6828 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.HealthCheck.daemon_name) |
6829 | 0 | } |
6830 | | |
6831 | | // optional string path = 3 [default = "/healthz"]; |
6832 | 0 | inline bool HealthCheck::_internal_has_path() const { |
6833 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
6834 | 0 | return value; |
6835 | 0 | } |
6836 | 0 | inline bool HealthCheck::has_path() const { |
6837 | 0 | return _internal_has_path(); |
6838 | 0 | } |
6839 | 0 | inline void HealthCheck::clear_path() { |
6840 | 0 | _impl_.path_.ClearToDefault(::safepower_agent_config::HealthCheck::Impl_::_i_give_permission_to_break_this_code_default_path_, GetArenaForAllocation()); |
6841 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6842 | 0 | } |
6843 | 0 | inline const std::string& HealthCheck::path() const { |
6844 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.path) |
6845 | 0 | if (_impl_.path_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_path_.get(); |
6846 | 0 | return _internal_path(); |
6847 | 0 | } |
6848 | | template <typename ArgT0, typename... ArgT> |
6849 | | inline PROTOBUF_ALWAYS_INLINE |
6850 | | void HealthCheck::set_path(ArgT0&& arg0, ArgT... args) { |
6851 | | _impl_._has_bits_[0] |= 0x00000002u; |
6852 | | _impl_.path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
6853 | | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.path) |
6854 | | } |
6855 | 0 | inline std::string* HealthCheck::mutable_path() { |
6856 | 0 | std::string* _s = _internal_mutable_path(); |
6857 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.HealthCheck.path) |
6858 | 0 | return _s; |
6859 | 0 | } |
6860 | 0 | inline const std::string& HealthCheck::_internal_path() const { |
6861 | 0 | return _impl_.path_.Get(); |
6862 | 0 | } |
6863 | 0 | inline void HealthCheck::_internal_set_path(const std::string& value) { |
6864 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6865 | 0 | _impl_.path_.Set(value, GetArenaForAllocation()); |
6866 | 0 | } |
6867 | 0 | inline std::string* HealthCheck::_internal_mutable_path() { |
6868 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6869 | 0 | return _impl_.path_.Mutable(::safepower_agent_config::HealthCheck::Impl_::_i_give_permission_to_break_this_code_default_path_, GetArenaForAllocation()); |
6870 | 0 | } |
6871 | 0 | inline std::string* HealthCheck::release_path() { |
6872 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.HealthCheck.path) |
6873 | 0 | if (!_internal_has_path()) { |
6874 | 0 | return nullptr; |
6875 | 0 | } |
6876 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6877 | 0 | auto* p = _impl_.path_.Release(); |
6878 | 0 | return p; |
6879 | 0 | } |
6880 | 0 | inline void HealthCheck::set_allocated_path(std::string* path) { |
6881 | 0 | if (path != nullptr) { |
6882 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
6883 | 0 | } else { |
6884 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
6885 | 0 | } |
6886 | 0 | _impl_.path_.SetAllocated(path, GetArenaForAllocation()); |
6887 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.HealthCheck.path) |
6888 | 0 | } |
6889 | | |
6890 | | // optional string expected_response = 4 [default = "ok"]; |
6891 | 0 | inline bool HealthCheck::_internal_has_expected_response() const { |
6892 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
6893 | 0 | return value; |
6894 | 0 | } |
6895 | 0 | inline bool HealthCheck::has_expected_response() const { |
6896 | 0 | return _internal_has_expected_response(); |
6897 | 0 | } |
6898 | 0 | inline void HealthCheck::clear_expected_response() { |
6899 | 0 | _impl_.expected_response_.ClearToDefault(::safepower_agent_config::HealthCheck::Impl_::_i_give_permission_to_break_this_code_default_expected_response_, GetArenaForAllocation()); |
6900 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6901 | 0 | } |
6902 | 0 | inline const std::string& HealthCheck::expected_response() const { |
6903 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.expected_response) |
6904 | 0 | if (_impl_.expected_response_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_expected_response_.get(); |
6905 | 0 | return _internal_expected_response(); |
6906 | 0 | } |
6907 | | template <typename ArgT0, typename... ArgT> |
6908 | | inline PROTOBUF_ALWAYS_INLINE |
6909 | | void HealthCheck::set_expected_response(ArgT0&& arg0, ArgT... args) { |
6910 | | _impl_._has_bits_[0] |= 0x00000004u; |
6911 | | _impl_.expected_response_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
6912 | | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.expected_response) |
6913 | | } |
6914 | 0 | inline std::string* HealthCheck::mutable_expected_response() { |
6915 | 0 | std::string* _s = _internal_mutable_expected_response(); |
6916 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.HealthCheck.expected_response) |
6917 | 0 | return _s; |
6918 | 0 | } |
6919 | 0 | inline const std::string& HealthCheck::_internal_expected_response() const { |
6920 | 0 | return _impl_.expected_response_.Get(); |
6921 | 0 | } |
6922 | 0 | inline void HealthCheck::_internal_set_expected_response(const std::string& value) { |
6923 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6924 | 0 | _impl_.expected_response_.Set(value, GetArenaForAllocation()); |
6925 | 0 | } |
6926 | 0 | inline std::string* HealthCheck::_internal_mutable_expected_response() { |
6927 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6928 | 0 | return _impl_.expected_response_.Mutable(::safepower_agent_config::HealthCheck::Impl_::_i_give_permission_to_break_this_code_default_expected_response_, GetArenaForAllocation()); |
6929 | 0 | } |
6930 | 0 | inline std::string* HealthCheck::release_expected_response() { |
6931 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.HealthCheck.expected_response) |
6932 | 0 | if (!_internal_has_expected_response()) { |
6933 | 0 | return nullptr; |
6934 | 0 | } |
6935 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6936 | 0 | auto* p = _impl_.expected_response_.Release(); |
6937 | 0 | return p; |
6938 | 0 | } |
6939 | 0 | inline void HealthCheck::set_allocated_expected_response(std::string* expected_response) { |
6940 | 0 | if (expected_response != nullptr) { |
6941 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
6942 | 0 | } else { |
6943 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
6944 | 0 | } |
6945 | 0 | _impl_.expected_response_.SetAllocated(expected_response, GetArenaForAllocation()); |
6946 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.HealthCheck.expected_response) |
6947 | 0 | } |
6948 | | |
6949 | | // optional int64 timeout_ms = 5 [default = 1000]; |
6950 | 0 | inline bool HealthCheck::_internal_has_timeout_ms() const { |
6951 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
6952 | 0 | return value; |
6953 | 0 | } |
6954 | 0 | inline bool HealthCheck::has_timeout_ms() const { |
6955 | 0 | return _internal_has_timeout_ms(); |
6956 | 0 | } |
6957 | 0 | inline void HealthCheck::clear_timeout_ms() { |
6958 | 0 | _impl_.timeout_ms_ = int64_t{1000}; |
6959 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
6960 | 0 | } |
6961 | 0 | inline int64_t HealthCheck::_internal_timeout_ms() const { |
6962 | 0 | return _impl_.timeout_ms_; |
6963 | 0 | } |
6964 | 0 | inline int64_t HealthCheck::timeout_ms() const { |
6965 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.timeout_ms) |
6966 | 0 | return _internal_timeout_ms(); |
6967 | 0 | } |
6968 | 0 | inline void HealthCheck::_internal_set_timeout_ms(int64_t value) { |
6969 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
6970 | 0 | _impl_.timeout_ms_ = value; |
6971 | 0 | } |
6972 | 0 | inline void HealthCheck::set_timeout_ms(int64_t value) { |
6973 | 0 | _internal_set_timeout_ms(value); |
6974 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.timeout_ms) |
6975 | 0 | } |
6976 | | |
6977 | | // optional int64 interval_ms = 6 [default = 5000]; |
6978 | 0 | inline bool HealthCheck::_internal_has_interval_ms() const { |
6979 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; |
6980 | 0 | return value; |
6981 | 0 | } |
6982 | 0 | inline bool HealthCheck::has_interval_ms() const { |
6983 | 0 | return _internal_has_interval_ms(); |
6984 | 0 | } |
6985 | 0 | inline void HealthCheck::clear_interval_ms() { |
6986 | 0 | _impl_.interval_ms_ = int64_t{5000}; |
6987 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
6988 | 0 | } |
6989 | 0 | inline int64_t HealthCheck::_internal_interval_ms() const { |
6990 | 0 | return _impl_.interval_ms_; |
6991 | 0 | } |
6992 | 0 | inline int64_t HealthCheck::interval_ms() const { |
6993 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.interval_ms) |
6994 | 0 | return _internal_interval_ms(); |
6995 | 0 | } |
6996 | 0 | inline void HealthCheck::_internal_set_interval_ms(int64_t value) { |
6997 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
6998 | 0 | _impl_.interval_ms_ = value; |
6999 | 0 | } |
7000 | 0 | inline void HealthCheck::set_interval_ms(int64_t value) { |
7001 | 0 | _internal_set_interval_ms(value); |
7002 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.interval_ms) |
7003 | 0 | } |
7004 | | |
7005 | | // optional int64 retry_interval_ms = 7 [default = 1000]; |
7006 | 0 | inline bool HealthCheck::_internal_has_retry_interval_ms() const { |
7007 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; |
7008 | 0 | return value; |
7009 | 0 | } |
7010 | 0 | inline bool HealthCheck::has_retry_interval_ms() const { |
7011 | 0 | return _internal_has_retry_interval_ms(); |
7012 | 0 | } |
7013 | 0 | inline void HealthCheck::clear_retry_interval_ms() { |
7014 | 0 | _impl_.retry_interval_ms_ = int64_t{1000}; |
7015 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
7016 | 0 | } |
7017 | 0 | inline int64_t HealthCheck::_internal_retry_interval_ms() const { |
7018 | 0 | return _impl_.retry_interval_ms_; |
7019 | 0 | } |
7020 | 0 | inline int64_t HealthCheck::retry_interval_ms() const { |
7021 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.retry_interval_ms) |
7022 | 0 | return _internal_retry_interval_ms(); |
7023 | 0 | } |
7024 | 0 | inline void HealthCheck::_internal_set_retry_interval_ms(int64_t value) { |
7025 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
7026 | 0 | _impl_.retry_interval_ms_ = value; |
7027 | 0 | } |
7028 | 0 | inline void HealthCheck::set_retry_interval_ms(int64_t value) { |
7029 | 0 | _internal_set_retry_interval_ms(value); |
7030 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.retry_interval_ms) |
7031 | 0 | } |
7032 | | |
7033 | | // optional int64 retry_timeout_ms = 8 [default = 10000]; |
7034 | 0 | inline bool HealthCheck::_internal_has_retry_timeout_ms() const { |
7035 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; |
7036 | 0 | return value; |
7037 | 0 | } |
7038 | 0 | inline bool HealthCheck::has_retry_timeout_ms() const { |
7039 | 0 | return _internal_has_retry_timeout_ms(); |
7040 | 0 | } |
7041 | 0 | inline void HealthCheck::clear_retry_timeout_ms() { |
7042 | 0 | _impl_.retry_timeout_ms_ = int64_t{10000}; |
7043 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
7044 | 0 | } |
7045 | 0 | inline int64_t HealthCheck::_internal_retry_timeout_ms() const { |
7046 | 0 | return _impl_.retry_timeout_ms_; |
7047 | 0 | } |
7048 | 0 | inline int64_t HealthCheck::retry_timeout_ms() const { |
7049 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.HealthCheck.retry_timeout_ms) |
7050 | 0 | return _internal_retry_timeout_ms(); |
7051 | 0 | } |
7052 | 0 | inline void HealthCheck::_internal_set_retry_timeout_ms(int64_t value) { |
7053 | 0 | _impl_._has_bits_[0] |= 0x00000080u; |
7054 | 0 | _impl_.retry_timeout_ms_ = value; |
7055 | 0 | } |
7056 | 0 | inline void HealthCheck::set_retry_timeout_ms(int64_t value) { |
7057 | 0 | _internal_set_retry_timeout_ms(value); |
7058 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.HealthCheck.retry_timeout_ms) |
7059 | 0 | } |
7060 | | |
7061 | | // ------------------------------------------------------------------- |
7062 | | |
7063 | | // PingConfig |
7064 | | |
7065 | | // optional string command = 1 [default = "/usr/bin/ping6"]; |
7066 | 0 | inline bool PingConfig::_internal_has_command() const { |
7067 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
7068 | 0 | return value; |
7069 | 0 | } |
7070 | 0 | inline bool PingConfig::has_command() const { |
7071 | 0 | return _internal_has_command(); |
7072 | 0 | } |
7073 | 0 | inline void PingConfig::clear_command() { |
7074 | 0 | _impl_.command_.ClearToDefault(::safepower_agent_config::PingConfig::Impl_::_i_give_permission_to_break_this_code_default_command_, GetArenaForAllocation()); |
7075 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7076 | 0 | } |
7077 | 0 | inline const std::string& PingConfig::command() const { |
7078 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PingConfig.command) |
7079 | 0 | if (_impl_.command_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_command_.get(); |
7080 | 0 | return _internal_command(); |
7081 | 0 | } |
7082 | | template <typename ArgT0, typename... ArgT> |
7083 | | inline PROTOBUF_ALWAYS_INLINE |
7084 | | void PingConfig::set_command(ArgT0&& arg0, ArgT... args) { |
7085 | | _impl_._has_bits_[0] |= 0x00000001u; |
7086 | | _impl_.command_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
7087 | | // @@protoc_insertion_point(field_set:safepower_agent_config.PingConfig.command) |
7088 | | } |
7089 | 0 | inline std::string* PingConfig::mutable_command() { |
7090 | 0 | std::string* _s = _internal_mutable_command(); |
7091 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.PingConfig.command) |
7092 | 0 | return _s; |
7093 | 0 | } |
7094 | 0 | inline const std::string& PingConfig::_internal_command() const { |
7095 | 0 | return _impl_.command_.Get(); |
7096 | 0 | } |
7097 | 0 | inline void PingConfig::_internal_set_command(const std::string& value) { |
7098 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7099 | 0 | _impl_.command_.Set(value, GetArenaForAllocation()); |
7100 | 0 | } |
7101 | 0 | inline std::string* PingConfig::_internal_mutable_command() { |
7102 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7103 | 0 | return _impl_.command_.Mutable(::safepower_agent_config::PingConfig::Impl_::_i_give_permission_to_break_this_code_default_command_, GetArenaForAllocation()); |
7104 | 0 | } |
7105 | 0 | inline std::string* PingConfig::release_command() { |
7106 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.PingConfig.command) |
7107 | 0 | if (!_internal_has_command()) { |
7108 | 0 | return nullptr; |
7109 | 0 | } |
7110 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7111 | 0 | auto* p = _impl_.command_.Release(); |
7112 | 0 | return p; |
7113 | 0 | } |
7114 | 0 | inline void PingConfig::set_allocated_command(std::string* command) { |
7115 | 0 | if (command != nullptr) { |
7116 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7117 | 0 | } else { |
7118 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7119 | 0 | } |
7120 | 0 | _impl_.command_.SetAllocated(command, GetArenaForAllocation()); |
7121 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.PingConfig.command) |
7122 | 0 | } |
7123 | | |
7124 | | // optional int64 interval_ms = 2 [default = 5000]; |
7125 | 0 | inline bool PingConfig::_internal_has_interval_ms() const { |
7126 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
7127 | 0 | return value; |
7128 | 0 | } |
7129 | 0 | inline bool PingConfig::has_interval_ms() const { |
7130 | 0 | return _internal_has_interval_ms(); |
7131 | 0 | } |
7132 | 0 | inline void PingConfig::clear_interval_ms() { |
7133 | 0 | _impl_.interval_ms_ = int64_t{5000}; |
7134 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
7135 | 0 | } |
7136 | 0 | inline int64_t PingConfig::_internal_interval_ms() const { |
7137 | 0 | return _impl_.interval_ms_; |
7138 | 0 | } |
7139 | 0 | inline int64_t PingConfig::interval_ms() const { |
7140 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PingConfig.interval_ms) |
7141 | 0 | return _internal_interval_ms(); |
7142 | 0 | } |
7143 | 0 | inline void PingConfig::_internal_set_interval_ms(int64_t value) { |
7144 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
7145 | 0 | _impl_.interval_ms_ = value; |
7146 | 0 | } |
7147 | 0 | inline void PingConfig::set_interval_ms(int64_t value) { |
7148 | 0 | _internal_set_interval_ms(value); |
7149 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PingConfig.interval_ms) |
7150 | 0 | } |
7151 | | |
7152 | | // optional int32 count_per_check = 3 [default = 3]; |
7153 | 0 | inline bool PingConfig::_internal_has_count_per_check() const { |
7154 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
7155 | 0 | return value; |
7156 | 0 | } |
7157 | 0 | inline bool PingConfig::has_count_per_check() const { |
7158 | 0 | return _internal_has_count_per_check(); |
7159 | 0 | } |
7160 | 0 | inline void PingConfig::clear_count_per_check() { |
7161 | 0 | _impl_.count_per_check_ = 3; |
7162 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7163 | 0 | } |
7164 | 0 | inline int32_t PingConfig::_internal_count_per_check() const { |
7165 | 0 | return _impl_.count_per_check_; |
7166 | 0 | } |
7167 | 0 | inline int32_t PingConfig::count_per_check() const { |
7168 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PingConfig.count_per_check) |
7169 | 0 | return _internal_count_per_check(); |
7170 | 0 | } |
7171 | 0 | inline void PingConfig::_internal_set_count_per_check(int32_t value) { |
7172 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7173 | 0 | _impl_.count_per_check_ = value; |
7174 | 0 | } |
7175 | 0 | inline void PingConfig::set_count_per_check(int32_t value) { |
7176 | 0 | _internal_set_count_per_check(value); |
7177 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PingConfig.count_per_check) |
7178 | 0 | } |
7179 | | |
7180 | | // repeated string extra_args = 5; |
7181 | 0 | inline int PingConfig::_internal_extra_args_size() const { |
7182 | 0 | return _impl_.extra_args_.size(); |
7183 | 0 | } |
7184 | 0 | inline int PingConfig::extra_args_size() const { |
7185 | 0 | return _internal_extra_args_size(); |
7186 | 0 | } |
7187 | 0 | inline void PingConfig::clear_extra_args() { |
7188 | 0 | _impl_.extra_args_.Clear(); |
7189 | 0 | } |
7190 | 0 | inline std::string* PingConfig::add_extra_args() { |
7191 | 0 | std::string* _s = _internal_add_extra_args(); |
7192 | 0 | // @@protoc_insertion_point(field_add_mutable:safepower_agent_config.PingConfig.extra_args) |
7193 | 0 | return _s; |
7194 | 0 | } |
7195 | 0 | inline const std::string& PingConfig::_internal_extra_args(int index) const { |
7196 | 0 | return _impl_.extra_args_.Get(index); |
7197 | 0 | } |
7198 | 0 | inline const std::string& PingConfig::extra_args(int index) const { |
7199 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PingConfig.extra_args) |
7200 | 0 | return _internal_extra_args(index); |
7201 | 0 | } |
7202 | 0 | inline std::string* PingConfig::mutable_extra_args(int index) { |
7203 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.PingConfig.extra_args) |
7204 | 0 | return _impl_.extra_args_.Mutable(index); |
7205 | 0 | } |
7206 | 0 | inline void PingConfig::set_extra_args(int index, const std::string& value) { |
7207 | 0 | _impl_.extra_args_.Mutable(index)->assign(value); |
7208 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PingConfig.extra_args) |
7209 | 0 | } |
7210 | 0 | inline void PingConfig::set_extra_args(int index, std::string&& value) { |
7211 | 0 | _impl_.extra_args_.Mutable(index)->assign(std::move(value)); |
7212 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PingConfig.extra_args) |
7213 | 0 | } |
7214 | 0 | inline void PingConfig::set_extra_args(int index, const char* value) { |
7215 | 0 | GOOGLE_DCHECK(value != nullptr); |
7216 | 0 | _impl_.extra_args_.Mutable(index)->assign(value); |
7217 | 0 | // @@protoc_insertion_point(field_set_char:safepower_agent_config.PingConfig.extra_args) |
7218 | 0 | } |
7219 | 0 | inline void PingConfig::set_extra_args(int index, const char* value, size_t size) { |
7220 | 0 | _impl_.extra_args_.Mutable(index)->assign( |
7221 | 0 | reinterpret_cast<const char*>(value), size); |
7222 | 0 | // @@protoc_insertion_point(field_set_pointer:safepower_agent_config.PingConfig.extra_args) |
7223 | 0 | } |
7224 | 0 | inline std::string* PingConfig::_internal_add_extra_args() { |
7225 | 0 | return _impl_.extra_args_.Add(); |
7226 | 0 | } |
7227 | 0 | inline void PingConfig::add_extra_args(const std::string& value) { |
7228 | 0 | _impl_.extra_args_.Add()->assign(value); |
7229 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.PingConfig.extra_args) |
7230 | 0 | } |
7231 | 0 | inline void PingConfig::add_extra_args(std::string&& value) { |
7232 | 0 | _impl_.extra_args_.Add(std::move(value)); |
7233 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.PingConfig.extra_args) |
7234 | 0 | } |
7235 | 0 | inline void PingConfig::add_extra_args(const char* value) { |
7236 | 0 | GOOGLE_DCHECK(value != nullptr); |
7237 | 0 | _impl_.extra_args_.Add()->assign(value); |
7238 | 0 | // @@protoc_insertion_point(field_add_char:safepower_agent_config.PingConfig.extra_args) |
7239 | 0 | } |
7240 | 0 | inline void PingConfig::add_extra_args(const char* value, size_t size) { |
7241 | 0 | _impl_.extra_args_.Add()->assign(reinterpret_cast<const char*>(value), size); |
7242 | 0 | // @@protoc_insertion_point(field_add_pointer:safepower_agent_config.PingConfig.extra_args) |
7243 | 0 | } |
7244 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
7245 | 0 | PingConfig::extra_args() const { |
7246 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_config.PingConfig.extra_args) |
7247 | 0 | return _impl_.extra_args_; |
7248 | 0 | } |
7249 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
7250 | 0 | PingConfig::mutable_extra_args() { |
7251 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_config.PingConfig.extra_args) |
7252 | 0 | return &_impl_.extra_args_; |
7253 | 0 | } |
7254 | | |
7255 | | // optional int64 retry_timeout_ms = 6 [default = 1000]; |
7256 | 0 | inline bool PingConfig::_internal_has_retry_timeout_ms() const { |
7257 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
7258 | 0 | return value; |
7259 | 0 | } |
7260 | 0 | inline bool PingConfig::has_retry_timeout_ms() const { |
7261 | 0 | return _internal_has_retry_timeout_ms(); |
7262 | 0 | } |
7263 | 0 | inline void PingConfig::clear_retry_timeout_ms() { |
7264 | 0 | _impl_.retry_timeout_ms_ = int64_t{1000}; |
7265 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
7266 | 0 | } |
7267 | 0 | inline int64_t PingConfig::_internal_retry_timeout_ms() const { |
7268 | 0 | return _impl_.retry_timeout_ms_; |
7269 | 0 | } |
7270 | 0 | inline int64_t PingConfig::retry_timeout_ms() const { |
7271 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PingConfig.retry_timeout_ms) |
7272 | 0 | return _internal_retry_timeout_ms(); |
7273 | 0 | } |
7274 | 0 | inline void PingConfig::_internal_set_retry_timeout_ms(int64_t value) { |
7275 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
7276 | 0 | _impl_.retry_timeout_ms_ = value; |
7277 | 0 | } |
7278 | 0 | inline void PingConfig::set_retry_timeout_ms(int64_t value) { |
7279 | 0 | _internal_set_retry_timeout_ms(value); |
7280 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PingConfig.retry_timeout_ms) |
7281 | 0 | } |
7282 | | |
7283 | | // ------------------------------------------------------------------- |
7284 | | |
7285 | | // AddressLookupConfig |
7286 | | |
7287 | | // ------------------------------------------------------------------- |
7288 | | |
7289 | | // RedfishBootCountConfig |
7290 | | |
7291 | | // optional string uri = 1 [default = "/redfish/v1/Managers/bmc/ManagerDiagnosticData"]; |
7292 | 0 | inline bool RedfishBootCountConfig::_internal_has_uri() const { |
7293 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
7294 | 0 | return value; |
7295 | 0 | } |
7296 | 0 | inline bool RedfishBootCountConfig::has_uri() const { |
7297 | 0 | return _internal_has_uri(); |
7298 | 0 | } |
7299 | 0 | inline void RedfishBootCountConfig::clear_uri() { |
7300 | 0 | _impl_.uri_.ClearToDefault(::safepower_agent_config::RedfishBootCountConfig::Impl_::_i_give_permission_to_break_this_code_default_uri_, GetArenaForAllocation()); |
7301 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7302 | 0 | } |
7303 | 0 | inline const std::string& RedfishBootCountConfig::uri() const { |
7304 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishBootCountConfig.uri) |
7305 | 0 | if (_impl_.uri_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_uri_.get(); |
7306 | 0 | return _internal_uri(); |
7307 | 0 | } |
7308 | | template <typename ArgT0, typename... ArgT> |
7309 | | inline PROTOBUF_ALWAYS_INLINE |
7310 | | void RedfishBootCountConfig::set_uri(ArgT0&& arg0, ArgT... args) { |
7311 | | _impl_._has_bits_[0] |= 0x00000001u; |
7312 | | _impl_.uri_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
7313 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishBootCountConfig.uri) |
7314 | | } |
7315 | 0 | inline std::string* RedfishBootCountConfig::mutable_uri() { |
7316 | 0 | std::string* _s = _internal_mutable_uri(); |
7317 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishBootCountConfig.uri) |
7318 | 0 | return _s; |
7319 | 0 | } |
7320 | 0 | inline const std::string& RedfishBootCountConfig::_internal_uri() const { |
7321 | 0 | return _impl_.uri_.Get(); |
7322 | 0 | } |
7323 | 0 | inline void RedfishBootCountConfig::_internal_set_uri(const std::string& value) { |
7324 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7325 | 0 | _impl_.uri_.Set(value, GetArenaForAllocation()); |
7326 | 0 | } |
7327 | 0 | inline std::string* RedfishBootCountConfig::_internal_mutable_uri() { |
7328 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7329 | 0 | return _impl_.uri_.Mutable(::safepower_agent_config::RedfishBootCountConfig::Impl_::_i_give_permission_to_break_this_code_default_uri_, GetArenaForAllocation()); |
7330 | 0 | } |
7331 | 0 | inline std::string* RedfishBootCountConfig::release_uri() { |
7332 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishBootCountConfig.uri) |
7333 | 0 | if (!_internal_has_uri()) { |
7334 | 0 | return nullptr; |
7335 | 0 | } |
7336 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7337 | 0 | auto* p = _impl_.uri_.Release(); |
7338 | 0 | return p; |
7339 | 0 | } |
7340 | 0 | inline void RedfishBootCountConfig::set_allocated_uri(std::string* uri) { |
7341 | 0 | if (uri != nullptr) { |
7342 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7343 | 0 | } else { |
7344 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7345 | 0 | } |
7346 | 0 | _impl_.uri_.SetAllocated(uri, GetArenaForAllocation()); |
7347 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishBootCountConfig.uri) |
7348 | 0 | } |
7349 | | |
7350 | | // optional string ip = 2 [default = "::1"]; |
7351 | 0 | inline bool RedfishBootCountConfig::_internal_has_ip() const { |
7352 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
7353 | 0 | return value; |
7354 | 0 | } |
7355 | 0 | inline bool RedfishBootCountConfig::has_ip() const { |
7356 | 0 | return _internal_has_ip(); |
7357 | 0 | } |
7358 | 0 | inline void RedfishBootCountConfig::clear_ip() { |
7359 | 0 | _impl_.ip_.ClearToDefault(::safepower_agent_config::RedfishBootCountConfig::Impl_::_i_give_permission_to_break_this_code_default_ip_, GetArenaForAllocation()); |
7360 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7361 | 0 | } |
7362 | 0 | inline const std::string& RedfishBootCountConfig::ip() const { |
7363 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishBootCountConfig.ip) |
7364 | 0 | if (_impl_.ip_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_ip_.get(); |
7365 | 0 | return _internal_ip(); |
7366 | 0 | } |
7367 | | template <typename ArgT0, typename... ArgT> |
7368 | | inline PROTOBUF_ALWAYS_INLINE |
7369 | | void RedfishBootCountConfig::set_ip(ArgT0&& arg0, ArgT... args) { |
7370 | | _impl_._has_bits_[0] |= 0x00000002u; |
7371 | | _impl_.ip_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
7372 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishBootCountConfig.ip) |
7373 | | } |
7374 | 0 | inline std::string* RedfishBootCountConfig::mutable_ip() { |
7375 | 0 | std::string* _s = _internal_mutable_ip(); |
7376 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishBootCountConfig.ip) |
7377 | 0 | return _s; |
7378 | 0 | } |
7379 | 0 | inline const std::string& RedfishBootCountConfig::_internal_ip() const { |
7380 | 0 | return _impl_.ip_.Get(); |
7381 | 0 | } |
7382 | 0 | inline void RedfishBootCountConfig::_internal_set_ip(const std::string& value) { |
7383 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7384 | 0 | _impl_.ip_.Set(value, GetArenaForAllocation()); |
7385 | 0 | } |
7386 | 0 | inline std::string* RedfishBootCountConfig::_internal_mutable_ip() { |
7387 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7388 | 0 | return _impl_.ip_.Mutable(::safepower_agent_config::RedfishBootCountConfig::Impl_::_i_give_permission_to_break_this_code_default_ip_, GetArenaForAllocation()); |
7389 | 0 | } |
7390 | 0 | inline std::string* RedfishBootCountConfig::release_ip() { |
7391 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishBootCountConfig.ip) |
7392 | 0 | if (!_internal_has_ip()) { |
7393 | 0 | return nullptr; |
7394 | 0 | } |
7395 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7396 | 0 | auto* p = _impl_.ip_.Release(); |
7397 | 0 | return p; |
7398 | 0 | } |
7399 | 0 | inline void RedfishBootCountConfig::set_allocated_ip(std::string* ip) { |
7400 | 0 | if (ip != nullptr) { |
7401 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7402 | 0 | } else { |
7403 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7404 | 0 | } |
7405 | 0 | _impl_.ip_.SetAllocated(ip, GetArenaForAllocation()); |
7406 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishBootCountConfig.ip) |
7407 | 0 | } |
7408 | | |
7409 | | // optional uint32 port = 3 [default = 80]; |
7410 | 0 | inline bool RedfishBootCountConfig::_internal_has_port() const { |
7411 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
7412 | 0 | return value; |
7413 | 0 | } |
7414 | 0 | inline bool RedfishBootCountConfig::has_port() const { |
7415 | 0 | return _internal_has_port(); |
7416 | 0 | } |
7417 | 0 | inline void RedfishBootCountConfig::clear_port() { |
7418 | 0 | _impl_.port_ = 80u; |
7419 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
7420 | 0 | } |
7421 | 0 | inline uint32_t RedfishBootCountConfig::_internal_port() const { |
7422 | 0 | return _impl_.port_; |
7423 | 0 | } |
7424 | 0 | inline uint32_t RedfishBootCountConfig::port() const { |
7425 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishBootCountConfig.port) |
7426 | 0 | return _internal_port(); |
7427 | 0 | } |
7428 | 0 | inline void RedfishBootCountConfig::_internal_set_port(uint32_t value) { |
7429 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
7430 | 0 | _impl_.port_ = value; |
7431 | 0 | } |
7432 | 0 | inline void RedfishBootCountConfig::set_port(uint32_t value) { |
7433 | 0 | _internal_set_port(value); |
7434 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishBootCountConfig.port) |
7435 | 0 | } |
7436 | | |
7437 | | // optional int64 retry_interval_ms = 4 [default = 1000]; |
7438 | 0 | inline bool RedfishBootCountConfig::_internal_has_retry_interval_ms() const { |
7439 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
7440 | 0 | return value; |
7441 | 0 | } |
7442 | 0 | inline bool RedfishBootCountConfig::has_retry_interval_ms() const { |
7443 | 0 | return _internal_has_retry_interval_ms(); |
7444 | 0 | } |
7445 | 0 | inline void RedfishBootCountConfig::clear_retry_interval_ms() { |
7446 | 0 | _impl_.retry_interval_ms_ = int64_t{1000}; |
7447 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
7448 | 0 | } |
7449 | 0 | inline int64_t RedfishBootCountConfig::_internal_retry_interval_ms() const { |
7450 | 0 | return _impl_.retry_interval_ms_; |
7451 | 0 | } |
7452 | 0 | inline int64_t RedfishBootCountConfig::retry_interval_ms() const { |
7453 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishBootCountConfig.retry_interval_ms) |
7454 | 0 | return _internal_retry_interval_ms(); |
7455 | 0 | } |
7456 | 0 | inline void RedfishBootCountConfig::_internal_set_retry_interval_ms(int64_t value) { |
7457 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
7458 | 0 | _impl_.retry_interval_ms_ = value; |
7459 | 0 | } |
7460 | 0 | inline void RedfishBootCountConfig::set_retry_interval_ms(int64_t value) { |
7461 | 0 | _internal_set_retry_interval_ms(value); |
7462 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishBootCountConfig.retry_interval_ms) |
7463 | 0 | } |
7464 | | |
7465 | | // optional int64 timeout_sec = 5; |
7466 | 0 | inline bool RedfishBootCountConfig::_internal_has_timeout_sec() const { |
7467 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
7468 | 0 | return value; |
7469 | 0 | } |
7470 | 0 | inline bool RedfishBootCountConfig::has_timeout_sec() const { |
7471 | 0 | return _internal_has_timeout_sec(); |
7472 | 0 | } |
7473 | 0 | inline void RedfishBootCountConfig::clear_timeout_sec() { |
7474 | 0 | _impl_.timeout_sec_ = int64_t{0}; |
7475 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
7476 | 0 | } |
7477 | 0 | inline int64_t RedfishBootCountConfig::_internal_timeout_sec() const { |
7478 | 0 | return _impl_.timeout_sec_; |
7479 | 0 | } |
7480 | 0 | inline int64_t RedfishBootCountConfig::timeout_sec() const { |
7481 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishBootCountConfig.timeout_sec) |
7482 | 0 | return _internal_timeout_sec(); |
7483 | 0 | } |
7484 | 0 | inline void RedfishBootCountConfig::_internal_set_timeout_sec(int64_t value) { |
7485 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
7486 | 0 | _impl_.timeout_sec_ = value; |
7487 | 0 | } |
7488 | 0 | inline void RedfishBootCountConfig::set_timeout_sec(int64_t value) { |
7489 | 0 | _internal_set_timeout_sec(value); |
7490 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishBootCountConfig.timeout_sec) |
7491 | 0 | } |
7492 | | |
7493 | | // ------------------------------------------------------------------- |
7494 | | |
7495 | | // InternalBootCountConfig |
7496 | | |
7497 | | // optional string boot_id_path = 1 [default = "/proc/sys/kernel/random/boot_id"]; |
7498 | 0 | inline bool InternalBootCountConfig::_internal_has_boot_id_path() const { |
7499 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
7500 | 0 | return value; |
7501 | 0 | } |
7502 | 0 | inline bool InternalBootCountConfig::has_boot_id_path() const { |
7503 | 0 | return _internal_has_boot_id_path(); |
7504 | 0 | } |
7505 | 0 | inline void InternalBootCountConfig::clear_boot_id_path() { |
7506 | 0 | _impl_.boot_id_path_.ClearToDefault(::safepower_agent_config::InternalBootCountConfig::Impl_::_i_give_permission_to_break_this_code_default_boot_id_path_, GetArenaForAllocation()); |
7507 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7508 | 0 | } |
7509 | 0 | inline const std::string& InternalBootCountConfig::boot_id_path() const { |
7510 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.InternalBootCountConfig.boot_id_path) |
7511 | 0 | if (_impl_.boot_id_path_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_boot_id_path_.get(); |
7512 | 0 | return _internal_boot_id_path(); |
7513 | 0 | } |
7514 | | template <typename ArgT0, typename... ArgT> |
7515 | | inline PROTOBUF_ALWAYS_INLINE |
7516 | | void InternalBootCountConfig::set_boot_id_path(ArgT0&& arg0, ArgT... args) { |
7517 | | _impl_._has_bits_[0] |= 0x00000001u; |
7518 | | _impl_.boot_id_path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
7519 | | // @@protoc_insertion_point(field_set:safepower_agent_config.InternalBootCountConfig.boot_id_path) |
7520 | | } |
7521 | 0 | inline std::string* InternalBootCountConfig::mutable_boot_id_path() { |
7522 | 0 | std::string* _s = _internal_mutable_boot_id_path(); |
7523 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.InternalBootCountConfig.boot_id_path) |
7524 | 0 | return _s; |
7525 | 0 | } |
7526 | 0 | inline const std::string& InternalBootCountConfig::_internal_boot_id_path() const { |
7527 | 0 | return _impl_.boot_id_path_.Get(); |
7528 | 0 | } |
7529 | 0 | inline void InternalBootCountConfig::_internal_set_boot_id_path(const std::string& value) { |
7530 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7531 | 0 | _impl_.boot_id_path_.Set(value, GetArenaForAllocation()); |
7532 | 0 | } |
7533 | 0 | inline std::string* InternalBootCountConfig::_internal_mutable_boot_id_path() { |
7534 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7535 | 0 | return _impl_.boot_id_path_.Mutable(::safepower_agent_config::InternalBootCountConfig::Impl_::_i_give_permission_to_break_this_code_default_boot_id_path_, GetArenaForAllocation()); |
7536 | 0 | } |
7537 | 0 | inline std::string* InternalBootCountConfig::release_boot_id_path() { |
7538 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.InternalBootCountConfig.boot_id_path) |
7539 | 0 | if (!_internal_has_boot_id_path()) { |
7540 | 0 | return nullptr; |
7541 | 0 | } |
7542 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7543 | 0 | auto* p = _impl_.boot_id_path_.Release(); |
7544 | 0 | return p; |
7545 | 0 | } |
7546 | 0 | inline void InternalBootCountConfig::set_allocated_boot_id_path(std::string* boot_id_path) { |
7547 | 0 | if (boot_id_path != nullptr) { |
7548 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7549 | 0 | } else { |
7550 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7551 | 0 | } |
7552 | 0 | _impl_.boot_id_path_.SetAllocated(boot_id_path, GetArenaForAllocation()); |
7553 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.InternalBootCountConfig.boot_id_path) |
7554 | 0 | } |
7555 | | |
7556 | | // ------------------------------------------------------------------- |
7557 | | |
7558 | | // EepromDeviceConfig |
7559 | | |
7560 | | // optional int32 address = 1; |
7561 | 0 | inline bool EepromDeviceConfig::_internal_has_address() const { |
7562 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
7563 | 0 | return value; |
7564 | 0 | } |
7565 | 0 | inline bool EepromDeviceConfig::has_address() const { |
7566 | 0 | return _internal_has_address(); |
7567 | 0 | } |
7568 | 0 | inline void EepromDeviceConfig::clear_address() { |
7569 | 0 | _impl_.address_ = 0; |
7570 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7571 | 0 | } |
7572 | 0 | inline int32_t EepromDeviceConfig::_internal_address() const { |
7573 | 0 | return _impl_.address_; |
7574 | 0 | } |
7575 | 0 | inline int32_t EepromDeviceConfig::address() const { |
7576 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.EepromDeviceConfig.address) |
7577 | 0 | return _internal_address(); |
7578 | 0 | } |
7579 | 0 | inline void EepromDeviceConfig::_internal_set_address(int32_t value) { |
7580 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7581 | 0 | _impl_.address_ = value; |
7582 | 0 | } |
7583 | 0 | inline void EepromDeviceConfig::set_address(int32_t value) { |
7584 | 0 | _internal_set_address(value); |
7585 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.EepromDeviceConfig.address) |
7586 | 0 | } |
7587 | | |
7588 | | // optional string model = 2; |
7589 | 0 | inline bool EepromDeviceConfig::_internal_has_model() const { |
7590 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
7591 | 0 | return value; |
7592 | 0 | } |
7593 | 0 | inline bool EepromDeviceConfig::has_model() const { |
7594 | 0 | return _internal_has_model(); |
7595 | 0 | } |
7596 | 0 | inline void EepromDeviceConfig::clear_model() { |
7597 | 0 | _impl_.model_.ClearToEmpty(); |
7598 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7599 | 0 | } |
7600 | 0 | inline const std::string& EepromDeviceConfig::model() const { |
7601 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.EepromDeviceConfig.model) |
7602 | 0 | return _internal_model(); |
7603 | 0 | } |
7604 | | template <typename ArgT0, typename... ArgT> |
7605 | | inline PROTOBUF_ALWAYS_INLINE |
7606 | | void EepromDeviceConfig::set_model(ArgT0&& arg0, ArgT... args) { |
7607 | | _impl_._has_bits_[0] |= 0x00000001u; |
7608 | | _impl_.model_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
7609 | | // @@protoc_insertion_point(field_set:safepower_agent_config.EepromDeviceConfig.model) |
7610 | | } |
7611 | 0 | inline std::string* EepromDeviceConfig::mutable_model() { |
7612 | 0 | std::string* _s = _internal_mutable_model(); |
7613 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.EepromDeviceConfig.model) |
7614 | 0 | return _s; |
7615 | 0 | } |
7616 | 0 | inline const std::string& EepromDeviceConfig::_internal_model() const { |
7617 | 0 | return _impl_.model_.Get(); |
7618 | 0 | } |
7619 | 0 | inline void EepromDeviceConfig::_internal_set_model(const std::string& value) { |
7620 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7621 | 0 | _impl_.model_.Set(value, GetArenaForAllocation()); |
7622 | 0 | } |
7623 | 0 | inline std::string* EepromDeviceConfig::_internal_mutable_model() { |
7624 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7625 | 0 | return _impl_.model_.Mutable(GetArenaForAllocation()); |
7626 | 0 | } |
7627 | 0 | inline std::string* EepromDeviceConfig::release_model() { |
7628 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.EepromDeviceConfig.model) |
7629 | 0 | if (!_internal_has_model()) { |
7630 | 0 | return nullptr; |
7631 | 0 | } |
7632 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7633 | 0 | auto* p = _impl_.model_.Release(); |
7634 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7635 | 0 | if (_impl_.model_.IsDefault()) { |
7636 | 0 | _impl_.model_.Set("", GetArenaForAllocation()); |
7637 | 0 | } |
7638 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7639 | 0 | return p; |
7640 | 0 | } |
7641 | 0 | inline void EepromDeviceConfig::set_allocated_model(std::string* model) { |
7642 | 0 | if (model != nullptr) { |
7643 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7644 | 0 | } else { |
7645 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7646 | 0 | } |
7647 | 0 | _impl_.model_.SetAllocated(model, GetArenaForAllocation()); |
7648 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7649 | 0 | if (_impl_.model_.IsDefault()) { |
7650 | 0 | _impl_.model_.Set("", GetArenaForAllocation()); |
7651 | 0 | } |
7652 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7653 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.EepromDeviceConfig.model) |
7654 | 0 | } |
7655 | | |
7656 | | // optional int32 size = 3; |
7657 | 0 | inline bool EepromDeviceConfig::_internal_has_size() const { |
7658 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
7659 | 0 | return value; |
7660 | 0 | } |
7661 | 0 | inline bool EepromDeviceConfig::has_size() const { |
7662 | 0 | return _internal_has_size(); |
7663 | 0 | } |
7664 | 0 | inline void EepromDeviceConfig::clear_size() { |
7665 | 0 | _impl_.size_ = 0; |
7666 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
7667 | 0 | } |
7668 | 0 | inline int32_t EepromDeviceConfig::_internal_size() const { |
7669 | 0 | return _impl_.size_; |
7670 | 0 | } |
7671 | 0 | inline int32_t EepromDeviceConfig::size() const { |
7672 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.EepromDeviceConfig.size) |
7673 | 0 | return _internal_size(); |
7674 | 0 | } |
7675 | 0 | inline void EepromDeviceConfig::_internal_set_size(int32_t value) { |
7676 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
7677 | 0 | _impl_.size_ = value; |
7678 | 0 | } |
7679 | 0 | inline void EepromDeviceConfig::set_size(int32_t value) { |
7680 | 0 | _internal_set_size(value); |
7681 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.EepromDeviceConfig.size) |
7682 | 0 | } |
7683 | | |
7684 | | // ------------------------------------------------------------------- |
7685 | | |
7686 | | // GnicMonitorConfig |
7687 | | |
7688 | | // repeated int32 i2c_bus_block_list = 1; |
7689 | 0 | inline int GnicMonitorConfig::_internal_i2c_bus_block_list_size() const { |
7690 | 0 | return _impl_.i2c_bus_block_list_.size(); |
7691 | 0 | } |
7692 | 0 | inline int GnicMonitorConfig::i2c_bus_block_list_size() const { |
7693 | 0 | return _internal_i2c_bus_block_list_size(); |
7694 | 0 | } |
7695 | 0 | inline void GnicMonitorConfig::clear_i2c_bus_block_list() { |
7696 | 0 | _impl_.i2c_bus_block_list_.Clear(); |
7697 | 0 | } |
7698 | 0 | inline int32_t GnicMonitorConfig::_internal_i2c_bus_block_list(int index) const { |
7699 | 0 | return _impl_.i2c_bus_block_list_.Get(index); |
7700 | 0 | } |
7701 | 0 | inline int32_t GnicMonitorConfig::i2c_bus_block_list(int index) const { |
7702 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GnicMonitorConfig.i2c_bus_block_list) |
7703 | 0 | return _internal_i2c_bus_block_list(index); |
7704 | 0 | } |
7705 | 0 | inline void GnicMonitorConfig::set_i2c_bus_block_list(int index, int32_t value) { |
7706 | 0 | _impl_.i2c_bus_block_list_.Set(index, value); |
7707 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GnicMonitorConfig.i2c_bus_block_list) |
7708 | 0 | } |
7709 | 0 | inline void GnicMonitorConfig::_internal_add_i2c_bus_block_list(int32_t value) { |
7710 | 0 | _impl_.i2c_bus_block_list_.Add(value); |
7711 | 0 | } |
7712 | 0 | inline void GnicMonitorConfig::add_i2c_bus_block_list(int32_t value) { |
7713 | 0 | _internal_add_i2c_bus_block_list(value); |
7714 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.GnicMonitorConfig.i2c_bus_block_list) |
7715 | 0 | } |
7716 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
7717 | 0 | GnicMonitorConfig::_internal_i2c_bus_block_list() const { |
7718 | 0 | return _impl_.i2c_bus_block_list_; |
7719 | 0 | } |
7720 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
7721 | 0 | GnicMonitorConfig::i2c_bus_block_list() const { |
7722 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_config.GnicMonitorConfig.i2c_bus_block_list) |
7723 | 0 | return _internal_i2c_bus_block_list(); |
7724 | 0 | } |
7725 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
7726 | 0 | GnicMonitorConfig::_internal_mutable_i2c_bus_block_list() { |
7727 | 0 | return &_impl_.i2c_bus_block_list_; |
7728 | 0 | } |
7729 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
7730 | 0 | GnicMonitorConfig::mutable_i2c_bus_block_list() { |
7731 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_config.GnicMonitorConfig.i2c_bus_block_list) |
7732 | 0 | return _internal_mutable_i2c_bus_block_list(); |
7733 | 0 | } |
7734 | | |
7735 | | // optional .safepower_agent_config.EepromDeviceConfig fru_eeprom = 2; |
7736 | 0 | inline bool GnicMonitorConfig::_internal_has_fru_eeprom() const { |
7737 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
7738 | 0 | PROTOBUF_ASSUME(!value || _impl_.fru_eeprom_ != nullptr); |
7739 | 0 | return value; |
7740 | 0 | } |
7741 | 0 | inline bool GnicMonitorConfig::has_fru_eeprom() const { |
7742 | 0 | return _internal_has_fru_eeprom(); |
7743 | 0 | } |
7744 | 0 | inline void GnicMonitorConfig::clear_fru_eeprom() { |
7745 | 0 | if (_impl_.fru_eeprom_ != nullptr) _impl_.fru_eeprom_->Clear(); |
7746 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7747 | 0 | } |
7748 | 0 | inline const ::safepower_agent_config::EepromDeviceConfig& GnicMonitorConfig::_internal_fru_eeprom() const { |
7749 | 0 | const ::safepower_agent_config::EepromDeviceConfig* p = _impl_.fru_eeprom_; |
7750 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::EepromDeviceConfig&>( |
7751 | 0 | ::safepower_agent_config::_EepromDeviceConfig_default_instance_); |
7752 | 0 | } |
7753 | 0 | inline const ::safepower_agent_config::EepromDeviceConfig& GnicMonitorConfig::fru_eeprom() const { |
7754 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GnicMonitorConfig.fru_eeprom) |
7755 | 0 | return _internal_fru_eeprom(); |
7756 | 0 | } |
7757 | | inline void GnicMonitorConfig::unsafe_arena_set_allocated_fru_eeprom( |
7758 | 0 | ::safepower_agent_config::EepromDeviceConfig* fru_eeprom) { |
7759 | 0 | if (GetArenaForAllocation() == nullptr) { |
7760 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.fru_eeprom_); |
7761 | 0 | } |
7762 | 0 | _impl_.fru_eeprom_ = fru_eeprom; |
7763 | 0 | if (fru_eeprom) { |
7764 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7765 | 0 | } else { |
7766 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7767 | 0 | } |
7768 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GnicMonitorConfig.fru_eeprom) |
7769 | 0 | } |
7770 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::release_fru_eeprom() { |
7771 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7772 | 0 | ::safepower_agent_config::EepromDeviceConfig* temp = _impl_.fru_eeprom_; |
7773 | 0 | _impl_.fru_eeprom_ = nullptr; |
7774 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
7775 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
7776 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
7777 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
7778 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
7779 | 0 | if (GetArenaForAllocation() != nullptr) { |
7780 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
7781 | 0 | } |
7782 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
7783 | 0 | return temp; |
7784 | 0 | } |
7785 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::unsafe_arena_release_fru_eeprom() { |
7786 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GnicMonitorConfig.fru_eeprom) |
7787 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7788 | 0 | ::safepower_agent_config::EepromDeviceConfig* temp = _impl_.fru_eeprom_; |
7789 | 0 | _impl_.fru_eeprom_ = nullptr; |
7790 | 0 | return temp; |
7791 | 0 | } |
7792 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::_internal_mutable_fru_eeprom() { |
7793 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7794 | 0 | if (_impl_.fru_eeprom_ == nullptr) { |
7795 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::EepromDeviceConfig>(GetArenaForAllocation()); |
7796 | 0 | _impl_.fru_eeprom_ = p; |
7797 | 0 | } |
7798 | 0 | return _impl_.fru_eeprom_; |
7799 | 0 | } |
7800 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::mutable_fru_eeprom() { |
7801 | 0 | ::safepower_agent_config::EepromDeviceConfig* _msg = _internal_mutable_fru_eeprom(); |
7802 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GnicMonitorConfig.fru_eeprom) |
7803 | 0 | return _msg; |
7804 | 0 | } |
7805 | 0 | inline void GnicMonitorConfig::set_allocated_fru_eeprom(::safepower_agent_config::EepromDeviceConfig* fru_eeprom) { |
7806 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
7807 | 0 | if (message_arena == nullptr) { |
7808 | 0 | delete _impl_.fru_eeprom_; |
7809 | 0 | } |
7810 | 0 | if (fru_eeprom) { |
7811 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
7812 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fru_eeprom); |
7813 | 0 | if (message_arena != submessage_arena) { |
7814 | 0 | fru_eeprom = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
7815 | 0 | message_arena, fru_eeprom, submessage_arena); |
7816 | 0 | } |
7817 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
7818 | 0 | } else { |
7819 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
7820 | 0 | } |
7821 | 0 | _impl_.fru_eeprom_ = fru_eeprom; |
7822 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.GnicMonitorConfig.fru_eeprom) |
7823 | 0 | } |
7824 | | |
7825 | | // optional int32 collection_interval_ms = 3 [default = 10000]; |
7826 | 0 | inline bool GnicMonitorConfig::_internal_has_collection_interval_ms() const { |
7827 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
7828 | 0 | return value; |
7829 | 0 | } |
7830 | 0 | inline bool GnicMonitorConfig::has_collection_interval_ms() const { |
7831 | 0 | return _internal_has_collection_interval_ms(); |
7832 | 0 | } |
7833 | 0 | inline void GnicMonitorConfig::clear_collection_interval_ms() { |
7834 | 0 | _impl_.collection_interval_ms_ = 10000; |
7835 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
7836 | 0 | } |
7837 | 0 | inline int32_t GnicMonitorConfig::_internal_collection_interval_ms() const { |
7838 | 0 | return _impl_.collection_interval_ms_; |
7839 | 0 | } |
7840 | 0 | inline int32_t GnicMonitorConfig::collection_interval_ms() const { |
7841 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GnicMonitorConfig.collection_interval_ms) |
7842 | 0 | return _internal_collection_interval_ms(); |
7843 | 0 | } |
7844 | 0 | inline void GnicMonitorConfig::_internal_set_collection_interval_ms(int32_t value) { |
7845 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
7846 | 0 | _impl_.collection_interval_ms_ = value; |
7847 | 0 | } |
7848 | 0 | inline void GnicMonitorConfig::set_collection_interval_ms(int32_t value) { |
7849 | 0 | _internal_set_collection_interval_ms(value); |
7850 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GnicMonitorConfig.collection_interval_ms) |
7851 | 0 | } |
7852 | | |
7853 | | // optional int32 error_timeout_ms = 4 [default = 60000]; |
7854 | 0 | inline bool GnicMonitorConfig::_internal_has_error_timeout_ms() const { |
7855 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
7856 | 0 | return value; |
7857 | 0 | } |
7858 | 0 | inline bool GnicMonitorConfig::has_error_timeout_ms() const { |
7859 | 0 | return _internal_has_error_timeout_ms(); |
7860 | 0 | } |
7861 | 0 | inline void GnicMonitorConfig::clear_error_timeout_ms() { |
7862 | 0 | _impl_.error_timeout_ms_ = 60000; |
7863 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
7864 | 0 | } |
7865 | 0 | inline int32_t GnicMonitorConfig::_internal_error_timeout_ms() const { |
7866 | 0 | return _impl_.error_timeout_ms_; |
7867 | 0 | } |
7868 | 0 | inline int32_t GnicMonitorConfig::error_timeout_ms() const { |
7869 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GnicMonitorConfig.error_timeout_ms) |
7870 | 0 | return _internal_error_timeout_ms(); |
7871 | 0 | } |
7872 | 0 | inline void GnicMonitorConfig::_internal_set_error_timeout_ms(int32_t value) { |
7873 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
7874 | 0 | _impl_.error_timeout_ms_ = value; |
7875 | 0 | } |
7876 | 0 | inline void GnicMonitorConfig::set_error_timeout_ms(int32_t value) { |
7877 | 0 | _internal_set_error_timeout_ms(value); |
7878 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GnicMonitorConfig.error_timeout_ms) |
7879 | 0 | } |
7880 | | |
7881 | | // optional .safepower_agent_config.EepromDeviceConfig emulated_eeprom = 5; |
7882 | 0 | inline bool GnicMonitorConfig::_internal_has_emulated_eeprom() const { |
7883 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
7884 | 0 | PROTOBUF_ASSUME(!value || _impl_.emulated_eeprom_ != nullptr); |
7885 | 0 | return value; |
7886 | 0 | } |
7887 | 0 | inline bool GnicMonitorConfig::has_emulated_eeprom() const { |
7888 | 0 | return _internal_has_emulated_eeprom(); |
7889 | 0 | } |
7890 | 0 | inline void GnicMonitorConfig::clear_emulated_eeprom() { |
7891 | 0 | if (_impl_.emulated_eeprom_ != nullptr) _impl_.emulated_eeprom_->Clear(); |
7892 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7893 | 0 | } |
7894 | 0 | inline const ::safepower_agent_config::EepromDeviceConfig& GnicMonitorConfig::_internal_emulated_eeprom() const { |
7895 | 0 | const ::safepower_agent_config::EepromDeviceConfig* p = _impl_.emulated_eeprom_; |
7896 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::EepromDeviceConfig&>( |
7897 | 0 | ::safepower_agent_config::_EepromDeviceConfig_default_instance_); |
7898 | 0 | } |
7899 | 0 | inline const ::safepower_agent_config::EepromDeviceConfig& GnicMonitorConfig::emulated_eeprom() const { |
7900 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GnicMonitorConfig.emulated_eeprom) |
7901 | 0 | return _internal_emulated_eeprom(); |
7902 | 0 | } |
7903 | | inline void GnicMonitorConfig::unsafe_arena_set_allocated_emulated_eeprom( |
7904 | 0 | ::safepower_agent_config::EepromDeviceConfig* emulated_eeprom) { |
7905 | 0 | if (GetArenaForAllocation() == nullptr) { |
7906 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.emulated_eeprom_); |
7907 | 0 | } |
7908 | 0 | _impl_.emulated_eeprom_ = emulated_eeprom; |
7909 | 0 | if (emulated_eeprom) { |
7910 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7911 | 0 | } else { |
7912 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7913 | 0 | } |
7914 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.GnicMonitorConfig.emulated_eeprom) |
7915 | 0 | } |
7916 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::release_emulated_eeprom() { |
7917 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7918 | 0 | ::safepower_agent_config::EepromDeviceConfig* temp = _impl_.emulated_eeprom_; |
7919 | 0 | _impl_.emulated_eeprom_ = nullptr; |
7920 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
7921 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
7922 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
7923 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
7924 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
7925 | 0 | if (GetArenaForAllocation() != nullptr) { |
7926 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
7927 | 0 | } |
7928 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
7929 | 0 | return temp; |
7930 | 0 | } |
7931 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::unsafe_arena_release_emulated_eeprom() { |
7932 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.GnicMonitorConfig.emulated_eeprom) |
7933 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7934 | 0 | ::safepower_agent_config::EepromDeviceConfig* temp = _impl_.emulated_eeprom_; |
7935 | 0 | _impl_.emulated_eeprom_ = nullptr; |
7936 | 0 | return temp; |
7937 | 0 | } |
7938 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::_internal_mutable_emulated_eeprom() { |
7939 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7940 | 0 | if (_impl_.emulated_eeprom_ == nullptr) { |
7941 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::EepromDeviceConfig>(GetArenaForAllocation()); |
7942 | 0 | _impl_.emulated_eeprom_ = p; |
7943 | 0 | } |
7944 | 0 | return _impl_.emulated_eeprom_; |
7945 | 0 | } |
7946 | 0 | inline ::safepower_agent_config::EepromDeviceConfig* GnicMonitorConfig::mutable_emulated_eeprom() { |
7947 | 0 | ::safepower_agent_config::EepromDeviceConfig* _msg = _internal_mutable_emulated_eeprom(); |
7948 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.GnicMonitorConfig.emulated_eeprom) |
7949 | 0 | return _msg; |
7950 | 0 | } |
7951 | 0 | inline void GnicMonitorConfig::set_allocated_emulated_eeprom(::safepower_agent_config::EepromDeviceConfig* emulated_eeprom) { |
7952 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
7953 | 0 | if (message_arena == nullptr) { |
7954 | 0 | delete _impl_.emulated_eeprom_; |
7955 | 0 | } |
7956 | 0 | if (emulated_eeprom) { |
7957 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
7958 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(emulated_eeprom); |
7959 | 0 | if (message_arena != submessage_arena) { |
7960 | 0 | emulated_eeprom = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
7961 | 0 | message_arena, emulated_eeprom, submessage_arena); |
7962 | 0 | } |
7963 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
7964 | 0 | } else { |
7965 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
7966 | 0 | } |
7967 | 0 | _impl_.emulated_eeprom_ = emulated_eeprom; |
7968 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.GnicMonitorConfig.emulated_eeprom) |
7969 | 0 | } |
7970 | | |
7971 | | // optional int32 max_fru_size = 6 [default = 8192]; |
7972 | 0 | inline bool GnicMonitorConfig::_internal_has_max_fru_size() const { |
7973 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
7974 | 0 | return value; |
7975 | 0 | } |
7976 | 0 | inline bool GnicMonitorConfig::has_max_fru_size() const { |
7977 | 0 | return _internal_has_max_fru_size(); |
7978 | 0 | } |
7979 | 0 | inline void GnicMonitorConfig::clear_max_fru_size() { |
7980 | 0 | _impl_.max_fru_size_ = 8192; |
7981 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
7982 | 0 | } |
7983 | 0 | inline int32_t GnicMonitorConfig::_internal_max_fru_size() const { |
7984 | 0 | return _impl_.max_fru_size_; |
7985 | 0 | } |
7986 | 0 | inline int32_t GnicMonitorConfig::max_fru_size() const { |
7987 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GnicMonitorConfig.max_fru_size) |
7988 | 0 | return _internal_max_fru_size(); |
7989 | 0 | } |
7990 | 0 | inline void GnicMonitorConfig::_internal_set_max_fru_size(int32_t value) { |
7991 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
7992 | 0 | _impl_.max_fru_size_ = value; |
7993 | 0 | } |
7994 | 0 | inline void GnicMonitorConfig::set_max_fru_size(int32_t value) { |
7995 | 0 | _internal_set_max_fru_size(value); |
7996 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GnicMonitorConfig.max_fru_size) |
7997 | 0 | } |
7998 | | |
7999 | | // ------------------------------------------------------------------- |
8000 | | |
8001 | | // NodeOsConfig |
8002 | | |
8003 | | // optional string boot_count_path = 1 [default = "/etc/bootcount"]; |
8004 | 0 | inline bool NodeOsConfig::_internal_has_boot_count_path() const { |
8005 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
8006 | 0 | return value; |
8007 | 0 | } |
8008 | 0 | inline bool NodeOsConfig::has_boot_count_path() const { |
8009 | 0 | return _internal_has_boot_count_path(); |
8010 | 0 | } |
8011 | 0 | inline void NodeOsConfig::clear_boot_count_path() { |
8012 | 0 | _impl_.boot_count_path_.ClearToDefault(::safepower_agent_config::NodeOsConfig::Impl_::_i_give_permission_to_break_this_code_default_boot_count_path_, GetArenaForAllocation()); |
8013 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8014 | 0 | } |
8015 | 0 | inline const std::string& NodeOsConfig::boot_count_path() const { |
8016 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.NodeOsConfig.boot_count_path) |
8017 | 0 | if (_impl_.boot_count_path_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_boot_count_path_.get(); |
8018 | 0 | return _internal_boot_count_path(); |
8019 | 0 | } |
8020 | | template <typename ArgT0, typename... ArgT> |
8021 | | inline PROTOBUF_ALWAYS_INLINE |
8022 | | void NodeOsConfig::set_boot_count_path(ArgT0&& arg0, ArgT... args) { |
8023 | | _impl_._has_bits_[0] |= 0x00000001u; |
8024 | | _impl_.boot_count_path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8025 | | // @@protoc_insertion_point(field_set:safepower_agent_config.NodeOsConfig.boot_count_path) |
8026 | | } |
8027 | 0 | inline std::string* NodeOsConfig::mutable_boot_count_path() { |
8028 | 0 | std::string* _s = _internal_mutable_boot_count_path(); |
8029 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.NodeOsConfig.boot_count_path) |
8030 | 0 | return _s; |
8031 | 0 | } |
8032 | 0 | inline const std::string& NodeOsConfig::_internal_boot_count_path() const { |
8033 | 0 | return _impl_.boot_count_path_.Get(); |
8034 | 0 | } |
8035 | 0 | inline void NodeOsConfig::_internal_set_boot_count_path(const std::string& value) { |
8036 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8037 | 0 | _impl_.boot_count_path_.Set(value, GetArenaForAllocation()); |
8038 | 0 | } |
8039 | 0 | inline std::string* NodeOsConfig::_internal_mutable_boot_count_path() { |
8040 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8041 | 0 | return _impl_.boot_count_path_.Mutable(::safepower_agent_config::NodeOsConfig::Impl_::_i_give_permission_to_break_this_code_default_boot_count_path_, GetArenaForAllocation()); |
8042 | 0 | } |
8043 | 0 | inline std::string* NodeOsConfig::release_boot_count_path() { |
8044 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.NodeOsConfig.boot_count_path) |
8045 | 0 | if (!_internal_has_boot_count_path()) { |
8046 | 0 | return nullptr; |
8047 | 0 | } |
8048 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8049 | 0 | auto* p = _impl_.boot_count_path_.Release(); |
8050 | 0 | return p; |
8051 | 0 | } |
8052 | 0 | inline void NodeOsConfig::set_allocated_boot_count_path(std::string* boot_count_path) { |
8053 | 0 | if (boot_count_path != nullptr) { |
8054 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8055 | 0 | } else { |
8056 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8057 | 0 | } |
8058 | 0 | _impl_.boot_count_path_.SetAllocated(boot_count_path, GetArenaForAllocation()); |
8059 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.NodeOsConfig.boot_count_path) |
8060 | 0 | } |
8061 | | |
8062 | | // optional int32 shutdown_disruption_timeout_seconds = 2 [default = 900]; |
8063 | 0 | inline bool NodeOsConfig::_internal_has_shutdown_disruption_timeout_seconds() const { |
8064 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
8065 | 0 | return value; |
8066 | 0 | } |
8067 | 0 | inline bool NodeOsConfig::has_shutdown_disruption_timeout_seconds() const { |
8068 | 0 | return _internal_has_shutdown_disruption_timeout_seconds(); |
8069 | 0 | } |
8070 | 0 | inline void NodeOsConfig::clear_shutdown_disruption_timeout_seconds() { |
8071 | 0 | _impl_.shutdown_disruption_timeout_seconds_ = 900; |
8072 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8073 | 0 | } |
8074 | 0 | inline int32_t NodeOsConfig::_internal_shutdown_disruption_timeout_seconds() const { |
8075 | 0 | return _impl_.shutdown_disruption_timeout_seconds_; |
8076 | 0 | } |
8077 | 0 | inline int32_t NodeOsConfig::shutdown_disruption_timeout_seconds() const { |
8078 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.NodeOsConfig.shutdown_disruption_timeout_seconds) |
8079 | 0 | return _internal_shutdown_disruption_timeout_seconds(); |
8080 | 0 | } |
8081 | 0 | inline void NodeOsConfig::_internal_set_shutdown_disruption_timeout_seconds(int32_t value) { |
8082 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8083 | 0 | _impl_.shutdown_disruption_timeout_seconds_ = value; |
8084 | 0 | } |
8085 | 0 | inline void NodeOsConfig::set_shutdown_disruption_timeout_seconds(int32_t value) { |
8086 | 0 | _internal_set_shutdown_disruption_timeout_seconds(value); |
8087 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.NodeOsConfig.shutdown_disruption_timeout_seconds) |
8088 | 0 | } |
8089 | | |
8090 | | // ------------------------------------------------------------------- |
8091 | | |
8092 | | // PersistentStorageConfig |
8093 | | |
8094 | | // optional string dir_path = 1; |
8095 | 0 | inline bool PersistentStorageConfig::_internal_has_dir_path() const { |
8096 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
8097 | 0 | return value; |
8098 | 0 | } |
8099 | 0 | inline bool PersistentStorageConfig::has_dir_path() const { |
8100 | 0 | return _internal_has_dir_path(); |
8101 | 0 | } |
8102 | 0 | inline void PersistentStorageConfig::clear_dir_path() { |
8103 | 0 | _impl_.dir_path_.ClearToEmpty(); |
8104 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8105 | 0 | } |
8106 | 0 | inline const std::string& PersistentStorageConfig::dir_path() const { |
8107 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PersistentStorageConfig.dir_path) |
8108 | 0 | return _internal_dir_path(); |
8109 | 0 | } |
8110 | | template <typename ArgT0, typename... ArgT> |
8111 | | inline PROTOBUF_ALWAYS_INLINE |
8112 | | void PersistentStorageConfig::set_dir_path(ArgT0&& arg0, ArgT... args) { |
8113 | | _impl_._has_bits_[0] |= 0x00000001u; |
8114 | | _impl_.dir_path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8115 | | // @@protoc_insertion_point(field_set:safepower_agent_config.PersistentStorageConfig.dir_path) |
8116 | | } |
8117 | 0 | inline std::string* PersistentStorageConfig::mutable_dir_path() { |
8118 | 0 | std::string* _s = _internal_mutable_dir_path(); |
8119 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.PersistentStorageConfig.dir_path) |
8120 | 0 | return _s; |
8121 | 0 | } |
8122 | 0 | inline const std::string& PersistentStorageConfig::_internal_dir_path() const { |
8123 | 0 | return _impl_.dir_path_.Get(); |
8124 | 0 | } |
8125 | 0 | inline void PersistentStorageConfig::_internal_set_dir_path(const std::string& value) { |
8126 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8127 | 0 | _impl_.dir_path_.Set(value, GetArenaForAllocation()); |
8128 | 0 | } |
8129 | 0 | inline std::string* PersistentStorageConfig::_internal_mutable_dir_path() { |
8130 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8131 | 0 | return _impl_.dir_path_.Mutable(GetArenaForAllocation()); |
8132 | 0 | } |
8133 | 0 | inline std::string* PersistentStorageConfig::release_dir_path() { |
8134 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.PersistentStorageConfig.dir_path) |
8135 | 0 | if (!_internal_has_dir_path()) { |
8136 | 0 | return nullptr; |
8137 | 0 | } |
8138 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8139 | 0 | auto* p = _impl_.dir_path_.Release(); |
8140 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8141 | 0 | if (_impl_.dir_path_.IsDefault()) { |
8142 | 0 | _impl_.dir_path_.Set("", GetArenaForAllocation()); |
8143 | 0 | } |
8144 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8145 | 0 | return p; |
8146 | 0 | } |
8147 | 0 | inline void PersistentStorageConfig::set_allocated_dir_path(std::string* dir_path) { |
8148 | 0 | if (dir_path != nullptr) { |
8149 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8150 | 0 | } else { |
8151 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8152 | 0 | } |
8153 | 0 | _impl_.dir_path_.SetAllocated(dir_path, GetArenaForAllocation()); |
8154 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8155 | 0 | if (_impl_.dir_path_.IsDefault()) { |
8156 | 0 | _impl_.dir_path_.Set("", GetArenaForAllocation()); |
8157 | 0 | } |
8158 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8159 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.PersistentStorageConfig.dir_path) |
8160 | 0 | } |
8161 | | |
8162 | | // optional int64 max_file_size = 2; |
8163 | 0 | inline bool PersistentStorageConfig::_internal_has_max_file_size() const { |
8164 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
8165 | 0 | return value; |
8166 | 0 | } |
8167 | 0 | inline bool PersistentStorageConfig::has_max_file_size() const { |
8168 | 0 | return _internal_has_max_file_size(); |
8169 | 0 | } |
8170 | 0 | inline void PersistentStorageConfig::clear_max_file_size() { |
8171 | 0 | _impl_.max_file_size_ = int64_t{0}; |
8172 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8173 | 0 | } |
8174 | 0 | inline int64_t PersistentStorageConfig::_internal_max_file_size() const { |
8175 | 0 | return _impl_.max_file_size_; |
8176 | 0 | } |
8177 | 0 | inline int64_t PersistentStorageConfig::max_file_size() const { |
8178 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PersistentStorageConfig.max_file_size) |
8179 | 0 | return _internal_max_file_size(); |
8180 | 0 | } |
8181 | 0 | inline void PersistentStorageConfig::_internal_set_max_file_size(int64_t value) { |
8182 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8183 | 0 | _impl_.max_file_size_ = value; |
8184 | 0 | } |
8185 | 0 | inline void PersistentStorageConfig::set_max_file_size(int64_t value) { |
8186 | 0 | _internal_set_max_file_size(value); |
8187 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PersistentStorageConfig.max_file_size) |
8188 | 0 | } |
8189 | | |
8190 | | // optional int64 proto_keep_number = 3; |
8191 | 0 | inline bool PersistentStorageConfig::_internal_has_proto_keep_number() const { |
8192 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
8193 | 0 | return value; |
8194 | 0 | } |
8195 | 0 | inline bool PersistentStorageConfig::has_proto_keep_number() const { |
8196 | 0 | return _internal_has_proto_keep_number(); |
8197 | 0 | } |
8198 | 0 | inline void PersistentStorageConfig::clear_proto_keep_number() { |
8199 | 0 | _impl_.proto_keep_number_ = int64_t{0}; |
8200 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8201 | 0 | } |
8202 | 0 | inline int64_t PersistentStorageConfig::_internal_proto_keep_number() const { |
8203 | 0 | return _impl_.proto_keep_number_; |
8204 | 0 | } |
8205 | 0 | inline int64_t PersistentStorageConfig::proto_keep_number() const { |
8206 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.PersistentStorageConfig.proto_keep_number) |
8207 | 0 | return _internal_proto_keep_number(); |
8208 | 0 | } |
8209 | 0 | inline void PersistentStorageConfig::_internal_set_proto_keep_number(int64_t value) { |
8210 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8211 | 0 | _impl_.proto_keep_number_ = value; |
8212 | 0 | } |
8213 | 0 | inline void PersistentStorageConfig::set_proto_keep_number(int64_t value) { |
8214 | 0 | _internal_set_proto_keep_number(value); |
8215 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.PersistentStorageConfig.proto_keep_number) |
8216 | 0 | } |
8217 | | |
8218 | | // ------------------------------------------------------------------- |
8219 | | |
8220 | | // StateMonitorConfig |
8221 | | |
8222 | | // optional string state_name = 1; |
8223 | 0 | inline bool StateMonitorConfig::_internal_has_state_name() const { |
8224 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
8225 | 0 | return value; |
8226 | 0 | } |
8227 | 0 | inline bool StateMonitorConfig::has_state_name() const { |
8228 | 0 | return _internal_has_state_name(); |
8229 | 0 | } |
8230 | 0 | inline void StateMonitorConfig::clear_state_name() { |
8231 | 0 | _impl_.state_name_.ClearToEmpty(); |
8232 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8233 | 0 | } |
8234 | 0 | inline const std::string& StateMonitorConfig::state_name() const { |
8235 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateMonitorConfig.state_name) |
8236 | 0 | return _internal_state_name(); |
8237 | 0 | } |
8238 | | template <typename ArgT0, typename... ArgT> |
8239 | | inline PROTOBUF_ALWAYS_INLINE |
8240 | | void StateMonitorConfig::set_state_name(ArgT0&& arg0, ArgT... args) { |
8241 | | _impl_._has_bits_[0] |= 0x00000001u; |
8242 | | _impl_.state_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8243 | | // @@protoc_insertion_point(field_set:safepower_agent_config.StateMonitorConfig.state_name) |
8244 | | } |
8245 | 0 | inline std::string* StateMonitorConfig::mutable_state_name() { |
8246 | 0 | std::string* _s = _internal_mutable_state_name(); |
8247 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.StateMonitorConfig.state_name) |
8248 | 0 | return _s; |
8249 | 0 | } |
8250 | 0 | inline const std::string& StateMonitorConfig::_internal_state_name() const { |
8251 | 0 | return _impl_.state_name_.Get(); |
8252 | 0 | } |
8253 | 0 | inline void StateMonitorConfig::_internal_set_state_name(const std::string& value) { |
8254 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8255 | 0 | _impl_.state_name_.Set(value, GetArenaForAllocation()); |
8256 | 0 | } |
8257 | 0 | inline std::string* StateMonitorConfig::_internal_mutable_state_name() { |
8258 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8259 | 0 | return _impl_.state_name_.Mutable(GetArenaForAllocation()); |
8260 | 0 | } |
8261 | 0 | inline std::string* StateMonitorConfig::release_state_name() { |
8262 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.StateMonitorConfig.state_name) |
8263 | 0 | if (!_internal_has_state_name()) { |
8264 | 0 | return nullptr; |
8265 | 0 | } |
8266 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8267 | 0 | auto* p = _impl_.state_name_.Release(); |
8268 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8269 | 0 | if (_impl_.state_name_.IsDefault()) { |
8270 | 0 | _impl_.state_name_.Set("", GetArenaForAllocation()); |
8271 | 0 | } |
8272 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8273 | 0 | return p; |
8274 | 0 | } |
8275 | 0 | inline void StateMonitorConfig::set_allocated_state_name(std::string* state_name) { |
8276 | 0 | if (state_name != nullptr) { |
8277 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8278 | 0 | } else { |
8279 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8280 | 0 | } |
8281 | 0 | _impl_.state_name_.SetAllocated(state_name, GetArenaForAllocation()); |
8282 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8283 | 0 | if (_impl_.state_name_.IsDefault()) { |
8284 | 0 | _impl_.state_name_.Set("", GetArenaForAllocation()); |
8285 | 0 | } |
8286 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8287 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.StateMonitorConfig.state_name) |
8288 | 0 | } |
8289 | | |
8290 | | // optional .safepower_agent_config.StateGatheringInfo state_gathering_info = 2; |
8291 | 0 | inline bool StateMonitorConfig::_internal_has_state_gathering_info() const { |
8292 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
8293 | 0 | PROTOBUF_ASSUME(!value || _impl_.state_gathering_info_ != nullptr); |
8294 | 0 | return value; |
8295 | 0 | } |
8296 | 0 | inline bool StateMonitorConfig::has_state_gathering_info() const { |
8297 | 0 | return _internal_has_state_gathering_info(); |
8298 | 0 | } |
8299 | 0 | inline void StateMonitorConfig::clear_state_gathering_info() { |
8300 | 0 | if (_impl_.state_gathering_info_ != nullptr) _impl_.state_gathering_info_->Clear(); |
8301 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8302 | 0 | } |
8303 | 0 | inline const ::safepower_agent_config::StateGatheringInfo& StateMonitorConfig::_internal_state_gathering_info() const { |
8304 | 0 | const ::safepower_agent_config::StateGatheringInfo* p = _impl_.state_gathering_info_; |
8305 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_config::StateGatheringInfo&>( |
8306 | 0 | ::safepower_agent_config::_StateGatheringInfo_default_instance_); |
8307 | 0 | } |
8308 | 0 | inline const ::safepower_agent_config::StateGatheringInfo& StateMonitorConfig::state_gathering_info() const { |
8309 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateMonitorConfig.state_gathering_info) |
8310 | 0 | return _internal_state_gathering_info(); |
8311 | 0 | } |
8312 | | inline void StateMonitorConfig::unsafe_arena_set_allocated_state_gathering_info( |
8313 | 0 | ::safepower_agent_config::StateGatheringInfo* state_gathering_info) { |
8314 | 0 | if (GetArenaForAllocation() == nullptr) { |
8315 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.state_gathering_info_); |
8316 | 0 | } |
8317 | 0 | _impl_.state_gathering_info_ = state_gathering_info; |
8318 | 0 | if (state_gathering_info) { |
8319 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8320 | 0 | } else { |
8321 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8322 | 0 | } |
8323 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.StateMonitorConfig.state_gathering_info) |
8324 | 0 | } |
8325 | 0 | inline ::safepower_agent_config::StateGatheringInfo* StateMonitorConfig::release_state_gathering_info() { |
8326 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8327 | 0 | ::safepower_agent_config::StateGatheringInfo* temp = _impl_.state_gathering_info_; |
8328 | 0 | _impl_.state_gathering_info_ = nullptr; |
8329 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
8330 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
8331 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8332 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
8333 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
8334 | 0 | if (GetArenaForAllocation() != nullptr) { |
8335 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8336 | 0 | } |
8337 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
8338 | 0 | return temp; |
8339 | 0 | } |
8340 | 0 | inline ::safepower_agent_config::StateGatheringInfo* StateMonitorConfig::unsafe_arena_release_state_gathering_info() { |
8341 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.StateMonitorConfig.state_gathering_info) |
8342 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8343 | 0 | ::safepower_agent_config::StateGatheringInfo* temp = _impl_.state_gathering_info_; |
8344 | 0 | _impl_.state_gathering_info_ = nullptr; |
8345 | 0 | return temp; |
8346 | 0 | } |
8347 | 0 | inline ::safepower_agent_config::StateGatheringInfo* StateMonitorConfig::_internal_mutable_state_gathering_info() { |
8348 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8349 | 0 | if (_impl_.state_gathering_info_ == nullptr) { |
8350 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_config::StateGatheringInfo>(GetArenaForAllocation()); |
8351 | 0 | _impl_.state_gathering_info_ = p; |
8352 | 0 | } |
8353 | 0 | return _impl_.state_gathering_info_; |
8354 | 0 | } |
8355 | 0 | inline ::safepower_agent_config::StateGatheringInfo* StateMonitorConfig::mutable_state_gathering_info() { |
8356 | 0 | ::safepower_agent_config::StateGatheringInfo* _msg = _internal_mutable_state_gathering_info(); |
8357 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.StateMonitorConfig.state_gathering_info) |
8358 | 0 | return _msg; |
8359 | 0 | } |
8360 | 0 | inline void StateMonitorConfig::set_allocated_state_gathering_info(::safepower_agent_config::StateGatheringInfo* state_gathering_info) { |
8361 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
8362 | 0 | if (message_arena == nullptr) { |
8363 | 0 | delete _impl_.state_gathering_info_; |
8364 | 0 | } |
8365 | 0 | if (state_gathering_info) { |
8366 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
8367 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(state_gathering_info); |
8368 | 0 | if (message_arena != submessage_arena) { |
8369 | 0 | state_gathering_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
8370 | 0 | message_arena, state_gathering_info, submessage_arena); |
8371 | 0 | } |
8372 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8373 | 0 | } else { |
8374 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8375 | 0 | } |
8376 | 0 | _impl_.state_gathering_info_ = state_gathering_info; |
8377 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.StateMonitorConfig.state_gathering_info) |
8378 | 0 | } |
8379 | | |
8380 | | // optional .safepower_agent_proto.SystemComponent system_component = 3; |
8381 | 0 | inline bool StateMonitorConfig::_internal_has_system_component() const { |
8382 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
8383 | 0 | PROTOBUF_ASSUME(!value || _impl_.system_component_ != nullptr); |
8384 | 0 | return value; |
8385 | 0 | } |
8386 | 0 | inline bool StateMonitorConfig::has_system_component() const { |
8387 | 0 | return _internal_has_system_component(); |
8388 | 0 | } |
8389 | 0 | inline const ::safepower_agent_proto::SystemComponent& StateMonitorConfig::_internal_system_component() const { |
8390 | 0 | const ::safepower_agent_proto::SystemComponent* p = _impl_.system_component_; |
8391 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::SystemComponent&>( |
8392 | 0 | ::safepower_agent_proto::_SystemComponent_default_instance_); |
8393 | 0 | } |
8394 | 0 | inline const ::safepower_agent_proto::SystemComponent& StateMonitorConfig::system_component() const { |
8395 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateMonitorConfig.system_component) |
8396 | 0 | return _internal_system_component(); |
8397 | 0 | } |
8398 | | inline void StateMonitorConfig::unsafe_arena_set_allocated_system_component( |
8399 | 0 | ::safepower_agent_proto::SystemComponent* system_component) { |
8400 | 0 | if (GetArenaForAllocation() == nullptr) { |
8401 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.system_component_); |
8402 | 0 | } |
8403 | 0 | _impl_.system_component_ = system_component; |
8404 | 0 | if (system_component) { |
8405 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8406 | 0 | } else { |
8407 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8408 | 0 | } |
8409 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.StateMonitorConfig.system_component) |
8410 | 0 | } |
8411 | 0 | inline ::safepower_agent_proto::SystemComponent* StateMonitorConfig::release_system_component() { |
8412 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8413 | 0 | ::safepower_agent_proto::SystemComponent* temp = _impl_.system_component_; |
8414 | 0 | _impl_.system_component_ = nullptr; |
8415 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
8416 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
8417 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8418 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
8419 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
8420 | 0 | if (GetArenaForAllocation() != nullptr) { |
8421 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8422 | 0 | } |
8423 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
8424 | 0 | return temp; |
8425 | 0 | } |
8426 | 0 | inline ::safepower_agent_proto::SystemComponent* StateMonitorConfig::unsafe_arena_release_system_component() { |
8427 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.StateMonitorConfig.system_component) |
8428 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8429 | 0 | ::safepower_agent_proto::SystemComponent* temp = _impl_.system_component_; |
8430 | 0 | _impl_.system_component_ = nullptr; |
8431 | 0 | return temp; |
8432 | 0 | } |
8433 | 0 | inline ::safepower_agent_proto::SystemComponent* StateMonitorConfig::_internal_mutable_system_component() { |
8434 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8435 | 0 | if (_impl_.system_component_ == nullptr) { |
8436 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_proto::SystemComponent>(GetArenaForAllocation()); |
8437 | 0 | _impl_.system_component_ = p; |
8438 | 0 | } |
8439 | 0 | return _impl_.system_component_; |
8440 | 0 | } |
8441 | 0 | inline ::safepower_agent_proto::SystemComponent* StateMonitorConfig::mutable_system_component() { |
8442 | 0 | ::safepower_agent_proto::SystemComponent* _msg = _internal_mutable_system_component(); |
8443 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.StateMonitorConfig.system_component) |
8444 | 0 | return _msg; |
8445 | 0 | } |
8446 | 0 | inline void StateMonitorConfig::set_allocated_system_component(::safepower_agent_proto::SystemComponent* system_component) { |
8447 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
8448 | 0 | if (message_arena == nullptr) { |
8449 | 0 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.system_component_); |
8450 | 0 | } |
8451 | 0 | if (system_component) { |
8452 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
8453 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
8454 | 0 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(system_component)); |
8455 | 0 | if (message_arena != submessage_arena) { |
8456 | 0 | system_component = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
8457 | 0 | message_arena, system_component, submessage_arena); |
8458 | 0 | } |
8459 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8460 | 0 | } else { |
8461 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8462 | 0 | } |
8463 | 0 | _impl_.system_component_ = system_component; |
8464 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.StateMonitorConfig.system_component) |
8465 | 0 | } |
8466 | | |
8467 | | // ------------------------------------------------------------------- |
8468 | | |
8469 | | // StateGatheringInfo |
8470 | | |
8471 | | // .safepower_agent_config.RedfishInfo redfish = 1; |
8472 | 0 | inline bool StateGatheringInfo::_internal_has_redfish() const { |
8473 | 0 | return info_case() == kRedfish; |
8474 | 0 | } |
8475 | 0 | inline bool StateGatheringInfo::has_redfish() const { |
8476 | 0 | return _internal_has_redfish(); |
8477 | 0 | } |
8478 | 0 | inline void StateGatheringInfo::set_has_redfish() { |
8479 | 0 | _impl_._oneof_case_[0] = kRedfish; |
8480 | 0 | } |
8481 | 0 | inline void StateGatheringInfo::clear_redfish() { |
8482 | 0 | if (_internal_has_redfish()) { |
8483 | 0 | if (GetArenaForAllocation() == nullptr) { |
8484 | 0 | delete _impl_.info_.redfish_; |
8485 | 0 | } |
8486 | 0 | clear_has_info(); |
8487 | 0 | } |
8488 | 0 | } |
8489 | 0 | inline ::safepower_agent_config::RedfishInfo* StateGatheringInfo::release_redfish() { |
8490 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.StateGatheringInfo.redfish) |
8491 | 0 | if (_internal_has_redfish()) { |
8492 | 0 | clear_has_info(); |
8493 | 0 | ::safepower_agent_config::RedfishInfo* temp = _impl_.info_.redfish_; |
8494 | 0 | if (GetArenaForAllocation() != nullptr) { |
8495 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8496 | 0 | } |
8497 | 0 | _impl_.info_.redfish_ = nullptr; |
8498 | 0 | return temp; |
8499 | 0 | } else { |
8500 | 0 | return nullptr; |
8501 | 0 | } |
8502 | 0 | } |
8503 | 0 | inline const ::safepower_agent_config::RedfishInfo& StateGatheringInfo::_internal_redfish() const { |
8504 | 0 | return _internal_has_redfish() |
8505 | 0 | ? *_impl_.info_.redfish_ |
8506 | 0 | : reinterpret_cast< ::safepower_agent_config::RedfishInfo&>(::safepower_agent_config::_RedfishInfo_default_instance_); |
8507 | 0 | } |
8508 | 0 | inline const ::safepower_agent_config::RedfishInfo& StateGatheringInfo::redfish() const { |
8509 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateGatheringInfo.redfish) |
8510 | 0 | return _internal_redfish(); |
8511 | 0 | } |
8512 | 0 | inline ::safepower_agent_config::RedfishInfo* StateGatheringInfo::unsafe_arena_release_redfish() { |
8513 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.StateGatheringInfo.redfish) |
8514 | 0 | if (_internal_has_redfish()) { |
8515 | 0 | clear_has_info(); |
8516 | 0 | ::safepower_agent_config::RedfishInfo* temp = _impl_.info_.redfish_; |
8517 | 0 | _impl_.info_.redfish_ = nullptr; |
8518 | 0 | return temp; |
8519 | 0 | } else { |
8520 | 0 | return nullptr; |
8521 | 0 | } |
8522 | 0 | } |
8523 | 0 | inline void StateGatheringInfo::unsafe_arena_set_allocated_redfish(::safepower_agent_config::RedfishInfo* redfish) { |
8524 | 0 | clear_info(); |
8525 | 0 | if (redfish) { |
8526 | 0 | set_has_redfish(); |
8527 | 0 | _impl_.info_.redfish_ = redfish; |
8528 | 0 | } |
8529 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.StateGatheringInfo.redfish) |
8530 | 0 | } |
8531 | 0 | inline ::safepower_agent_config::RedfishInfo* StateGatheringInfo::_internal_mutable_redfish() { |
8532 | 0 | if (!_internal_has_redfish()) { |
8533 | 0 | clear_info(); |
8534 | 0 | set_has_redfish(); |
8535 | 0 | _impl_.info_.redfish_ = CreateMaybeMessage< ::safepower_agent_config::RedfishInfo >(GetArenaForAllocation()); |
8536 | 0 | } |
8537 | 0 | return _impl_.info_.redfish_; |
8538 | 0 | } |
8539 | 0 | inline ::safepower_agent_config::RedfishInfo* StateGatheringInfo::mutable_redfish() { |
8540 | 0 | ::safepower_agent_config::RedfishInfo* _msg = _internal_mutable_redfish(); |
8541 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.StateGatheringInfo.redfish) |
8542 | 0 | return _msg; |
8543 | 0 | } |
8544 | | |
8545 | | // .safepower_agent_config.DbusInfo dbus = 2; |
8546 | 0 | inline bool StateGatheringInfo::_internal_has_dbus() const { |
8547 | 0 | return info_case() == kDbus; |
8548 | 0 | } |
8549 | 0 | inline bool StateGatheringInfo::has_dbus() const { |
8550 | 0 | return _internal_has_dbus(); |
8551 | 0 | } |
8552 | 0 | inline void StateGatheringInfo::set_has_dbus() { |
8553 | 0 | _impl_._oneof_case_[0] = kDbus; |
8554 | 0 | } |
8555 | 0 | inline void StateGatheringInfo::clear_dbus() { |
8556 | 0 | if (_internal_has_dbus()) { |
8557 | 0 | if (GetArenaForAllocation() == nullptr) { |
8558 | 0 | delete _impl_.info_.dbus_; |
8559 | 0 | } |
8560 | 0 | clear_has_info(); |
8561 | 0 | } |
8562 | 0 | } |
8563 | 0 | inline ::safepower_agent_config::DbusInfo* StateGatheringInfo::release_dbus() { |
8564 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.StateGatheringInfo.dbus) |
8565 | 0 | if (_internal_has_dbus()) { |
8566 | 0 | clear_has_info(); |
8567 | 0 | ::safepower_agent_config::DbusInfo* temp = _impl_.info_.dbus_; |
8568 | 0 | if (GetArenaForAllocation() != nullptr) { |
8569 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8570 | 0 | } |
8571 | 0 | _impl_.info_.dbus_ = nullptr; |
8572 | 0 | return temp; |
8573 | 0 | } else { |
8574 | 0 | return nullptr; |
8575 | 0 | } |
8576 | 0 | } |
8577 | 0 | inline const ::safepower_agent_config::DbusInfo& StateGatheringInfo::_internal_dbus() const { |
8578 | 0 | return _internal_has_dbus() |
8579 | 0 | ? *_impl_.info_.dbus_ |
8580 | 0 | : reinterpret_cast< ::safepower_agent_config::DbusInfo&>(::safepower_agent_config::_DbusInfo_default_instance_); |
8581 | 0 | } |
8582 | 0 | inline const ::safepower_agent_config::DbusInfo& StateGatheringInfo::dbus() const { |
8583 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateGatheringInfo.dbus) |
8584 | 0 | return _internal_dbus(); |
8585 | 0 | } |
8586 | 0 | inline ::safepower_agent_config::DbusInfo* StateGatheringInfo::unsafe_arena_release_dbus() { |
8587 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.StateGatheringInfo.dbus) |
8588 | 0 | if (_internal_has_dbus()) { |
8589 | 0 | clear_has_info(); |
8590 | 0 | ::safepower_agent_config::DbusInfo* temp = _impl_.info_.dbus_; |
8591 | 0 | _impl_.info_.dbus_ = nullptr; |
8592 | 0 | return temp; |
8593 | 0 | } else { |
8594 | 0 | return nullptr; |
8595 | 0 | } |
8596 | 0 | } |
8597 | 0 | inline void StateGatheringInfo::unsafe_arena_set_allocated_dbus(::safepower_agent_config::DbusInfo* dbus) { |
8598 | 0 | clear_info(); |
8599 | 0 | if (dbus) { |
8600 | 0 | set_has_dbus(); |
8601 | 0 | _impl_.info_.dbus_ = dbus; |
8602 | 0 | } |
8603 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.StateGatheringInfo.dbus) |
8604 | 0 | } |
8605 | 0 | inline ::safepower_agent_config::DbusInfo* StateGatheringInfo::_internal_mutable_dbus() { |
8606 | 0 | if (!_internal_has_dbus()) { |
8607 | 0 | clear_info(); |
8608 | 0 | set_has_dbus(); |
8609 | 0 | _impl_.info_.dbus_ = CreateMaybeMessage< ::safepower_agent_config::DbusInfo >(GetArenaForAllocation()); |
8610 | 0 | } |
8611 | 0 | return _impl_.info_.dbus_; |
8612 | 0 | } |
8613 | 0 | inline ::safepower_agent_config::DbusInfo* StateGatheringInfo::mutable_dbus() { |
8614 | 0 | ::safepower_agent_config::DbusInfo* _msg = _internal_mutable_dbus(); |
8615 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.StateGatheringInfo.dbus) |
8616 | 0 | return _msg; |
8617 | 0 | } |
8618 | | |
8619 | | // optional uint32 collection_interval_ms = 3; |
8620 | 0 | inline bool StateGatheringInfo::_internal_has_collection_interval_ms() const { |
8621 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
8622 | 0 | return value; |
8623 | 0 | } |
8624 | 0 | inline bool StateGatheringInfo::has_collection_interval_ms() const { |
8625 | 0 | return _internal_has_collection_interval_ms(); |
8626 | 0 | } |
8627 | 0 | inline void StateGatheringInfo::clear_collection_interval_ms() { |
8628 | 0 | _impl_.collection_interval_ms_ = 0u; |
8629 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8630 | 0 | } |
8631 | 0 | inline uint32_t StateGatheringInfo::_internal_collection_interval_ms() const { |
8632 | 0 | return _impl_.collection_interval_ms_; |
8633 | 0 | } |
8634 | 0 | inline uint32_t StateGatheringInfo::collection_interval_ms() const { |
8635 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateGatheringInfo.collection_interval_ms) |
8636 | 0 | return _internal_collection_interval_ms(); |
8637 | 0 | } |
8638 | 0 | inline void StateGatheringInfo::_internal_set_collection_interval_ms(uint32_t value) { |
8639 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8640 | 0 | _impl_.collection_interval_ms_ = value; |
8641 | 0 | } |
8642 | 0 | inline void StateGatheringInfo::set_collection_interval_ms(uint32_t value) { |
8643 | 0 | _internal_set_collection_interval_ms(value); |
8644 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.StateGatheringInfo.collection_interval_ms) |
8645 | 0 | } |
8646 | | |
8647 | | // optional .safepower_agent_proto.NodeState prototype = 4; |
8648 | 0 | inline bool StateGatheringInfo::_internal_has_prototype() const { |
8649 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
8650 | 0 | PROTOBUF_ASSUME(!value || _impl_.prototype_ != nullptr); |
8651 | 0 | return value; |
8652 | 0 | } |
8653 | 0 | inline bool StateGatheringInfo::has_prototype() const { |
8654 | 0 | return _internal_has_prototype(); |
8655 | 0 | } |
8656 | 0 | inline const ::safepower_agent_proto::NodeState& StateGatheringInfo::_internal_prototype() const { |
8657 | 0 | const ::safepower_agent_proto::NodeState* p = _impl_.prototype_; |
8658 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::NodeState&>( |
8659 | 0 | ::safepower_agent_proto::_NodeState_default_instance_); |
8660 | 0 | } |
8661 | 0 | inline const ::safepower_agent_proto::NodeState& StateGatheringInfo::prototype() const { |
8662 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.StateGatheringInfo.prototype) |
8663 | 0 | return _internal_prototype(); |
8664 | 0 | } |
8665 | | inline void StateGatheringInfo::unsafe_arena_set_allocated_prototype( |
8666 | 0 | ::safepower_agent_proto::NodeState* prototype) { |
8667 | 0 | if (GetArenaForAllocation() == nullptr) { |
8668 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prototype_); |
8669 | 0 | } |
8670 | 0 | _impl_.prototype_ = prototype; |
8671 | 0 | if (prototype) { |
8672 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8673 | 0 | } else { |
8674 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8675 | 0 | } |
8676 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.StateGatheringInfo.prototype) |
8677 | 0 | } |
8678 | 0 | inline ::safepower_agent_proto::NodeState* StateGatheringInfo::release_prototype() { |
8679 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8680 | 0 | ::safepower_agent_proto::NodeState* temp = _impl_.prototype_; |
8681 | 0 | _impl_.prototype_ = nullptr; |
8682 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
8683 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
8684 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8685 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
8686 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
8687 | 0 | if (GetArenaForAllocation() != nullptr) { |
8688 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
8689 | 0 | } |
8690 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
8691 | 0 | return temp; |
8692 | 0 | } |
8693 | 0 | inline ::safepower_agent_proto::NodeState* StateGatheringInfo::unsafe_arena_release_prototype() { |
8694 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.StateGatheringInfo.prototype) |
8695 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8696 | 0 | ::safepower_agent_proto::NodeState* temp = _impl_.prototype_; |
8697 | 0 | _impl_.prototype_ = nullptr; |
8698 | 0 | return temp; |
8699 | 0 | } |
8700 | 0 | inline ::safepower_agent_proto::NodeState* StateGatheringInfo::_internal_mutable_prototype() { |
8701 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8702 | 0 | if (_impl_.prototype_ == nullptr) { |
8703 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_proto::NodeState>(GetArenaForAllocation()); |
8704 | 0 | _impl_.prototype_ = p; |
8705 | 0 | } |
8706 | 0 | return _impl_.prototype_; |
8707 | 0 | } |
8708 | 0 | inline ::safepower_agent_proto::NodeState* StateGatheringInfo::mutable_prototype() { |
8709 | 0 | ::safepower_agent_proto::NodeState* _msg = _internal_mutable_prototype(); |
8710 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.StateGatheringInfo.prototype) |
8711 | 0 | return _msg; |
8712 | 0 | } |
8713 | 0 | inline void StateGatheringInfo::set_allocated_prototype(::safepower_agent_proto::NodeState* prototype) { |
8714 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
8715 | 0 | if (message_arena == nullptr) { |
8716 | 0 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prototype_); |
8717 | 0 | } |
8718 | 0 | if (prototype) { |
8719 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
8720 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
8721 | 0 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(prototype)); |
8722 | 0 | if (message_arena != submessage_arena) { |
8723 | 0 | prototype = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
8724 | 0 | message_arena, prototype, submessage_arena); |
8725 | 0 | } |
8726 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8727 | 0 | } else { |
8728 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8729 | 0 | } |
8730 | 0 | _impl_.prototype_ = prototype; |
8731 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.StateGatheringInfo.prototype) |
8732 | 0 | } |
8733 | | |
8734 | 0 | inline bool StateGatheringInfo::has_info() const { |
8735 | 0 | return info_case() != INFO_NOT_SET; |
8736 | 0 | } |
8737 | 0 | inline void StateGatheringInfo::clear_has_info() { |
8738 | 0 | _impl_._oneof_case_[0] = INFO_NOT_SET; |
8739 | 0 | } |
8740 | 0 | inline StateGatheringInfo::InfoCase StateGatheringInfo::info_case() const { |
8741 | 0 | return StateGatheringInfo::InfoCase(_impl_._oneof_case_[0]); |
8742 | 0 | } |
8743 | | // ------------------------------------------------------------------- |
8744 | | |
8745 | | // RedfishInfo |
8746 | | |
8747 | | // optional string uri = 1; |
8748 | 0 | inline bool RedfishInfo::_internal_has_uri() const { |
8749 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
8750 | 0 | return value; |
8751 | 0 | } |
8752 | 0 | inline bool RedfishInfo::has_uri() const { |
8753 | 0 | return _internal_has_uri(); |
8754 | 0 | } |
8755 | 0 | inline void RedfishInfo::clear_uri() { |
8756 | 0 | _impl_.uri_.ClearToEmpty(); |
8757 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8758 | 0 | } |
8759 | 0 | inline const std::string& RedfishInfo::uri() const { |
8760 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishInfo.uri) |
8761 | 0 | return _internal_uri(); |
8762 | 0 | } |
8763 | | template <typename ArgT0, typename... ArgT> |
8764 | | inline PROTOBUF_ALWAYS_INLINE |
8765 | | void RedfishInfo::set_uri(ArgT0&& arg0, ArgT... args) { |
8766 | | _impl_._has_bits_[0] |= 0x00000001u; |
8767 | | _impl_.uri_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8768 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishInfo.uri) |
8769 | | } |
8770 | 0 | inline std::string* RedfishInfo::mutable_uri() { |
8771 | 0 | std::string* _s = _internal_mutable_uri(); |
8772 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishInfo.uri) |
8773 | 0 | return _s; |
8774 | 0 | } |
8775 | 0 | inline const std::string& RedfishInfo::_internal_uri() const { |
8776 | 0 | return _impl_.uri_.Get(); |
8777 | 0 | } |
8778 | 0 | inline void RedfishInfo::_internal_set_uri(const std::string& value) { |
8779 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8780 | 0 | _impl_.uri_.Set(value, GetArenaForAllocation()); |
8781 | 0 | } |
8782 | 0 | inline std::string* RedfishInfo::_internal_mutable_uri() { |
8783 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8784 | 0 | return _impl_.uri_.Mutable(GetArenaForAllocation()); |
8785 | 0 | } |
8786 | 0 | inline std::string* RedfishInfo::release_uri() { |
8787 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishInfo.uri) |
8788 | 0 | if (!_internal_has_uri()) { |
8789 | 0 | return nullptr; |
8790 | 0 | } |
8791 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8792 | 0 | auto* p = _impl_.uri_.Release(); |
8793 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8794 | 0 | if (_impl_.uri_.IsDefault()) { |
8795 | 0 | _impl_.uri_.Set("", GetArenaForAllocation()); |
8796 | 0 | } |
8797 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8798 | 0 | return p; |
8799 | 0 | } |
8800 | 0 | inline void RedfishInfo::set_allocated_uri(std::string* uri) { |
8801 | 0 | if (uri != nullptr) { |
8802 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
8803 | 0 | } else { |
8804 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8805 | 0 | } |
8806 | 0 | _impl_.uri_.SetAllocated(uri, GetArenaForAllocation()); |
8807 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8808 | 0 | if (_impl_.uri_.IsDefault()) { |
8809 | 0 | _impl_.uri_.Set("", GetArenaForAllocation()); |
8810 | 0 | } |
8811 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8812 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishInfo.uri) |
8813 | 0 | } |
8814 | | |
8815 | | // optional string json_key = 2; |
8816 | 0 | inline bool RedfishInfo::_internal_has_json_key() const { |
8817 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
8818 | 0 | return value; |
8819 | 0 | } |
8820 | 0 | inline bool RedfishInfo::has_json_key() const { |
8821 | 0 | return _internal_has_json_key(); |
8822 | 0 | } |
8823 | 0 | inline void RedfishInfo::clear_json_key() { |
8824 | 0 | _impl_.json_key_.ClearToEmpty(); |
8825 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8826 | 0 | } |
8827 | 0 | inline const std::string& RedfishInfo::json_key() const { |
8828 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishInfo.json_key) |
8829 | 0 | return _internal_json_key(); |
8830 | 0 | } |
8831 | | template <typename ArgT0, typename... ArgT> |
8832 | | inline PROTOBUF_ALWAYS_INLINE |
8833 | | void RedfishInfo::set_json_key(ArgT0&& arg0, ArgT... args) { |
8834 | | _impl_._has_bits_[0] |= 0x00000002u; |
8835 | | _impl_.json_key_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8836 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishInfo.json_key) |
8837 | | } |
8838 | 0 | inline std::string* RedfishInfo::mutable_json_key() { |
8839 | 0 | std::string* _s = _internal_mutable_json_key(); |
8840 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishInfo.json_key) |
8841 | 0 | return _s; |
8842 | 0 | } |
8843 | 0 | inline const std::string& RedfishInfo::_internal_json_key() const { |
8844 | 0 | return _impl_.json_key_.Get(); |
8845 | 0 | } |
8846 | 0 | inline void RedfishInfo::_internal_set_json_key(const std::string& value) { |
8847 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8848 | 0 | _impl_.json_key_.Set(value, GetArenaForAllocation()); |
8849 | 0 | } |
8850 | 0 | inline std::string* RedfishInfo::_internal_mutable_json_key() { |
8851 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8852 | 0 | return _impl_.json_key_.Mutable(GetArenaForAllocation()); |
8853 | 0 | } |
8854 | 0 | inline std::string* RedfishInfo::release_json_key() { |
8855 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishInfo.json_key) |
8856 | 0 | if (!_internal_has_json_key()) { |
8857 | 0 | return nullptr; |
8858 | 0 | } |
8859 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8860 | 0 | auto* p = _impl_.json_key_.Release(); |
8861 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8862 | 0 | if (_impl_.json_key_.IsDefault()) { |
8863 | 0 | _impl_.json_key_.Set("", GetArenaForAllocation()); |
8864 | 0 | } |
8865 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8866 | 0 | return p; |
8867 | 0 | } |
8868 | 0 | inline void RedfishInfo::set_allocated_json_key(std::string* json_key) { |
8869 | 0 | if (json_key != nullptr) { |
8870 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
8871 | 0 | } else { |
8872 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
8873 | 0 | } |
8874 | 0 | _impl_.json_key_.SetAllocated(json_key, GetArenaForAllocation()); |
8875 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8876 | 0 | if (_impl_.json_key_.IsDefault()) { |
8877 | 0 | _impl_.json_key_.Set("", GetArenaForAllocation()); |
8878 | 0 | } |
8879 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
8880 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishInfo.json_key) |
8881 | 0 | } |
8882 | | |
8883 | | // optional string ip = 3 [default = "127.0.0.1"]; |
8884 | 0 | inline bool RedfishInfo::_internal_has_ip() const { |
8885 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
8886 | 0 | return value; |
8887 | 0 | } |
8888 | 0 | inline bool RedfishInfo::has_ip() const { |
8889 | 0 | return _internal_has_ip(); |
8890 | 0 | } |
8891 | 0 | inline void RedfishInfo::clear_ip() { |
8892 | 0 | _impl_.ip_.ClearToDefault(::safepower_agent_config::RedfishInfo::Impl_::_i_give_permission_to_break_this_code_default_ip_, GetArenaForAllocation()); |
8893 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8894 | 0 | } |
8895 | 0 | inline const std::string& RedfishInfo::ip() const { |
8896 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishInfo.ip) |
8897 | 0 | if (_impl_.ip_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_ip_.get(); |
8898 | 0 | return _internal_ip(); |
8899 | 0 | } |
8900 | | template <typename ArgT0, typename... ArgT> |
8901 | | inline PROTOBUF_ALWAYS_INLINE |
8902 | | void RedfishInfo::set_ip(ArgT0&& arg0, ArgT... args) { |
8903 | | _impl_._has_bits_[0] |= 0x00000004u; |
8904 | | _impl_.ip_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8905 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishInfo.ip) |
8906 | | } |
8907 | 0 | inline std::string* RedfishInfo::mutable_ip() { |
8908 | 0 | std::string* _s = _internal_mutable_ip(); |
8909 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishInfo.ip) |
8910 | 0 | return _s; |
8911 | 0 | } |
8912 | 0 | inline const std::string& RedfishInfo::_internal_ip() const { |
8913 | 0 | return _impl_.ip_.Get(); |
8914 | 0 | } |
8915 | 0 | inline void RedfishInfo::_internal_set_ip(const std::string& value) { |
8916 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8917 | 0 | _impl_.ip_.Set(value, GetArenaForAllocation()); |
8918 | 0 | } |
8919 | 0 | inline std::string* RedfishInfo::_internal_mutable_ip() { |
8920 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8921 | 0 | return _impl_.ip_.Mutable(::safepower_agent_config::RedfishInfo::Impl_::_i_give_permission_to_break_this_code_default_ip_, GetArenaForAllocation()); |
8922 | 0 | } |
8923 | 0 | inline std::string* RedfishInfo::release_ip() { |
8924 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishInfo.ip) |
8925 | 0 | if (!_internal_has_ip()) { |
8926 | 0 | return nullptr; |
8927 | 0 | } |
8928 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8929 | 0 | auto* p = _impl_.ip_.Release(); |
8930 | 0 | return p; |
8931 | 0 | } |
8932 | 0 | inline void RedfishInfo::set_allocated_ip(std::string* ip) { |
8933 | 0 | if (ip != nullptr) { |
8934 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
8935 | 0 | } else { |
8936 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
8937 | 0 | } |
8938 | 0 | _impl_.ip_.SetAllocated(ip, GetArenaForAllocation()); |
8939 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishInfo.ip) |
8940 | 0 | } |
8941 | | |
8942 | | // optional int32 port = 4 [default = 80]; |
8943 | 0 | inline bool RedfishInfo::_internal_has_port() const { |
8944 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
8945 | 0 | return value; |
8946 | 0 | } |
8947 | 0 | inline bool RedfishInfo::has_port() const { |
8948 | 0 | return _internal_has_port(); |
8949 | 0 | } |
8950 | 0 | inline void RedfishInfo::clear_port() { |
8951 | 0 | _impl_.port_ = 80; |
8952 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
8953 | 0 | } |
8954 | 0 | inline int32_t RedfishInfo::_internal_port() const { |
8955 | 0 | return _impl_.port_; |
8956 | 0 | } |
8957 | 0 | inline int32_t RedfishInfo::port() const { |
8958 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishInfo.port) |
8959 | 0 | return _internal_port(); |
8960 | 0 | } |
8961 | 0 | inline void RedfishInfo::_internal_set_port(int32_t value) { |
8962 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
8963 | 0 | _impl_.port_ = value; |
8964 | 0 | } |
8965 | 0 | inline void RedfishInfo::set_port(int32_t value) { |
8966 | 0 | _internal_set_port(value); |
8967 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishInfo.port) |
8968 | 0 | } |
8969 | | |
8970 | | // ------------------------------------------------------------------- |
8971 | | |
8972 | | // DbusInfo |
8973 | | |
8974 | | // optional string dbus_path = 1; |
8975 | 0 | inline bool DbusInfo::_internal_has_dbus_path() const { |
8976 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
8977 | 0 | return value; |
8978 | 0 | } |
8979 | 0 | inline bool DbusInfo::has_dbus_path() const { |
8980 | 0 | return _internal_has_dbus_path(); |
8981 | 0 | } |
8982 | 0 | inline void DbusInfo::clear_dbus_path() { |
8983 | 0 | _impl_.dbus_path_.ClearToEmpty(); |
8984 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
8985 | 0 | } |
8986 | 0 | inline const std::string& DbusInfo::dbus_path() const { |
8987 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.DbusInfo.dbus_path) |
8988 | 0 | return _internal_dbus_path(); |
8989 | 0 | } |
8990 | | template <typename ArgT0, typename... ArgT> |
8991 | | inline PROTOBUF_ALWAYS_INLINE |
8992 | | void DbusInfo::set_dbus_path(ArgT0&& arg0, ArgT... args) { |
8993 | | _impl_._has_bits_[0] |= 0x00000001u; |
8994 | | _impl_.dbus_path_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
8995 | | // @@protoc_insertion_point(field_set:safepower_agent_config.DbusInfo.dbus_path) |
8996 | | } |
8997 | 0 | inline std::string* DbusInfo::mutable_dbus_path() { |
8998 | 0 | std::string* _s = _internal_mutable_dbus_path(); |
8999 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.DbusInfo.dbus_path) |
9000 | 0 | return _s; |
9001 | 0 | } |
9002 | 0 | inline const std::string& DbusInfo::_internal_dbus_path() const { |
9003 | 0 | return _impl_.dbus_path_.Get(); |
9004 | 0 | } |
9005 | 0 | inline void DbusInfo::_internal_set_dbus_path(const std::string& value) { |
9006 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9007 | 0 | _impl_.dbus_path_.Set(value, GetArenaForAllocation()); |
9008 | 0 | } |
9009 | 0 | inline std::string* DbusInfo::_internal_mutable_dbus_path() { |
9010 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9011 | 0 | return _impl_.dbus_path_.Mutable(GetArenaForAllocation()); |
9012 | 0 | } |
9013 | 0 | inline std::string* DbusInfo::release_dbus_path() { |
9014 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.DbusInfo.dbus_path) |
9015 | 0 | if (!_internal_has_dbus_path()) { |
9016 | 0 | return nullptr; |
9017 | 0 | } |
9018 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9019 | 0 | auto* p = _impl_.dbus_path_.Release(); |
9020 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9021 | 0 | if (_impl_.dbus_path_.IsDefault()) { |
9022 | 0 | _impl_.dbus_path_.Set("", GetArenaForAllocation()); |
9023 | 0 | } |
9024 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9025 | 0 | return p; |
9026 | 0 | } |
9027 | 0 | inline void DbusInfo::set_allocated_dbus_path(std::string* dbus_path) { |
9028 | 0 | if (dbus_path != nullptr) { |
9029 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9030 | 0 | } else { |
9031 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9032 | 0 | } |
9033 | 0 | _impl_.dbus_path_.SetAllocated(dbus_path, GetArenaForAllocation()); |
9034 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9035 | 0 | if (_impl_.dbus_path_.IsDefault()) { |
9036 | 0 | _impl_.dbus_path_.Set("", GetArenaForAllocation()); |
9037 | 0 | } |
9038 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9039 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.DbusInfo.dbus_path) |
9040 | 0 | } |
9041 | | |
9042 | | // optional string dbus_method = 2; |
9043 | 0 | inline bool DbusInfo::_internal_has_dbus_method() const { |
9044 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
9045 | 0 | return value; |
9046 | 0 | } |
9047 | 0 | inline bool DbusInfo::has_dbus_method() const { |
9048 | 0 | return _internal_has_dbus_method(); |
9049 | 0 | } |
9050 | 0 | inline void DbusInfo::clear_dbus_method() { |
9051 | 0 | _impl_.dbus_method_.ClearToEmpty(); |
9052 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9053 | 0 | } |
9054 | 0 | inline const std::string& DbusInfo::dbus_method() const { |
9055 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.DbusInfo.dbus_method) |
9056 | 0 | return _internal_dbus_method(); |
9057 | 0 | } |
9058 | | template <typename ArgT0, typename... ArgT> |
9059 | | inline PROTOBUF_ALWAYS_INLINE |
9060 | | void DbusInfo::set_dbus_method(ArgT0&& arg0, ArgT... args) { |
9061 | | _impl_._has_bits_[0] |= 0x00000002u; |
9062 | | _impl_.dbus_method_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9063 | | // @@protoc_insertion_point(field_set:safepower_agent_config.DbusInfo.dbus_method) |
9064 | | } |
9065 | 0 | inline std::string* DbusInfo::mutable_dbus_method() { |
9066 | 0 | std::string* _s = _internal_mutable_dbus_method(); |
9067 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.DbusInfo.dbus_method) |
9068 | 0 | return _s; |
9069 | 0 | } |
9070 | 0 | inline const std::string& DbusInfo::_internal_dbus_method() const { |
9071 | 0 | return _impl_.dbus_method_.Get(); |
9072 | 0 | } |
9073 | 0 | inline void DbusInfo::_internal_set_dbus_method(const std::string& value) { |
9074 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9075 | 0 | _impl_.dbus_method_.Set(value, GetArenaForAllocation()); |
9076 | 0 | } |
9077 | 0 | inline std::string* DbusInfo::_internal_mutable_dbus_method() { |
9078 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9079 | 0 | return _impl_.dbus_method_.Mutable(GetArenaForAllocation()); |
9080 | 0 | } |
9081 | 0 | inline std::string* DbusInfo::release_dbus_method() { |
9082 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.DbusInfo.dbus_method) |
9083 | 0 | if (!_internal_has_dbus_method()) { |
9084 | 0 | return nullptr; |
9085 | 0 | } |
9086 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9087 | 0 | auto* p = _impl_.dbus_method_.Release(); |
9088 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9089 | 0 | if (_impl_.dbus_method_.IsDefault()) { |
9090 | 0 | _impl_.dbus_method_.Set("", GetArenaForAllocation()); |
9091 | 0 | } |
9092 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9093 | 0 | return p; |
9094 | 0 | } |
9095 | 0 | inline void DbusInfo::set_allocated_dbus_method(std::string* dbus_method) { |
9096 | 0 | if (dbus_method != nullptr) { |
9097 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9098 | 0 | } else { |
9099 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9100 | 0 | } |
9101 | 0 | _impl_.dbus_method_.SetAllocated(dbus_method, GetArenaForAllocation()); |
9102 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9103 | 0 | if (_impl_.dbus_method_.IsDefault()) { |
9104 | 0 | _impl_.dbus_method_.Set("", GetArenaForAllocation()); |
9105 | 0 | } |
9106 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9107 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.DbusInfo.dbus_method) |
9108 | 0 | } |
9109 | | |
9110 | | // optional string dbus_interface = 3; |
9111 | 0 | inline bool DbusInfo::_internal_has_dbus_interface() const { |
9112 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
9113 | 0 | return value; |
9114 | 0 | } |
9115 | 0 | inline bool DbusInfo::has_dbus_interface() const { |
9116 | 0 | return _internal_has_dbus_interface(); |
9117 | 0 | } |
9118 | 0 | inline void DbusInfo::clear_dbus_interface() { |
9119 | 0 | _impl_.dbus_interface_.ClearToEmpty(); |
9120 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
9121 | 0 | } |
9122 | 0 | inline const std::string& DbusInfo::dbus_interface() const { |
9123 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.DbusInfo.dbus_interface) |
9124 | 0 | return _internal_dbus_interface(); |
9125 | 0 | } |
9126 | | template <typename ArgT0, typename... ArgT> |
9127 | | inline PROTOBUF_ALWAYS_INLINE |
9128 | | void DbusInfo::set_dbus_interface(ArgT0&& arg0, ArgT... args) { |
9129 | | _impl_._has_bits_[0] |= 0x00000004u; |
9130 | | _impl_.dbus_interface_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9131 | | // @@protoc_insertion_point(field_set:safepower_agent_config.DbusInfo.dbus_interface) |
9132 | | } |
9133 | 0 | inline std::string* DbusInfo::mutable_dbus_interface() { |
9134 | 0 | std::string* _s = _internal_mutable_dbus_interface(); |
9135 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.DbusInfo.dbus_interface) |
9136 | 0 | return _s; |
9137 | 0 | } |
9138 | 0 | inline const std::string& DbusInfo::_internal_dbus_interface() const { |
9139 | 0 | return _impl_.dbus_interface_.Get(); |
9140 | 0 | } |
9141 | 0 | inline void DbusInfo::_internal_set_dbus_interface(const std::string& value) { |
9142 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
9143 | 0 | _impl_.dbus_interface_.Set(value, GetArenaForAllocation()); |
9144 | 0 | } |
9145 | 0 | inline std::string* DbusInfo::_internal_mutable_dbus_interface() { |
9146 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
9147 | 0 | return _impl_.dbus_interface_.Mutable(GetArenaForAllocation()); |
9148 | 0 | } |
9149 | 0 | inline std::string* DbusInfo::release_dbus_interface() { |
9150 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.DbusInfo.dbus_interface) |
9151 | 0 | if (!_internal_has_dbus_interface()) { |
9152 | 0 | return nullptr; |
9153 | 0 | } |
9154 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
9155 | 0 | auto* p = _impl_.dbus_interface_.Release(); |
9156 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9157 | 0 | if (_impl_.dbus_interface_.IsDefault()) { |
9158 | 0 | _impl_.dbus_interface_.Set("", GetArenaForAllocation()); |
9159 | 0 | } |
9160 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9161 | 0 | return p; |
9162 | 0 | } |
9163 | 0 | inline void DbusInfo::set_allocated_dbus_interface(std::string* dbus_interface) { |
9164 | 0 | if (dbus_interface != nullptr) { |
9165 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
9166 | 0 | } else { |
9167 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
9168 | 0 | } |
9169 | 0 | _impl_.dbus_interface_.SetAllocated(dbus_interface, GetArenaForAllocation()); |
9170 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9171 | 0 | if (_impl_.dbus_interface_.IsDefault()) { |
9172 | 0 | _impl_.dbus_interface_.Set("", GetArenaForAllocation()); |
9173 | 0 | } |
9174 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9175 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.DbusInfo.dbus_interface) |
9176 | 0 | } |
9177 | | |
9178 | | // optional string dbus_value = 4; |
9179 | 0 | inline bool DbusInfo::_internal_has_dbus_value() const { |
9180 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
9181 | 0 | return value; |
9182 | 0 | } |
9183 | 0 | inline bool DbusInfo::has_dbus_value() const { |
9184 | 0 | return _internal_has_dbus_value(); |
9185 | 0 | } |
9186 | 0 | inline void DbusInfo::clear_dbus_value() { |
9187 | 0 | _impl_.dbus_value_.ClearToEmpty(); |
9188 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
9189 | 0 | } |
9190 | 0 | inline const std::string& DbusInfo::dbus_value() const { |
9191 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.DbusInfo.dbus_value) |
9192 | 0 | return _internal_dbus_value(); |
9193 | 0 | } |
9194 | | template <typename ArgT0, typename... ArgT> |
9195 | | inline PROTOBUF_ALWAYS_INLINE |
9196 | | void DbusInfo::set_dbus_value(ArgT0&& arg0, ArgT... args) { |
9197 | | _impl_._has_bits_[0] |= 0x00000008u; |
9198 | | _impl_.dbus_value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9199 | | // @@protoc_insertion_point(field_set:safepower_agent_config.DbusInfo.dbus_value) |
9200 | | } |
9201 | 0 | inline std::string* DbusInfo::mutable_dbus_value() { |
9202 | 0 | std::string* _s = _internal_mutable_dbus_value(); |
9203 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.DbusInfo.dbus_value) |
9204 | 0 | return _s; |
9205 | 0 | } |
9206 | 0 | inline const std::string& DbusInfo::_internal_dbus_value() const { |
9207 | 0 | return _impl_.dbus_value_.Get(); |
9208 | 0 | } |
9209 | 0 | inline void DbusInfo::_internal_set_dbus_value(const std::string& value) { |
9210 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
9211 | 0 | _impl_.dbus_value_.Set(value, GetArenaForAllocation()); |
9212 | 0 | } |
9213 | 0 | inline std::string* DbusInfo::_internal_mutable_dbus_value() { |
9214 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
9215 | 0 | return _impl_.dbus_value_.Mutable(GetArenaForAllocation()); |
9216 | 0 | } |
9217 | 0 | inline std::string* DbusInfo::release_dbus_value() { |
9218 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.DbusInfo.dbus_value) |
9219 | 0 | if (!_internal_has_dbus_value()) { |
9220 | 0 | return nullptr; |
9221 | 0 | } |
9222 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
9223 | 0 | auto* p = _impl_.dbus_value_.Release(); |
9224 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9225 | 0 | if (_impl_.dbus_value_.IsDefault()) { |
9226 | 0 | _impl_.dbus_value_.Set("", GetArenaForAllocation()); |
9227 | 0 | } |
9228 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9229 | 0 | return p; |
9230 | 0 | } |
9231 | 0 | inline void DbusInfo::set_allocated_dbus_value(std::string* dbus_value) { |
9232 | 0 | if (dbus_value != nullptr) { |
9233 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
9234 | 0 | } else { |
9235 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
9236 | 0 | } |
9237 | 0 | _impl_.dbus_value_.SetAllocated(dbus_value, GetArenaForAllocation()); |
9238 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9239 | 0 | if (_impl_.dbus_value_.IsDefault()) { |
9240 | 0 | _impl_.dbus_value_.Set("", GetArenaForAllocation()); |
9241 | 0 | } |
9242 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9243 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.DbusInfo.dbus_value) |
9244 | 0 | } |
9245 | | |
9246 | | // ------------------------------------------------------------------- |
9247 | | |
9248 | | // ActionConfig |
9249 | | |
9250 | | // optional string action_name = 1; |
9251 | 0 | inline bool ActionConfig::_internal_has_action_name() const { |
9252 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
9253 | 0 | return value; |
9254 | 0 | } |
9255 | 0 | inline bool ActionConfig::has_action_name() const { |
9256 | 0 | return _internal_has_action_name(); |
9257 | 0 | } |
9258 | 0 | inline void ActionConfig::clear_action_name() { |
9259 | 0 | _impl_.action_name_.ClearToEmpty(); |
9260 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9261 | 0 | } |
9262 | 0 | inline const std::string& ActionConfig::action_name() const { |
9263 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ActionConfig.action_name) |
9264 | 0 | return _internal_action_name(); |
9265 | 0 | } |
9266 | | template <typename ArgT0, typename... ArgT> |
9267 | | inline PROTOBUF_ALWAYS_INLINE |
9268 | | void ActionConfig::set_action_name(ArgT0&& arg0, ArgT... args) { |
9269 | | _impl_._has_bits_[0] |= 0x00000001u; |
9270 | | _impl_.action_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9271 | | // @@protoc_insertion_point(field_set:safepower_agent_config.ActionConfig.action_name) |
9272 | | } |
9273 | 0 | inline std::string* ActionConfig::mutable_action_name() { |
9274 | 0 | std::string* _s = _internal_mutable_action_name(); |
9275 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ActionConfig.action_name) |
9276 | 0 | return _s; |
9277 | 0 | } |
9278 | 0 | inline const std::string& ActionConfig::_internal_action_name() const { |
9279 | 0 | return _impl_.action_name_.Get(); |
9280 | 0 | } |
9281 | 0 | inline void ActionConfig::_internal_set_action_name(const std::string& value) { |
9282 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9283 | 0 | _impl_.action_name_.Set(value, GetArenaForAllocation()); |
9284 | 0 | } |
9285 | 0 | inline std::string* ActionConfig::_internal_mutable_action_name() { |
9286 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9287 | 0 | return _impl_.action_name_.Mutable(GetArenaForAllocation()); |
9288 | 0 | } |
9289 | 0 | inline std::string* ActionConfig::release_action_name() { |
9290 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.ActionConfig.action_name) |
9291 | 0 | if (!_internal_has_action_name()) { |
9292 | 0 | return nullptr; |
9293 | 0 | } |
9294 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9295 | 0 | auto* p = _impl_.action_name_.Release(); |
9296 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9297 | 0 | if (_impl_.action_name_.IsDefault()) { |
9298 | 0 | _impl_.action_name_.Set("", GetArenaForAllocation()); |
9299 | 0 | } |
9300 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9301 | 0 | return p; |
9302 | 0 | } |
9303 | 0 | inline void ActionConfig::set_allocated_action_name(std::string* action_name) { |
9304 | 0 | if (action_name != nullptr) { |
9305 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9306 | 0 | } else { |
9307 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9308 | 0 | } |
9309 | 0 | _impl_.action_name_.SetAllocated(action_name, GetArenaForAllocation()); |
9310 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9311 | 0 | if (_impl_.action_name_.IsDefault()) { |
9312 | 0 | _impl_.action_name_.Set("", GetArenaForAllocation()); |
9313 | 0 | } |
9314 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9315 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.ActionConfig.action_name) |
9316 | 0 | } |
9317 | | |
9318 | | // optional .safepower_agent_proto.Action action = 2; |
9319 | 0 | inline bool ActionConfig::_internal_has_action() const { |
9320 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
9321 | 0 | PROTOBUF_ASSUME(!value || _impl_.action_ != nullptr); |
9322 | 0 | return value; |
9323 | 0 | } |
9324 | 0 | inline bool ActionConfig::has_action() const { |
9325 | 0 | return _internal_has_action(); |
9326 | 0 | } |
9327 | 0 | inline const ::safepower_agent_proto::Action& ActionConfig::_internal_action() const { |
9328 | 0 | const ::safepower_agent_proto::Action* p = _impl_.action_; |
9329 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::safepower_agent_proto::Action&>( |
9330 | 0 | ::safepower_agent_proto::_Action_default_instance_); |
9331 | 0 | } |
9332 | 0 | inline const ::safepower_agent_proto::Action& ActionConfig::action() const { |
9333 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ActionConfig.action) |
9334 | 0 | return _internal_action(); |
9335 | 0 | } |
9336 | | inline void ActionConfig::unsafe_arena_set_allocated_action( |
9337 | 0 | ::safepower_agent_proto::Action* action) { |
9338 | 0 | if (GetArenaForAllocation() == nullptr) { |
9339 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_); |
9340 | 0 | } |
9341 | 0 | _impl_.action_ = action; |
9342 | 0 | if (action) { |
9343 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9344 | 0 | } else { |
9345 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9346 | 0 | } |
9347 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.ActionConfig.action) |
9348 | 0 | } |
9349 | 0 | inline ::safepower_agent_proto::Action* ActionConfig::release_action() { |
9350 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9351 | 0 | ::safepower_agent_proto::Action* temp = _impl_.action_; |
9352 | 0 | _impl_.action_ = nullptr; |
9353 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
9354 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
9355 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9356 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
9357 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
9358 | 0 | if (GetArenaForAllocation() != nullptr) { |
9359 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9360 | 0 | } |
9361 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
9362 | 0 | return temp; |
9363 | 0 | } |
9364 | 0 | inline ::safepower_agent_proto::Action* ActionConfig::unsafe_arena_release_action() { |
9365 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.ActionConfig.action) |
9366 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9367 | 0 | ::safepower_agent_proto::Action* temp = _impl_.action_; |
9368 | 0 | _impl_.action_ = nullptr; |
9369 | 0 | return temp; |
9370 | 0 | } |
9371 | 0 | inline ::safepower_agent_proto::Action* ActionConfig::_internal_mutable_action() { |
9372 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9373 | 0 | if (_impl_.action_ == nullptr) { |
9374 | 0 | auto* p = CreateMaybeMessage<::safepower_agent_proto::Action>(GetArenaForAllocation()); |
9375 | 0 | _impl_.action_ = p; |
9376 | 0 | } |
9377 | 0 | return _impl_.action_; |
9378 | 0 | } |
9379 | 0 | inline ::safepower_agent_proto::Action* ActionConfig::mutable_action() { |
9380 | 0 | ::safepower_agent_proto::Action* _msg = _internal_mutable_action(); |
9381 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ActionConfig.action) |
9382 | 0 | return _msg; |
9383 | 0 | } |
9384 | 0 | inline void ActionConfig::set_allocated_action(::safepower_agent_proto::Action* action) { |
9385 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
9386 | 0 | if (message_arena == nullptr) { |
9387 | 0 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.action_); |
9388 | 0 | } |
9389 | 0 | if (action) { |
9390 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
9391 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( |
9392 | 0 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(action)); |
9393 | 0 | if (message_arena != submessage_arena) { |
9394 | 0 | action = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
9395 | 0 | message_arena, action, submessage_arena); |
9396 | 0 | } |
9397 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9398 | 0 | } else { |
9399 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9400 | 0 | } |
9401 | 0 | _impl_.action_ = action; |
9402 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.ActionConfig.action) |
9403 | 0 | } |
9404 | | |
9405 | | // optional int32 disruption_timeout_seconds = 3; |
9406 | 0 | inline bool ActionConfig::_internal_has_disruption_timeout_seconds() const { |
9407 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
9408 | 0 | return value; |
9409 | 0 | } |
9410 | 0 | inline bool ActionConfig::has_disruption_timeout_seconds() const { |
9411 | 0 | return _internal_has_disruption_timeout_seconds(); |
9412 | 0 | } |
9413 | 0 | inline void ActionConfig::clear_disruption_timeout_seconds() { |
9414 | 0 | _impl_.disruption_timeout_seconds_ = 0; |
9415 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
9416 | 0 | } |
9417 | 0 | inline int32_t ActionConfig::_internal_disruption_timeout_seconds() const { |
9418 | 0 | return _impl_.disruption_timeout_seconds_; |
9419 | 0 | } |
9420 | 0 | inline int32_t ActionConfig::disruption_timeout_seconds() const { |
9421 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ActionConfig.disruption_timeout_seconds) |
9422 | 0 | return _internal_disruption_timeout_seconds(); |
9423 | 0 | } |
9424 | 0 | inline void ActionConfig::_internal_set_disruption_timeout_seconds(int32_t value) { |
9425 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
9426 | 0 | _impl_.disruption_timeout_seconds_ = value; |
9427 | 0 | } |
9428 | 0 | inline void ActionConfig::set_disruption_timeout_seconds(int32_t value) { |
9429 | 0 | _internal_set_disruption_timeout_seconds(value); |
9430 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.ActionConfig.disruption_timeout_seconds) |
9431 | 0 | } |
9432 | | |
9433 | | // .safepower_agent_config.RedfishAction redfish = 4; |
9434 | 0 | inline bool ActionConfig::_internal_has_redfish() const { |
9435 | 0 | return info_case() == kRedfish; |
9436 | 0 | } |
9437 | 0 | inline bool ActionConfig::has_redfish() const { |
9438 | 0 | return _internal_has_redfish(); |
9439 | 0 | } |
9440 | 0 | inline void ActionConfig::set_has_redfish() { |
9441 | 0 | _impl_._oneof_case_[0] = kRedfish; |
9442 | 0 | } |
9443 | 0 | inline void ActionConfig::clear_redfish() { |
9444 | 0 | if (_internal_has_redfish()) { |
9445 | 0 | if (GetArenaForAllocation() == nullptr) { |
9446 | 0 | delete _impl_.info_.redfish_; |
9447 | 0 | } |
9448 | 0 | clear_has_info(); |
9449 | 0 | } |
9450 | 0 | } |
9451 | 0 | inline ::safepower_agent_config::RedfishAction* ActionConfig::release_redfish() { |
9452 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.ActionConfig.redfish) |
9453 | 0 | if (_internal_has_redfish()) { |
9454 | 0 | clear_has_info(); |
9455 | 0 | ::safepower_agent_config::RedfishAction* temp = _impl_.info_.redfish_; |
9456 | 0 | if (GetArenaForAllocation() != nullptr) { |
9457 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9458 | 0 | } |
9459 | 0 | _impl_.info_.redfish_ = nullptr; |
9460 | 0 | return temp; |
9461 | 0 | } else { |
9462 | 0 | return nullptr; |
9463 | 0 | } |
9464 | 0 | } |
9465 | 0 | inline const ::safepower_agent_config::RedfishAction& ActionConfig::_internal_redfish() const { |
9466 | 0 | return _internal_has_redfish() |
9467 | 0 | ? *_impl_.info_.redfish_ |
9468 | 0 | : reinterpret_cast< ::safepower_agent_config::RedfishAction&>(::safepower_agent_config::_RedfishAction_default_instance_); |
9469 | 0 | } |
9470 | 0 | inline const ::safepower_agent_config::RedfishAction& ActionConfig::redfish() const { |
9471 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ActionConfig.redfish) |
9472 | 0 | return _internal_redfish(); |
9473 | 0 | } |
9474 | 0 | inline ::safepower_agent_config::RedfishAction* ActionConfig::unsafe_arena_release_redfish() { |
9475 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.ActionConfig.redfish) |
9476 | 0 | if (_internal_has_redfish()) { |
9477 | 0 | clear_has_info(); |
9478 | 0 | ::safepower_agent_config::RedfishAction* temp = _impl_.info_.redfish_; |
9479 | 0 | _impl_.info_.redfish_ = nullptr; |
9480 | 0 | return temp; |
9481 | 0 | } else { |
9482 | 0 | return nullptr; |
9483 | 0 | } |
9484 | 0 | } |
9485 | 0 | inline void ActionConfig::unsafe_arena_set_allocated_redfish(::safepower_agent_config::RedfishAction* redfish) { |
9486 | 0 | clear_info(); |
9487 | 0 | if (redfish) { |
9488 | 0 | set_has_redfish(); |
9489 | 0 | _impl_.info_.redfish_ = redfish; |
9490 | 0 | } |
9491 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.ActionConfig.redfish) |
9492 | 0 | } |
9493 | 0 | inline ::safepower_agent_config::RedfishAction* ActionConfig::_internal_mutable_redfish() { |
9494 | 0 | if (!_internal_has_redfish()) { |
9495 | 0 | clear_info(); |
9496 | 0 | set_has_redfish(); |
9497 | 0 | _impl_.info_.redfish_ = CreateMaybeMessage< ::safepower_agent_config::RedfishAction >(GetArenaForAllocation()); |
9498 | 0 | } |
9499 | 0 | return _impl_.info_.redfish_; |
9500 | 0 | } |
9501 | 0 | inline ::safepower_agent_config::RedfishAction* ActionConfig::mutable_redfish() { |
9502 | 0 | ::safepower_agent_config::RedfishAction* _msg = _internal_mutable_redfish(); |
9503 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ActionConfig.redfish) |
9504 | 0 | return _msg; |
9505 | 0 | } |
9506 | | |
9507 | | // .safepower_agent_config.DbusAction dbus = 5; |
9508 | 0 | inline bool ActionConfig::_internal_has_dbus() const { |
9509 | 0 | return info_case() == kDbus; |
9510 | 0 | } |
9511 | 0 | inline bool ActionConfig::has_dbus() const { |
9512 | 0 | return _internal_has_dbus(); |
9513 | 0 | } |
9514 | 0 | inline void ActionConfig::set_has_dbus() { |
9515 | 0 | _impl_._oneof_case_[0] = kDbus; |
9516 | 0 | } |
9517 | 0 | inline void ActionConfig::clear_dbus() { |
9518 | 0 | if (_internal_has_dbus()) { |
9519 | 0 | if (GetArenaForAllocation() == nullptr) { |
9520 | 0 | delete _impl_.info_.dbus_; |
9521 | 0 | } |
9522 | 0 | clear_has_info(); |
9523 | 0 | } |
9524 | 0 | } |
9525 | 0 | inline ::safepower_agent_config::DbusAction* ActionConfig::release_dbus() { |
9526 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.ActionConfig.dbus) |
9527 | 0 | if (_internal_has_dbus()) { |
9528 | 0 | clear_has_info(); |
9529 | 0 | ::safepower_agent_config::DbusAction* temp = _impl_.info_.dbus_; |
9530 | 0 | if (GetArenaForAllocation() != nullptr) { |
9531 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9532 | 0 | } |
9533 | 0 | _impl_.info_.dbus_ = nullptr; |
9534 | 0 | return temp; |
9535 | 0 | } else { |
9536 | 0 | return nullptr; |
9537 | 0 | } |
9538 | 0 | } |
9539 | 0 | inline const ::safepower_agent_config::DbusAction& ActionConfig::_internal_dbus() const { |
9540 | 0 | return _internal_has_dbus() |
9541 | 0 | ? *_impl_.info_.dbus_ |
9542 | 0 | : reinterpret_cast< ::safepower_agent_config::DbusAction&>(::safepower_agent_config::_DbusAction_default_instance_); |
9543 | 0 | } |
9544 | 0 | inline const ::safepower_agent_config::DbusAction& ActionConfig::dbus() const { |
9545 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ActionConfig.dbus) |
9546 | 0 | return _internal_dbus(); |
9547 | 0 | } |
9548 | 0 | inline ::safepower_agent_config::DbusAction* ActionConfig::unsafe_arena_release_dbus() { |
9549 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.ActionConfig.dbus) |
9550 | 0 | if (_internal_has_dbus()) { |
9551 | 0 | clear_has_info(); |
9552 | 0 | ::safepower_agent_config::DbusAction* temp = _impl_.info_.dbus_; |
9553 | 0 | _impl_.info_.dbus_ = nullptr; |
9554 | 0 | return temp; |
9555 | 0 | } else { |
9556 | 0 | return nullptr; |
9557 | 0 | } |
9558 | 0 | } |
9559 | 0 | inline void ActionConfig::unsafe_arena_set_allocated_dbus(::safepower_agent_config::DbusAction* dbus) { |
9560 | 0 | clear_info(); |
9561 | 0 | if (dbus) { |
9562 | 0 | set_has_dbus(); |
9563 | 0 | _impl_.info_.dbus_ = dbus; |
9564 | 0 | } |
9565 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.ActionConfig.dbus) |
9566 | 0 | } |
9567 | 0 | inline ::safepower_agent_config::DbusAction* ActionConfig::_internal_mutable_dbus() { |
9568 | 0 | if (!_internal_has_dbus()) { |
9569 | 0 | clear_info(); |
9570 | 0 | set_has_dbus(); |
9571 | 0 | _impl_.info_.dbus_ = CreateMaybeMessage< ::safepower_agent_config::DbusAction >(GetArenaForAllocation()); |
9572 | 0 | } |
9573 | 0 | return _impl_.info_.dbus_; |
9574 | 0 | } |
9575 | 0 | inline ::safepower_agent_config::DbusAction* ActionConfig::mutable_dbus() { |
9576 | 0 | ::safepower_agent_config::DbusAction* _msg = _internal_mutable_dbus(); |
9577 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ActionConfig.dbus) |
9578 | 0 | return _msg; |
9579 | 0 | } |
9580 | | |
9581 | | // .safepower_agent_config.ExecAction exec = 6; |
9582 | 0 | inline bool ActionConfig::_internal_has_exec() const { |
9583 | 0 | return info_case() == kExec; |
9584 | 0 | } |
9585 | 0 | inline bool ActionConfig::has_exec() const { |
9586 | 0 | return _internal_has_exec(); |
9587 | 0 | } |
9588 | 0 | inline void ActionConfig::set_has_exec() { |
9589 | 0 | _impl_._oneof_case_[0] = kExec; |
9590 | 0 | } |
9591 | 0 | inline void ActionConfig::clear_exec() { |
9592 | 0 | if (_internal_has_exec()) { |
9593 | 0 | if (GetArenaForAllocation() == nullptr) { |
9594 | 0 | delete _impl_.info_.exec_; |
9595 | 0 | } |
9596 | 0 | clear_has_info(); |
9597 | 0 | } |
9598 | 0 | } |
9599 | 0 | inline ::safepower_agent_config::ExecAction* ActionConfig::release_exec() { |
9600 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.ActionConfig.exec) |
9601 | 0 | if (_internal_has_exec()) { |
9602 | 0 | clear_has_info(); |
9603 | 0 | ::safepower_agent_config::ExecAction* temp = _impl_.info_.exec_; |
9604 | 0 | if (GetArenaForAllocation() != nullptr) { |
9605 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9606 | 0 | } |
9607 | 0 | _impl_.info_.exec_ = nullptr; |
9608 | 0 | return temp; |
9609 | 0 | } else { |
9610 | 0 | return nullptr; |
9611 | 0 | } |
9612 | 0 | } |
9613 | 0 | inline const ::safepower_agent_config::ExecAction& ActionConfig::_internal_exec() const { |
9614 | 0 | return _internal_has_exec() |
9615 | 0 | ? *_impl_.info_.exec_ |
9616 | 0 | : reinterpret_cast< ::safepower_agent_config::ExecAction&>(::safepower_agent_config::_ExecAction_default_instance_); |
9617 | 0 | } |
9618 | 0 | inline const ::safepower_agent_config::ExecAction& ActionConfig::exec() const { |
9619 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ActionConfig.exec) |
9620 | 0 | return _internal_exec(); |
9621 | 0 | } |
9622 | 0 | inline ::safepower_agent_config::ExecAction* ActionConfig::unsafe_arena_release_exec() { |
9623 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:safepower_agent_config.ActionConfig.exec) |
9624 | 0 | if (_internal_has_exec()) { |
9625 | 0 | clear_has_info(); |
9626 | 0 | ::safepower_agent_config::ExecAction* temp = _impl_.info_.exec_; |
9627 | 0 | _impl_.info_.exec_ = nullptr; |
9628 | 0 | return temp; |
9629 | 0 | } else { |
9630 | 0 | return nullptr; |
9631 | 0 | } |
9632 | 0 | } |
9633 | 0 | inline void ActionConfig::unsafe_arena_set_allocated_exec(::safepower_agent_config::ExecAction* exec) { |
9634 | 0 | clear_info(); |
9635 | 0 | if (exec) { |
9636 | 0 | set_has_exec(); |
9637 | 0 | _impl_.info_.exec_ = exec; |
9638 | 0 | } |
9639 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:safepower_agent_config.ActionConfig.exec) |
9640 | 0 | } |
9641 | 0 | inline ::safepower_agent_config::ExecAction* ActionConfig::_internal_mutable_exec() { |
9642 | 0 | if (!_internal_has_exec()) { |
9643 | 0 | clear_info(); |
9644 | 0 | set_has_exec(); |
9645 | 0 | _impl_.info_.exec_ = CreateMaybeMessage< ::safepower_agent_config::ExecAction >(GetArenaForAllocation()); |
9646 | 0 | } |
9647 | 0 | return _impl_.info_.exec_; |
9648 | 0 | } |
9649 | 0 | inline ::safepower_agent_config::ExecAction* ActionConfig::mutable_exec() { |
9650 | 0 | ::safepower_agent_config::ExecAction* _msg = _internal_mutable_exec(); |
9651 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ActionConfig.exec) |
9652 | 0 | return _msg; |
9653 | 0 | } |
9654 | | |
9655 | 0 | inline bool ActionConfig::has_info() const { |
9656 | 0 | return info_case() != INFO_NOT_SET; |
9657 | 0 | } |
9658 | 0 | inline void ActionConfig::clear_has_info() { |
9659 | 0 | _impl_._oneof_case_[0] = INFO_NOT_SET; |
9660 | 0 | } |
9661 | 0 | inline ActionConfig::InfoCase ActionConfig::info_case() const { |
9662 | 0 | return ActionConfig::InfoCase(_impl_._oneof_case_[0]); |
9663 | 0 | } |
9664 | | // ------------------------------------------------------------------- |
9665 | | |
9666 | | // ExecAction |
9667 | | |
9668 | | // optional string command = 1; |
9669 | 0 | inline bool ExecAction::_internal_has_command() const { |
9670 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
9671 | 0 | return value; |
9672 | 0 | } |
9673 | 0 | inline bool ExecAction::has_command() const { |
9674 | 0 | return _internal_has_command(); |
9675 | 0 | } |
9676 | 0 | inline void ExecAction::clear_command() { |
9677 | 0 | _impl_.command_.ClearToEmpty(); |
9678 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9679 | 0 | } |
9680 | 0 | inline const std::string& ExecAction::command() const { |
9681 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ExecAction.command) |
9682 | 0 | return _internal_command(); |
9683 | 0 | } |
9684 | | template <typename ArgT0, typename... ArgT> |
9685 | | inline PROTOBUF_ALWAYS_INLINE |
9686 | | void ExecAction::set_command(ArgT0&& arg0, ArgT... args) { |
9687 | | _impl_._has_bits_[0] |= 0x00000001u; |
9688 | | _impl_.command_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9689 | | // @@protoc_insertion_point(field_set:safepower_agent_config.ExecAction.command) |
9690 | | } |
9691 | 0 | inline std::string* ExecAction::mutable_command() { |
9692 | 0 | std::string* _s = _internal_mutable_command(); |
9693 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ExecAction.command) |
9694 | 0 | return _s; |
9695 | 0 | } |
9696 | 0 | inline const std::string& ExecAction::_internal_command() const { |
9697 | 0 | return _impl_.command_.Get(); |
9698 | 0 | } |
9699 | 0 | inline void ExecAction::_internal_set_command(const std::string& value) { |
9700 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9701 | 0 | _impl_.command_.Set(value, GetArenaForAllocation()); |
9702 | 0 | } |
9703 | 0 | inline std::string* ExecAction::_internal_mutable_command() { |
9704 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9705 | 0 | return _impl_.command_.Mutable(GetArenaForAllocation()); |
9706 | 0 | } |
9707 | 0 | inline std::string* ExecAction::release_command() { |
9708 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.ExecAction.command) |
9709 | 0 | if (!_internal_has_command()) { |
9710 | 0 | return nullptr; |
9711 | 0 | } |
9712 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9713 | 0 | auto* p = _impl_.command_.Release(); |
9714 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9715 | 0 | if (_impl_.command_.IsDefault()) { |
9716 | 0 | _impl_.command_.Set("", GetArenaForAllocation()); |
9717 | 0 | } |
9718 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9719 | 0 | return p; |
9720 | 0 | } |
9721 | 0 | inline void ExecAction::set_allocated_command(std::string* command) { |
9722 | 0 | if (command != nullptr) { |
9723 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9724 | 0 | } else { |
9725 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9726 | 0 | } |
9727 | 0 | _impl_.command_.SetAllocated(command, GetArenaForAllocation()); |
9728 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9729 | 0 | if (_impl_.command_.IsDefault()) { |
9730 | 0 | _impl_.command_.Set("", GetArenaForAllocation()); |
9731 | 0 | } |
9732 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9733 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.ExecAction.command) |
9734 | 0 | } |
9735 | | |
9736 | | // repeated string args = 2; |
9737 | 0 | inline int ExecAction::_internal_args_size() const { |
9738 | 0 | return _impl_.args_.size(); |
9739 | 0 | } |
9740 | 0 | inline int ExecAction::args_size() const { |
9741 | 0 | return _internal_args_size(); |
9742 | 0 | } |
9743 | 0 | inline void ExecAction::clear_args() { |
9744 | 0 | _impl_.args_.Clear(); |
9745 | 0 | } |
9746 | 0 | inline std::string* ExecAction::add_args() { |
9747 | 0 | std::string* _s = _internal_add_args(); |
9748 | 0 | // @@protoc_insertion_point(field_add_mutable:safepower_agent_config.ExecAction.args) |
9749 | 0 | return _s; |
9750 | 0 | } |
9751 | 0 | inline const std::string& ExecAction::_internal_args(int index) const { |
9752 | 0 | return _impl_.args_.Get(index); |
9753 | 0 | } |
9754 | 0 | inline const std::string& ExecAction::args(int index) const { |
9755 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ExecAction.args) |
9756 | 0 | return _internal_args(index); |
9757 | 0 | } |
9758 | 0 | inline std::string* ExecAction::mutable_args(int index) { |
9759 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.ExecAction.args) |
9760 | 0 | return _impl_.args_.Mutable(index); |
9761 | 0 | } |
9762 | 0 | inline void ExecAction::set_args(int index, const std::string& value) { |
9763 | 0 | _impl_.args_.Mutable(index)->assign(value); |
9764 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.ExecAction.args) |
9765 | 0 | } |
9766 | 0 | inline void ExecAction::set_args(int index, std::string&& value) { |
9767 | 0 | _impl_.args_.Mutable(index)->assign(std::move(value)); |
9768 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.ExecAction.args) |
9769 | 0 | } |
9770 | 0 | inline void ExecAction::set_args(int index, const char* value) { |
9771 | 0 | GOOGLE_DCHECK(value != nullptr); |
9772 | 0 | _impl_.args_.Mutable(index)->assign(value); |
9773 | 0 | // @@protoc_insertion_point(field_set_char:safepower_agent_config.ExecAction.args) |
9774 | 0 | } |
9775 | 0 | inline void ExecAction::set_args(int index, const char* value, size_t size) { |
9776 | 0 | _impl_.args_.Mutable(index)->assign( |
9777 | 0 | reinterpret_cast<const char*>(value), size); |
9778 | 0 | // @@protoc_insertion_point(field_set_pointer:safepower_agent_config.ExecAction.args) |
9779 | 0 | } |
9780 | 0 | inline std::string* ExecAction::_internal_add_args() { |
9781 | 0 | return _impl_.args_.Add(); |
9782 | 0 | } |
9783 | 0 | inline void ExecAction::add_args(const std::string& value) { |
9784 | 0 | _impl_.args_.Add()->assign(value); |
9785 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.ExecAction.args) |
9786 | 0 | } |
9787 | 0 | inline void ExecAction::add_args(std::string&& value) { |
9788 | 0 | _impl_.args_.Add(std::move(value)); |
9789 | 0 | // @@protoc_insertion_point(field_add:safepower_agent_config.ExecAction.args) |
9790 | 0 | } |
9791 | 0 | inline void ExecAction::add_args(const char* value) { |
9792 | 0 | GOOGLE_DCHECK(value != nullptr); |
9793 | 0 | _impl_.args_.Add()->assign(value); |
9794 | 0 | // @@protoc_insertion_point(field_add_char:safepower_agent_config.ExecAction.args) |
9795 | 0 | } |
9796 | 0 | inline void ExecAction::add_args(const char* value, size_t size) { |
9797 | 0 | _impl_.args_.Add()->assign(reinterpret_cast<const char*>(value), size); |
9798 | 0 | // @@protoc_insertion_point(field_add_pointer:safepower_agent_config.ExecAction.args) |
9799 | 0 | } |
9800 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
9801 | 0 | ExecAction::args() const { |
9802 | 0 | // @@protoc_insertion_point(field_list:safepower_agent_config.ExecAction.args) |
9803 | 0 | return _impl_.args_; |
9804 | 0 | } |
9805 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
9806 | 0 | ExecAction::mutable_args() { |
9807 | 0 | // @@protoc_insertion_point(field_mutable_list:safepower_agent_config.ExecAction.args) |
9808 | 0 | return &_impl_.args_; |
9809 | 0 | } |
9810 | | |
9811 | | // optional int32 expected_exit_code = 3; |
9812 | 0 | inline bool ExecAction::_internal_has_expected_exit_code() const { |
9813 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
9814 | 0 | return value; |
9815 | 0 | } |
9816 | 0 | inline bool ExecAction::has_expected_exit_code() const { |
9817 | 0 | return _internal_has_expected_exit_code(); |
9818 | 0 | } |
9819 | 0 | inline void ExecAction::clear_expected_exit_code() { |
9820 | 0 | _impl_.expected_exit_code_ = 0; |
9821 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9822 | 0 | } |
9823 | 0 | inline int32_t ExecAction::_internal_expected_exit_code() const { |
9824 | 0 | return _impl_.expected_exit_code_; |
9825 | 0 | } |
9826 | 0 | inline int32_t ExecAction::expected_exit_code() const { |
9827 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ExecAction.expected_exit_code) |
9828 | 0 | return _internal_expected_exit_code(); |
9829 | 0 | } |
9830 | 0 | inline void ExecAction::_internal_set_expected_exit_code(int32_t value) { |
9831 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9832 | 0 | _impl_.expected_exit_code_ = value; |
9833 | 0 | } |
9834 | 0 | inline void ExecAction::set_expected_exit_code(int32_t value) { |
9835 | 0 | _internal_set_expected_exit_code(value); |
9836 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.ExecAction.expected_exit_code) |
9837 | 0 | } |
9838 | | |
9839 | | // optional int32 timeout_seconds = 4 [default = 1]; |
9840 | 0 | inline bool ExecAction::_internal_has_timeout_seconds() const { |
9841 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
9842 | 0 | return value; |
9843 | 0 | } |
9844 | 0 | inline bool ExecAction::has_timeout_seconds() const { |
9845 | 0 | return _internal_has_timeout_seconds(); |
9846 | 0 | } |
9847 | 0 | inline void ExecAction::clear_timeout_seconds() { |
9848 | 0 | _impl_.timeout_seconds_ = 1; |
9849 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
9850 | 0 | } |
9851 | 0 | inline int32_t ExecAction::_internal_timeout_seconds() const { |
9852 | 0 | return _impl_.timeout_seconds_; |
9853 | 0 | } |
9854 | 0 | inline int32_t ExecAction::timeout_seconds() const { |
9855 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.ExecAction.timeout_seconds) |
9856 | 0 | return _internal_timeout_seconds(); |
9857 | 0 | } |
9858 | 0 | inline void ExecAction::_internal_set_timeout_seconds(int32_t value) { |
9859 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
9860 | 0 | _impl_.timeout_seconds_ = value; |
9861 | 0 | } |
9862 | 0 | inline void ExecAction::set_timeout_seconds(int32_t value) { |
9863 | 0 | _internal_set_timeout_seconds(value); |
9864 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.ExecAction.timeout_seconds) |
9865 | 0 | } |
9866 | | |
9867 | | // ------------------------------------------------------------------- |
9868 | | |
9869 | | // RedfishAction |
9870 | | |
9871 | | // optional string uri = 1; |
9872 | 0 | inline bool RedfishAction::_internal_has_uri() const { |
9873 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
9874 | 0 | return value; |
9875 | 0 | } |
9876 | 0 | inline bool RedfishAction::has_uri() const { |
9877 | 0 | return _internal_has_uri(); |
9878 | 0 | } |
9879 | 0 | inline void RedfishAction::clear_uri() { |
9880 | 0 | _impl_.uri_.ClearToEmpty(); |
9881 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9882 | 0 | } |
9883 | 0 | inline const std::string& RedfishAction::uri() const { |
9884 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishAction.uri) |
9885 | 0 | return _internal_uri(); |
9886 | 0 | } |
9887 | | template <typename ArgT0, typename... ArgT> |
9888 | | inline PROTOBUF_ALWAYS_INLINE |
9889 | | void RedfishAction::set_uri(ArgT0&& arg0, ArgT... args) { |
9890 | | _impl_._has_bits_[0] |= 0x00000001u; |
9891 | | _impl_.uri_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9892 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishAction.uri) |
9893 | | } |
9894 | 0 | inline std::string* RedfishAction::mutable_uri() { |
9895 | 0 | std::string* _s = _internal_mutable_uri(); |
9896 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishAction.uri) |
9897 | 0 | return _s; |
9898 | 0 | } |
9899 | 0 | inline const std::string& RedfishAction::_internal_uri() const { |
9900 | 0 | return _impl_.uri_.Get(); |
9901 | 0 | } |
9902 | 0 | inline void RedfishAction::_internal_set_uri(const std::string& value) { |
9903 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9904 | 0 | _impl_.uri_.Set(value, GetArenaForAllocation()); |
9905 | 0 | } |
9906 | 0 | inline std::string* RedfishAction::_internal_mutable_uri() { |
9907 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9908 | 0 | return _impl_.uri_.Mutable(GetArenaForAllocation()); |
9909 | 0 | } |
9910 | 0 | inline std::string* RedfishAction::release_uri() { |
9911 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishAction.uri) |
9912 | 0 | if (!_internal_has_uri()) { |
9913 | 0 | return nullptr; |
9914 | 0 | } |
9915 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9916 | 0 | auto* p = _impl_.uri_.Release(); |
9917 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9918 | 0 | if (_impl_.uri_.IsDefault()) { |
9919 | 0 | _impl_.uri_.Set("", GetArenaForAllocation()); |
9920 | 0 | } |
9921 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9922 | 0 | return p; |
9923 | 0 | } |
9924 | 0 | inline void RedfishAction::set_allocated_uri(std::string* uri) { |
9925 | 0 | if (uri != nullptr) { |
9926 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9927 | 0 | } else { |
9928 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9929 | 0 | } |
9930 | 0 | _impl_.uri_.SetAllocated(uri, GetArenaForAllocation()); |
9931 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9932 | 0 | if (_impl_.uri_.IsDefault()) { |
9933 | 0 | _impl_.uri_.Set("", GetArenaForAllocation()); |
9934 | 0 | } |
9935 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9936 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishAction.uri) |
9937 | 0 | } |
9938 | | |
9939 | | // optional string json_body = 2; |
9940 | 0 | inline bool RedfishAction::_internal_has_json_body() const { |
9941 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
9942 | 0 | return value; |
9943 | 0 | } |
9944 | 0 | inline bool RedfishAction::has_json_body() const { |
9945 | 0 | return _internal_has_json_body(); |
9946 | 0 | } |
9947 | 0 | inline void RedfishAction::clear_json_body() { |
9948 | 0 | _impl_.json_body_.ClearToEmpty(); |
9949 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9950 | 0 | } |
9951 | 0 | inline const std::string& RedfishAction::json_body() const { |
9952 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishAction.json_body) |
9953 | 0 | return _internal_json_body(); |
9954 | 0 | } |
9955 | | template <typename ArgT0, typename... ArgT> |
9956 | | inline PROTOBUF_ALWAYS_INLINE |
9957 | | void RedfishAction::set_json_body(ArgT0&& arg0, ArgT... args) { |
9958 | | _impl_._has_bits_[0] |= 0x00000002u; |
9959 | | _impl_.json_body_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
9960 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishAction.json_body) |
9961 | | } |
9962 | 0 | inline std::string* RedfishAction::mutable_json_body() { |
9963 | 0 | std::string* _s = _internal_mutable_json_body(); |
9964 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishAction.json_body) |
9965 | 0 | return _s; |
9966 | 0 | } |
9967 | 0 | inline const std::string& RedfishAction::_internal_json_body() const { |
9968 | 0 | return _impl_.json_body_.Get(); |
9969 | 0 | } |
9970 | 0 | inline void RedfishAction::_internal_set_json_body(const std::string& value) { |
9971 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9972 | 0 | _impl_.json_body_.Set(value, GetArenaForAllocation()); |
9973 | 0 | } |
9974 | 0 | inline std::string* RedfishAction::_internal_mutable_json_body() { |
9975 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9976 | 0 | return _impl_.json_body_.Mutable(GetArenaForAllocation()); |
9977 | 0 | } |
9978 | 0 | inline std::string* RedfishAction::release_json_body() { |
9979 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishAction.json_body) |
9980 | 0 | if (!_internal_has_json_body()) { |
9981 | 0 | return nullptr; |
9982 | 0 | } |
9983 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9984 | 0 | auto* p = _impl_.json_body_.Release(); |
9985 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9986 | 0 | if (_impl_.json_body_.IsDefault()) { |
9987 | 0 | _impl_.json_body_.Set("", GetArenaForAllocation()); |
9988 | 0 | } |
9989 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
9990 | 0 | return p; |
9991 | 0 | } |
9992 | 0 | inline void RedfishAction::set_allocated_json_body(std::string* json_body) { |
9993 | 0 | if (json_body != nullptr) { |
9994 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
9995 | 0 | } else { |
9996 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
9997 | 0 | } |
9998 | 0 | _impl_.json_body_.SetAllocated(json_body, GetArenaForAllocation()); |
9999 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10000 | 0 | if (_impl_.json_body_.IsDefault()) { |
10001 | 0 | _impl_.json_body_.Set("", GetArenaForAllocation()); |
10002 | 0 | } |
10003 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10004 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishAction.json_body) |
10005 | 0 | } |
10006 | | |
10007 | | // optional string ip = 3; |
10008 | 0 | inline bool RedfishAction::_internal_has_ip() const { |
10009 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
10010 | 0 | return value; |
10011 | 0 | } |
10012 | 0 | inline bool RedfishAction::has_ip() const { |
10013 | 0 | return _internal_has_ip(); |
10014 | 0 | } |
10015 | 0 | inline void RedfishAction::clear_ip() { |
10016 | 0 | _impl_.ip_.ClearToEmpty(); |
10017 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
10018 | 0 | } |
10019 | 0 | inline const std::string& RedfishAction::ip() const { |
10020 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishAction.ip) |
10021 | 0 | return _internal_ip(); |
10022 | 0 | } |
10023 | | template <typename ArgT0, typename... ArgT> |
10024 | | inline PROTOBUF_ALWAYS_INLINE |
10025 | | void RedfishAction::set_ip(ArgT0&& arg0, ArgT... args) { |
10026 | | _impl_._has_bits_[0] |= 0x00000004u; |
10027 | | _impl_.ip_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
10028 | | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishAction.ip) |
10029 | | } |
10030 | 0 | inline std::string* RedfishAction::mutable_ip() { |
10031 | 0 | std::string* _s = _internal_mutable_ip(); |
10032 | 0 | // @@protoc_insertion_point(field_mutable:safepower_agent_config.RedfishAction.ip) |
10033 | 0 | return _s; |
10034 | 0 | } |
10035 | 0 | inline const std::string& RedfishAction::_internal_ip() const { |
10036 | 0 | return _impl_.ip_.Get(); |
10037 | 0 | } |
10038 | 0 | inline void RedfishAction::_internal_set_ip(const std::string& value) { |
10039 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
10040 | 0 | _impl_.ip_.Set(value, GetArenaForAllocation()); |
10041 | 0 | } |
10042 | 0 | inline std::string* RedfishAction::_internal_mutable_ip() { |
10043 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
10044 | 0 | return _impl_.ip_.Mutable(GetArenaForAllocation()); |
10045 | 0 | } |
10046 | 0 | inline std::string* RedfishAction::release_ip() { |
10047 | 0 | // @@protoc_insertion_point(field_release:safepower_agent_config.RedfishAction.ip) |
10048 | 0 | if (!_internal_has_ip()) { |
10049 | 0 | return nullptr; |
10050 | 0 | } |
10051 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
10052 | 0 | auto* p = _impl_.ip_.Release(); |
10053 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10054 | 0 | if (_impl_.ip_.IsDefault()) { |
10055 | 0 | _impl_.ip_.Set("", GetArenaForAllocation()); |
10056 | 0 | } |
10057 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10058 | 0 | return p; |
10059 | 0 | } |
10060 | 0 | inline void RedfishAction::set_allocated_ip(std::string* ip) { |
10061 | 0 | if (ip != nullptr) { |
10062 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
10063 | 0 | } else { |
10064 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
10065 | 0 | } |
10066 | 0 | _impl_.ip_.SetAllocated(ip, GetArenaForAllocation()); |
10067 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10068 | 0 | if (_impl_.ip_.IsDefault()) { |
10069 | 0 | _impl_.ip_.Set("", GetArenaForAllocation()); |
10070 | 0 | } |
10071 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10072 | 0 | // @@protoc_insertion_point(field_set_allocated:safepower_agent_config.RedfishAction.ip) |
10073 | 0 | } |
10074 | | |
10075 | | // optional uint32 port = 4; |
10076 | 0 | inline bool RedfishAction::_internal_has_port() const { |
10077 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
10078 | 0 | return value; |
10079 | 0 | } |
10080 | 0 | inline bool RedfishAction::has_port() const { |
10081 | 0 | return _internal_has_port(); |
10082 | 0 | } |
10083 | 0 | inline void RedfishAction::clear_port() { |
10084 | 0 | _impl_.port_ = 0u; |
10085 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
10086 | 0 | } |
10087 | 0 | inline uint32_t RedfishAction::_internal_port() const { |
10088 | 0 | return _impl_.port_; |
10089 | 0 | } |
10090 | 0 | inline uint32_t RedfishAction::port() const { |
10091 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishAction.port) |
10092 | 0 | return _internal_port(); |
10093 | 0 | } |
10094 | 0 | inline void RedfishAction::_internal_set_port(uint32_t value) { |
10095 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
10096 | 0 | _impl_.port_ = value; |
10097 | 0 | } |
10098 | 0 | inline void RedfishAction::set_port(uint32_t value) { |
10099 | 0 | _internal_set_port(value); |
10100 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishAction.port) |
10101 | 0 | } |
10102 | | |
10103 | | // optional int32 call_timeout_seconds = 5; |
10104 | 0 | inline bool RedfishAction::_internal_has_call_timeout_seconds() const { |
10105 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
10106 | 0 | return value; |
10107 | 0 | } |
10108 | 0 | inline bool RedfishAction::has_call_timeout_seconds() const { |
10109 | 0 | return _internal_has_call_timeout_seconds(); |
10110 | 0 | } |
10111 | 0 | inline void RedfishAction::clear_call_timeout_seconds() { |
10112 | 0 | _impl_.call_timeout_seconds_ = 0; |
10113 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
10114 | 0 | } |
10115 | 0 | inline int32_t RedfishAction::_internal_call_timeout_seconds() const { |
10116 | 0 | return _impl_.call_timeout_seconds_; |
10117 | 0 | } |
10118 | 0 | inline int32_t RedfishAction::call_timeout_seconds() const { |
10119 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.RedfishAction.call_timeout_seconds) |
10120 | 0 | return _internal_call_timeout_seconds(); |
10121 | 0 | } |
10122 | 0 | inline void RedfishAction::_internal_set_call_timeout_seconds(int32_t value) { |
10123 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
10124 | 0 | _impl_.call_timeout_seconds_ = value; |
10125 | 0 | } |
10126 | 0 | inline void RedfishAction::set_call_timeout_seconds(int32_t value) { |
10127 | 0 | _internal_set_call_timeout_seconds(value); |
10128 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.RedfishAction.call_timeout_seconds) |
10129 | 0 | } |
10130 | | |
10131 | | // ------------------------------------------------------------------- |
10132 | | |
10133 | | // DbusAction |
10134 | | |
10135 | | // ------------------------------------------------------------------- |
10136 | | |
10137 | | // GrpcConfig |
10138 | | |
10139 | | // optional int32 keepalive_time_ms = 1 [default = 600000]; |
10140 | 0 | inline bool GrpcConfig::_internal_has_keepalive_time_ms() const { |
10141 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
10142 | 0 | return value; |
10143 | 0 | } |
10144 | 0 | inline bool GrpcConfig::has_keepalive_time_ms() const { |
10145 | 0 | return _internal_has_keepalive_time_ms(); |
10146 | 0 | } |
10147 | 0 | inline void GrpcConfig::clear_keepalive_time_ms() { |
10148 | 0 | _impl_.keepalive_time_ms_ = 600000; |
10149 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
10150 | 0 | } |
10151 | 0 | inline int32_t GrpcConfig::_internal_keepalive_time_ms() const { |
10152 | 0 | return _impl_.keepalive_time_ms_; |
10153 | 0 | } |
10154 | 0 | inline int32_t GrpcConfig::keepalive_time_ms() const { |
10155 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.keepalive_time_ms) |
10156 | 0 | return _internal_keepalive_time_ms(); |
10157 | 0 | } |
10158 | 0 | inline void GrpcConfig::_internal_set_keepalive_time_ms(int32_t value) { |
10159 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
10160 | 0 | _impl_.keepalive_time_ms_ = value; |
10161 | 0 | } |
10162 | 0 | inline void GrpcConfig::set_keepalive_time_ms(int32_t value) { |
10163 | 0 | _internal_set_keepalive_time_ms(value); |
10164 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.keepalive_time_ms) |
10165 | 0 | } |
10166 | | |
10167 | | // optional int32 keepalive_timeout_ms = 2 [default = 20000]; |
10168 | 0 | inline bool GrpcConfig::_internal_has_keepalive_timeout_ms() const { |
10169 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
10170 | 0 | return value; |
10171 | 0 | } |
10172 | 0 | inline bool GrpcConfig::has_keepalive_timeout_ms() const { |
10173 | 0 | return _internal_has_keepalive_timeout_ms(); |
10174 | 0 | } |
10175 | 0 | inline void GrpcConfig::clear_keepalive_timeout_ms() { |
10176 | 0 | _impl_.keepalive_timeout_ms_ = 20000; |
10177 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
10178 | 0 | } |
10179 | 0 | inline int32_t GrpcConfig::_internal_keepalive_timeout_ms() const { |
10180 | 0 | return _impl_.keepalive_timeout_ms_; |
10181 | 0 | } |
10182 | 0 | inline int32_t GrpcConfig::keepalive_timeout_ms() const { |
10183 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.keepalive_timeout_ms) |
10184 | 0 | return _internal_keepalive_timeout_ms(); |
10185 | 0 | } |
10186 | 0 | inline void GrpcConfig::_internal_set_keepalive_timeout_ms(int32_t value) { |
10187 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
10188 | 0 | _impl_.keepalive_timeout_ms_ = value; |
10189 | 0 | } |
10190 | 0 | inline void GrpcConfig::set_keepalive_timeout_ms(int32_t value) { |
10191 | 0 | _internal_set_keepalive_timeout_ms(value); |
10192 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.keepalive_timeout_ms) |
10193 | 0 | } |
10194 | | |
10195 | | // optional int32 keepalive_permit_without_calls = 3 [default = 1]; |
10196 | 0 | inline bool GrpcConfig::_internal_has_keepalive_permit_without_calls() const { |
10197 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
10198 | 0 | return value; |
10199 | 0 | } |
10200 | 0 | inline bool GrpcConfig::has_keepalive_permit_without_calls() const { |
10201 | 0 | return _internal_has_keepalive_permit_without_calls(); |
10202 | 0 | } |
10203 | 0 | inline void GrpcConfig::clear_keepalive_permit_without_calls() { |
10204 | 0 | _impl_.keepalive_permit_without_calls_ = 1; |
10205 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
10206 | 0 | } |
10207 | 0 | inline int32_t GrpcConfig::_internal_keepalive_permit_without_calls() const { |
10208 | 0 | return _impl_.keepalive_permit_without_calls_; |
10209 | 0 | } |
10210 | 0 | inline int32_t GrpcConfig::keepalive_permit_without_calls() const { |
10211 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.keepalive_permit_without_calls) |
10212 | 0 | return _internal_keepalive_permit_without_calls(); |
10213 | 0 | } |
10214 | 0 | inline void GrpcConfig::_internal_set_keepalive_permit_without_calls(int32_t value) { |
10215 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
10216 | 0 | _impl_.keepalive_permit_without_calls_ = value; |
10217 | 0 | } |
10218 | 0 | inline void GrpcConfig::set_keepalive_permit_without_calls(int32_t value) { |
10219 | 0 | _internal_set_keepalive_permit_without_calls(value); |
10220 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.keepalive_permit_without_calls) |
10221 | 0 | } |
10222 | | |
10223 | | // optional int32 max_pings_without_data = 4 [default = 2]; |
10224 | 0 | inline bool GrpcConfig::_internal_has_max_pings_without_data() const { |
10225 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
10226 | 0 | return value; |
10227 | 0 | } |
10228 | 0 | inline bool GrpcConfig::has_max_pings_without_data() const { |
10229 | 0 | return _internal_has_max_pings_without_data(); |
10230 | 0 | } |
10231 | 0 | inline void GrpcConfig::clear_max_pings_without_data() { |
10232 | 0 | _impl_.max_pings_without_data_ = 2; |
10233 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
10234 | 0 | } |
10235 | 0 | inline int32_t GrpcConfig::_internal_max_pings_without_data() const { |
10236 | 0 | return _impl_.max_pings_without_data_; |
10237 | 0 | } |
10238 | 0 | inline int32_t GrpcConfig::max_pings_without_data() const { |
10239 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.max_pings_without_data) |
10240 | 0 | return _internal_max_pings_without_data(); |
10241 | 0 | } |
10242 | 0 | inline void GrpcConfig::_internal_set_max_pings_without_data(int32_t value) { |
10243 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
10244 | 0 | _impl_.max_pings_without_data_ = value; |
10245 | 0 | } |
10246 | 0 | inline void GrpcConfig::set_max_pings_without_data(int32_t value) { |
10247 | 0 | _internal_set_max_pings_without_data(value); |
10248 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.max_pings_without_data) |
10249 | 0 | } |
10250 | | |
10251 | | // optional int32 min_recv_ping_interval_without_data_ms = 5 [default = 10000]; |
10252 | 0 | inline bool GrpcConfig::_internal_has_min_recv_ping_interval_without_data_ms() const { |
10253 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; |
10254 | 0 | return value; |
10255 | 0 | } |
10256 | 0 | inline bool GrpcConfig::has_min_recv_ping_interval_without_data_ms() const { |
10257 | 0 | return _internal_has_min_recv_ping_interval_without_data_ms(); |
10258 | 0 | } |
10259 | 0 | inline void GrpcConfig::clear_min_recv_ping_interval_without_data_ms() { |
10260 | 0 | _impl_.min_recv_ping_interval_without_data_ms_ = 10000; |
10261 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
10262 | 0 | } |
10263 | 0 | inline int32_t GrpcConfig::_internal_min_recv_ping_interval_without_data_ms() const { |
10264 | 0 | return _impl_.min_recv_ping_interval_without_data_ms_; |
10265 | 0 | } |
10266 | 0 | inline int32_t GrpcConfig::min_recv_ping_interval_without_data_ms() const { |
10267 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.min_recv_ping_interval_without_data_ms) |
10268 | 0 | return _internal_min_recv_ping_interval_without_data_ms(); |
10269 | 0 | } |
10270 | 0 | inline void GrpcConfig::_internal_set_min_recv_ping_interval_without_data_ms(int32_t value) { |
10271 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
10272 | 0 | _impl_.min_recv_ping_interval_without_data_ms_ = value; |
10273 | 0 | } |
10274 | 0 | inline void GrpcConfig::set_min_recv_ping_interval_without_data_ms(int32_t value) { |
10275 | 0 | _internal_set_min_recv_ping_interval_without_data_ms(value); |
10276 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.min_recv_ping_interval_without_data_ms) |
10277 | 0 | } |
10278 | | |
10279 | | // optional int32 max_ping_strikes = 6 [default = 2]; |
10280 | 0 | inline bool GrpcConfig::_internal_has_max_ping_strikes() const { |
10281 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; |
10282 | 0 | return value; |
10283 | 0 | } |
10284 | 0 | inline bool GrpcConfig::has_max_ping_strikes() const { |
10285 | 0 | return _internal_has_max_ping_strikes(); |
10286 | 0 | } |
10287 | 0 | inline void GrpcConfig::clear_max_ping_strikes() { |
10288 | 0 | _impl_.max_ping_strikes_ = 2; |
10289 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
10290 | 0 | } |
10291 | 0 | inline int32_t GrpcConfig::_internal_max_ping_strikes() const { |
10292 | 0 | return _impl_.max_ping_strikes_; |
10293 | 0 | } |
10294 | 0 | inline int32_t GrpcConfig::max_ping_strikes() const { |
10295 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.max_ping_strikes) |
10296 | 0 | return _internal_max_ping_strikes(); |
10297 | 0 | } |
10298 | 0 | inline void GrpcConfig::_internal_set_max_ping_strikes(int32_t value) { |
10299 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
10300 | 0 | _impl_.max_ping_strikes_ = value; |
10301 | 0 | } |
10302 | 0 | inline void GrpcConfig::set_max_ping_strikes(int32_t value) { |
10303 | 0 | _internal_set_max_ping_strikes(value); |
10304 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.max_ping_strikes) |
10305 | 0 | } |
10306 | | |
10307 | | // optional int32 port = 7 [default = 20120]; |
10308 | 0 | inline bool GrpcConfig::_internal_has_port() const { |
10309 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
10310 | 0 | return value; |
10311 | 0 | } |
10312 | 0 | inline bool GrpcConfig::has_port() const { |
10313 | 0 | return _internal_has_port(); |
10314 | 0 | } |
10315 | 0 | inline void GrpcConfig::clear_port() { |
10316 | 0 | _impl_.port_ = 20120; |
10317 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10318 | 0 | } |
10319 | 0 | inline int32_t GrpcConfig::_internal_port() const { |
10320 | 0 | return _impl_.port_; |
10321 | 0 | } |
10322 | 0 | inline int32_t GrpcConfig::port() const { |
10323 | 0 | // @@protoc_insertion_point(field_get:safepower_agent_config.GrpcConfig.port) |
10324 | 0 | return _internal_port(); |
10325 | 0 | } |
10326 | 0 | inline void GrpcConfig::_internal_set_port(int32_t value) { |
10327 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10328 | 0 | _impl_.port_ = value; |
10329 | 0 | } |
10330 | 0 | inline void GrpcConfig::set_port(int32_t value) { |
10331 | 0 | _internal_set_port(value); |
10332 | 0 | // @@protoc_insertion_point(field_set:safepower_agent_config.GrpcConfig.port) |
10333 | 0 | } |
10334 | | |
10335 | | #ifdef __GNUC__ |
10336 | | #pragma GCC diagnostic pop |
10337 | | #endif // __GNUC__ |
10338 | | // ------------------------------------------------------------------- |
10339 | | |
10340 | | // ------------------------------------------------------------------- |
10341 | | |
10342 | | // ------------------------------------------------------------------- |
10343 | | |
10344 | | // ------------------------------------------------------------------- |
10345 | | |
10346 | | // ------------------------------------------------------------------- |
10347 | | |
10348 | | // ------------------------------------------------------------------- |
10349 | | |
10350 | | // ------------------------------------------------------------------- |
10351 | | |
10352 | | // ------------------------------------------------------------------- |
10353 | | |
10354 | | // ------------------------------------------------------------------- |
10355 | | |
10356 | | // ------------------------------------------------------------------- |
10357 | | |
10358 | | // ------------------------------------------------------------------- |
10359 | | |
10360 | | // ------------------------------------------------------------------- |
10361 | | |
10362 | | // ------------------------------------------------------------------- |
10363 | | |
10364 | | // ------------------------------------------------------------------- |
10365 | | |
10366 | | // ------------------------------------------------------------------- |
10367 | | |
10368 | | // ------------------------------------------------------------------- |
10369 | | |
10370 | | // ------------------------------------------------------------------- |
10371 | | |
10372 | | // ------------------------------------------------------------------- |
10373 | | |
10374 | | // ------------------------------------------------------------------- |
10375 | | |
10376 | | // ------------------------------------------------------------------- |
10377 | | |
10378 | | // ------------------------------------------------------------------- |
10379 | | |
10380 | | |
10381 | | // @@protoc_insertion_point(namespace_scope) |
10382 | | |
10383 | | } // namespace safepower_agent_config |
10384 | | |
10385 | | // @@protoc_insertion_point(global_scope) |
10386 | | |
10387 | | #include <google/protobuf/port_undef.inc> |
10388 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_safepower_5fagent_5fconfig_2eproto |