Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame^] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/duration.proto |
| 3 | |
| 4 | #ifndef PROTOBUF_google_2fprotobuf_2fduration_2eproto__INCLUDED |
| 5 | #define PROTOBUF_google_2fprotobuf_2fduration_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 | // @@protoc_insertion_point(includes) |
| 31 | |
| 32 | namespace google { |
| 33 | namespace protobuf { |
| 34 | |
| 35 | // Internal implementation detail -- do not call these. |
| 36 | void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fduration_2eproto(); |
| 37 | void protobuf_AssignDesc_google_2fprotobuf_2fduration_2eproto(); |
| 38 | void protobuf_ShutdownFile_google_2fprotobuf_2fduration_2eproto(); |
| 39 | |
| 40 | class Duration; |
| 41 | |
| 42 | // =================================================================== |
| 43 | |
| 44 | class LIBPROTOBUF_EXPORT Duration : public ::google::protobuf::Message { |
| 45 | public: |
| 46 | Duration(); |
| 47 | virtual ~Duration(); |
| 48 | |
| 49 | Duration(const Duration& from); |
| 50 | |
| 51 | inline Duration& operator=(const Duration& from) { |
| 52 | CopyFrom(from); |
| 53 | return *this; |
| 54 | } |
| 55 | |
| 56 | static const ::google::protobuf::Descriptor* descriptor(); |
| 57 | static const Duration& default_instance(); |
| 58 | |
| 59 | void Swap(Duration* other); |
| 60 | |
| 61 | // implements Message ---------------------------------------------- |
| 62 | |
| 63 | inline Duration* New() const { return New(NULL); } |
| 64 | |
| 65 | Duration* New(::google::protobuf::Arena* arena) const; |
| 66 | void CopyFrom(const ::google::protobuf::Message& from); |
| 67 | void MergeFrom(const ::google::protobuf::Message& from); |
| 68 | void CopyFrom(const Duration& from); |
| 69 | void MergeFrom(const Duration& from); |
| 70 | void Clear(); |
| 71 | bool IsInitialized() const; |
| 72 | |
| 73 | int ByteSize() const; |
| 74 | bool MergePartialFromCodedStream( |
| 75 | ::google::protobuf::io::CodedInputStream* input); |
| 76 | void SerializeWithCachedSizes( |
| 77 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 78 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
| 79 | int GetCachedSize() const { return _cached_size_; } |
| 80 | private: |
| 81 | void SharedCtor(); |
| 82 | void SharedDtor(); |
| 83 | void SetCachedSize(int size) const; |
| 84 | void InternalSwap(Duration* other); |
| 85 | private: |
| 86 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 87 | return _internal_metadata_.arena(); |
| 88 | } |
| 89 | inline void* MaybeArenaPtr() const { |
| 90 | return _internal_metadata_.raw_arena_ptr(); |
| 91 | } |
| 92 | public: |
| 93 | |
| 94 | ::google::protobuf::Metadata GetMetadata() const; |
| 95 | |
| 96 | // nested types ---------------------------------------------------- |
| 97 | |
| 98 | // accessors ------------------------------------------------------- |
| 99 | |
| 100 | // optional int64 seconds = 1; |
| 101 | void clear_seconds(); |
| 102 | static const int kSecondsFieldNumber = 1; |
| 103 | ::google::protobuf::int64 seconds() const; |
| 104 | void set_seconds(::google::protobuf::int64 value); |
| 105 | |
| 106 | // optional int32 nanos = 2; |
| 107 | void clear_nanos(); |
| 108 | static const int kNanosFieldNumber = 2; |
| 109 | ::google::protobuf::int32 nanos() const; |
| 110 | void set_nanos(::google::protobuf::int32 value); |
| 111 | |
| 112 | // @@protoc_insertion_point(class_scope:google.protobuf.Duration) |
| 113 | private: |
| 114 | |
| 115 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 116 | bool _is_default_instance_; |
| 117 | ::google::protobuf::int64 seconds_; |
| 118 | ::google::protobuf::int32 nanos_; |
| 119 | mutable int _cached_size_; |
| 120 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fduration_2eproto(); |
| 121 | friend void protobuf_AssignDesc_google_2fprotobuf_2fduration_2eproto(); |
| 122 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fduration_2eproto(); |
| 123 | |
| 124 | void InitAsDefaultInstance(); |
| 125 | static Duration* default_instance_; |
| 126 | }; |
| 127 | // =================================================================== |
| 128 | |
| 129 | |
| 130 | // =================================================================== |
| 131 | |
| 132 | #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 133 | // Duration |
| 134 | |
| 135 | // optional int64 seconds = 1; |
| 136 | inline void Duration::clear_seconds() { |
| 137 | seconds_ = GOOGLE_LONGLONG(0); |
| 138 | } |
| 139 | inline ::google::protobuf::int64 Duration::seconds() const { |
| 140 | // @@protoc_insertion_point(field_get:google.protobuf.Duration.seconds) |
| 141 | return seconds_; |
| 142 | } |
| 143 | inline void Duration::set_seconds(::google::protobuf::int64 value) { |
| 144 | |
| 145 | seconds_ = value; |
| 146 | // @@protoc_insertion_point(field_set:google.protobuf.Duration.seconds) |
| 147 | } |
| 148 | |
| 149 | // optional int32 nanos = 2; |
| 150 | inline void Duration::clear_nanos() { |
| 151 | nanos_ = 0; |
| 152 | } |
| 153 | inline ::google::protobuf::int32 Duration::nanos() const { |
| 154 | // @@protoc_insertion_point(field_get:google.protobuf.Duration.nanos) |
| 155 | return nanos_; |
| 156 | } |
| 157 | inline void Duration::set_nanos(::google::protobuf::int32 value) { |
| 158 | |
| 159 | nanos_ = value; |
| 160 | // @@protoc_insertion_point(field_set:google.protobuf.Duration.nanos) |
| 161 | } |
| 162 | |
| 163 | #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 164 | |
| 165 | // @@protoc_insertion_point(namespace_scope) |
| 166 | |
| 167 | } // namespace protobuf |
| 168 | } // namespace google |
| 169 | |
| 170 | // @@protoc_insertion_point(global_scope) |
| 171 | |
| 172 | #endif // PROTOBUF_google_2fprotobuf_2fduration_2eproto__INCLUDED |