1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/source_context.proto
3
4 #ifndef PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2fsource_5fcontext_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_2fsource_5fcontext_2eproto();
37 void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
38 void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto();
39
40 class SourceContext;
41
42 // ===================================================================
43
44 class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
45 public:
46 SourceContext();
47 virtual ~SourceContext();
48
49 SourceContext(const SourceContext& from);
50
51 inline SourceContext& operator=(const SourceContext& from) {
52 CopyFrom(from);
53 return *this;
54 }
55
56 static const ::google::protobuf::Descriptor* descriptor();
57 static const SourceContext& default_instance();
58
59 void Swap(SourceContext* other);
60
61 // implements Message ----------------------------------------------
62
New()63 inline SourceContext* New() const { return New(NULL); }
64
65 SourceContext* 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 SourceContext& from);
69 void MergeFrom(const SourceContext& 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* InternalSerializeWithCachedSizesToArray(
79 bool deterministic, ::google::protobuf::uint8* output) const;
SerializeWithCachedSizesToArray(::google::protobuf::uint8 * output)80 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
81 return InternalSerializeWithCachedSizesToArray(false, output);
82 }
GetCachedSize()83 int GetCachedSize() const { return _cached_size_; }
84 private:
85 void SharedCtor();
86 void SharedDtor();
87 void SetCachedSize(int size) const;
88 void InternalSwap(SourceContext* other);
89 private:
GetArenaNoVirtual()90 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
91 return _internal_metadata_.arena();
92 }
MaybeArenaPtr()93 inline void* MaybeArenaPtr() const {
94 return _internal_metadata_.raw_arena_ptr();
95 }
96 public:
97
98 ::google::protobuf::Metadata GetMetadata() const;
99
100 // nested types ----------------------------------------------------
101
102 // accessors -------------------------------------------------------
103
104 // optional string file_name = 1;
105 void clear_file_name();
106 static const int kFileNameFieldNumber = 1;
107 const ::std::string& file_name() const;
108 void set_file_name(const ::std::string& value);
109 void set_file_name(const char* value);
110 void set_file_name(const char* value, size_t size);
111 ::std::string* mutable_file_name();
112 ::std::string* release_file_name();
113 void set_allocated_file_name(::std::string* file_name);
114
115 // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
116 private:
117
118 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
119 bool _is_default_instance_;
120 ::google::protobuf::internal::ArenaStringPtr file_name_;
121 mutable int _cached_size_;
122 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
123 friend void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
124 friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto();
125
126 void InitAsDefaultInstance();
127 static SourceContext* default_instance_;
128 };
129 // ===================================================================
130
131
132 // ===================================================================
133
134 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
135 // SourceContext
136
137 // optional string file_name = 1;
clear_file_name()138 inline void SourceContext::clear_file_name() {
139 file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
140 }
file_name()141 inline const ::std::string& SourceContext::file_name() const {
142 // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
143 return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
144 }
set_file_name(const::std::string & value)145 inline void SourceContext::set_file_name(const ::std::string& value) {
146
147 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
148 // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
149 }
set_file_name(const char * value)150 inline void SourceContext::set_file_name(const char* value) {
151
152 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
153 // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
154 }
set_file_name(const char * value,size_t size)155 inline void SourceContext::set_file_name(const char* value, size_t size) {
156
157 file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
158 ::std::string(reinterpret_cast<const char*>(value), size));
159 // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
160 }
mutable_file_name()161 inline ::std::string* SourceContext::mutable_file_name() {
162
163 // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
164 return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
165 }
release_file_name()166 inline ::std::string* SourceContext::release_file_name() {
167 // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
168
169 return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
170 }
set_allocated_file_name(::std::string * file_name)171 inline void SourceContext::set_allocated_file_name(::std::string* file_name) {
172 if (file_name != NULL) {
173
174 } else {
175
176 }
177 file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name);
178 // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
179 }
180
181 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
182
183 // @@protoc_insertion_point(namespace_scope)
184
185 } // namespace protobuf
186 } // namespace google
187
188 // @@protoc_insertion_point(global_scope)
189
190 #endif // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
191