any.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/any.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_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 #include <google/protobuf/any.h>
36 // @@protoc_insertion_point(includes)
37 #include <google/protobuf/port_def.inc>
38 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto PROTOBUF_EXPORT
39 PROTOBUF_NAMESPACE_OPEN
40 namespace internal {
41 class AnyMetadata;
42 } // namespace internal
43 PROTOBUF_NAMESPACE_CLOSE
44 
45 // Internal implementation detail -- do not use these members.
47  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
50  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
52  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
54  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
56 };
57 extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fany_2eproto;
58 PROTOBUF_NAMESPACE_OPEN
59 class Any;
61 PROTOBUF_EXPORT extern AnyDefaultTypeInternal _Any_default_instance_;
62 PROTOBUF_NAMESPACE_CLOSE
63 PROTOBUF_NAMESPACE_OPEN
64 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Any* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Any>(Arena*);
65 PROTOBUF_NAMESPACE_CLOSE
66 PROTOBUF_NAMESPACE_OPEN
67 
68 // ===================================================================
69 
70 class PROTOBUF_EXPORT Any :
71  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Any) */ {
72  public:
73  Any();
74  virtual ~Any();
75 
76  Any(const Any& from);
77  Any(Any&& from) noexcept
78  : Any() {
79  *this = ::std::move(from);
80  }
81 
82  inline Any& operator=(const Any& from) {
83  CopyFrom(from);
84  return *this;
85  }
86  inline Any& operator=(Any&& from) noexcept {
87  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88  if (this != &from) InternalSwap(&from);
89  } else {
90  CopyFrom(from);
91  }
92  return *this;
93  }
94 
96  return GetDescriptor();
97  }
99  return GetMetadataStatic().descriptor;
100  }
101  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
102  return GetMetadataStatic().reflection;
103  }
104  static const Any& default_instance();
105 
106  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107  static inline const Any* internal_default_instance() {
108  return reinterpret_cast<const Any*>(
110  }
111  static constexpr int kIndexInFileMessages =
112  0;
113 
114  // implements Any -----------------------------------------------
115 
116  void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message& message);
117  void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message& message,
118  const std::string& type_url_prefix);
119  bool UnpackTo(::PROTOBUF_NAMESPACE_ID::Message* message) const;
120  static bool GetAnyFieldDescriptors(
121  const ::PROTOBUF_NAMESPACE_ID::Message& message,
124  template<typename T> bool Is() const {
125  return _any_metadata_.Is<T>();
126  }
127  static bool ParseAnyTypeUrl(const string& type_url,
128  std::string* full_type_name);
129  friend void swap(Any& a, Any& b) {
130  a.Swap(&b);
131  }
132  inline void Swap(Any* other) {
133  if (other == this) return;
134  InternalSwap(other);
135  }
136 
137  // implements Message ----------------------------------------------
138 
139  inline Any* New() const final {
140  return CreateMaybeMessage<Any>(nullptr);
141  }
142 
143  Any* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
144  return CreateMaybeMessage<Any>(arena);
145  }
146  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
147  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
148  void CopyFrom(const Any& from);
149  void MergeFrom(const Any& from);
150  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151  bool IsInitialized() const final;
152 
153  size_t ByteSizeLong() const final;
154  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
155  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
156  #else
158  ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
159  #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
160  void SerializeWithCachedSizes(
161  ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
162  ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
163  ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
164  int GetCachedSize() const final { return _cached_size_.Get(); }
165 
166  private:
167  inline void SharedCtor();
168  inline void SharedDtor();
169  void SetCachedSize(int size) const final;
170  void InternalSwap(Any* other);
171  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173  return "google.protobuf.Any";
174  }
175  private:
176  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
177  return nullptr;
178  }
179  inline void* MaybeArenaPtr() const {
180  return nullptr;
181  }
182  public:
183 
184  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
185  private:
186  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
188  return ::descriptor_table_google_2fprotobuf_2fany_2eproto.file_level_metadata[kIndexInFileMessages];
189  }
190 
191  public:
192 
193  // nested types ----------------------------------------------------
194 
195  // accessors -------------------------------------------------------
196 
197  enum : int {
198  kTypeUrlFieldNumber = 1,
199  kValueFieldNumber = 2,
200  };
201  // string type_url = 1;
202  void clear_type_url();
203  const std::string& type_url() const;
204  void set_type_url(const std::string& value);
205  void set_type_url(std::string&& value);
206  void set_type_url(const char* value);
207  void set_type_url(const char* value, size_t size);
208  std::string* mutable_type_url();
209  std::string* release_type_url();
210  void set_allocated_type_url(std::string* type_url);
211 
212  // bytes value = 2;
213  void clear_value();
214  const std::string& value() const;
215  void set_value(const std::string& value);
216  void set_value(std::string&& value);
217  void set_value(const char* value);
218  void set_value(const void* value, size_t size);
219  std::string* mutable_value();
220  std::string* release_value();
221  void set_allocated_value(std::string* value);
222 
223  // @@protoc_insertion_point(class_scope:google.protobuf.Any)
224  private:
225  class _Internal;
226 
227  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
228  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_;
229  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
230  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
231  ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata _any_metadata_;
232  friend struct ::TableStruct_google_2fprotobuf_2fany_2eproto;
233 };
234 // ===================================================================
235 
236 
237 // ===================================================================
238 
239 #ifdef __GNUC__
240  #pragma GCC diagnostic push
241  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 #endif // __GNUC__
243 // Any
244 
245 // string type_url = 1;
246 inline void Any::clear_type_url() {
248 }
249 inline const std::string& Any::type_url() const {
250  // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url)
251  return type_url_.GetNoArena();
252 }
253 inline void Any::set_type_url(const std::string& value) {
254 
256  // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url)
257 }
259 
260  type_url_.SetNoArena(
262  // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.type_url)
263 }
264 inline void Any::set_type_url(const char* value) {
265  GOOGLE_DCHECK(value != nullptr);
266 
268  // @@protoc_insertion_point(field_set_char:google.protobuf.Any.type_url)
269 }
270 inline void Any::set_type_url(const char* value, size_t size) {
271 
273  ::std::string(reinterpret_cast<const char*>(value), size));
274  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.type_url)
275 }
277 
278  // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url)
280 }
282  // @@protoc_insertion_point(field_release:google.protobuf.Any.type_url)
283 
285 }
287  if (type_url != nullptr) {
288 
289  } else {
290 
291  }
293  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url)
294 }
295 
296 // bytes value = 2;
297 inline void Any::clear_value() {
299 }
300 inline const std::string& Any::value() const {
301  // @@protoc_insertion_point(field_get:google.protobuf.Any.value)
302  return value_.GetNoArena();
303 }
304 inline void Any::set_value(const std::string& value) {
305 
307  // @@protoc_insertion_point(field_set:google.protobuf.Any.value)
308 }
310 
311  value_.SetNoArena(
313  // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.value)
314 }
315 inline void Any::set_value(const char* value) {
316  GOOGLE_DCHECK(value != nullptr);
317 
319  // @@protoc_insertion_point(field_set_char:google.protobuf.Any.value)
320 }
321 inline void Any::set_value(const void* value, size_t size) {
322 
324  ::std::string(reinterpret_cast<const char*>(value), size));
325  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.value)
326 }
328 
329  // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value)
331 }
333  // @@protoc_insertion_point(field_release:google.protobuf.Any.value)
334 
336 }
338  if (value != nullptr) {
339 
340  } else {
341 
342  }
344  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value)
345 }
346 
347 #ifdef __GNUC__
348  #pragma GCC diagnostic pop
349 #endif // __GNUC__
350 
351 // @@protoc_insertion_point(namespace_scope)
352 
353 PROTOBUF_NAMESPACE_CLOSE
354 
355 // @@protoc_insertion_point(global_scope)
356 
357 #include <google/protobuf/port_undef.inc>
358 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fany_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
arenastring.h
benchmarks.python.py_benchmark.const
const
Definition: py_benchmark.py:14
Any::GetArenaNoVirtual
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual() const
Definition: any.pb.h:176
Any::type_url_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_
Definition: any.pb.h:228
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: python_message.py:1340
Any::set_value
void set_value(const std::string &value)
Definition: any.pb.h:304
Any::release_type_url
std::string * release_type_url()
Definition: any.pb.h:281
Any::GetDescriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: any.pb.h:98
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
google::protobuf.internal::ParseAnyTypeUrl
bool ParseAnyTypeUrl(const std::string &type_url, std::string *full_type_name)
Definition: any_lite.cc:117
GOOGLE_DCHECK
#define GOOGLE_DCHECK
Definition: logging.h:194
Any::New
Any * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: any.pb.h:143
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
generated_message_reflection.h
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
Any::New
Any * New() const final
Definition: any.pb.h:139
target
GLenum target
Definition: glcorearb.h:3739
google::protobuf.internal.python_message._InternalParse
_InternalParse
Definition: python_message.py:1197
Any::GetReflection
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: any.pb.h:101
T
#define T(upbtypeconst, upbtype, ctype, default_value)
Any::GetCachedSize
int GetCachedSize() const final
Definition: any.pb.h:164
TableStruct_google_2fprotobuf_2fany_2eproto
Definition: any.pb.h:46
b
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:3228
Any::Any
Any(Any &&from) noexcept
Definition: any.pb.h:77
Any::Swap
void Swap(Any *other)
Definition: any.pb.h:132
Any::descriptor
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: any.pb.h:95
descriptor_table_google_2fprotobuf_2fany_2eproto
const PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fany_2eproto
Definition: any.pb.cc:74
google::protobuf.internal::MergePartialFromCodedStream
bool MergePartialFromCodedStream(MessageLite *msg, const ParseTable &table, io::CodedInputStream *input)
Definition: generated_message_table_driven.cc:96
Any::_any_metadata_
::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata _any_metadata_
Definition: any.pb.h:231
any.h
Any::_cached_size_
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
Definition: any.pb.h:230
unknown_field_set.h
coded_stream.h
_Any_default_instance_
PROTOBUF_EXPORT AnyDefaultTypeInternal _Any_default_instance_
Any::set_type_url
void set_type_url(const std::string &value)
Definition: any.pb.h:253
google::protobuf.internal::GetAnyFieldDescriptors
bool GetAnyFieldDescriptors(const Message &message, const FieldDescriptor **type_url_field, const FieldDescriptor **value_field)
Definition: any.cc:64
message.h
Any::operator=
Any & operator=(const Any &from)
Definition: any.pb.h:82
Any::clear_value
void clear_value()
Definition: any.pb.h:297
repeated_field.h
Any::Is
bool Is() const
Definition: any.pb.h:124
generated_message_table_driven.h
Descriptor
struct Descriptor Descriptor
Definition: php/ext/google/protobuf/protobuf.h:628
Any::internal_default_instance
static const Any * internal_default_instance()
Definition: any.pb.h:107
Any::value
const std::string & value() const
Definition: any.pb.h:300
Any::swap
friend void swap(Any &a, Any &b)
Definition: any.pb.h:129
Any::clear_type_url
void clear_type_url()
Definition: any.pb.h:246
Any
struct Any Any
Definition: php/ext/google/protobuf/protobuf.h:624
google::protobuf.internal.python_message.Clear
Clear
Definition: python_message.py:1431
Any::operator=
Any & operator=(Any &&from) noexcept
Definition: any.pb.h:86
Any::set_allocated_type_url
void set_allocated_type_url(std::string *type_url)
Definition: any.pb.h:286
size
GLsizeiptr size
Definition: glcorearb.h:2943
arena.h
AnyDefaultTypeInternal
Definition: any.pb.cc:19
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
Any::mutable_value
std::string * mutable_value()
Definition: any.pb.h:327
internal
Definition: any.pb.h:40
google::protobuf.internal::AssignDescriptors
void AssignDescriptors(const DescriptorTable *table)
Definition: generated_message_reflection.cc:2403
FieldDescriptor
struct FieldDescriptor FieldDescriptor
Definition: php/ext/google/protobuf/protobuf.h:637
type_url
string * type_url
Definition: conformance_cpp.cc:98
Any::set_allocated_value
void set_allocated_value(std::string *value)
Definition: any.pb.h:337
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093
Any::release_value
std::string * release_value()
Definition: any.pb.h:332
Any::mutable_type_url
std::string * mutable_type_url()
Definition: any.pb.h:276
Any::_internal_metadata_
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
Definition: any.pb.h:225
Any::MaybeArenaPtr
void * MaybeArenaPtr() const
Definition: any.pb.h:179
output
const upb_json_parsermethod const upb_symtab upb_sink * output
Definition: ruby/ext/google/protobuf_c/upb.h:10503
Any::type_url
const std::string & type_url() const
Definition: any.pb.h:249
Any
Definition: any.pb.h:70
Any::FullMessageName
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
Definition: any.pb.h:172
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:3228
message
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glcorearb.h:2695
google::protobuf::python::message_descriptor::GetDescriptor
static ParentDescriptor GetDescriptor(PyContainer *self)
Definition: descriptor_containers.cc:950
Any::value_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_
Definition: any.pb.h:229


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