webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
source_context.pb.h
Go to the documentation of this file.
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 
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>
30 // @@protoc_insertion_point(includes)
31 
32 namespace google {
33 namespace protobuf {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class SourceContext;
41 
42 // ===================================================================
43 
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 
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);
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(
76  void SerializeWithCachedSizes(
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 
115  bool _is_default_instance_;
117  mutable int _cached_size_;
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;
135  file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
136 }
138  // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
139  return file_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
140 }
142 
143  file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
144  // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
145 }
146 inline 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 }
151 inline void SourceContext::set_file_name(const char* value, size_t size) {
152 
154  ::std::string(reinterpret_cast<const char*>(value), size));
155  // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
156 }
158 
159  // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
160  return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
161 }
163  // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
164 
165  return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
166 }
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
Definition: message.h:179
void protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto()
Definition: source_context.pb.cc:76
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
int GetCachedSize() const
Definition: source_context.pb.h:79
SourceContext & operator=(const SourceContext &from)
Definition: source_context.pb.h:51
void clear_file_name()
Definition: source_context.pb.h:134
struct Descriptor Descriptor
Definition: protobuf.h:23
const Descriptor * descriptor
Definition: descriptor.cc:271
uint8_t uint8
Definition: port.h:133
::std::string * release_file_name()
Definition: source_context.pb.h:162
LIBPROTOBUF_EXPORTconst ::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:85
Definition: arenastring.h:56
Message
Definition: peerconnection_unittest.cc:105
void set_allocated_file_name(::std::string *file_name)
Definition: source_context.pb.h:167
Definition: message.h:164
#define output
Definition: wire_format_lite.h:418
void protobuf_ShutdownFile_google_2fprotobuf_2fsource_5fcontext_2eproto()
Definition: source_context.pb.cc:71
SourceContext * New() const
Definition: source_context.pb.h:63
Definition: source_context.pb.h:44
IsInitialized
Definition: python_message.py:1169
EGLAttrib * value
Definition: eglext.h:120
Definition: __init__.py:1
Definition: arena.h:218
GLsizei const GLchar *const * string
Definition: gl2.h:479
void protobuf_AssignDesc_google_2fprotobuf_2fsource_5fcontext_2eproto()
Definition: source_context.pb.cc:32
#define NULL
Definition: common_types.h:41
void set_file_name(const ::std::string &value)
Definition: source_context.pb.h:141
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
Definition: gflags_completions.h:115
string input
Definition: tokenizer_unittest.cc:198
ByteSize
Definition: python_message.py:1040
::std::string * mutable_file_name()
Definition: source_context.pb.h:157
Definition: coded_stream.h:665
Definition: coded_stream.h:159
const ::std::string & file_name() const
Definition: source_context.pb.h:137
MergeFrom
Definition: python_message.py:1259