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 GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3009000
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 3009002 < 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/port_undef.inc>
24 #include <google/protobuf/arena.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
38 PROTOBUF_NAMESPACE_OPEN
39 namespace internal {
40 class AnyMetadata;
41 } // namespace internal
42 PROTOBUF_NAMESPACE_CLOSE
43 
44 // Internal implementation detail -- do not use these members.
46  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
49  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
53  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
55 };
56 extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
57 PROTOBUF_NAMESPACE_OPEN
58 class SourceContext;
61 PROTOBUF_NAMESPACE_CLOSE
62 PROTOBUF_NAMESPACE_OPEN
63 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
64 PROTOBUF_NAMESPACE_CLOSE
65 PROTOBUF_NAMESPACE_OPEN
66 
67 // ===================================================================
68 
69 class PROTOBUF_EXPORT SourceContext :
70  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
71  public:
72  SourceContext();
73  virtual ~SourceContext();
74 
75  SourceContext(const SourceContext& from);
76  SourceContext(SourceContext&& from) noexcept
77  : SourceContext() {
78  *this = ::std::move(from);
79  }
80 
81  inline SourceContext& operator=(const SourceContext& from) {
82  CopyFrom(from);
83  return *this;
84  }
85  inline SourceContext& operator=(SourceContext&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93 
95  return GetDescriptor();
96  }
98  return GetMetadataStatic().descriptor;
99  }
100  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
101  return GetMetadataStatic().reflection;
102  }
103  static const SourceContext& default_instance();
104 
105  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
106  static inline const SourceContext* internal_default_instance() {
107  return reinterpret_cast<const SourceContext*>(
109  }
110  static constexpr int kIndexInFileMessages =
111  0;
112 
113  friend void swap(SourceContext& a, SourceContext& b) {
114  a.Swap(&b);
115  }
116  inline void Swap(SourceContext* other) {
117  if (other == this) return;
118  InternalSwap(other);
119  }
120 
121  // implements Message ----------------------------------------------
122 
123  inline SourceContext* New() const final {
124  return CreateMaybeMessage<SourceContext>(nullptr);
125  }
126 
127  SourceContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
128  return CreateMaybeMessage<SourceContext>(arena);
129  }
130  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
131  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
132  void CopyFrom(const SourceContext& from);
133  void MergeFrom(const SourceContext& from);
134  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
135  bool IsInitialized() const final;
136 
137  size_t ByteSizeLong() const final;
138  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
139  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
140  #else
142  ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
143  #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
144  void SerializeWithCachedSizes(
145  ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
146  ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
147  ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
148  int GetCachedSize() const final { return _cached_size_.Get(); }
149 
150  private:
151  inline void SharedCtor();
152  inline void SharedDtor();
153  void SetCachedSize(int size) const final;
154  void InternalSwap(SourceContext* other);
155  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
156  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
157  return "google.protobuf.SourceContext";
158  }
159  private:
160  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
161  return nullptr;
162  }
163  inline void* MaybeArenaPtr() const {
164  return nullptr;
165  }
166  public:
167 
168  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
169  private:
170  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
172  return ::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto.file_level_metadata[kIndexInFileMessages];
173  }
174 
175  public:
176 
177  // nested types ----------------------------------------------------
178 
179  // accessors -------------------------------------------------------
180 
181  enum : int {
182  kFileNameFieldNumber = 1,
183  };
184  // string file_name = 1;
185  void clear_file_name();
186  const std::string& file_name() const;
187  void set_file_name(const std::string& value);
188  void set_file_name(std::string&& value);
189  void set_file_name(const char* value);
190  void set_file_name(const char* value, size_t size);
191  std::string* mutable_file_name();
192  std::string* release_file_name();
193  void set_allocated_file_name(std::string* file_name);
194 
195  // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
196  private:
197  class _Internal;
198 
199  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
200  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
201  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
202  friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
203 };
204 // ===================================================================
205 
206 
207 // ===================================================================
208 
209 #ifdef __GNUC__
210  #pragma GCC diagnostic push
211  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
212 #endif // __GNUC__
213 // SourceContext
214 
215 // string file_name = 1;
218 }
219 inline const std::string& SourceContext::file_name() const {
220  // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
221  return file_name_.GetNoArena();
222 }
224 
226  // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
227 }
229 
230  file_name_.SetNoArena(
232  // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceContext.file_name)
233 }
234 inline void SourceContext::set_file_name(const char* value) {
235  GOOGLE_DCHECK(value != nullptr);
236 
238  // @@protoc_insertion_point(field_set_char:google.protobuf.SourceContext.file_name)
239 }
240 inline void SourceContext::set_file_name(const char* value, size_t size) {
241 
243  ::std::string(reinterpret_cast<const char*>(value), size));
244  // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceContext.file_name)
245 }
247 
248  // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
250 }
252  // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
253 
255 }
257  if (file_name != nullptr) {
258 
259  } else {
260 
261  }
263  // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
264 }
265 
266 #ifdef __GNUC__
267  #pragma GCC diagnostic pop
268 #endif // __GNUC__
269 
270 // @@protoc_insertion_point(namespace_scope)
271 
272 PROTOBUF_NAMESPACE_CLOSE
273 
274 // @@protoc_insertion_point(global_scope)
275 
276 #include <google/protobuf/port_undef.inc>
277 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fany_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
SourceContext::_cached_size_
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
Definition: source_context.pb.h:201
SourceContext
Definition: source_context.pb.h:69
arenastring.h
SourceContext::release_file_name
std::string * release_file_name()
Definition: source_context.pb.h:251
benchmarks.python.py_benchmark.const
const
Definition: py_benchmark.py:14
SourceContext::GetCachedSize
int GetCachedSize() const final
Definition: source_context.pb.h:148
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: python_message.py:1340
input
std::string input
Definition: tokenizer_unittest.cc:197
extension_set.h
inlined_string_field.h
google::protobuf::uint8
uint8_t uint8
Definition: protobuf/src/google/protobuf/stubs/port.h:153
SourceContext::SourceContext
SourceContext(SourceContext &&from) noexcept
Definition: source_context.pb.h:76
GOOGLE_DCHECK
#define GOOGLE_DCHECK
Definition: logging.h:194
google::protobuf::python::cmessage::CopyFrom
static PyObject * CopyFrom(CMessage *self, PyObject *arg)
Definition: python/google/protobuf/pyext/message.cc:1861
google::protobuf::uint32
uint32_t uint32
Definition: protobuf/src/google/protobuf/stubs/port.h:155
SourceContext::mutable_file_name
std::string * mutable_file_name()
Definition: source_context.pb.h:246
SourceContext::New
SourceContext * New() const final
Definition: source_context.pb.h:123
SourceContext::set_file_name
void set_file_name(const std::string &value)
Definition: source_context.pb.h:223
generated_message_reflection.h
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
SourceContext::operator=
SourceContext & operator=(const SourceContext &from)
Definition: source_context.pb.h:81
target
GLenum target
Definition: glcorearb.h:3739
google::protobuf.internal.python_message._InternalParse
_InternalParse
Definition: python_message.py:1197
SourceContext::file_name_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_
Definition: source_context.pb.h:200
SourceContext::file_name
const std::string & file_name() const
Definition: source_context.pb.h:219
SourceContext::clear_file_name
void clear_file_name()
Definition: source_context.pb.h:216
SourceContext::internal_default_instance
static const SourceContext * internal_default_instance()
Definition: source_context.pb.h:106
b
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:3228
_SourceContext_default_instance_
PROTOBUF_EXPORT SourceContextDefaultTypeInternal _SourceContext_default_instance_
SourceContext::FullMessageName
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition: source_context.pb.h:156
google::protobuf.internal::MergePartialFromCodedStream
bool MergePartialFromCodedStream(MessageLite *msg, const ParseTable &table, io::CodedInputStream *input)
Definition: generated_message_table_driven.cc:96
unknown_field_set.h
coded_stream.h
SourceContext::set_allocated_file_name
void set_allocated_file_name(std::string *file_name)
Definition: source_context.pb.h:256
message.h
SourceContext::_Internal
Definition: source_context.pb.cc:89
SourceContext
struct SourceContext SourceContext
Definition: php/ext/google/protobuf/protobuf.h:659
SourceContext::descriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: source_context.pb.h:94
repeated_field.h
generated_message_table_driven.h
Descriptor
struct Descriptor Descriptor
Definition: php/ext/google/protobuf/protobuf.h:628
SourceContext::operator=
SourceContext & operator=(SourceContext &&from) noexcept
Definition: source_context.pb.h:85
descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto
const PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto
Definition: source_context.pb.cc:74
SourceContext::Swap
void Swap(SourceContext *other)
Definition: source_context.pb.h:116
google::protobuf.internal.python_message.Clear
Clear
Definition: python_message.py:1431
size
GLsizeiptr size
Definition: glcorearb.h:2943
arena.h
SourceContext::_internal_metadata_
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
Definition: source_context.pb.h:197
metadata.h
google::protobuf.internal::GetEmptyStringAlreadyInited
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:152
generated_message_util.h
google::protobuf.internal.python_message.IsInitialized
IsInitialized
Definition: python_message.py:1246
SourceContext::GetArenaNoVirtual
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual() const
Definition: source_context.pb.h:160
SourceContext::swap
friend void swap(SourceContext &a, SourceContext &b)
Definition: source_context.pb.h:113
internal
Definition: any.pb.h:40
google::protobuf.internal::AssignDescriptors
void AssignDescriptors(const DescriptorTable *table)
Definition: generated_message_reflection.cc:2403
SourceContext::GetDescriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: source_context.pb.h:97
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093
SourceContext::GetReflection
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: source_context.pb.h:100
output
const upb_json_parsermethod const upb_symtab upb_sink * output
Definition: ruby/ext/google/protobuf_c/upb.h:10503
SourceContextDefaultTypeInternal
Definition: source_context.pb.cc:19
SourceContext::MaybeArenaPtr
void * MaybeArenaPtr() const
Definition: source_context.pb.h:163
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:3228
TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto
Definition: source_context.pb.h:45
SourceContext::New
SourceContext * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: source_context.pb.h:127
google::protobuf::python::message_descriptor::GetDescriptor
static ParentDescriptor GetDescriptor(PyContainer *self)
Definition: descriptor_containers.cc:950


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:58