4 #ifndef PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_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.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "goby/middleware/protobuf/app_config.pb.h"
35 #include "goby/protobuf/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2ftool_2fconfig_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[1];
51 static const ::google::protobuf::uint32
offsets[];
58 class ToolDefaultTypeInternal;
88 return ::google::protobuf::internal::NameOfEnum(
93 return ::google::protobuf::internal::ParseNamedEnum<Tool_Action>(
98 class Tool :
public ::google::protobuf::Message {
112 *
this = ::std::move(from);
116 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
117 if (
this != &from) InternalSwap(&from);
125 return _internal_metadata_.unknown_fields();
128 return _internal_metadata_.mutable_unknown_fields();
131 static const ::google::protobuf::Descriptor*
descriptor();
136 return reinterpret_cast<const Tool*
>(
150 return CreateMaybeMessage<Tool>(NULL);
153 Tool*
New(::google::protobuf::Arena* arena)
const final {
154 return CreateMaybeMessage<Tool>(arena);
156 void CopyFrom(const ::google::protobuf::Message& from)
final;
157 void MergeFrom(const ::google::protobuf::Message& from)
final;
165 ::
google::protobuf::io::CodedInputStream* input) final;
167 ::
google::protobuf::io::CodedOutputStream* output) const final;
169 bool deterministic, ::
google::protobuf::uint8* target) const final;
175 void SetCachedSize(
int size)
const final;
176 void InternalSwap(
Tool* other);
178 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
181 inline void* MaybeArenaPtr()
const {
186 ::google::protobuf::Metadata
GetMetadata() const final;
218 static inline const ::google::protobuf::EnumDescriptor*
237 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
239 const ::goby::middleware::protobuf::AppConfig&
app()
const;
240 ::goby::middleware::protobuf::AppConfig*
release_app();
241 ::goby::middleware::protobuf::AppConfig*
mutable_app();
254 void clear_has_app();
255 void set_has_action();
256 void clear_has_action();
258 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
259 ::google::protobuf::internal::HasBits<1> _has_bits_;
260 mutable ::google::protobuf::internal::CachedSize _cached_size_;
261 ::goby::middleware::protobuf::AppConfig* app_;
263 friend struct ::protobuf_bin_2ftool_2fconfig_2eproto::TableStruct;
271 #pragma GCC diagnostic push
272 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
278 return (_has_bits_[0] & 0x00000001u) != 0;
280 inline void Tool::set_has_app() {
281 _has_bits_[0] |= 0x00000001u;
283 inline void Tool::clear_has_app() {
284 _has_bits_[0] &= ~0x00000001u;
286 inline const ::goby::middleware::protobuf::AppConfig& Tool::_internal_app()
const {
289 inline const ::goby::middleware::protobuf::AppConfig&
Tool::app()
const {
290 const ::goby::middleware::protobuf::AppConfig* p = app_;
292 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
293 &::goby::middleware::protobuf::_AppConfig_default_instance_);
298 ::goby::middleware::protobuf::AppConfig* temp = app_;
305 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
312 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313 if (message_arena == NULL) {
314 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
317 ::google::protobuf::Arena* submessage_arena = NULL;
318 if (message_arena != submessage_arena) {
319 app = ::google::protobuf::internal::GetOwnedMessage(
320 message_arena,
app, submessage_arena);
332 return (_has_bits_[0] & 0x00000002u) != 0;
334 inline void Tool::set_has_action() {
335 _has_bits_[0] |= 0x00000002u;
337 inline void Tool::clear_has_action() {
338 _has_bits_[0] &= ~0x00000002u;
356 #pragma GCC diagnostic pop
369 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::config::Tool_Action>() {
378 #endif // PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto