Ignition Msgs

API Reference

7.1.0
time.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/time.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2ftime_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2ftime_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
30 #ifndef _MSC_VER
31 #pragma GCC system_header
32 #else
33 #pragma warning(push)
34 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
35 #endif
36 #ifdef __linux__
37 #include <sys/sysmacros.h>
38 #endif
39 #include <memory>
40 #include <ignition/msgs/Export.hh>
41 // @@protoc_insertion_point(includes)
42 
43 namespace ignition {
44 namespace msgs {
45 
46 // Internal implementation detail -- do not call these.
47 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftime_2eproto();
50 
51 class Time;
52 
53 // ===================================================================
54 
55 class IGNITION_MSGS_VISIBLE Time : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Time) */ {
56  public:
57  Time();
58  virtual ~Time();
59 
60  Time(const Time& from);
61 
62  inline Time& operator=(const Time& from) {
63  CopyFrom(from);
64  return *this;
65  }
66 
67  static const ::google::protobuf::Descriptor* descriptor();
68  static const Time& default_instance();
69 
70  void Swap(Time* other);
71 
72  // implements Message ----------------------------------------------
73 
74  inline Time* New() const { return New(NULL); }
75 
76  Time* New(::google::protobuf::Arena* arena) const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const Time& from);
80  void MergeFrom(const Time& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
86  ::google::protobuf::io::CodedInputStream* input);
87  void SerializeWithCachedSizes(
88  ::google::protobuf::io::CodedOutputStream* output) const;
89  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
90  bool deterministic, ::google::protobuf::uint8* output) const;
91  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
92  return InternalSerializeWithCachedSizesToArray(false, output);
93  }
94  int GetCachedSize() const { return _cached_size_; }
95  private:
96  void SharedCtor();
97  void SharedDtor();
98  void SetCachedSize(int size) const;
99  void InternalSwap(Time* other);
100  private:
101  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
102  return _internal_metadata_.arena();
103  }
104  inline void* MaybeArenaPtr() const {
105  return _internal_metadata_.raw_arena_ptr();
106  }
107  public:
108 
109  ::google::protobuf::Metadata GetMetadata() const;
110 
111  // nested types ----------------------------------------------------
112 
113  // accessors -------------------------------------------------------
114 
115  // optional int64 sec = 1;
116  void clear_sec();
117  static const int kSecFieldNumber = 1;
118  ::google::protobuf::int64 sec() const;
119  void set_sec(::google::protobuf::int64 value);
120 
121  // optional int32 nsec = 2;
122  void clear_nsec();
123  static const int kNsecFieldNumber = 2;
124  ::google::protobuf::int32 nsec() const;
125  void set_nsec(::google::protobuf::int32 value);
126 
127  // @@protoc_insertion_point(class_scope:ignition.msgs.Time)
128  private:
129 
130  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
131  bool _is_default_instance_;
132  ::google::protobuf::int64 sec_;
133  ::google::protobuf::int32 nsec_;
134  mutable int _cached_size_;
135  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftime_2eproto();
138 
139  void InitAsDefaultInstance();
140  static Time* default_instance_;
141 };
142 // ===================================================================
143 
144 
145 // ===================================================================
146 
147 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
148 // Time
149 
150 // optional int64 sec = 1;
151 inline void Time::clear_sec() {
152  sec_ = GOOGLE_LONGLONG(0);
153 }
154 inline ::google::protobuf::int64 Time::sec() const {
155  // @@protoc_insertion_point(field_get:ignition.msgs.Time.sec)
156  return sec_;
157 }
158 inline void Time::set_sec(::google::protobuf::int64 value) {
159 
160  sec_ = value;
161  // @@protoc_insertion_point(field_set:ignition.msgs.Time.sec)
162 }
163 
164 // optional int32 nsec = 2;
165 inline void Time::clear_nsec() {
166  nsec_ = 0;
167 }
168 inline ::google::protobuf::int32 Time::nsec() const {
169  // @@protoc_insertion_point(field_get:ignition.msgs.Time.nsec)
170  return nsec_;
171 }
172 inline void Time::set_nsec(::google::protobuf::int32 value) {
173 
174  nsec_ = value;
175  // @@protoc_insertion_point(field_set:ignition.msgs.Time.nsec)
176 }
177 
178 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
179 
184 // @@protoc_insertion_point(namespace_scope)
185 
186 } // namespace msgs
187 } // namespace ignition
188 
189 #ifdef _MSC_VER
190 #pragma warning(pop)
191 #endif
192 // @@protoc_insertion_point(global_scope)
193 
194 #endif // PROTOBUF_ignition_2fmsgs_2ftime_2eproto__INCLUDED
Time & operator=(const Time &from)
Definition: time.pb.h:62
void clear_sec()
Definition: time.pb.h:151
std::unique_ptr< const Time > ConstTimeUniquePtr
Definition: time.pb.h:181
void set_sec(::google::protobuf::int64 value)
Definition: time.pb.h:158
void protobuf_ShutdownFile_ignition_2fmsgs_2ftime_2eproto()
Time * New() const
Definition: time.pb.h:74
std::shared_ptr< Time > TimeSharedPtr
Definition: time.pb.h:182
::google::protobuf::int32 nsec() const
Definition: time.pb.h:168
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: time.pb.h:91
::google::protobuf::int64 sec() const
Definition: time.pb.h:154
STL class.
std::unique_ptr< Time > TimeUniquePtr
Definition: time.pb.h:180
int GetCachedSize() const
Definition: time.pb.h:94
void set_nsec(::google::protobuf::int32 value)
Definition: time.pb.h:172
void protobuf_AssignDesc_ignition_2fmsgs_2ftime_2eproto()
std::shared_ptr< const Time > ConstTimeSharedPtr
Definition: time.pb.h:183
void clear_nsec()
Definition: time.pb.h:165
Definition: time.pb.h:55
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftime_2eproto()