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
32namespace google {
33namespace protobuf {
34
35// Internal implementation detail -- do not call these.
36void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
37void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
38void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto();
39
40class SourceContext;
41
42// ===================================================================
43
44class LIBPROTOBUF_EXPORT SourceContext : public ::google::protobuf::Message {
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
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* 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(SourceContext* 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 string file_name = 1;
101  void clear_file_name();
102  static const int kFileNameFieldNumber = 1;
103  const ::std::string& file_name() const;
104  void set_file_name(const ::std::string& value);
105  void set_file_name(const char* value);
106  void set_file_name(const char* value, size_t size);
107  ::std::string* mutable_file_name();
108  ::std::string* release_file_name();
109  void set_allocated_file_name(::std::string* file_name);
110
111  // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
112 private:
113
114  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
115  bool _is_default_instance_;
116  ::google::protobuf::internal::ArenaStringPtr file_name_;
117  mutable int _cached_size_;
118  friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
119  friend void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
120  friend void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto();
121
122  void InitAsDefaultInstance();
123  static SourceContext* default_instance_;
124};
125// ===================================================================
126
127
128// ===================================================================
129
130#if !PROTOBUF_INLINE_NOT_IN_HEADERS
131// SourceContext
132
133// optional string file_name = 1;
134inline void SourceContext::clear_file_name() {
135  file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
136}
137inline const ::std::string& SourceContext::file_name() const {
138  // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
139  return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
140}
141inline void SourceContext::set_file_name(const ::std::string& value) {
142
143  file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
144  // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
145}
146inline void SourceContext::set_file_name(const char* value) {
147
148  file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
149  // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
150}
151inline void SourceContext::set_file_name(const char* value, size_t size) {
152
153  file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
154      ::std::string(reinterpret_cast<const char*>(value), size));
155  // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
156}
157inline ::std::string* SourceContext::mutable_file_name() {
158
159  // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
160  return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
161}
162inline ::std::string* SourceContext::release_file_name() {
163  // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
164
165  return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
166}
167inline void SourceContext::set_allocated_file_name(::std::string* file_name) {
168  if (file_name != NULL) {
169
170  } else {
171
172  }
173  file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name);
174  // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
175}
176
177#endif  // !PROTOBUF_INLINE_NOT_IN_HEADERS
178
179// @@protoc_insertion_point(namespace_scope)
180
181}  // namespace protobuf
182}  // namespace google
183
184// @@protoc_insertion_point(global_scope)
185
186#endif  // PROTOBUF_google_2fprotobuf_2fsource_5fcontext_2eproto__INCLUDED
187