OLD | NEW |
1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 // source: google/protobuf/source_context.proto | 2 // source: google/protobuf/source_context.proto |
3 | 3 |
4 #ifndef PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED | 4 #ifndef PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED |
5 #define PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED | 5 #define PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
10 | 10 |
11 #if GOOGLE_PROTOBUF_VERSION < 3001000 | 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 |
12 #error This file was generated by a newer version of protoc which is | 12 #error This file was generated by a newer version of protoc which is |
13 #error incompatible with your Protocol Buffer headers. Please update | 13 #error incompatible with your Protocol Buffer headers. Please update |
14 #error your headers. | 14 #error your headers. |
15 #endif | 15 #endif |
16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 #error This file was generated by an older version of protoc which is | 17 #error This file was generated by an older version of protoc which is |
18 #error incompatible with your Protocol Buffer headers. Please | 18 #error incompatible with your Protocol Buffer headers. Please |
19 #error regenerate this file with a newer version of protoc. | 19 #error regenerate this file with a newer version of protoc. |
20 #endif | 20 #endif |
21 | 21 |
22 #include <google/protobuf/arena.h> | 22 #include <google/protobuf/arena.h> |
23 #include <google/protobuf/arenastring.h> | 23 #include <google/protobuf/arenastring.h> |
24 #include <google/protobuf/generated_message_util.h> | 24 #include <google/protobuf/generated_message_util.h> |
25 #include <google/protobuf/metadata.h> | 25 #include <google/protobuf/metadata.h> |
26 #include <google/protobuf/message.h> | 26 #include <google/protobuf/message.h> |
27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export | 27 #include <google/protobuf/repeated_field.h> |
28 #include <google/protobuf/extension_set.h> // IWYU pragma: export | 28 #include <google/protobuf/extension_set.h> |
29 #include <google/protobuf/unknown_field_set.h> | 29 #include <google/protobuf/unknown_field_set.h> |
30 // @@protoc_insertion_point(includes) | 30 // @@protoc_insertion_point(includes) |
31 namespace google { | |
32 namespace protobuf { | |
33 class SourceContext; | |
34 class SourceContextDefaultTypeInternal; | |
35 LIBPROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_defaul
t_instance_; | |
36 } // namespace protobuf | |
37 } // namespace google | |
38 | 31 |
39 namespace google { | 32 namespace google { |
40 namespace protobuf { | 33 namespace protobuf { |
41 | 34 |
42 // Internal implementation detail -- do not call these. | 35 // Internal implementation detail -- do not call these. |
43 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2e
proto(); | 36 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2e
proto(); |
44 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsource_5fconte
xt_2eproto(); | 37 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto(); |
| 38 void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto(); |
| 39 |
| 40 class SourceContext; |
45 | 41 |
46 // =================================================================== | 42 // =================================================================== |
47 | 43 |
48 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message /* @
@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ { | 44 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message { |
49 public: | 45 public: |
50 SourceContext(); | 46 SourceContext(); |
51 virtual ~SourceContext(); | 47 virtual ~SourceContext(); |
52 | 48 |
53 SourceContext(const SourceContext& from); | 49 SourceContext(const SourceContext& from); |
54 | 50 |
55 inline SourceContext& operator=(const SourceContext& from) { | 51 inline SourceContext& operator=(const SourceContext& from) { |
56 CopyFrom(from); | 52 CopyFrom(from); |
57 return *this; | 53 return *this; |
58 } | 54 } |
59 | 55 |
60 static const ::google::protobuf::Descriptor* descriptor(); | 56 static const ::google::protobuf::Descriptor* descriptor(); |
61 static const SourceContext& default_instance(); | 57 static const SourceContext& default_instance(); |
62 | 58 |
63 static inline const SourceContext* internal_default_instance() { | |
64 return reinterpret_cast<const SourceContext*>( | |
65 &_SourceContext_default_instance_); | |
66 } | |
67 | |
68 void Swap(SourceContext* other); | 59 void Swap(SourceContext* other); |
69 | 60 |
70 // implements Message ---------------------------------------------- | 61 // implements Message ---------------------------------------------- |
71 | 62 |
72 inline SourceContext* New() const PROTOBUF_FINAL { return New(NULL); } | 63 inline SourceContext* New() const { return New(NULL); } |
73 | 64 |
74 SourceContext* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; | 65 SourceContext* New(::google::protobuf::Arena* arena) const; |
75 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 66 void CopyFrom(const ::google::protobuf::Message& from); |
76 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; | 67 void MergeFrom(const ::google::protobuf::Message& from); |
77 void CopyFrom(const SourceContext& from); | 68 void CopyFrom(const SourceContext& from); |
78 void MergeFrom(const SourceContext& from); | 69 void MergeFrom(const SourceContext& from); |
79 void Clear() PROTOBUF_FINAL; | 70 void Clear(); |
80 bool IsInitialized() const PROTOBUF_FINAL; | 71 bool IsInitialized() const; |
81 | 72 |
82 size_t ByteSizeLong() const PROTOBUF_FINAL; | 73 int ByteSize() const; |
83 bool MergePartialFromCodedStream( | 74 bool MergePartialFromCodedStream( |
84 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; | 75 ::google::protobuf::io::CodedInputStream* input); |
85 void SerializeWithCachedSizes( | 76 void SerializeWithCachedSizes( |
86 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; | 77 ::google::protobuf::io::CodedOutputStream* output) const; |
87 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( | 78 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; |
88 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; | 79 int GetCachedSize() const { return _cached_size_; } |
89 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) | |
90 const PROTOBUF_FINAL { | |
91 return InternalSerializeWithCachedSizesToArray(false, output); | |
92 } | |
93 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } | |
94 private: | 80 private: |
95 void SharedCtor(); | 81 void SharedCtor(); |
96 void SharedDtor(); | 82 void SharedDtor(); |
97 void SetCachedSize(int size) const PROTOBUF_FINAL; | 83 void SetCachedSize(int size) const; |
98 void InternalSwap(SourceContext* other); | 84 void InternalSwap(SourceContext* other); |
99 private: | 85 private: |
100 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 86 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
101 return NULL; | 87 return _internal_metadata_.arena(); |
102 } | 88 } |
103 inline void* MaybeArenaPtr() const { | 89 inline void* MaybeArenaPtr() const { |
104 return NULL; | 90 return _internal_metadata_.raw_arena_ptr(); |
105 } | 91 } |
106 public: | 92 public: |
107 | 93 |
108 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; | 94 ::google::protobuf::Metadata GetMetadata() const; |
109 | 95 |
110 // nested types ---------------------------------------------------- | 96 // nested types ---------------------------------------------------- |
111 | 97 |
112 // accessors ------------------------------------------------------- | 98 // accessors ------------------------------------------------------- |
113 | 99 |
114 // string file_name = 1; | 100 // optional string file_name = 1; |
115 void clear_file_name(); | 101 void clear_file_name(); |
116 static const int kFileNameFieldNumber = 1; | 102 static const int kFileNameFieldNumber = 1; |
117 const ::std::string& file_name() const; | 103 const ::std::string& file_name() const; |
118 void set_file_name(const ::std::string& value); | 104 void set_file_name(const ::std::string& value); |
119 #if LANG_CXX11 | |
120 void set_file_name(::std::string&& value); | |
121 #endif | |
122 void set_file_name(const char* value); | 105 void set_file_name(const char* value); |
123 void set_file_name(const char* value, size_t size); | 106 void set_file_name(const char* value, size_t size); |
124 ::std::string* mutable_file_name(); | 107 ::std::string* mutable_file_name(); |
125 ::std::string* release_file_name(); | 108 ::std::string* release_file_name(); |
126 void set_allocated_file_name(::std::string* file_name); | 109 void set_allocated_file_name(::std::string* file_name); |
127 | 110 |
128 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext) | 111 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext) |
129 private: | 112 private: |
130 | 113 |
131 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 114 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 115 bool _is_default_instance_; |
132 ::google::protobuf::internal::ArenaStringPtr file_name_; | 116 ::google::protobuf::internal::ArenaStringPtr file_name_; |
133 mutable int _cached_size_; | 117 mutable int _cached_size_; |
134 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fsourc
e_5fcontext_2eproto_impl(); | 118 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc
ontext_2eproto(); |
135 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fc
ontext_2eproto_impl(); | 119 friend void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto()
; |
136 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
source_5fcontext_2eproto(); | |
137 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto
(); | 120 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto
(); |
138 | 121 |
| 122 void InitAsDefaultInstance(); |
| 123 static SourceContext* default_instance_; |
139 }; | 124 }; |
140 // =================================================================== | 125 // =================================================================== |
141 | 126 |
142 | 127 |
143 // =================================================================== | 128 // =================================================================== |
144 | 129 |
145 #if !PROTOBUF_INLINE_NOT_IN_HEADERS | 130 #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
146 // SourceContext | 131 // SourceContext |
147 | 132 |
148 // string file_name = 1; | 133 // optional string file_name = 1; |
149 inline void SourceContext::clear_file_name() { | 134 inline void SourceContext::clear_file_name() { |
150 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); | 135 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited()); |
151 } | 136 } |
152 inline const ::std::string& SourceContext::file_name() const { | 137 inline const ::std::string& SourceContext::file_name() const { |
153 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) | 138 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name) |
154 return file_name_.GetNoArena(); | 139 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlre
adyInited()); |
155 } | 140 } |
156 inline void SourceContext::set_file_name(const ::std::string& value) { | 141 inline void SourceContext::set_file_name(const ::std::string& value) { |
157 | 142 |
158 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); | 143 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), value); |
159 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) | 144 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name) |
160 } | 145 } |
161 #if LANG_CXX11 | |
162 inline void SourceContext::set_file_name(::std::string&& value) { | |
163 | |
164 file_name_.SetNoArena( | |
165 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(va
lue)); | |
166 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.fil
e_name) | |
167 } | |
168 #endif | |
169 inline void SourceContext::set_file_name(const char* value) { | 146 inline void SourceContext::set_file_name(const char* value) { |
170 | 147 |
171 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); | 148 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), ::std::string(value)); |
172 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_
name) | 149 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_
name) |
173 } | 150 } |
174 inline void SourceContext::set_file_name(const char* value, size_t size) { | 151 inline void SourceContext::set_file_name(const char* value, size_t size) { |
175 | 152 |
176 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), | 153 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), |
177 ::std::string(reinterpret_cast<const char*>(value), size)); | 154 ::std::string(reinterpret_cast<const char*>(value), size)); |
178 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi
le_name) | 155 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.fi
le_name) |
(...skipping 15 matching lines...) Expand all Loading... |
194 | 171 |
195 } | 172 } |
196 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), file_name); | 173 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), file_name); |
197 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.
file_name) | 174 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.
file_name) |
198 } | 175 } |
199 | 176 |
200 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS | 177 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
201 | 178 |
202 // @@protoc_insertion_point(namespace_scope) | 179 // @@protoc_insertion_point(namespace_scope) |
203 | 180 |
204 | |
205 } // namespace protobuf | 181 } // namespace protobuf |
206 } // namespace google | 182 } // namespace google |
207 | 183 |
208 // @@protoc_insertion_point(global_scope) | 184 // @@protoc_insertion_point(global_scope) |
209 | 185 |
210 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED | 186 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED |
OLD | NEW |