protobuf/src/google/protobuf/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 < 3019000
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 3019005 < 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>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
34 // @@protoc_insertion_point(includes)
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto PROTOBUF_EXPORT
37 PROTOBUF_NAMESPACE_OPEN
38 namespace internal {
39 class AnyMetadata;
40 } // namespace internal
41 PROTOBUF_NAMESPACE_CLOSE
42 
43 // Internal implementation detail -- do not use these members.
45  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
46  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
47  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
48  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
50  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
52  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
53  static const uint32_t offsets[];
54 };
55 PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto;
56 PROTOBUF_NAMESPACE_OPEN
57 class SourceContext;
60 PROTOBUF_NAMESPACE_CLOSE
61 PROTOBUF_NAMESPACE_OPEN
62 template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceContext* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceContext>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 PROTOBUF_NAMESPACE_OPEN
65 
66 // ===================================================================
67 
68 class PROTOBUF_EXPORT SourceContext final :
69  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceContext) */ {
70  public:
71  inline SourceContext() : SourceContext(nullptr) {}
72  ~SourceContext() override;
73  explicit constexpr SourceContext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
74 
77  : SourceContext() {
78  *this = ::std::move(from);
79  }
80 
82  CopyFrom(from);
83  return *this;
84  }
85  inline SourceContext& operator=(SourceContext&& from) noexcept {
86  if (this == &from) return *this;
87  if (GetOwningArena() == from.GetOwningArena()
88  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
89  && GetOwningArena() != nullptr
90  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
91  ) {
92  InternalSwap(&from);
93  } else {
94  CopyFrom(from);
95  }
96  return *this;
97  }
98 
100  return GetDescriptor();
101  }
103  return default_instance().GetMetadata().descriptor;
104  }
105  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
106  return default_instance().GetMetadata().reflection;
107  }
108  static const SourceContext& default_instance() {
109  return *internal_default_instance();
110  }
111  static inline const SourceContext* internal_default_instance() {
112  return reinterpret_cast<const SourceContext*>(
114  }
115  static constexpr int kIndexInFileMessages =
116  0;
117 
118  friend void swap(SourceContext& a, SourceContext& b) {
119  a.Swap(&b);
120  }
121  inline void Swap(SourceContext* other) {
122  if (other == this) return;
123  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
124  if (GetOwningArena() != nullptr &&
125  GetOwningArena() == other->GetOwningArena()) {
126  #else // PROTOBUF_FORCE_COPY_IN_SWAP
127  if (GetOwningArena() == other->GetOwningArena()) {
128  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
129  InternalSwap(other);
130  } else {
132  }
133  }
135  if (other == this) return;
136  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
137  InternalSwap(other);
138  }
139 
140  // implements Message ----------------------------------------------
141 
143  return CreateMaybeMessage<SourceContext>(arena);
144  }
146  void CopyFrom(const SourceContext& from);
148  void MergeFrom(const SourceContext& from);
149  private:
151  public:
152  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
153  bool IsInitialized() const final;
154 
155  size_t ByteSizeLong() const final;
156  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
158  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
159  int GetCachedSize() const final { return _cached_size_.Get(); }
160 
161  private:
162  void SharedCtor();
163  void SharedDtor();
164  void SetCachedSize(int size) const final;
165  void InternalSwap(SourceContext* other);
166 
167  private:
168  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
169  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
170  return "google.protobuf.SourceContext";
171  }
172  protected:
174  bool is_message_owned = false);
175  private:
176  static void ArenaDtor(void* object);
177  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178  public:
179 
180  static const ClassData _class_data_;
181  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
182 
183  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
184 
185  // nested types ----------------------------------------------------
186 
187  // accessors -------------------------------------------------------
188 
189  enum : int {
190  kFileNameFieldNumber = 1,
191  };
192  // string file_name = 1;
193  void clear_file_name();
194  const std::string& file_name() const;
195  template <typename ArgT0 = const std::string&, typename... ArgT>
196  void set_file_name(ArgT0&& arg0, ArgT... args);
197  std::string* mutable_file_name();
198  PROTOBUF_NODISCARD std::string* release_file_name();
199  void set_allocated_file_name(std::string* file_name);
200  private:
201  const std::string& _internal_file_name() const;
202  inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value);
203  std::string* _internal_mutable_file_name();
204  public:
205 
206  // @@protoc_insertion_point(class_scope:google.protobuf.SourceContext)
207  private:
208  class _Internal;
209 
210  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
212  typedef void DestructorSkippable_;
213  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
214  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
215  friend struct ::TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto;
216 };
217 // ===================================================================
218 
219 
220 // ===================================================================
221 
222 #ifdef __GNUC__
223  #pragma GCC diagnostic push
224  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
225 #endif // __GNUC__
226 // SourceContext
227 
228 // string file_name = 1;
229 inline void SourceContext::clear_file_name() {
230  file_name_.ClearToEmpty();
231 }
232 inline const std::string& SourceContext::file_name() const {
233  // @@protoc_insertion_point(field_get:google.protobuf.SourceContext.file_name)
234  return _internal_file_name();
235 }
236 template <typename ArgT0, typename... ArgT>
237 inline PROTOBUF_ALWAYS_INLINE
238 void SourceContext::set_file_name(ArgT0&& arg0, ArgT... args) {
239 
240  file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
241  // @@protoc_insertion_point(field_set:google.protobuf.SourceContext.file_name)
242 }
244  std::string* _s = _internal_mutable_file_name();
245  // @@protoc_insertion_point(field_mutable:google.protobuf.SourceContext.file_name)
246  return _s;
247 }
248 inline const std::string& SourceContext::_internal_file_name() const {
249  return file_name_.Get();
250 }
252 
253  file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
254 }
256 
257  return file_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
258 }
260  // @@protoc_insertion_point(field_release:google.protobuf.SourceContext.file_name)
261  return file_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
262 }
263 inline void SourceContext::set_allocated_file_name(std::string* file_name) {
264  if (file_name != nullptr) {
265 
266  } else {
267 
268  }
269  file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name,
270  GetArenaForAllocation());
271 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
272  if (file_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
273  file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
274  }
275 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
276  // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceContext.file_name)
277 }
278 
279 #ifdef __GNUC__
280  #pragma GCC diagnostic pop
281 #endif // __GNUC__
282 
283 // @@protoc_insertion_point(namespace_scope)
284 
285 PROTOBUF_NAMESPACE_CLOSE
286 
287 // @@protoc_insertion_point(global_scope)
288 
289 #include <google/protobuf/port_undef.inc>
290 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fsource_5fcontext_2eproto
ptr
char * ptr
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:45
Arena
struct Arena Arena
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/arena.h:189
SourceContext
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:69
SourceContext::release_file_name
std::string * release_file_name()
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:258
ctx
Definition: benchmark-async.c:30
const
#define const
Definition: bloaty/third_party/zlib/zconf.h:230
google::protobuf::EmptyDefault
ArenaStringPtr::EmptyDefault EmptyDefault
Definition: protobuf/src/google/protobuf/arenastring_unittest.cc:57
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1339
SourceContext::default_instance
static const SourceContext & default_instance()
Definition: protobuf/src/google/protobuf/source_context.pb.h:108
GOOGLE_DCHECK
#define GOOGLE_DCHECK
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/logging.h:194
SourceContext::SourceContext
SourceContext(SourceContext &&from) noexcept
Definition: protobuf/src/google/protobuf/source_context.pb.h:76
google::protobuf::python::cmessage::CopyFrom
static PyObject * CopyFrom(CMessage *self, PyObject *arg)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:1862
Arena
Definition: arena.c:39
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
grpc::protobuf::Message
GRPC_CUSTOM_MESSAGE Message
Definition: include/grpcpp/impl/codegen/config_protobuf.h:78
SourceContext::mutable_file_name
std::string * mutable_file_name()
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:225
SourceContext::set_file_name
void set_file_name(const std::string &value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:221
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
SourceContext::SourceContext
SourceContext()
Definition: protobuf/src/google/protobuf/source_context.pb.h:71
google::protobuf.internal::GenericSwap
void GenericSwap(MessageLite *m1, MessageLite *m2)
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_util.cc:735
to
size_t to
Definition: abseil-cpp/absl/container/internal/layout_test.cc:1385
SourceContext::operator=
SourceContext & operator=(const SourceContext &from)
Definition: protobuf/src/google/protobuf/source_context.pb.h:81
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
google::protobuf.internal.python_message._InternalParse
_InternalParse
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1196
SourceContext::file_name
const std::string & file_name() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:217
SourceContext::clear_file_name
void clear_file_name()
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:214
SourceContext::internal_default_instance
static const SourceContext * internal_default_instance()
Definition: protobuf/src/google/protobuf/source_context.pb.h:111
arena
grpc_core::ScopedArenaPtr arena
Definition: binder_transport_test.cc:237
SourceContext::InternalArenaConstructable_
void InternalArenaConstructable_
Definition: protobuf/src/google/protobuf/source_context.pb.h:211
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
from
size_t from
Definition: abseil-cpp/absl/container/internal/layout_test.cc:1384
SourceContext::DestructorSkippable_
void DestructorSkippable_
Definition: protobuf/src/google/protobuf/source_context.pb.h:212
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
SourceContext::FullMessageName
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition: protobuf/src/google/protobuf/source_context.pb.h:169
absl::move
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
Definition: abseil-cpp/absl/utility/utility.h:221
google::protobuf.internal::GetEmptyStringAlreadyInited
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
Definition: bloaty/third_party/protobuf/src/google/protobuf/message_lite.h:153
SourceContext::set_allocated_file_name
void set_allocated_file_name(std::string *file_name)
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:263
google::protobuf.internal.python_message._InternalSerialize
_InternalSerialize
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1112
SourceContext::_Internal
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.cc:88
SourceContext::descriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: protobuf/src/google/protobuf/source_context.pb.h:99
io
SourceContext::_internal_file_name
const std::string & _internal_file_name() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:229
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
SourceContext::operator=
SourceContext & operator=(SourceContext &&from) noexcept
Definition: protobuf/src/google/protobuf/source_context.pb.h:85
SourceContext::_internal_mutable_file_name
std::string * _internal_mutable_file_name()
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:254
SourceContext::_class_data_
static const ClassData _class_data_
Definition: protobuf/src/google/protobuf/source_context.pb.h:180
value
const char * value
Definition: hpack_parser_table.cc:165
SourceContext::_internal_set_file_name
void _internal_set_file_name(const std::string &value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:232
_SourceContext_default_instance_
PROTOBUF_EXPORT SourceContextDefaultTypeInternal _SourceContext_default_instance_
Definition: protobuf/src/google/protobuf/source_context.pb.cc:31
SourceContext::Swap
void Swap(SourceContext *other)
Definition: protobuf/src/google/protobuf/source_context.pb.h:121
google::protobuf.internal.python_message.Clear
Clear
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1430
descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto
PROTOBUF_EXPORTconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.cc:73
SourceContext::New
SourceContext * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: protobuf/src/google/protobuf/source_context.pb.h:142
google::protobuf.internal.python_message.IsInitialized
IsInitialized
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1245
SourceContext::swap
friend void swap(SourceContext &a, SourceContext &b)
Definition: protobuf/src/google/protobuf/source_context.pb.h:118
internal
Definition: benchmark/test/output_test_helper.cc:20
SourceContext::GetDescriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: protobuf/src/google/protobuf/source_context.pb.h:102
grpc_binder::Metadata
std::vector< std::pair< std::string, std::string > > Metadata
Definition: transaction.h:38
SourceContext::GetReflection
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: protobuf/src/google/protobuf/source_context.pb.h:105
grpc::protobuf::Descriptor
GRPC_CUSTOM_DESCRIPTOR Descriptor
Definition: include/grpcpp/impl/codegen/config_protobuf.h:81
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
SourceContextDefaultTypeInternal
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.cc:18
TableStruct_google_2fprotobuf_2fsource_5fcontext_2eproto
Definition: bloaty/third_party/protobuf/src/google/protobuf/source_context.pb.h:45
SourceContext::UnsafeArenaSwap
void UnsafeArenaSwap(SourceContext *other)
Definition: protobuf/src/google/protobuf/source_context.pb.h:134
setup.target
target
Definition: third_party/bloaty/third_party/protobuf/python/setup.py:179
google::protobuf::python::message_descriptor::GetDescriptor
static ParentDescriptor GetDescriptor(PyContainer *self)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:951
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fany_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
SourceContext
struct SourceContext SourceContext
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:668
stream
voidpf stream
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:14