temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | |
| 3 | #ifndef PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED |
| 4 | #define PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED |
| 5 | |
| 6 | #include <string> |
| 7 | |
| 8 | #include <google/protobuf/stubs/common.h> |
| 9 | |
kenton@google.com | a001ed0 | 2008-12-01 23:47:49 +0000 | [diff] [blame] | 10 | #if GOOGLE_PROTOBUF_VERSION < 2000003 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 11 | #error This file was generated by a newer version of protoc which is |
| 12 | #error incompatible with your Protocol Buffer headers. Please update |
| 13 | #error your headers. |
| 14 | #endif |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 15 | #if 2000004 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 16 | #error This file was generated by an older version of protoc which is |
| 17 | #error incompatible with your Protocol Buffer headers. Please |
| 18 | #error regenerate this file with a newer version of protoc. |
| 19 | #endif |
| 20 | |
| 21 | #include <google/protobuf/generated_message_reflection.h> |
| 22 | #include <google/protobuf/repeated_field.h> |
| 23 | #include <google/protobuf/extension_set.h> |
| 24 | |
| 25 | namespace google { |
| 26 | namespace protobuf { |
| 27 | |
kenton@google.com | 9b10f58 | 2008-09-30 00:09:40 +0000 | [diff] [blame] | 28 | // Internal implementation detail -- do not call these. |
| 29 | void LIBPROTOBUF_EXPORT protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 30 | void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 31 | ::google::protobuf::FileDescriptor* file); |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 32 | |
| 33 | class FileDescriptorSet; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 34 | class FileDescriptorProto; |
| 35 | class DescriptorProto; |
| 36 | class DescriptorProto_ExtensionRange; |
| 37 | class FieldDescriptorProto; |
| 38 | class EnumDescriptorProto; |
| 39 | class EnumValueDescriptorProto; |
| 40 | class ServiceDescriptorProto; |
| 41 | class MethodDescriptorProto; |
| 42 | class FileOptions; |
| 43 | class MessageOptions; |
| 44 | class FieldOptions; |
| 45 | class EnumOptions; |
| 46 | class EnumValueOptions; |
| 47 | class ServiceOptions; |
| 48 | class MethodOptions; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 49 | class UninterpretedOption; |
| 50 | class UninterpretedOption_NamePart; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 51 | |
| 52 | enum FieldDescriptorProto_Type { |
| 53 | FieldDescriptorProto_Type_TYPE_DOUBLE = 1, |
| 54 | FieldDescriptorProto_Type_TYPE_FLOAT = 2, |
| 55 | FieldDescriptorProto_Type_TYPE_INT64 = 3, |
| 56 | FieldDescriptorProto_Type_TYPE_UINT64 = 4, |
| 57 | FieldDescriptorProto_Type_TYPE_INT32 = 5, |
| 58 | FieldDescriptorProto_Type_TYPE_FIXED64 = 6, |
| 59 | FieldDescriptorProto_Type_TYPE_FIXED32 = 7, |
| 60 | FieldDescriptorProto_Type_TYPE_BOOL = 8, |
| 61 | FieldDescriptorProto_Type_TYPE_STRING = 9, |
| 62 | FieldDescriptorProto_Type_TYPE_GROUP = 10, |
| 63 | FieldDescriptorProto_Type_TYPE_MESSAGE = 11, |
| 64 | FieldDescriptorProto_Type_TYPE_BYTES = 12, |
| 65 | FieldDescriptorProto_Type_TYPE_UINT32 = 13, |
| 66 | FieldDescriptorProto_Type_TYPE_ENUM = 14, |
| 67 | FieldDescriptorProto_Type_TYPE_SFIXED32 = 15, |
| 68 | FieldDescriptorProto_Type_TYPE_SFIXED64 = 16, |
| 69 | FieldDescriptorProto_Type_TYPE_SINT32 = 17, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 70 | FieldDescriptorProto_Type_TYPE_SINT64 = 18 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 71 | }; |
| 72 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor(); |
| 73 | LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value); |
| 74 | const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE; |
| 75 | const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64; |
| 76 | |
| 77 | enum FieldDescriptorProto_Label { |
| 78 | FieldDescriptorProto_Label_LABEL_OPTIONAL = 1, |
| 79 | FieldDescriptorProto_Label_LABEL_REQUIRED = 2, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 80 | FieldDescriptorProto_Label_LABEL_REPEATED = 3 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 81 | }; |
| 82 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor(); |
| 83 | LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value); |
| 84 | const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL; |
| 85 | const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED; |
| 86 | |
| 87 | enum FileOptions_OptimizeMode { |
| 88 | FileOptions_OptimizeMode_SPEED = 1, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 89 | FileOptions_OptimizeMode_CODE_SIZE = 2 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 90 | }; |
| 91 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor(); |
| 92 | LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value); |
| 93 | const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED; |
| 94 | const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_CODE_SIZE; |
| 95 | |
| 96 | enum FieldOptions_CType { |
| 97 | FieldOptions_CType_CORD = 1, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 98 | FieldOptions_CType_STRING_PIECE = 2 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 99 | }; |
| 100 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor(); |
| 101 | LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value); |
| 102 | const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_CORD; |
| 103 | const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE; |
| 104 | |
| 105 | // =================================================================== |
| 106 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 107 | class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message { |
| 108 | public: |
| 109 | FileDescriptorSet(); |
| 110 | virtual ~FileDescriptorSet(); |
| 111 | |
| 112 | FileDescriptorSet(const FileDescriptorSet& from); |
| 113 | |
| 114 | inline FileDescriptorSet& operator=(const FileDescriptorSet& from) { |
| 115 | CopyFrom(from); |
| 116 | return *this; |
| 117 | } |
| 118 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 119 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 120 | return _unknown_fields_; |
| 121 | } |
| 122 | |
| 123 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 124 | return &_unknown_fields_; |
| 125 | } |
| 126 | |
| 127 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 128 | static const FileDescriptorSet& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 129 | void Swap(FileDescriptorSet* other); |
| 130 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 131 | // implements Message ---------------------------------------------- |
| 132 | |
| 133 | FileDescriptorSet* New() const; |
| 134 | void CopyFrom(const ::google::protobuf::Message& from); |
| 135 | void MergeFrom(const ::google::protobuf::Message& from); |
| 136 | void CopyFrom(const FileDescriptorSet& from); |
| 137 | void MergeFrom(const FileDescriptorSet& from); |
| 138 | void Clear(); |
| 139 | bool IsInitialized() const; |
| 140 | int ByteSize() const; |
| 141 | |
| 142 | bool MergePartialFromCodedStream( |
| 143 | ::google::protobuf::io::CodedInputStream* input); |
| 144 | bool SerializeWithCachedSizes( |
| 145 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 146 | int GetCachedSize() const { return _cached_size_; } |
| 147 | private: |
| 148 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 149 | public: |
| 150 | |
| 151 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
| 152 | const ::google::protobuf::Reflection* GetReflection() const; |
| 153 | |
| 154 | // nested types ---------------------------------------------------- |
| 155 | |
| 156 | // accessors ------------------------------------------------------- |
| 157 | |
| 158 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 159 | inline int file_size() const; |
| 160 | inline void clear_file(); |
| 161 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& file() const; |
| 162 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* mutable_file(); |
| 163 | inline const ::google::protobuf::FileDescriptorProto& file(int index) const; |
| 164 | inline ::google::protobuf::FileDescriptorProto* mutable_file(int index); |
| 165 | inline ::google::protobuf::FileDescriptorProto* add_file(); |
| 166 | |
| 167 | private: |
| 168 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
| 169 | mutable int _cached_size_; |
| 170 | |
| 171 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 172 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 173 | const ::google::protobuf::FileDescriptor* file); |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 174 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 175 | |
| 176 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 177 | inline bool _has_bit(int index) const { |
| 178 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 179 | } |
| 180 | inline void _set_bit(int index) { |
| 181 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 182 | } |
| 183 | inline void _clear_bit(int index) { |
| 184 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 185 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 186 | |
| 187 | void InitAsDefaultInstance(); |
| 188 | static FileDescriptorSet* default_instance_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 189 | }; |
| 190 | // ------------------------------------------------------------------- |
| 191 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 192 | class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message { |
| 193 | public: |
| 194 | FileDescriptorProto(); |
| 195 | virtual ~FileDescriptorProto(); |
| 196 | |
| 197 | FileDescriptorProto(const FileDescriptorProto& from); |
| 198 | |
| 199 | inline FileDescriptorProto& operator=(const FileDescriptorProto& from) { |
| 200 | CopyFrom(from); |
| 201 | return *this; |
| 202 | } |
| 203 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 204 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 205 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 206 | } |
| 207 | |
| 208 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 209 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 213 | static const FileDescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 214 | void Swap(FileDescriptorProto* other); |
| 215 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 216 | // implements Message ---------------------------------------------- |
| 217 | |
| 218 | FileDescriptorProto* New() const; |
| 219 | void CopyFrom(const ::google::protobuf::Message& from); |
| 220 | void MergeFrom(const ::google::protobuf::Message& from); |
| 221 | void CopyFrom(const FileDescriptorProto& from); |
| 222 | void MergeFrom(const FileDescriptorProto& from); |
| 223 | void Clear(); |
| 224 | bool IsInitialized() const; |
| 225 | int ByteSize() const; |
| 226 | |
| 227 | bool MergePartialFromCodedStream( |
| 228 | ::google::protobuf::io::CodedInputStream* input); |
| 229 | bool SerializeWithCachedSizes( |
| 230 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 231 | int GetCachedSize() const { return _cached_size_; } |
| 232 | private: |
| 233 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 234 | public: |
| 235 | |
| 236 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 237 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 238 | |
| 239 | // nested types ---------------------------------------------------- |
| 240 | |
| 241 | // accessors ------------------------------------------------------- |
| 242 | |
| 243 | // optional string name = 1; |
| 244 | inline bool has_name() const; |
| 245 | inline void clear_name(); |
| 246 | inline const ::std::string& name() const; |
| 247 | inline void set_name(const ::std::string& value); |
| 248 | inline void set_name(const char* value); |
| 249 | inline ::std::string* mutable_name(); |
| 250 | |
| 251 | // optional string package = 2; |
| 252 | inline bool has_package() const; |
| 253 | inline void clear_package(); |
| 254 | inline const ::std::string& package() const; |
| 255 | inline void set_package(const ::std::string& value); |
| 256 | inline void set_package(const char* value); |
| 257 | inline ::std::string* mutable_package(); |
| 258 | |
| 259 | // repeated string dependency = 3; |
| 260 | inline int dependency_size() const; |
| 261 | inline void clear_dependency(); |
| 262 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const; |
| 263 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency(); |
| 264 | inline const ::std::string& dependency(int index) const; |
| 265 | inline ::std::string* mutable_dependency(int index); |
| 266 | inline void set_dependency(int index, const ::std::string& value); |
temporal | f206351 | 2008-07-23 01:19:07 +0000 | [diff] [blame] | 267 | inline void set_dependency(int index, const char* value); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 268 | inline ::std::string* add_dependency(); |
| 269 | inline void add_dependency(const ::std::string& value); |
| 270 | inline void add_dependency(const char* value); |
| 271 | |
| 272 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 273 | inline int message_type_size() const; |
| 274 | inline void clear_message_type(); |
| 275 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& message_type() const; |
| 276 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* mutable_message_type(); |
| 277 | inline const ::google::protobuf::DescriptorProto& message_type(int index) const; |
| 278 | inline ::google::protobuf::DescriptorProto* mutable_message_type(int index); |
| 279 | inline ::google::protobuf::DescriptorProto* add_message_type(); |
| 280 | |
| 281 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 282 | inline int enum_type_size() const; |
| 283 | inline void clear_enum_type(); |
| 284 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& enum_type() const; |
| 285 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* mutable_enum_type(); |
| 286 | inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const; |
| 287 | inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index); |
| 288 | inline ::google::protobuf::EnumDescriptorProto* add_enum_type(); |
| 289 | |
| 290 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 291 | inline int service_size() const; |
| 292 | inline void clear_service(); |
| 293 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >& service() const; |
| 294 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >* mutable_service(); |
| 295 | inline const ::google::protobuf::ServiceDescriptorProto& service(int index) const; |
| 296 | inline ::google::protobuf::ServiceDescriptorProto* mutable_service(int index); |
| 297 | inline ::google::protobuf::ServiceDescriptorProto* add_service(); |
| 298 | |
| 299 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 300 | inline int extension_size() const; |
| 301 | inline void clear_extension(); |
| 302 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& extension() const; |
| 303 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* mutable_extension(); |
| 304 | inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const; |
| 305 | inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index); |
| 306 | inline ::google::protobuf::FieldDescriptorProto* add_extension(); |
| 307 | |
| 308 | // optional .google.protobuf.FileOptions options = 8; |
| 309 | inline bool has_options() const; |
| 310 | inline void clear_options(); |
| 311 | inline const ::google::protobuf::FileOptions& options() const; |
| 312 | inline ::google::protobuf::FileOptions* mutable_options(); |
| 313 | |
| 314 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 315 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 316 | mutable int _cached_size_; |
| 317 | |
| 318 | ::std::string* name_; |
| 319 | static const ::std::string _default_name_; |
| 320 | ::std::string* package_; |
| 321 | static const ::std::string _default_package_; |
| 322 | ::google::protobuf::RepeatedPtrField< ::std::string> dependency_; |
| 323 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_; |
| 324 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_; |
| 325 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_; |
| 326 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_; |
| 327 | ::google::protobuf::FileOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 328 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 329 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 330 | ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; |
| 331 | |
| 332 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 333 | inline bool _has_bit(int index) const { |
| 334 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 335 | } |
| 336 | inline void _set_bit(int index) { |
| 337 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 338 | } |
| 339 | inline void _clear_bit(int index) { |
| 340 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 341 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 342 | |
| 343 | void InitAsDefaultInstance(); |
| 344 | static FileDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 345 | }; |
| 346 | // ------------------------------------------------------------------- |
| 347 | |
| 348 | class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message { |
| 349 | public: |
| 350 | DescriptorProto_ExtensionRange(); |
| 351 | virtual ~DescriptorProto_ExtensionRange(); |
| 352 | |
| 353 | DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from); |
| 354 | |
| 355 | inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) { |
| 356 | CopyFrom(from); |
| 357 | return *this; |
| 358 | } |
| 359 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 360 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 361 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 362 | } |
| 363 | |
| 364 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 365 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 366 | } |
| 367 | |
| 368 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 369 | static const DescriptorProto_ExtensionRange& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 370 | void Swap(DescriptorProto_ExtensionRange* other); |
| 371 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 372 | // implements Message ---------------------------------------------- |
| 373 | |
| 374 | DescriptorProto_ExtensionRange* New() const; |
| 375 | void CopyFrom(const ::google::protobuf::Message& from); |
| 376 | void MergeFrom(const ::google::protobuf::Message& from); |
| 377 | void CopyFrom(const DescriptorProto_ExtensionRange& from); |
| 378 | void MergeFrom(const DescriptorProto_ExtensionRange& from); |
| 379 | void Clear(); |
| 380 | bool IsInitialized() const; |
| 381 | int ByteSize() const; |
| 382 | |
| 383 | bool MergePartialFromCodedStream( |
| 384 | ::google::protobuf::io::CodedInputStream* input); |
| 385 | bool SerializeWithCachedSizes( |
| 386 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 387 | int GetCachedSize() const { return _cached_size_; } |
| 388 | private: |
| 389 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 390 | public: |
| 391 | |
| 392 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 393 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 394 | |
| 395 | // nested types ---------------------------------------------------- |
| 396 | |
| 397 | // accessors ------------------------------------------------------- |
| 398 | |
| 399 | // optional int32 start = 1; |
| 400 | inline bool has_start() const; |
| 401 | inline void clear_start(); |
| 402 | inline ::google::protobuf::int32 start() const; |
| 403 | inline void set_start(::google::protobuf::int32 value); |
| 404 | |
| 405 | // optional int32 end = 2; |
| 406 | inline bool has_end() const; |
| 407 | inline void clear_end(); |
| 408 | inline ::google::protobuf::int32 end() const; |
| 409 | inline void set_end(::google::protobuf::int32 value); |
| 410 | |
| 411 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 412 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 413 | mutable int _cached_size_; |
| 414 | |
| 415 | ::google::protobuf::int32 start_; |
| 416 | ::google::protobuf::int32 end_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 417 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 418 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 419 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
| 420 | |
| 421 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 422 | inline bool _has_bit(int index) const { |
| 423 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 424 | } |
| 425 | inline void _set_bit(int index) { |
| 426 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 427 | } |
| 428 | inline void _clear_bit(int index) { |
| 429 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 430 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 431 | |
| 432 | void InitAsDefaultInstance(); |
| 433 | static DescriptorProto_ExtensionRange* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 434 | }; |
| 435 | // ------------------------------------------------------------------- |
| 436 | |
| 437 | class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message { |
| 438 | public: |
| 439 | DescriptorProto(); |
| 440 | virtual ~DescriptorProto(); |
| 441 | |
| 442 | DescriptorProto(const DescriptorProto& from); |
| 443 | |
| 444 | inline DescriptorProto& operator=(const DescriptorProto& from) { |
| 445 | CopyFrom(from); |
| 446 | return *this; |
| 447 | } |
| 448 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 449 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 450 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 451 | } |
| 452 | |
| 453 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 454 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 455 | } |
| 456 | |
| 457 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 458 | static const DescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 459 | void Swap(DescriptorProto* other); |
| 460 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 461 | // implements Message ---------------------------------------------- |
| 462 | |
| 463 | DescriptorProto* New() const; |
| 464 | void CopyFrom(const ::google::protobuf::Message& from); |
| 465 | void MergeFrom(const ::google::protobuf::Message& from); |
| 466 | void CopyFrom(const DescriptorProto& from); |
| 467 | void MergeFrom(const DescriptorProto& from); |
| 468 | void Clear(); |
| 469 | bool IsInitialized() const; |
| 470 | int ByteSize() const; |
| 471 | |
| 472 | bool MergePartialFromCodedStream( |
| 473 | ::google::protobuf::io::CodedInputStream* input); |
| 474 | bool SerializeWithCachedSizes( |
| 475 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 476 | int GetCachedSize() const { return _cached_size_; } |
| 477 | private: |
| 478 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 479 | public: |
| 480 | |
| 481 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 482 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 483 | |
| 484 | // nested types ---------------------------------------------------- |
| 485 | |
| 486 | typedef DescriptorProto_ExtensionRange ExtensionRange; |
| 487 | |
| 488 | // accessors ------------------------------------------------------- |
| 489 | |
| 490 | // optional string name = 1; |
| 491 | inline bool has_name() const; |
| 492 | inline void clear_name(); |
| 493 | inline const ::std::string& name() const; |
| 494 | inline void set_name(const ::std::string& value); |
| 495 | inline void set_name(const char* value); |
| 496 | inline ::std::string* mutable_name(); |
| 497 | |
| 498 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 499 | inline int field_size() const; |
| 500 | inline void clear_field(); |
| 501 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& field() const; |
| 502 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* mutable_field(); |
| 503 | inline const ::google::protobuf::FieldDescriptorProto& field(int index) const; |
| 504 | inline ::google::protobuf::FieldDescriptorProto* mutable_field(int index); |
| 505 | inline ::google::protobuf::FieldDescriptorProto* add_field(); |
| 506 | |
| 507 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 508 | inline int extension_size() const; |
| 509 | inline void clear_extension(); |
| 510 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& extension() const; |
| 511 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* mutable_extension(); |
| 512 | inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const; |
| 513 | inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index); |
| 514 | inline ::google::protobuf::FieldDescriptorProto* add_extension(); |
| 515 | |
| 516 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 517 | inline int nested_type_size() const; |
| 518 | inline void clear_nested_type(); |
| 519 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& nested_type() const; |
| 520 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* mutable_nested_type(); |
| 521 | inline const ::google::protobuf::DescriptorProto& nested_type(int index) const; |
| 522 | inline ::google::protobuf::DescriptorProto* mutable_nested_type(int index); |
| 523 | inline ::google::protobuf::DescriptorProto* add_nested_type(); |
| 524 | |
| 525 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 526 | inline int enum_type_size() const; |
| 527 | inline void clear_enum_type(); |
| 528 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& enum_type() const; |
| 529 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* mutable_enum_type(); |
| 530 | inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const; |
| 531 | inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index); |
| 532 | inline ::google::protobuf::EnumDescriptorProto* add_enum_type(); |
| 533 | |
| 534 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 535 | inline int extension_range_size() const; |
| 536 | inline void clear_extension_range(); |
| 537 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >& extension_range() const; |
| 538 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >* mutable_extension_range(); |
| 539 | inline const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const; |
| 540 | inline ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index); |
| 541 | inline ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range(); |
| 542 | |
| 543 | // optional .google.protobuf.MessageOptions options = 7; |
| 544 | inline bool has_options() const; |
| 545 | inline void clear_options(); |
| 546 | inline const ::google::protobuf::MessageOptions& options() const; |
| 547 | inline ::google::protobuf::MessageOptions* mutable_options(); |
| 548 | |
| 549 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 550 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 551 | mutable int _cached_size_; |
| 552 | |
| 553 | ::std::string* name_; |
| 554 | static const ::std::string _default_name_; |
| 555 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_; |
| 556 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_; |
| 557 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_; |
| 558 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_; |
| 559 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_; |
| 560 | ::google::protobuf::MessageOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 561 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 562 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 563 | ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; |
| 564 | |
| 565 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 566 | inline bool _has_bit(int index) const { |
| 567 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 568 | } |
| 569 | inline void _set_bit(int index) { |
| 570 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 571 | } |
| 572 | inline void _clear_bit(int index) { |
| 573 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 574 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 575 | |
| 576 | void InitAsDefaultInstance(); |
| 577 | static DescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 578 | }; |
| 579 | // ------------------------------------------------------------------- |
| 580 | |
| 581 | class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message { |
| 582 | public: |
| 583 | FieldDescriptorProto(); |
| 584 | virtual ~FieldDescriptorProto(); |
| 585 | |
| 586 | FieldDescriptorProto(const FieldDescriptorProto& from); |
| 587 | |
| 588 | inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) { |
| 589 | CopyFrom(from); |
| 590 | return *this; |
| 591 | } |
| 592 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 593 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 594 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 595 | } |
| 596 | |
| 597 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 598 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 599 | } |
| 600 | |
| 601 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 602 | static const FieldDescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 603 | void Swap(FieldDescriptorProto* other); |
| 604 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 605 | // implements Message ---------------------------------------------- |
| 606 | |
| 607 | FieldDescriptorProto* New() const; |
| 608 | void CopyFrom(const ::google::protobuf::Message& from); |
| 609 | void MergeFrom(const ::google::protobuf::Message& from); |
| 610 | void CopyFrom(const FieldDescriptorProto& from); |
| 611 | void MergeFrom(const FieldDescriptorProto& from); |
| 612 | void Clear(); |
| 613 | bool IsInitialized() const; |
| 614 | int ByteSize() const; |
| 615 | |
| 616 | bool MergePartialFromCodedStream( |
| 617 | ::google::protobuf::io::CodedInputStream* input); |
| 618 | bool SerializeWithCachedSizes( |
| 619 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 620 | int GetCachedSize() const { return _cached_size_; } |
| 621 | private: |
| 622 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 623 | public: |
| 624 | |
| 625 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 626 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 627 | |
| 628 | // nested types ---------------------------------------------------- |
| 629 | |
| 630 | typedef FieldDescriptorProto_Type Type; |
| 631 | static const Type TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE; |
| 632 | static const Type TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT; |
| 633 | static const Type TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64; |
| 634 | static const Type TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64; |
| 635 | static const Type TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32; |
| 636 | static const Type TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64; |
| 637 | static const Type TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32; |
| 638 | static const Type TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL; |
| 639 | static const Type TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING; |
| 640 | static const Type TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP; |
| 641 | static const Type TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE; |
| 642 | static const Type TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES; |
| 643 | static const Type TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32; |
| 644 | static const Type TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM; |
| 645 | static const Type TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32; |
| 646 | static const Type TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64; |
| 647 | static const Type TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32; |
| 648 | static const Type TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64; |
| 649 | static inline const ::google::protobuf::EnumDescriptor* |
| 650 | Type_descriptor() { |
| 651 | return FieldDescriptorProto_Type_descriptor(); |
| 652 | } |
| 653 | static inline bool Type_IsValid(int value) { |
| 654 | return FieldDescriptorProto_Type_IsValid(value); |
| 655 | } |
| 656 | static const Type Type_MIN = |
| 657 | FieldDescriptorProto_Type_Type_MIN; |
| 658 | static const Type Type_MAX = |
| 659 | FieldDescriptorProto_Type_Type_MAX; |
| 660 | |
| 661 | typedef FieldDescriptorProto_Label Label; |
| 662 | static const Label LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL; |
| 663 | static const Label LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED; |
| 664 | static const Label LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED; |
| 665 | static inline const ::google::protobuf::EnumDescriptor* |
| 666 | Label_descriptor() { |
| 667 | return FieldDescriptorProto_Label_descriptor(); |
| 668 | } |
| 669 | static inline bool Label_IsValid(int value) { |
| 670 | return FieldDescriptorProto_Label_IsValid(value); |
| 671 | } |
| 672 | static const Label Label_MIN = |
| 673 | FieldDescriptorProto_Label_Label_MIN; |
| 674 | static const Label Label_MAX = |
| 675 | FieldDescriptorProto_Label_Label_MAX; |
| 676 | |
| 677 | // accessors ------------------------------------------------------- |
| 678 | |
| 679 | // optional string name = 1; |
| 680 | inline bool has_name() const; |
| 681 | inline void clear_name(); |
| 682 | inline const ::std::string& name() const; |
| 683 | inline void set_name(const ::std::string& value); |
| 684 | inline void set_name(const char* value); |
| 685 | inline ::std::string* mutable_name(); |
| 686 | |
| 687 | // optional int32 number = 3; |
| 688 | inline bool has_number() const; |
| 689 | inline void clear_number(); |
| 690 | inline ::google::protobuf::int32 number() const; |
| 691 | inline void set_number(::google::protobuf::int32 value); |
| 692 | |
| 693 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 694 | inline bool has_label() const; |
| 695 | inline void clear_label(); |
| 696 | inline ::google::protobuf::FieldDescriptorProto_Label label() const; |
| 697 | inline void set_label(::google::protobuf::FieldDescriptorProto_Label value); |
| 698 | |
| 699 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 700 | inline bool has_type() const; |
| 701 | inline void clear_type(); |
| 702 | inline ::google::protobuf::FieldDescriptorProto_Type type() const; |
| 703 | inline void set_type(::google::protobuf::FieldDescriptorProto_Type value); |
| 704 | |
| 705 | // optional string type_name = 6; |
| 706 | inline bool has_type_name() const; |
| 707 | inline void clear_type_name(); |
| 708 | inline const ::std::string& type_name() const; |
| 709 | inline void set_type_name(const ::std::string& value); |
| 710 | inline void set_type_name(const char* value); |
| 711 | inline ::std::string* mutable_type_name(); |
| 712 | |
| 713 | // optional string extendee = 2; |
| 714 | inline bool has_extendee() const; |
| 715 | inline void clear_extendee(); |
| 716 | inline const ::std::string& extendee() const; |
| 717 | inline void set_extendee(const ::std::string& value); |
| 718 | inline void set_extendee(const char* value); |
| 719 | inline ::std::string* mutable_extendee(); |
| 720 | |
| 721 | // optional string default_value = 7; |
| 722 | inline bool has_default_value() const; |
| 723 | inline void clear_default_value(); |
| 724 | inline const ::std::string& default_value() const; |
| 725 | inline void set_default_value(const ::std::string& value); |
| 726 | inline void set_default_value(const char* value); |
| 727 | inline ::std::string* mutable_default_value(); |
| 728 | |
| 729 | // optional .google.protobuf.FieldOptions options = 8; |
| 730 | inline bool has_options() const; |
| 731 | inline void clear_options(); |
| 732 | inline const ::google::protobuf::FieldOptions& options() const; |
| 733 | inline ::google::protobuf::FieldOptions* mutable_options(); |
| 734 | |
| 735 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 736 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 737 | mutable int _cached_size_; |
| 738 | |
| 739 | ::std::string* name_; |
| 740 | static const ::std::string _default_name_; |
| 741 | ::google::protobuf::int32 number_; |
| 742 | int label_; |
| 743 | int type_; |
| 744 | ::std::string* type_name_; |
| 745 | static const ::std::string _default_type_name_; |
| 746 | ::std::string* extendee_; |
| 747 | static const ::std::string _default_extendee_; |
| 748 | ::std::string* default_value_; |
| 749 | static const ::std::string _default_default_value_; |
| 750 | ::google::protobuf::FieldOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 751 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 752 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 753 | ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; |
| 754 | |
| 755 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 756 | inline bool _has_bit(int index) const { |
| 757 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 758 | } |
| 759 | inline void _set_bit(int index) { |
| 760 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 761 | } |
| 762 | inline void _clear_bit(int index) { |
| 763 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 764 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 765 | |
| 766 | void InitAsDefaultInstance(); |
| 767 | static FieldDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 768 | }; |
| 769 | // ------------------------------------------------------------------- |
| 770 | |
| 771 | class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message { |
| 772 | public: |
| 773 | EnumDescriptorProto(); |
| 774 | virtual ~EnumDescriptorProto(); |
| 775 | |
| 776 | EnumDescriptorProto(const EnumDescriptorProto& from); |
| 777 | |
| 778 | inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) { |
| 779 | CopyFrom(from); |
| 780 | return *this; |
| 781 | } |
| 782 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 783 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 784 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 785 | } |
| 786 | |
| 787 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 788 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 789 | } |
| 790 | |
| 791 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 792 | static const EnumDescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 793 | void Swap(EnumDescriptorProto* other); |
| 794 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 795 | // implements Message ---------------------------------------------- |
| 796 | |
| 797 | EnumDescriptorProto* New() const; |
| 798 | void CopyFrom(const ::google::protobuf::Message& from); |
| 799 | void MergeFrom(const ::google::protobuf::Message& from); |
| 800 | void CopyFrom(const EnumDescriptorProto& from); |
| 801 | void MergeFrom(const EnumDescriptorProto& from); |
| 802 | void Clear(); |
| 803 | bool IsInitialized() const; |
| 804 | int ByteSize() const; |
| 805 | |
| 806 | bool MergePartialFromCodedStream( |
| 807 | ::google::protobuf::io::CodedInputStream* input); |
| 808 | bool SerializeWithCachedSizes( |
| 809 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 810 | int GetCachedSize() const { return _cached_size_; } |
| 811 | private: |
| 812 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 813 | public: |
| 814 | |
| 815 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 816 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 817 | |
| 818 | // nested types ---------------------------------------------------- |
| 819 | |
| 820 | // accessors ------------------------------------------------------- |
| 821 | |
| 822 | // optional string name = 1; |
| 823 | inline bool has_name() const; |
| 824 | inline void clear_name(); |
| 825 | inline const ::std::string& name() const; |
| 826 | inline void set_name(const ::std::string& value); |
| 827 | inline void set_name(const char* value); |
| 828 | inline ::std::string* mutable_name(); |
| 829 | |
| 830 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 831 | inline int value_size() const; |
| 832 | inline void clear_value(); |
| 833 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >& value() const; |
| 834 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >* mutable_value(); |
| 835 | inline const ::google::protobuf::EnumValueDescriptorProto& value(int index) const; |
| 836 | inline ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index); |
| 837 | inline ::google::protobuf::EnumValueDescriptorProto* add_value(); |
| 838 | |
| 839 | // optional .google.protobuf.EnumOptions options = 3; |
| 840 | inline bool has_options() const; |
| 841 | inline void clear_options(); |
| 842 | inline const ::google::protobuf::EnumOptions& options() const; |
| 843 | inline ::google::protobuf::EnumOptions* mutable_options(); |
| 844 | |
| 845 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 846 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 847 | mutable int _cached_size_; |
| 848 | |
| 849 | ::std::string* name_; |
| 850 | static const ::std::string _default_name_; |
| 851 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_; |
| 852 | ::google::protobuf::EnumOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 853 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 854 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 855 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 856 | |
| 857 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 858 | inline bool _has_bit(int index) const { |
| 859 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 860 | } |
| 861 | inline void _set_bit(int index) { |
| 862 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 863 | } |
| 864 | inline void _clear_bit(int index) { |
| 865 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 866 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 867 | |
| 868 | void InitAsDefaultInstance(); |
| 869 | static EnumDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 870 | }; |
| 871 | // ------------------------------------------------------------------- |
| 872 | |
| 873 | class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message { |
| 874 | public: |
| 875 | EnumValueDescriptorProto(); |
| 876 | virtual ~EnumValueDescriptorProto(); |
| 877 | |
| 878 | EnumValueDescriptorProto(const EnumValueDescriptorProto& from); |
| 879 | |
| 880 | inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) { |
| 881 | CopyFrom(from); |
| 882 | return *this; |
| 883 | } |
| 884 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 885 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 886 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 887 | } |
| 888 | |
| 889 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 890 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 891 | } |
| 892 | |
| 893 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 894 | static const EnumValueDescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 895 | void Swap(EnumValueDescriptorProto* other); |
| 896 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 897 | // implements Message ---------------------------------------------- |
| 898 | |
| 899 | EnumValueDescriptorProto* New() const; |
| 900 | void CopyFrom(const ::google::protobuf::Message& from); |
| 901 | void MergeFrom(const ::google::protobuf::Message& from); |
| 902 | void CopyFrom(const EnumValueDescriptorProto& from); |
| 903 | void MergeFrom(const EnumValueDescriptorProto& from); |
| 904 | void Clear(); |
| 905 | bool IsInitialized() const; |
| 906 | int ByteSize() const; |
| 907 | |
| 908 | bool MergePartialFromCodedStream( |
| 909 | ::google::protobuf::io::CodedInputStream* input); |
| 910 | bool SerializeWithCachedSizes( |
| 911 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 912 | int GetCachedSize() const { return _cached_size_; } |
| 913 | private: |
| 914 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 915 | public: |
| 916 | |
| 917 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 918 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 919 | |
| 920 | // nested types ---------------------------------------------------- |
| 921 | |
| 922 | // accessors ------------------------------------------------------- |
| 923 | |
| 924 | // optional string name = 1; |
| 925 | inline bool has_name() const; |
| 926 | inline void clear_name(); |
| 927 | inline const ::std::string& name() const; |
| 928 | inline void set_name(const ::std::string& value); |
| 929 | inline void set_name(const char* value); |
| 930 | inline ::std::string* mutable_name(); |
| 931 | |
| 932 | // optional int32 number = 2; |
| 933 | inline bool has_number() const; |
| 934 | inline void clear_number(); |
| 935 | inline ::google::protobuf::int32 number() const; |
| 936 | inline void set_number(::google::protobuf::int32 value); |
| 937 | |
| 938 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 939 | inline bool has_options() const; |
| 940 | inline void clear_options(); |
| 941 | inline const ::google::protobuf::EnumValueOptions& options() const; |
| 942 | inline ::google::protobuf::EnumValueOptions* mutable_options(); |
| 943 | |
| 944 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 945 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 946 | mutable int _cached_size_; |
| 947 | |
| 948 | ::std::string* name_; |
| 949 | static const ::std::string _default_name_; |
| 950 | ::google::protobuf::int32 number_; |
| 951 | ::google::protobuf::EnumValueOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 952 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 953 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 954 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 955 | |
| 956 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 957 | inline bool _has_bit(int index) const { |
| 958 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 959 | } |
| 960 | inline void _set_bit(int index) { |
| 961 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 962 | } |
| 963 | inline void _clear_bit(int index) { |
| 964 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 965 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 966 | |
| 967 | void InitAsDefaultInstance(); |
| 968 | static EnumValueDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 969 | }; |
| 970 | // ------------------------------------------------------------------- |
| 971 | |
| 972 | class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message { |
| 973 | public: |
| 974 | ServiceDescriptorProto(); |
| 975 | virtual ~ServiceDescriptorProto(); |
| 976 | |
| 977 | ServiceDescriptorProto(const ServiceDescriptorProto& from); |
| 978 | |
| 979 | inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) { |
| 980 | CopyFrom(from); |
| 981 | return *this; |
| 982 | } |
| 983 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 984 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 985 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 986 | } |
| 987 | |
| 988 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 989 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 990 | } |
| 991 | |
| 992 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 993 | static const ServiceDescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 994 | void Swap(ServiceDescriptorProto* other); |
| 995 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 996 | // implements Message ---------------------------------------------- |
| 997 | |
| 998 | ServiceDescriptorProto* New() const; |
| 999 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1000 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1001 | void CopyFrom(const ServiceDescriptorProto& from); |
| 1002 | void MergeFrom(const ServiceDescriptorProto& from); |
| 1003 | void Clear(); |
| 1004 | bool IsInitialized() const; |
| 1005 | int ByteSize() const; |
| 1006 | |
| 1007 | bool MergePartialFromCodedStream( |
| 1008 | ::google::protobuf::io::CodedInputStream* input); |
| 1009 | bool SerializeWithCachedSizes( |
| 1010 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1011 | int GetCachedSize() const { return _cached_size_; } |
| 1012 | private: |
| 1013 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1014 | public: |
| 1015 | |
| 1016 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1017 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1018 | |
| 1019 | // nested types ---------------------------------------------------- |
| 1020 | |
| 1021 | // accessors ------------------------------------------------------- |
| 1022 | |
| 1023 | // optional string name = 1; |
| 1024 | inline bool has_name() const; |
| 1025 | inline void clear_name(); |
| 1026 | inline const ::std::string& name() const; |
| 1027 | inline void set_name(const ::std::string& value); |
| 1028 | inline void set_name(const char* value); |
| 1029 | inline ::std::string* mutable_name(); |
| 1030 | |
| 1031 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 1032 | inline int method_size() const; |
| 1033 | inline void clear_method(); |
| 1034 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >& method() const; |
| 1035 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >* mutable_method(); |
| 1036 | inline const ::google::protobuf::MethodDescriptorProto& method(int index) const; |
| 1037 | inline ::google::protobuf::MethodDescriptorProto* mutable_method(int index); |
| 1038 | inline ::google::protobuf::MethodDescriptorProto* add_method(); |
| 1039 | |
| 1040 | // optional .google.protobuf.ServiceOptions options = 3; |
| 1041 | inline bool has_options() const; |
| 1042 | inline void clear_options(); |
| 1043 | inline const ::google::protobuf::ServiceOptions& options() const; |
| 1044 | inline ::google::protobuf::ServiceOptions* mutable_options(); |
| 1045 | |
| 1046 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1047 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1048 | mutable int _cached_size_; |
| 1049 | |
| 1050 | ::std::string* name_; |
| 1051 | static const ::std::string _default_name_; |
| 1052 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_; |
| 1053 | ::google::protobuf::ServiceOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1054 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 1055 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1056 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 1057 | |
| 1058 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 1059 | inline bool _has_bit(int index) const { |
| 1060 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 1061 | } |
| 1062 | inline void _set_bit(int index) { |
| 1063 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 1064 | } |
| 1065 | inline void _clear_bit(int index) { |
| 1066 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 1067 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1068 | |
| 1069 | void InitAsDefaultInstance(); |
| 1070 | static ServiceDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1071 | }; |
| 1072 | // ------------------------------------------------------------------- |
| 1073 | |
| 1074 | class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message { |
| 1075 | public: |
| 1076 | MethodDescriptorProto(); |
| 1077 | virtual ~MethodDescriptorProto(); |
| 1078 | |
| 1079 | MethodDescriptorProto(const MethodDescriptorProto& from); |
| 1080 | |
| 1081 | inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) { |
| 1082 | CopyFrom(from); |
| 1083 | return *this; |
| 1084 | } |
| 1085 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1086 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1087 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1088 | } |
| 1089 | |
| 1090 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1091 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1092 | } |
| 1093 | |
| 1094 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1095 | static const MethodDescriptorProto& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1096 | void Swap(MethodDescriptorProto* other); |
| 1097 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1098 | // implements Message ---------------------------------------------- |
| 1099 | |
| 1100 | MethodDescriptorProto* New() const; |
| 1101 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1102 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1103 | void CopyFrom(const MethodDescriptorProto& from); |
| 1104 | void MergeFrom(const MethodDescriptorProto& from); |
| 1105 | void Clear(); |
| 1106 | bool IsInitialized() const; |
| 1107 | int ByteSize() const; |
| 1108 | |
| 1109 | bool MergePartialFromCodedStream( |
| 1110 | ::google::protobuf::io::CodedInputStream* input); |
| 1111 | bool SerializeWithCachedSizes( |
| 1112 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1113 | int GetCachedSize() const { return _cached_size_; } |
| 1114 | private: |
| 1115 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1116 | public: |
| 1117 | |
| 1118 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1119 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1120 | |
| 1121 | // nested types ---------------------------------------------------- |
| 1122 | |
| 1123 | // accessors ------------------------------------------------------- |
| 1124 | |
| 1125 | // optional string name = 1; |
| 1126 | inline bool has_name() const; |
| 1127 | inline void clear_name(); |
| 1128 | inline const ::std::string& name() const; |
| 1129 | inline void set_name(const ::std::string& value); |
| 1130 | inline void set_name(const char* value); |
| 1131 | inline ::std::string* mutable_name(); |
| 1132 | |
| 1133 | // optional string input_type = 2; |
| 1134 | inline bool has_input_type() const; |
| 1135 | inline void clear_input_type(); |
| 1136 | inline const ::std::string& input_type() const; |
| 1137 | inline void set_input_type(const ::std::string& value); |
| 1138 | inline void set_input_type(const char* value); |
| 1139 | inline ::std::string* mutable_input_type(); |
| 1140 | |
| 1141 | // optional string output_type = 3; |
| 1142 | inline bool has_output_type() const; |
| 1143 | inline void clear_output_type(); |
| 1144 | inline const ::std::string& output_type() const; |
| 1145 | inline void set_output_type(const ::std::string& value); |
| 1146 | inline void set_output_type(const char* value); |
| 1147 | inline ::std::string* mutable_output_type(); |
| 1148 | |
| 1149 | // optional .google.protobuf.MethodOptions options = 4; |
| 1150 | inline bool has_options() const; |
| 1151 | inline void clear_options(); |
| 1152 | inline const ::google::protobuf::MethodOptions& options() const; |
| 1153 | inline ::google::protobuf::MethodOptions* mutable_options(); |
| 1154 | |
| 1155 | private: |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1156 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1157 | mutable int _cached_size_; |
| 1158 | |
| 1159 | ::std::string* name_; |
| 1160 | static const ::std::string _default_name_; |
| 1161 | ::std::string* input_type_; |
| 1162 | static const ::std::string _default_input_type_; |
| 1163 | ::std::string* output_type_; |
| 1164 | static const ::std::string _default_output_type_; |
| 1165 | ::google::protobuf::MethodOptions* options_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1166 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 1167 | const ::google::protobuf::FileDescriptor* file); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1168 | ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; |
| 1169 | |
| 1170 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 1171 | inline bool _has_bit(int index) const { |
| 1172 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 1173 | } |
| 1174 | inline void _set_bit(int index) { |
| 1175 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 1176 | } |
| 1177 | inline void _clear_bit(int index) { |
| 1178 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 1179 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1180 | |
| 1181 | void InitAsDefaultInstance(); |
| 1182 | static MethodDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1183 | }; |
| 1184 | // ------------------------------------------------------------------- |
| 1185 | |
| 1186 | class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message { |
| 1187 | public: |
| 1188 | FileOptions(); |
| 1189 | virtual ~FileOptions(); |
| 1190 | |
| 1191 | FileOptions(const FileOptions& from); |
| 1192 | |
| 1193 | inline FileOptions& operator=(const FileOptions& from) { |
| 1194 | CopyFrom(from); |
| 1195 | return *this; |
| 1196 | } |
| 1197 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1198 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1199 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1200 | } |
| 1201 | |
| 1202 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1203 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1204 | } |
| 1205 | |
| 1206 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1207 | static const FileOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1208 | void Swap(FileOptions* other); |
| 1209 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1210 | // implements Message ---------------------------------------------- |
| 1211 | |
| 1212 | FileOptions* New() const; |
| 1213 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1214 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1215 | void CopyFrom(const FileOptions& from); |
| 1216 | void MergeFrom(const FileOptions& from); |
| 1217 | void Clear(); |
| 1218 | bool IsInitialized() const; |
| 1219 | int ByteSize() const; |
| 1220 | |
| 1221 | bool MergePartialFromCodedStream( |
| 1222 | ::google::protobuf::io::CodedInputStream* input); |
| 1223 | bool SerializeWithCachedSizes( |
| 1224 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1225 | int GetCachedSize() const { return _cached_size_; } |
| 1226 | private: |
| 1227 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1228 | public: |
| 1229 | |
| 1230 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1231 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1232 | |
| 1233 | // nested types ---------------------------------------------------- |
| 1234 | |
| 1235 | typedef FileOptions_OptimizeMode OptimizeMode; |
| 1236 | static const OptimizeMode SPEED = FileOptions_OptimizeMode_SPEED; |
| 1237 | static const OptimizeMode CODE_SIZE = FileOptions_OptimizeMode_CODE_SIZE; |
| 1238 | static inline const ::google::protobuf::EnumDescriptor* |
| 1239 | OptimizeMode_descriptor() { |
| 1240 | return FileOptions_OptimizeMode_descriptor(); |
| 1241 | } |
| 1242 | static inline bool OptimizeMode_IsValid(int value) { |
| 1243 | return FileOptions_OptimizeMode_IsValid(value); |
| 1244 | } |
| 1245 | static const OptimizeMode OptimizeMode_MIN = |
| 1246 | FileOptions_OptimizeMode_OptimizeMode_MIN; |
| 1247 | static const OptimizeMode OptimizeMode_MAX = |
| 1248 | FileOptions_OptimizeMode_OptimizeMode_MAX; |
| 1249 | |
| 1250 | // accessors ------------------------------------------------------- |
| 1251 | |
| 1252 | // optional string java_package = 1; |
| 1253 | inline bool has_java_package() const; |
| 1254 | inline void clear_java_package(); |
| 1255 | inline const ::std::string& java_package() const; |
| 1256 | inline void set_java_package(const ::std::string& value); |
| 1257 | inline void set_java_package(const char* value); |
| 1258 | inline ::std::string* mutable_java_package(); |
| 1259 | |
| 1260 | // optional string java_outer_classname = 8; |
| 1261 | inline bool has_java_outer_classname() const; |
| 1262 | inline void clear_java_outer_classname(); |
| 1263 | inline const ::std::string& java_outer_classname() const; |
| 1264 | inline void set_java_outer_classname(const ::std::string& value); |
| 1265 | inline void set_java_outer_classname(const char* value); |
| 1266 | inline ::std::string* mutable_java_outer_classname(); |
| 1267 | |
| 1268 | // optional bool java_multiple_files = 10 [default = false]; |
| 1269 | inline bool has_java_multiple_files() const; |
| 1270 | inline void clear_java_multiple_files(); |
| 1271 | inline bool java_multiple_files() const; |
| 1272 | inline void set_java_multiple_files(bool value); |
| 1273 | |
| 1274 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = CODE_SIZE]; |
| 1275 | inline bool has_optimize_for() const; |
| 1276 | inline void clear_optimize_for(); |
| 1277 | inline ::google::protobuf::FileOptions_OptimizeMode optimize_for() const; |
| 1278 | inline void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value); |
| 1279 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1280 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1281 | inline int uninterpreted_option_size() const; |
| 1282 | inline void clear_uninterpreted_option(); |
| 1283 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 1284 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 1285 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1286 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1287 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 1288 | |
| 1289 | template <typename _proto_TypeTraits> |
| 1290 | inline bool HasExtension( |
| 1291 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1292 | FileOptions, _proto_TypeTraits>& id) const { |
| 1293 | return _extensions_.Has(id.number()); |
| 1294 | } |
| 1295 | |
| 1296 | template <typename _proto_TypeTraits> |
| 1297 | inline void ClearExtension( |
| 1298 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1299 | FileOptions, _proto_TypeTraits>& id) { |
| 1300 | _extensions_.ClearExtension(id.number()); |
| 1301 | } |
| 1302 | |
| 1303 | template <typename _proto_TypeTraits> |
| 1304 | inline int ExtensionSize( |
| 1305 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1306 | FileOptions, _proto_TypeTraits>& id) const { |
| 1307 | return _extensions_.ExtensionSize(id.number()); |
| 1308 | } |
| 1309 | |
| 1310 | template <typename _proto_TypeTraits> |
| 1311 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1312 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1313 | FileOptions, _proto_TypeTraits>& id) const { |
| 1314 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 1315 | } |
| 1316 | |
| 1317 | template <typename _proto_TypeTraits> |
| 1318 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1319 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1320 | FileOptions, _proto_TypeTraits>& id) { |
| 1321 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 1322 | } |
| 1323 | |
| 1324 | template <typename _proto_TypeTraits> |
| 1325 | inline void SetExtension( |
| 1326 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1327 | FileOptions, _proto_TypeTraits>& id, |
| 1328 | typename _proto_TypeTraits::ConstType value) { |
| 1329 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 1330 | } |
| 1331 | |
| 1332 | template <typename _proto_TypeTraits> |
| 1333 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1334 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1335 | FileOptions, _proto_TypeTraits>& id, |
| 1336 | int index) const { |
| 1337 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 1338 | } |
| 1339 | |
| 1340 | template <typename _proto_TypeTraits> |
| 1341 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1342 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1343 | FileOptions, _proto_TypeTraits>& id, |
| 1344 | int index) { |
| 1345 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 1346 | } |
| 1347 | |
| 1348 | template <typename _proto_TypeTraits> |
| 1349 | inline void SetExtension( |
| 1350 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1351 | FileOptions, _proto_TypeTraits>& id, |
| 1352 | int index, typename _proto_TypeTraits::ConstType value) { |
| 1353 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 1354 | } |
| 1355 | |
| 1356 | template <typename _proto_TypeTraits> |
| 1357 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 1358 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1359 | FileOptions, _proto_TypeTraits>& id) { |
| 1360 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 1361 | } |
| 1362 | |
| 1363 | template <typename _proto_TypeTraits> |
| 1364 | inline void AddExtension( |
| 1365 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1366 | FileOptions, _proto_TypeTraits>& id, |
| 1367 | typename _proto_TypeTraits::ConstType value) { |
| 1368 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 1369 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1370 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1371 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1372 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1373 | mutable int _cached_size_; |
| 1374 | |
| 1375 | ::std::string* java_package_; |
| 1376 | static const ::std::string _default_java_package_; |
| 1377 | ::std::string* java_outer_classname_; |
| 1378 | static const ::std::string _default_java_outer_classname_; |
| 1379 | bool java_multiple_files_; |
| 1380 | int optimize_for_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1381 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 1382 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 1383 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1384 | ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1385 | |
| 1386 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 1387 | inline bool _has_bit(int index) const { |
| 1388 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 1389 | } |
| 1390 | inline void _set_bit(int index) { |
| 1391 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 1392 | } |
| 1393 | inline void _clear_bit(int index) { |
| 1394 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 1395 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1396 | |
| 1397 | void InitAsDefaultInstance(); |
| 1398 | static FileOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1399 | }; |
| 1400 | // ------------------------------------------------------------------- |
| 1401 | |
| 1402 | class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message { |
| 1403 | public: |
| 1404 | MessageOptions(); |
| 1405 | virtual ~MessageOptions(); |
| 1406 | |
| 1407 | MessageOptions(const MessageOptions& from); |
| 1408 | |
| 1409 | inline MessageOptions& operator=(const MessageOptions& from) { |
| 1410 | CopyFrom(from); |
| 1411 | return *this; |
| 1412 | } |
| 1413 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1414 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1415 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1416 | } |
| 1417 | |
| 1418 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1419 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1420 | } |
| 1421 | |
| 1422 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1423 | static const MessageOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1424 | void Swap(MessageOptions* other); |
| 1425 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1426 | // implements Message ---------------------------------------------- |
| 1427 | |
| 1428 | MessageOptions* New() const; |
| 1429 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1430 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1431 | void CopyFrom(const MessageOptions& from); |
| 1432 | void MergeFrom(const MessageOptions& from); |
| 1433 | void Clear(); |
| 1434 | bool IsInitialized() const; |
| 1435 | int ByteSize() const; |
| 1436 | |
| 1437 | bool MergePartialFromCodedStream( |
| 1438 | ::google::protobuf::io::CodedInputStream* input); |
| 1439 | bool SerializeWithCachedSizes( |
| 1440 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1441 | int GetCachedSize() const { return _cached_size_; } |
| 1442 | private: |
| 1443 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1444 | public: |
| 1445 | |
| 1446 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1447 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1448 | |
| 1449 | // nested types ---------------------------------------------------- |
| 1450 | |
| 1451 | // accessors ------------------------------------------------------- |
| 1452 | |
| 1453 | // optional bool message_set_wire_format = 1 [default = false]; |
| 1454 | inline bool has_message_set_wire_format() const; |
| 1455 | inline void clear_message_set_wire_format(); |
| 1456 | inline bool message_set_wire_format() const; |
| 1457 | inline void set_message_set_wire_format(bool value); |
| 1458 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1459 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1460 | inline int uninterpreted_option_size() const; |
| 1461 | inline void clear_uninterpreted_option(); |
| 1462 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 1463 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 1464 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1465 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1466 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 1467 | |
| 1468 | template <typename _proto_TypeTraits> |
| 1469 | inline bool HasExtension( |
| 1470 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1471 | MessageOptions, _proto_TypeTraits>& id) const { |
| 1472 | return _extensions_.Has(id.number()); |
| 1473 | } |
| 1474 | |
| 1475 | template <typename _proto_TypeTraits> |
| 1476 | inline void ClearExtension( |
| 1477 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1478 | MessageOptions, _proto_TypeTraits>& id) { |
| 1479 | _extensions_.ClearExtension(id.number()); |
| 1480 | } |
| 1481 | |
| 1482 | template <typename _proto_TypeTraits> |
| 1483 | inline int ExtensionSize( |
| 1484 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1485 | MessageOptions, _proto_TypeTraits>& id) const { |
| 1486 | return _extensions_.ExtensionSize(id.number()); |
| 1487 | } |
| 1488 | |
| 1489 | template <typename _proto_TypeTraits> |
| 1490 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1491 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1492 | MessageOptions, _proto_TypeTraits>& id) const { |
| 1493 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 1494 | } |
| 1495 | |
| 1496 | template <typename _proto_TypeTraits> |
| 1497 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1498 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1499 | MessageOptions, _proto_TypeTraits>& id) { |
| 1500 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 1501 | } |
| 1502 | |
| 1503 | template <typename _proto_TypeTraits> |
| 1504 | inline void SetExtension( |
| 1505 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1506 | MessageOptions, _proto_TypeTraits>& id, |
| 1507 | typename _proto_TypeTraits::ConstType value) { |
| 1508 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 1509 | } |
| 1510 | |
| 1511 | template <typename _proto_TypeTraits> |
| 1512 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1513 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1514 | MessageOptions, _proto_TypeTraits>& id, |
| 1515 | int index) const { |
| 1516 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 1517 | } |
| 1518 | |
| 1519 | template <typename _proto_TypeTraits> |
| 1520 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1521 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1522 | MessageOptions, _proto_TypeTraits>& id, |
| 1523 | int index) { |
| 1524 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 1525 | } |
| 1526 | |
| 1527 | template <typename _proto_TypeTraits> |
| 1528 | inline void SetExtension( |
| 1529 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1530 | MessageOptions, _proto_TypeTraits>& id, |
| 1531 | int index, typename _proto_TypeTraits::ConstType value) { |
| 1532 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 1533 | } |
| 1534 | |
| 1535 | template <typename _proto_TypeTraits> |
| 1536 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 1537 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1538 | MessageOptions, _proto_TypeTraits>& id) { |
| 1539 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 1540 | } |
| 1541 | |
| 1542 | template <typename _proto_TypeTraits> |
| 1543 | inline void AddExtension( |
| 1544 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1545 | MessageOptions, _proto_TypeTraits>& id, |
| 1546 | typename _proto_TypeTraits::ConstType value) { |
| 1547 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 1548 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1549 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1550 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1551 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1552 | mutable int _cached_size_; |
| 1553 | |
| 1554 | bool message_set_wire_format_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1555 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 1556 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 1557 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1558 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1559 | |
| 1560 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 1561 | inline bool _has_bit(int index) const { |
| 1562 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 1563 | } |
| 1564 | inline void _set_bit(int index) { |
| 1565 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 1566 | } |
| 1567 | inline void _clear_bit(int index) { |
| 1568 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 1569 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1570 | |
| 1571 | void InitAsDefaultInstance(); |
| 1572 | static MessageOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1573 | }; |
| 1574 | // ------------------------------------------------------------------- |
| 1575 | |
| 1576 | class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message { |
| 1577 | public: |
| 1578 | FieldOptions(); |
| 1579 | virtual ~FieldOptions(); |
| 1580 | |
| 1581 | FieldOptions(const FieldOptions& from); |
| 1582 | |
| 1583 | inline FieldOptions& operator=(const FieldOptions& from) { |
| 1584 | CopyFrom(from); |
| 1585 | return *this; |
| 1586 | } |
| 1587 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1588 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1589 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1590 | } |
| 1591 | |
| 1592 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1593 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1594 | } |
| 1595 | |
| 1596 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1597 | static const FieldOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1598 | void Swap(FieldOptions* other); |
| 1599 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1600 | // implements Message ---------------------------------------------- |
| 1601 | |
| 1602 | FieldOptions* New() const; |
| 1603 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1604 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1605 | void CopyFrom(const FieldOptions& from); |
| 1606 | void MergeFrom(const FieldOptions& from); |
| 1607 | void Clear(); |
| 1608 | bool IsInitialized() const; |
| 1609 | int ByteSize() const; |
| 1610 | |
| 1611 | bool MergePartialFromCodedStream( |
| 1612 | ::google::protobuf::io::CodedInputStream* input); |
| 1613 | bool SerializeWithCachedSizes( |
| 1614 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1615 | int GetCachedSize() const { return _cached_size_; } |
| 1616 | private: |
| 1617 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1618 | public: |
| 1619 | |
| 1620 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1621 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1622 | |
| 1623 | // nested types ---------------------------------------------------- |
| 1624 | |
| 1625 | typedef FieldOptions_CType CType; |
| 1626 | static const CType CORD = FieldOptions_CType_CORD; |
| 1627 | static const CType STRING_PIECE = FieldOptions_CType_STRING_PIECE; |
| 1628 | static inline const ::google::protobuf::EnumDescriptor* |
| 1629 | CType_descriptor() { |
| 1630 | return FieldOptions_CType_descriptor(); |
| 1631 | } |
| 1632 | static inline bool CType_IsValid(int value) { |
| 1633 | return FieldOptions_CType_IsValid(value); |
| 1634 | } |
| 1635 | static const CType CType_MIN = |
| 1636 | FieldOptions_CType_CType_MIN; |
| 1637 | static const CType CType_MAX = |
| 1638 | FieldOptions_CType_CType_MAX; |
| 1639 | |
| 1640 | // accessors ------------------------------------------------------- |
| 1641 | |
| 1642 | // optional .google.protobuf.FieldOptions.CType ctype = 1; |
| 1643 | inline bool has_ctype() const; |
| 1644 | inline void clear_ctype(); |
| 1645 | inline ::google::protobuf::FieldOptions_CType ctype() const; |
| 1646 | inline void set_ctype(::google::protobuf::FieldOptions_CType value); |
| 1647 | |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 1648 | // optional bool packed = 2; |
| 1649 | inline bool has_packed() const; |
| 1650 | inline void clear_packed(); |
| 1651 | inline bool packed() const; |
| 1652 | inline void set_packed(bool value); |
| 1653 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1654 | // optional string experimental_map_key = 9; |
| 1655 | inline bool has_experimental_map_key() const; |
| 1656 | inline void clear_experimental_map_key(); |
| 1657 | inline const ::std::string& experimental_map_key() const; |
| 1658 | inline void set_experimental_map_key(const ::std::string& value); |
| 1659 | inline void set_experimental_map_key(const char* value); |
| 1660 | inline ::std::string* mutable_experimental_map_key(); |
| 1661 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1662 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1663 | inline int uninterpreted_option_size() const; |
| 1664 | inline void clear_uninterpreted_option(); |
| 1665 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 1666 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 1667 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1668 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1669 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 1670 | |
| 1671 | template <typename _proto_TypeTraits> |
| 1672 | inline bool HasExtension( |
| 1673 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1674 | FieldOptions, _proto_TypeTraits>& id) const { |
| 1675 | return _extensions_.Has(id.number()); |
| 1676 | } |
| 1677 | |
| 1678 | template <typename _proto_TypeTraits> |
| 1679 | inline void ClearExtension( |
| 1680 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1681 | FieldOptions, _proto_TypeTraits>& id) { |
| 1682 | _extensions_.ClearExtension(id.number()); |
| 1683 | } |
| 1684 | |
| 1685 | template <typename _proto_TypeTraits> |
| 1686 | inline int ExtensionSize( |
| 1687 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1688 | FieldOptions, _proto_TypeTraits>& id) const { |
| 1689 | return _extensions_.ExtensionSize(id.number()); |
| 1690 | } |
| 1691 | |
| 1692 | template <typename _proto_TypeTraits> |
| 1693 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1694 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1695 | FieldOptions, _proto_TypeTraits>& id) const { |
| 1696 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 1697 | } |
| 1698 | |
| 1699 | template <typename _proto_TypeTraits> |
| 1700 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1701 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1702 | FieldOptions, _proto_TypeTraits>& id) { |
| 1703 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 1704 | } |
| 1705 | |
| 1706 | template <typename _proto_TypeTraits> |
| 1707 | inline void SetExtension( |
| 1708 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1709 | FieldOptions, _proto_TypeTraits>& id, |
| 1710 | typename _proto_TypeTraits::ConstType value) { |
| 1711 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 1712 | } |
| 1713 | |
| 1714 | template <typename _proto_TypeTraits> |
| 1715 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1716 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1717 | FieldOptions, _proto_TypeTraits>& id, |
| 1718 | int index) const { |
| 1719 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 1720 | } |
| 1721 | |
| 1722 | template <typename _proto_TypeTraits> |
| 1723 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1724 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1725 | FieldOptions, _proto_TypeTraits>& id, |
| 1726 | int index) { |
| 1727 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 1728 | } |
| 1729 | |
| 1730 | template <typename _proto_TypeTraits> |
| 1731 | inline void SetExtension( |
| 1732 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1733 | FieldOptions, _proto_TypeTraits>& id, |
| 1734 | int index, typename _proto_TypeTraits::ConstType value) { |
| 1735 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 1736 | } |
| 1737 | |
| 1738 | template <typename _proto_TypeTraits> |
| 1739 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 1740 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1741 | FieldOptions, _proto_TypeTraits>& id) { |
| 1742 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 1743 | } |
| 1744 | |
| 1745 | template <typename _proto_TypeTraits> |
| 1746 | inline void AddExtension( |
| 1747 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1748 | FieldOptions, _proto_TypeTraits>& id, |
| 1749 | typename _proto_TypeTraits::ConstType value) { |
| 1750 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 1751 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1752 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1753 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1754 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1755 | mutable int _cached_size_; |
| 1756 | |
| 1757 | int ctype_; |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 1758 | bool packed_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1759 | ::std::string* experimental_map_key_; |
| 1760 | static const ::std::string _default_experimental_map_key_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1761 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 1762 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 1763 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 1764 | ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1765 | |
| 1766 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 1767 | inline bool _has_bit(int index) const { |
| 1768 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 1769 | } |
| 1770 | inline void _set_bit(int index) { |
| 1771 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 1772 | } |
| 1773 | inline void _clear_bit(int index) { |
| 1774 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 1775 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1776 | |
| 1777 | void InitAsDefaultInstance(); |
| 1778 | static FieldOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1779 | }; |
| 1780 | // ------------------------------------------------------------------- |
| 1781 | |
| 1782 | class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message { |
| 1783 | public: |
| 1784 | EnumOptions(); |
| 1785 | virtual ~EnumOptions(); |
| 1786 | |
| 1787 | EnumOptions(const EnumOptions& from); |
| 1788 | |
| 1789 | inline EnumOptions& operator=(const EnumOptions& from) { |
| 1790 | CopyFrom(from); |
| 1791 | return *this; |
| 1792 | } |
| 1793 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1794 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1795 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1796 | } |
| 1797 | |
| 1798 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1799 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1800 | } |
| 1801 | |
| 1802 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1803 | static const EnumOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1804 | void Swap(EnumOptions* other); |
| 1805 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1806 | // implements Message ---------------------------------------------- |
| 1807 | |
| 1808 | EnumOptions* New() const; |
| 1809 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1810 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1811 | void CopyFrom(const EnumOptions& from); |
| 1812 | void MergeFrom(const EnumOptions& from); |
| 1813 | void Clear(); |
| 1814 | bool IsInitialized() const; |
| 1815 | int ByteSize() const; |
| 1816 | |
| 1817 | bool MergePartialFromCodedStream( |
| 1818 | ::google::protobuf::io::CodedInputStream* input); |
| 1819 | bool SerializeWithCachedSizes( |
| 1820 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1821 | int GetCachedSize() const { return _cached_size_; } |
| 1822 | private: |
| 1823 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1824 | public: |
| 1825 | |
| 1826 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1827 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1828 | |
| 1829 | // nested types ---------------------------------------------------- |
| 1830 | |
| 1831 | // accessors ------------------------------------------------------- |
| 1832 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1833 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1834 | inline int uninterpreted_option_size() const; |
| 1835 | inline void clear_uninterpreted_option(); |
| 1836 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 1837 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 1838 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1839 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1840 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 1841 | |
| 1842 | template <typename _proto_TypeTraits> |
| 1843 | inline bool HasExtension( |
| 1844 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1845 | EnumOptions, _proto_TypeTraits>& id) const { |
| 1846 | return _extensions_.Has(id.number()); |
| 1847 | } |
| 1848 | |
| 1849 | template <typename _proto_TypeTraits> |
| 1850 | inline void ClearExtension( |
| 1851 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1852 | EnumOptions, _proto_TypeTraits>& id) { |
| 1853 | _extensions_.ClearExtension(id.number()); |
| 1854 | } |
| 1855 | |
| 1856 | template <typename _proto_TypeTraits> |
| 1857 | inline int ExtensionSize( |
| 1858 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1859 | EnumOptions, _proto_TypeTraits>& id) const { |
| 1860 | return _extensions_.ExtensionSize(id.number()); |
| 1861 | } |
| 1862 | |
| 1863 | template <typename _proto_TypeTraits> |
| 1864 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1865 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1866 | EnumOptions, _proto_TypeTraits>& id) const { |
| 1867 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 1868 | } |
| 1869 | |
| 1870 | template <typename _proto_TypeTraits> |
| 1871 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1872 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1873 | EnumOptions, _proto_TypeTraits>& id) { |
| 1874 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 1875 | } |
| 1876 | |
| 1877 | template <typename _proto_TypeTraits> |
| 1878 | inline void SetExtension( |
| 1879 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1880 | EnumOptions, _proto_TypeTraits>& id, |
| 1881 | typename _proto_TypeTraits::ConstType value) { |
| 1882 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 1883 | } |
| 1884 | |
| 1885 | template <typename _proto_TypeTraits> |
| 1886 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 1887 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1888 | EnumOptions, _proto_TypeTraits>& id, |
| 1889 | int index) const { |
| 1890 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 1891 | } |
| 1892 | |
| 1893 | template <typename _proto_TypeTraits> |
| 1894 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 1895 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1896 | EnumOptions, _proto_TypeTraits>& id, |
| 1897 | int index) { |
| 1898 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 1899 | } |
| 1900 | |
| 1901 | template <typename _proto_TypeTraits> |
| 1902 | inline void SetExtension( |
| 1903 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1904 | EnumOptions, _proto_TypeTraits>& id, |
| 1905 | int index, typename _proto_TypeTraits::ConstType value) { |
| 1906 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 1907 | } |
| 1908 | |
| 1909 | template <typename _proto_TypeTraits> |
| 1910 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 1911 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1912 | EnumOptions, _proto_TypeTraits>& id) { |
| 1913 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 1914 | } |
| 1915 | |
| 1916 | template <typename _proto_TypeTraits> |
| 1917 | inline void AddExtension( |
| 1918 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 1919 | EnumOptions, _proto_TypeTraits>& id, |
| 1920 | typename _proto_TypeTraits::ConstType value) { |
| 1921 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 1922 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1923 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1924 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1925 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1926 | mutable int _cached_size_; |
| 1927 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1928 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 1929 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 1930 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1931 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1932 | |
| 1933 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 1934 | inline bool _has_bit(int index) const { |
| 1935 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 1936 | } |
| 1937 | inline void _set_bit(int index) { |
| 1938 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 1939 | } |
| 1940 | inline void _clear_bit(int index) { |
| 1941 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 1942 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1943 | |
| 1944 | void InitAsDefaultInstance(); |
| 1945 | static EnumOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1946 | }; |
| 1947 | // ------------------------------------------------------------------- |
| 1948 | |
| 1949 | class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message { |
| 1950 | public: |
| 1951 | EnumValueOptions(); |
| 1952 | virtual ~EnumValueOptions(); |
| 1953 | |
| 1954 | EnumValueOptions(const EnumValueOptions& from); |
| 1955 | |
| 1956 | inline EnumValueOptions& operator=(const EnumValueOptions& from) { |
| 1957 | CopyFrom(from); |
| 1958 | return *this; |
| 1959 | } |
| 1960 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1961 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1962 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1963 | } |
| 1964 | |
| 1965 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1966 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1967 | } |
| 1968 | |
| 1969 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1970 | static const EnumValueOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1971 | void Swap(EnumValueOptions* other); |
| 1972 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1973 | // implements Message ---------------------------------------------- |
| 1974 | |
| 1975 | EnumValueOptions* New() const; |
| 1976 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1977 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1978 | void CopyFrom(const EnumValueOptions& from); |
| 1979 | void MergeFrom(const EnumValueOptions& from); |
| 1980 | void Clear(); |
| 1981 | bool IsInitialized() const; |
| 1982 | int ByteSize() const; |
| 1983 | |
| 1984 | bool MergePartialFromCodedStream( |
| 1985 | ::google::protobuf::io::CodedInputStream* input); |
| 1986 | bool SerializeWithCachedSizes( |
| 1987 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 1988 | int GetCachedSize() const { return _cached_size_; } |
| 1989 | private: |
| 1990 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 1991 | public: |
| 1992 | |
| 1993 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1994 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1995 | |
| 1996 | // nested types ---------------------------------------------------- |
| 1997 | |
| 1998 | // accessors ------------------------------------------------------- |
| 1999 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2000 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 2001 | inline int uninterpreted_option_size() const; |
| 2002 | inline void clear_uninterpreted_option(); |
| 2003 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 2004 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 2005 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 2006 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 2007 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 2008 | |
| 2009 | template <typename _proto_TypeTraits> |
| 2010 | inline bool HasExtension( |
| 2011 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2012 | EnumValueOptions, _proto_TypeTraits>& id) const { |
| 2013 | return _extensions_.Has(id.number()); |
| 2014 | } |
| 2015 | |
| 2016 | template <typename _proto_TypeTraits> |
| 2017 | inline void ClearExtension( |
| 2018 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2019 | EnumValueOptions, _proto_TypeTraits>& id) { |
| 2020 | _extensions_.ClearExtension(id.number()); |
| 2021 | } |
| 2022 | |
| 2023 | template <typename _proto_TypeTraits> |
| 2024 | inline int ExtensionSize( |
| 2025 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2026 | EnumValueOptions, _proto_TypeTraits>& id) const { |
| 2027 | return _extensions_.ExtensionSize(id.number()); |
| 2028 | } |
| 2029 | |
| 2030 | template <typename _proto_TypeTraits> |
| 2031 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 2032 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2033 | EnumValueOptions, _proto_TypeTraits>& id) const { |
| 2034 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 2035 | } |
| 2036 | |
| 2037 | template <typename _proto_TypeTraits> |
| 2038 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 2039 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2040 | EnumValueOptions, _proto_TypeTraits>& id) { |
| 2041 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 2042 | } |
| 2043 | |
| 2044 | template <typename _proto_TypeTraits> |
| 2045 | inline void SetExtension( |
| 2046 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2047 | EnumValueOptions, _proto_TypeTraits>& id, |
| 2048 | typename _proto_TypeTraits::ConstType value) { |
| 2049 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 2050 | } |
| 2051 | |
| 2052 | template <typename _proto_TypeTraits> |
| 2053 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 2054 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2055 | EnumValueOptions, _proto_TypeTraits>& id, |
| 2056 | int index) const { |
| 2057 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 2058 | } |
| 2059 | |
| 2060 | template <typename _proto_TypeTraits> |
| 2061 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 2062 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2063 | EnumValueOptions, _proto_TypeTraits>& id, |
| 2064 | int index) { |
| 2065 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 2066 | } |
| 2067 | |
| 2068 | template <typename _proto_TypeTraits> |
| 2069 | inline void SetExtension( |
| 2070 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2071 | EnumValueOptions, _proto_TypeTraits>& id, |
| 2072 | int index, typename _proto_TypeTraits::ConstType value) { |
| 2073 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 2074 | } |
| 2075 | |
| 2076 | template <typename _proto_TypeTraits> |
| 2077 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 2078 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2079 | EnumValueOptions, _proto_TypeTraits>& id) { |
| 2080 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 2081 | } |
| 2082 | |
| 2083 | template <typename _proto_TypeTraits> |
| 2084 | inline void AddExtension( |
| 2085 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2086 | EnumValueOptions, _proto_TypeTraits>& id, |
| 2087 | typename _proto_TypeTraits::ConstType value) { |
| 2088 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 2089 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2090 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2091 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2092 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2093 | mutable int _cached_size_; |
| 2094 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2095 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 2096 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 2097 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2098 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2099 | |
| 2100 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 2101 | inline bool _has_bit(int index) const { |
| 2102 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 2103 | } |
| 2104 | inline void _set_bit(int index) { |
| 2105 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 2106 | } |
| 2107 | inline void _clear_bit(int index) { |
| 2108 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 2109 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2110 | |
| 2111 | void InitAsDefaultInstance(); |
| 2112 | static EnumValueOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2113 | }; |
| 2114 | // ------------------------------------------------------------------- |
| 2115 | |
| 2116 | class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message { |
| 2117 | public: |
| 2118 | ServiceOptions(); |
| 2119 | virtual ~ServiceOptions(); |
| 2120 | |
| 2121 | ServiceOptions(const ServiceOptions& from); |
| 2122 | |
| 2123 | inline ServiceOptions& operator=(const ServiceOptions& from) { |
| 2124 | CopyFrom(from); |
| 2125 | return *this; |
| 2126 | } |
| 2127 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2128 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2129 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2130 | } |
| 2131 | |
| 2132 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2133 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2134 | } |
| 2135 | |
| 2136 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2137 | static const ServiceOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2138 | void Swap(ServiceOptions* other); |
| 2139 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2140 | // implements Message ---------------------------------------------- |
| 2141 | |
| 2142 | ServiceOptions* New() const; |
| 2143 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2144 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2145 | void CopyFrom(const ServiceOptions& from); |
| 2146 | void MergeFrom(const ServiceOptions& from); |
| 2147 | void Clear(); |
| 2148 | bool IsInitialized() const; |
| 2149 | int ByteSize() const; |
| 2150 | |
| 2151 | bool MergePartialFromCodedStream( |
| 2152 | ::google::protobuf::io::CodedInputStream* input); |
| 2153 | bool SerializeWithCachedSizes( |
| 2154 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 2155 | int GetCachedSize() const { return _cached_size_; } |
| 2156 | private: |
| 2157 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 2158 | public: |
| 2159 | |
| 2160 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2161 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2162 | |
| 2163 | // nested types ---------------------------------------------------- |
| 2164 | |
| 2165 | // accessors ------------------------------------------------------- |
| 2166 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2167 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 2168 | inline int uninterpreted_option_size() const; |
| 2169 | inline void clear_uninterpreted_option(); |
| 2170 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 2171 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 2172 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 2173 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 2174 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 2175 | |
| 2176 | template <typename _proto_TypeTraits> |
| 2177 | inline bool HasExtension( |
| 2178 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2179 | ServiceOptions, _proto_TypeTraits>& id) const { |
| 2180 | return _extensions_.Has(id.number()); |
| 2181 | } |
| 2182 | |
| 2183 | template <typename _proto_TypeTraits> |
| 2184 | inline void ClearExtension( |
| 2185 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2186 | ServiceOptions, _proto_TypeTraits>& id) { |
| 2187 | _extensions_.ClearExtension(id.number()); |
| 2188 | } |
| 2189 | |
| 2190 | template <typename _proto_TypeTraits> |
| 2191 | inline int ExtensionSize( |
| 2192 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2193 | ServiceOptions, _proto_TypeTraits>& id) const { |
| 2194 | return _extensions_.ExtensionSize(id.number()); |
| 2195 | } |
| 2196 | |
| 2197 | template <typename _proto_TypeTraits> |
| 2198 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 2199 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2200 | ServiceOptions, _proto_TypeTraits>& id) const { |
| 2201 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 2202 | } |
| 2203 | |
| 2204 | template <typename _proto_TypeTraits> |
| 2205 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 2206 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2207 | ServiceOptions, _proto_TypeTraits>& id) { |
| 2208 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 2209 | } |
| 2210 | |
| 2211 | template <typename _proto_TypeTraits> |
| 2212 | inline void SetExtension( |
| 2213 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2214 | ServiceOptions, _proto_TypeTraits>& id, |
| 2215 | typename _proto_TypeTraits::ConstType value) { |
| 2216 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 2217 | } |
| 2218 | |
| 2219 | template <typename _proto_TypeTraits> |
| 2220 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 2221 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2222 | ServiceOptions, _proto_TypeTraits>& id, |
| 2223 | int index) const { |
| 2224 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 2225 | } |
| 2226 | |
| 2227 | template <typename _proto_TypeTraits> |
| 2228 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 2229 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2230 | ServiceOptions, _proto_TypeTraits>& id, |
| 2231 | int index) { |
| 2232 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 2233 | } |
| 2234 | |
| 2235 | template <typename _proto_TypeTraits> |
| 2236 | inline void SetExtension( |
| 2237 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2238 | ServiceOptions, _proto_TypeTraits>& id, |
| 2239 | int index, typename _proto_TypeTraits::ConstType value) { |
| 2240 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 2241 | } |
| 2242 | |
| 2243 | template <typename _proto_TypeTraits> |
| 2244 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 2245 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2246 | ServiceOptions, _proto_TypeTraits>& id) { |
| 2247 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 2248 | } |
| 2249 | |
| 2250 | template <typename _proto_TypeTraits> |
| 2251 | inline void AddExtension( |
| 2252 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2253 | ServiceOptions, _proto_TypeTraits>& id, |
| 2254 | typename _proto_TypeTraits::ConstType value) { |
| 2255 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 2256 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2257 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2258 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2259 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2260 | mutable int _cached_size_; |
| 2261 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2262 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 2263 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 2264 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2265 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2266 | |
| 2267 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 2268 | inline bool _has_bit(int index) const { |
| 2269 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 2270 | } |
| 2271 | inline void _set_bit(int index) { |
| 2272 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 2273 | } |
| 2274 | inline void _clear_bit(int index) { |
| 2275 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 2276 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2277 | |
| 2278 | void InitAsDefaultInstance(); |
| 2279 | static ServiceOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2280 | }; |
| 2281 | // ------------------------------------------------------------------- |
| 2282 | |
| 2283 | class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message { |
| 2284 | public: |
| 2285 | MethodOptions(); |
| 2286 | virtual ~MethodOptions(); |
| 2287 | |
| 2288 | MethodOptions(const MethodOptions& from); |
| 2289 | |
| 2290 | inline MethodOptions& operator=(const MethodOptions& from) { |
| 2291 | CopyFrom(from); |
| 2292 | return *this; |
| 2293 | } |
| 2294 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2295 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2296 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2297 | } |
| 2298 | |
| 2299 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2300 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2301 | } |
| 2302 | |
| 2303 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2304 | static const MethodOptions& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2305 | void Swap(MethodOptions* other); |
| 2306 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2307 | // implements Message ---------------------------------------------- |
| 2308 | |
| 2309 | MethodOptions* New() const; |
| 2310 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2311 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2312 | void CopyFrom(const MethodOptions& from); |
| 2313 | void MergeFrom(const MethodOptions& from); |
| 2314 | void Clear(); |
| 2315 | bool IsInitialized() const; |
| 2316 | int ByteSize() const; |
| 2317 | |
| 2318 | bool MergePartialFromCodedStream( |
| 2319 | ::google::protobuf::io::CodedInputStream* input); |
| 2320 | bool SerializeWithCachedSizes( |
| 2321 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 2322 | int GetCachedSize() const { return _cached_size_; } |
| 2323 | private: |
| 2324 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 2325 | public: |
| 2326 | |
| 2327 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2328 | const ::google::protobuf::Reflection* GetReflection() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2329 | |
| 2330 | // nested types ---------------------------------------------------- |
| 2331 | |
| 2332 | // accessors ------------------------------------------------------- |
| 2333 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2334 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 2335 | inline int uninterpreted_option_size() const; |
| 2336 | inline void clear_uninterpreted_option(); |
| 2337 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& uninterpreted_option() const; |
| 2338 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* mutable_uninterpreted_option(); |
| 2339 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 2340 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 2341 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
| 2342 | |
| 2343 | template <typename _proto_TypeTraits> |
| 2344 | inline bool HasExtension( |
| 2345 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2346 | MethodOptions, _proto_TypeTraits>& id) const { |
| 2347 | return _extensions_.Has(id.number()); |
| 2348 | } |
| 2349 | |
| 2350 | template <typename _proto_TypeTraits> |
| 2351 | inline void ClearExtension( |
| 2352 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2353 | MethodOptions, _proto_TypeTraits>& id) { |
| 2354 | _extensions_.ClearExtension(id.number()); |
| 2355 | } |
| 2356 | |
| 2357 | template <typename _proto_TypeTraits> |
| 2358 | inline int ExtensionSize( |
| 2359 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2360 | MethodOptions, _proto_TypeTraits>& id) const { |
| 2361 | return _extensions_.ExtensionSize(id.number()); |
| 2362 | } |
| 2363 | |
| 2364 | template <typename _proto_TypeTraits> |
| 2365 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 2366 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2367 | MethodOptions, _proto_TypeTraits>& id) const { |
| 2368 | return _proto_TypeTraits::Get(id.number(), _extensions_); |
| 2369 | } |
| 2370 | |
| 2371 | template <typename _proto_TypeTraits> |
| 2372 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 2373 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2374 | MethodOptions, _proto_TypeTraits>& id) { |
| 2375 | return _proto_TypeTraits::Mutable(id.number(), &_extensions_); |
| 2376 | } |
| 2377 | |
| 2378 | template <typename _proto_TypeTraits> |
| 2379 | inline void SetExtension( |
| 2380 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2381 | MethodOptions, _proto_TypeTraits>& id, |
| 2382 | typename _proto_TypeTraits::ConstType value) { |
| 2383 | _proto_TypeTraits::Set(id.number(), value, &_extensions_); |
| 2384 | } |
| 2385 | |
| 2386 | template <typename _proto_TypeTraits> |
| 2387 | inline typename _proto_TypeTraits::ConstType GetExtension( |
| 2388 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2389 | MethodOptions, _proto_TypeTraits>& id, |
| 2390 | int index) const { |
| 2391 | return _proto_TypeTraits::Get(id.number(), _extensions_, index); |
| 2392 | } |
| 2393 | |
| 2394 | template <typename _proto_TypeTraits> |
| 2395 | inline typename _proto_TypeTraits::MutableType MutableExtension( |
| 2396 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2397 | MethodOptions, _proto_TypeTraits>& id, |
| 2398 | int index) { |
| 2399 | return _proto_TypeTraits::Mutable(id.number(),index,&_extensions_); |
| 2400 | } |
| 2401 | |
| 2402 | template <typename _proto_TypeTraits> |
| 2403 | inline void SetExtension( |
| 2404 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2405 | MethodOptions, _proto_TypeTraits>& id, |
| 2406 | int index, typename _proto_TypeTraits::ConstType value) { |
| 2407 | _proto_TypeTraits::Set(id.number(), index, value, &_extensions_); |
| 2408 | } |
| 2409 | |
| 2410 | template <typename _proto_TypeTraits> |
| 2411 | inline typename _proto_TypeTraits::MutableType AddExtension( |
| 2412 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2413 | MethodOptions, _proto_TypeTraits>& id) { |
| 2414 | return _proto_TypeTraits::Add(id.number(), &_extensions_); |
| 2415 | } |
| 2416 | |
| 2417 | template <typename _proto_TypeTraits> |
| 2418 | inline void AddExtension( |
| 2419 | const ::google::protobuf::internal::ExtensionIdentifier< |
| 2420 | MethodOptions, _proto_TypeTraits>& id, |
| 2421 | typename _proto_TypeTraits::ConstType value) { |
| 2422 | _proto_TypeTraits::Add(id.number(), value, &_extensions_); |
| 2423 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2424 | private: |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2425 | ::google::protobuf::internal::ExtensionSet _extensions_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2426 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2427 | mutable int _cached_size_; |
| 2428 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2429 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
| 2430 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 2431 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2432 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2433 | |
| 2434 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 2435 | inline bool _has_bit(int index) const { |
| 2436 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 2437 | } |
| 2438 | inline void _set_bit(int index) { |
| 2439 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 2440 | } |
| 2441 | inline void _clear_bit(int index) { |
| 2442 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 2443 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2444 | |
| 2445 | void InitAsDefaultInstance(); |
| 2446 | static MethodOptions* default_instance_; |
| 2447 | }; |
| 2448 | // ------------------------------------------------------------------- |
| 2449 | |
| 2450 | class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message { |
| 2451 | public: |
| 2452 | UninterpretedOption_NamePart(); |
| 2453 | virtual ~UninterpretedOption_NamePart(); |
| 2454 | |
| 2455 | UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from); |
| 2456 | |
| 2457 | inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) { |
| 2458 | CopyFrom(from); |
| 2459 | return *this; |
| 2460 | } |
| 2461 | |
| 2462 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 2463 | return _unknown_fields_; |
| 2464 | } |
| 2465 | |
| 2466 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 2467 | return &_unknown_fields_; |
| 2468 | } |
| 2469 | |
| 2470 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2471 | static const UninterpretedOption_NamePart& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2472 | void Swap(UninterpretedOption_NamePart* other); |
| 2473 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2474 | // implements Message ---------------------------------------------- |
| 2475 | |
| 2476 | UninterpretedOption_NamePart* New() const; |
| 2477 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2478 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2479 | void CopyFrom(const UninterpretedOption_NamePart& from); |
| 2480 | void MergeFrom(const UninterpretedOption_NamePart& from); |
| 2481 | void Clear(); |
| 2482 | bool IsInitialized() const; |
| 2483 | int ByteSize() const; |
| 2484 | |
| 2485 | bool MergePartialFromCodedStream( |
| 2486 | ::google::protobuf::io::CodedInputStream* input); |
| 2487 | bool SerializeWithCachedSizes( |
| 2488 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 2489 | int GetCachedSize() const { return _cached_size_; } |
| 2490 | private: |
| 2491 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 2492 | public: |
| 2493 | |
| 2494 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
| 2495 | const ::google::protobuf::Reflection* GetReflection() const; |
| 2496 | |
| 2497 | // nested types ---------------------------------------------------- |
| 2498 | |
| 2499 | // accessors ------------------------------------------------------- |
| 2500 | |
| 2501 | // required string name_part = 1; |
| 2502 | inline bool has_name_part() const; |
| 2503 | inline void clear_name_part(); |
| 2504 | inline const ::std::string& name_part() const; |
| 2505 | inline void set_name_part(const ::std::string& value); |
| 2506 | inline void set_name_part(const char* value); |
| 2507 | inline ::std::string* mutable_name_part(); |
| 2508 | |
| 2509 | // required bool is_extension = 2; |
| 2510 | inline bool has_is_extension() const; |
| 2511 | inline void clear_is_extension(); |
| 2512 | inline bool is_extension() const; |
| 2513 | inline void set_is_extension(bool value); |
| 2514 | |
| 2515 | private: |
| 2516 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
| 2517 | mutable int _cached_size_; |
| 2518 | |
| 2519 | ::std::string* name_part_; |
| 2520 | static const ::std::string _default_name_part_; |
| 2521 | bool is_extension_; |
| 2522 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 2523 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2524 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
| 2525 | |
| 2526 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 2527 | inline bool _has_bit(int index) const { |
| 2528 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 2529 | } |
| 2530 | inline void _set_bit(int index) { |
| 2531 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 2532 | } |
| 2533 | inline void _clear_bit(int index) { |
| 2534 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 2535 | } |
| 2536 | |
| 2537 | void InitAsDefaultInstance(); |
| 2538 | static UninterpretedOption_NamePart* default_instance_; |
| 2539 | }; |
| 2540 | // ------------------------------------------------------------------- |
| 2541 | |
| 2542 | class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message { |
| 2543 | public: |
| 2544 | UninterpretedOption(); |
| 2545 | virtual ~UninterpretedOption(); |
| 2546 | |
| 2547 | UninterpretedOption(const UninterpretedOption& from); |
| 2548 | |
| 2549 | inline UninterpretedOption& operator=(const UninterpretedOption& from) { |
| 2550 | CopyFrom(from); |
| 2551 | return *this; |
| 2552 | } |
| 2553 | |
| 2554 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 2555 | return _unknown_fields_; |
| 2556 | } |
| 2557 | |
| 2558 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 2559 | return &_unknown_fields_; |
| 2560 | } |
| 2561 | |
| 2562 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2563 | static const UninterpretedOption& default_instance(); |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2564 | void Swap(UninterpretedOption* other); |
| 2565 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2566 | // implements Message ---------------------------------------------- |
| 2567 | |
| 2568 | UninterpretedOption* New() const; |
| 2569 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2570 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2571 | void CopyFrom(const UninterpretedOption& from); |
| 2572 | void MergeFrom(const UninterpretedOption& from); |
| 2573 | void Clear(); |
| 2574 | bool IsInitialized() const; |
| 2575 | int ByteSize() const; |
| 2576 | |
| 2577 | bool MergePartialFromCodedStream( |
| 2578 | ::google::protobuf::io::CodedInputStream* input); |
| 2579 | bool SerializeWithCachedSizes( |
| 2580 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 2581 | int GetCachedSize() const { return _cached_size_; } |
| 2582 | private: |
| 2583 | void SetCachedSize(int size) const { _cached_size_ = size; } |
| 2584 | public: |
| 2585 | |
| 2586 | const ::google::protobuf::Descriptor* GetDescriptor() const; |
| 2587 | const ::google::protobuf::Reflection* GetReflection() const; |
| 2588 | |
| 2589 | // nested types ---------------------------------------------------- |
| 2590 | |
| 2591 | typedef UninterpretedOption_NamePart NamePart; |
| 2592 | |
| 2593 | // accessors ------------------------------------------------------- |
| 2594 | |
| 2595 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 2596 | inline int name_size() const; |
| 2597 | inline void clear_name(); |
| 2598 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >& name() const; |
| 2599 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >* mutable_name(); |
| 2600 | inline const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const; |
| 2601 | inline ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index); |
| 2602 | inline ::google::protobuf::UninterpretedOption_NamePart* add_name(); |
| 2603 | |
| 2604 | // optional string identifier_value = 3; |
| 2605 | inline bool has_identifier_value() const; |
| 2606 | inline void clear_identifier_value(); |
| 2607 | inline const ::std::string& identifier_value() const; |
| 2608 | inline void set_identifier_value(const ::std::string& value); |
| 2609 | inline void set_identifier_value(const char* value); |
| 2610 | inline ::std::string* mutable_identifier_value(); |
| 2611 | |
| 2612 | // optional uint64 positive_int_value = 4; |
| 2613 | inline bool has_positive_int_value() const; |
| 2614 | inline void clear_positive_int_value(); |
| 2615 | inline ::google::protobuf::uint64 positive_int_value() const; |
| 2616 | inline void set_positive_int_value(::google::protobuf::uint64 value); |
| 2617 | |
| 2618 | // optional int64 negative_int_value = 5; |
| 2619 | inline bool has_negative_int_value() const; |
| 2620 | inline void clear_negative_int_value(); |
| 2621 | inline ::google::protobuf::int64 negative_int_value() const; |
| 2622 | inline void set_negative_int_value(::google::protobuf::int64 value); |
| 2623 | |
| 2624 | // optional double double_value = 6; |
| 2625 | inline bool has_double_value() const; |
| 2626 | inline void clear_double_value(); |
| 2627 | inline double double_value() const; |
| 2628 | inline void set_double_value(double value); |
| 2629 | |
| 2630 | // optional bytes string_value = 7; |
| 2631 | inline bool has_string_value() const; |
| 2632 | inline void clear_string_value(); |
| 2633 | inline const ::std::string& string_value() const; |
| 2634 | inline void set_string_value(const ::std::string& value); |
| 2635 | inline void set_string_value(const char* value); |
| 2636 | inline void set_string_value(const void* value, size_t size); |
| 2637 | inline ::std::string* mutable_string_value(); |
| 2638 | |
| 2639 | private: |
| 2640 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
| 2641 | mutable int _cached_size_; |
| 2642 | |
| 2643 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_; |
| 2644 | ::std::string* identifier_value_; |
| 2645 | static const ::std::string _default_identifier_value_; |
| 2646 | ::google::protobuf::uint64 positive_int_value_; |
| 2647 | ::google::protobuf::int64 negative_int_value_; |
| 2648 | double double_value_; |
| 2649 | ::std::string* string_value_; |
| 2650 | static const ::std::string _default_string_value_; |
| 2651 | friend void protobuf_BuildDesc_google_2fprotobuf_2fdescriptor_2eproto_AssignGlobalDescriptors( |
| 2652 | const ::google::protobuf::FileDescriptor* file); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2653 | ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; |
| 2654 | |
| 2655 | // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? |
| 2656 | inline bool _has_bit(int index) const { |
| 2657 | return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; |
| 2658 | } |
| 2659 | inline void _set_bit(int index) { |
| 2660 | _has_bits_[index / 32] |= (1u << (index % 32)); |
| 2661 | } |
| 2662 | inline void _clear_bit(int index) { |
| 2663 | _has_bits_[index / 32] &= ~(1u << (index % 32)); |
| 2664 | } |
| 2665 | |
| 2666 | void InitAsDefaultInstance(); |
| 2667 | static UninterpretedOption* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2668 | }; |
| 2669 | // =================================================================== |
| 2670 | |
| 2671 | |
| 2672 | // =================================================================== |
| 2673 | |
| 2674 | |
| 2675 | // =================================================================== |
| 2676 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2677 | // FileDescriptorSet |
| 2678 | |
| 2679 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 2680 | inline int FileDescriptorSet::file_size() const { |
| 2681 | return file_.size(); |
| 2682 | } |
| 2683 | inline void FileDescriptorSet::clear_file() { |
| 2684 | file_.Clear(); |
| 2685 | } |
| 2686 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& |
| 2687 | FileDescriptorSet::file() const { |
| 2688 | return file_; |
| 2689 | } |
| 2690 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* |
| 2691 | FileDescriptorSet::mutable_file() { |
| 2692 | return &file_; |
| 2693 | } |
| 2694 | inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const { |
| 2695 | return file_.Get(index); |
| 2696 | } |
| 2697 | inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) { |
| 2698 | return file_.Mutable(index); |
| 2699 | } |
| 2700 | inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() { |
| 2701 | return file_.Add(); |
| 2702 | } |
| 2703 | |
| 2704 | // ------------------------------------------------------------------- |
| 2705 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2706 | // FileDescriptorProto |
| 2707 | |
| 2708 | // optional string name = 1; |
| 2709 | inline bool FileDescriptorProto::has_name() const { |
| 2710 | return _has_bit(0); |
| 2711 | } |
| 2712 | inline void FileDescriptorProto::clear_name() { |
| 2713 | if (name_ != &_default_name_) { |
| 2714 | name_->clear(); |
| 2715 | } |
| 2716 | _clear_bit(0); |
| 2717 | } |
| 2718 | inline const ::std::string& FileDescriptorProto::name() const { |
| 2719 | return *name_; |
| 2720 | } |
| 2721 | inline void FileDescriptorProto::set_name(const ::std::string& value) { |
| 2722 | _set_bit(0); |
| 2723 | if (name_ == &_default_name_) { |
| 2724 | name_ = new ::std::string; |
| 2725 | } |
| 2726 | name_->assign(value); |
| 2727 | } |
| 2728 | inline void FileDescriptorProto::set_name(const char* value) { |
| 2729 | _set_bit(0); |
| 2730 | if (name_ == &_default_name_) { |
| 2731 | name_ = new ::std::string; |
| 2732 | } |
| 2733 | name_->assign(value); |
| 2734 | } |
| 2735 | inline ::std::string* FileDescriptorProto::mutable_name() { |
| 2736 | _set_bit(0); |
| 2737 | if (name_ == &_default_name_) { |
| 2738 | name_ = new ::std::string; |
| 2739 | } |
| 2740 | return name_; |
| 2741 | } |
| 2742 | |
| 2743 | // optional string package = 2; |
| 2744 | inline bool FileDescriptorProto::has_package() const { |
| 2745 | return _has_bit(1); |
| 2746 | } |
| 2747 | inline void FileDescriptorProto::clear_package() { |
| 2748 | if (package_ != &_default_package_) { |
| 2749 | package_->clear(); |
| 2750 | } |
| 2751 | _clear_bit(1); |
| 2752 | } |
| 2753 | inline const ::std::string& FileDescriptorProto::package() const { |
| 2754 | return *package_; |
| 2755 | } |
| 2756 | inline void FileDescriptorProto::set_package(const ::std::string& value) { |
| 2757 | _set_bit(1); |
| 2758 | if (package_ == &_default_package_) { |
| 2759 | package_ = new ::std::string; |
| 2760 | } |
| 2761 | package_->assign(value); |
| 2762 | } |
| 2763 | inline void FileDescriptorProto::set_package(const char* value) { |
| 2764 | _set_bit(1); |
| 2765 | if (package_ == &_default_package_) { |
| 2766 | package_ = new ::std::string; |
| 2767 | } |
| 2768 | package_->assign(value); |
| 2769 | } |
| 2770 | inline ::std::string* FileDescriptorProto::mutable_package() { |
| 2771 | _set_bit(1); |
| 2772 | if (package_ == &_default_package_) { |
| 2773 | package_ = new ::std::string; |
| 2774 | } |
| 2775 | return package_; |
| 2776 | } |
| 2777 | |
| 2778 | // repeated string dependency = 3; |
| 2779 | inline int FileDescriptorProto::dependency_size() const { |
| 2780 | return dependency_.size(); |
| 2781 | } |
| 2782 | inline void FileDescriptorProto::clear_dependency() { |
| 2783 | dependency_.Clear(); |
| 2784 | } |
| 2785 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 2786 | FileDescriptorProto::dependency() const { |
| 2787 | return dependency_; |
| 2788 | } |
| 2789 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 2790 | FileDescriptorProto::mutable_dependency() { |
| 2791 | return &dependency_; |
| 2792 | } |
| 2793 | inline const ::std::string& FileDescriptorProto::dependency(int index) const { |
| 2794 | return dependency_.Get(index); |
| 2795 | } |
| 2796 | inline ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
| 2797 | return dependency_.Mutable(index); |
| 2798 | } |
| 2799 | inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { |
| 2800 | dependency_.Mutable(index)->assign(value); |
| 2801 | } |
temporal | f206351 | 2008-07-23 01:19:07 +0000 | [diff] [blame] | 2802 | inline void FileDescriptorProto::set_dependency(int index, const char* value) { |
| 2803 | dependency_.Mutable(index)->assign(value); |
| 2804 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2805 | inline ::std::string* FileDescriptorProto::add_dependency() { |
| 2806 | return dependency_.Add(); |
| 2807 | } |
| 2808 | inline void FileDescriptorProto::add_dependency(const ::std::string& value) { |
| 2809 | dependency_.Add()->assign(value); |
| 2810 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2811 | inline void FileDescriptorProto::add_dependency(const char* value) { |
| 2812 | dependency_.Add()->assign(value); |
| 2813 | } |
| 2814 | |
| 2815 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 2816 | inline int FileDescriptorProto::message_type_size() const { |
| 2817 | return message_type_.size(); |
| 2818 | } |
| 2819 | inline void FileDescriptorProto::clear_message_type() { |
| 2820 | message_type_.Clear(); |
| 2821 | } |
| 2822 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 2823 | FileDescriptorProto::message_type() const { |
| 2824 | return message_type_; |
| 2825 | } |
| 2826 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 2827 | FileDescriptorProto::mutable_message_type() { |
| 2828 | return &message_type_; |
| 2829 | } |
| 2830 | inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const { |
| 2831 | return message_type_.Get(index); |
| 2832 | } |
| 2833 | inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) { |
| 2834 | return message_type_.Mutable(index); |
| 2835 | } |
| 2836 | inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() { |
| 2837 | return message_type_.Add(); |
| 2838 | } |
| 2839 | |
| 2840 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 2841 | inline int FileDescriptorProto::enum_type_size() const { |
| 2842 | return enum_type_.size(); |
| 2843 | } |
| 2844 | inline void FileDescriptorProto::clear_enum_type() { |
| 2845 | enum_type_.Clear(); |
| 2846 | } |
| 2847 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 2848 | FileDescriptorProto::enum_type() const { |
| 2849 | return enum_type_; |
| 2850 | } |
| 2851 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 2852 | FileDescriptorProto::mutable_enum_type() { |
| 2853 | return &enum_type_; |
| 2854 | } |
| 2855 | inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const { |
| 2856 | return enum_type_.Get(index); |
| 2857 | } |
| 2858 | inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) { |
| 2859 | return enum_type_.Mutable(index); |
| 2860 | } |
| 2861 | inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() { |
| 2862 | return enum_type_.Add(); |
| 2863 | } |
| 2864 | |
| 2865 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 2866 | inline int FileDescriptorProto::service_size() const { |
| 2867 | return service_.size(); |
| 2868 | } |
| 2869 | inline void FileDescriptorProto::clear_service() { |
| 2870 | service_.Clear(); |
| 2871 | } |
| 2872 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >& |
| 2873 | FileDescriptorProto::service() const { |
| 2874 | return service_; |
| 2875 | } |
| 2876 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >* |
| 2877 | FileDescriptorProto::mutable_service() { |
| 2878 | return &service_; |
| 2879 | } |
| 2880 | inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const { |
| 2881 | return service_.Get(index); |
| 2882 | } |
| 2883 | inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) { |
| 2884 | return service_.Mutable(index); |
| 2885 | } |
| 2886 | inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() { |
| 2887 | return service_.Add(); |
| 2888 | } |
| 2889 | |
| 2890 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 2891 | inline int FileDescriptorProto::extension_size() const { |
| 2892 | return extension_.size(); |
| 2893 | } |
| 2894 | inline void FileDescriptorProto::clear_extension() { |
| 2895 | extension_.Clear(); |
| 2896 | } |
| 2897 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 2898 | FileDescriptorProto::extension() const { |
| 2899 | return extension_; |
| 2900 | } |
| 2901 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 2902 | FileDescriptorProto::mutable_extension() { |
| 2903 | return &extension_; |
| 2904 | } |
| 2905 | inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const { |
| 2906 | return extension_.Get(index); |
| 2907 | } |
| 2908 | inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) { |
| 2909 | return extension_.Mutable(index); |
| 2910 | } |
| 2911 | inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() { |
| 2912 | return extension_.Add(); |
| 2913 | } |
| 2914 | |
| 2915 | // optional .google.protobuf.FileOptions options = 8; |
| 2916 | inline bool FileDescriptorProto::has_options() const { |
| 2917 | return _has_bit(7); |
| 2918 | } |
| 2919 | inline void FileDescriptorProto::clear_options() { |
| 2920 | if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
| 2921 | _clear_bit(7); |
| 2922 | } |
| 2923 | inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2924 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2925 | } |
| 2926 | inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
| 2927 | _set_bit(7); |
| 2928 | if (options_ == NULL) options_ = new ::google::protobuf::FileOptions; |
| 2929 | return options_; |
| 2930 | } |
| 2931 | |
| 2932 | // ------------------------------------------------------------------- |
| 2933 | |
| 2934 | // DescriptorProto_ExtensionRange |
| 2935 | |
| 2936 | // optional int32 start = 1; |
| 2937 | inline bool DescriptorProto_ExtensionRange::has_start() const { |
| 2938 | return _has_bit(0); |
| 2939 | } |
| 2940 | inline void DescriptorProto_ExtensionRange::clear_start() { |
| 2941 | start_ = 0; |
| 2942 | _clear_bit(0); |
| 2943 | } |
| 2944 | inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
| 2945 | return start_; |
| 2946 | } |
| 2947 | inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) { |
| 2948 | _set_bit(0); |
| 2949 | start_ = value; |
| 2950 | } |
| 2951 | |
| 2952 | // optional int32 end = 2; |
| 2953 | inline bool DescriptorProto_ExtensionRange::has_end() const { |
| 2954 | return _has_bit(1); |
| 2955 | } |
| 2956 | inline void DescriptorProto_ExtensionRange::clear_end() { |
| 2957 | end_ = 0; |
| 2958 | _clear_bit(1); |
| 2959 | } |
| 2960 | inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
| 2961 | return end_; |
| 2962 | } |
| 2963 | inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
| 2964 | _set_bit(1); |
| 2965 | end_ = value; |
| 2966 | } |
| 2967 | |
| 2968 | // ------------------------------------------------------------------- |
| 2969 | |
| 2970 | // DescriptorProto |
| 2971 | |
| 2972 | // optional string name = 1; |
| 2973 | inline bool DescriptorProto::has_name() const { |
| 2974 | return _has_bit(0); |
| 2975 | } |
| 2976 | inline void DescriptorProto::clear_name() { |
| 2977 | if (name_ != &_default_name_) { |
| 2978 | name_->clear(); |
| 2979 | } |
| 2980 | _clear_bit(0); |
| 2981 | } |
| 2982 | inline const ::std::string& DescriptorProto::name() const { |
| 2983 | return *name_; |
| 2984 | } |
| 2985 | inline void DescriptorProto::set_name(const ::std::string& value) { |
| 2986 | _set_bit(0); |
| 2987 | if (name_ == &_default_name_) { |
| 2988 | name_ = new ::std::string; |
| 2989 | } |
| 2990 | name_->assign(value); |
| 2991 | } |
| 2992 | inline void DescriptorProto::set_name(const char* value) { |
| 2993 | _set_bit(0); |
| 2994 | if (name_ == &_default_name_) { |
| 2995 | name_ = new ::std::string; |
| 2996 | } |
| 2997 | name_->assign(value); |
| 2998 | } |
| 2999 | inline ::std::string* DescriptorProto::mutable_name() { |
| 3000 | _set_bit(0); |
| 3001 | if (name_ == &_default_name_) { |
| 3002 | name_ = new ::std::string; |
| 3003 | } |
| 3004 | return name_; |
| 3005 | } |
| 3006 | |
| 3007 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3008 | inline int DescriptorProto::field_size() const { |
| 3009 | return field_.size(); |
| 3010 | } |
| 3011 | inline void DescriptorProto::clear_field() { |
| 3012 | field_.Clear(); |
| 3013 | } |
| 3014 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3015 | DescriptorProto::field() const { |
| 3016 | return field_; |
| 3017 | } |
| 3018 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3019 | DescriptorProto::mutable_field() { |
| 3020 | return &field_; |
| 3021 | } |
| 3022 | inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const { |
| 3023 | return field_.Get(index); |
| 3024 | } |
| 3025 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) { |
| 3026 | return field_.Mutable(index); |
| 3027 | } |
| 3028 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() { |
| 3029 | return field_.Add(); |
| 3030 | } |
| 3031 | |
| 3032 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3033 | inline int DescriptorProto::extension_size() const { |
| 3034 | return extension_.size(); |
| 3035 | } |
| 3036 | inline void DescriptorProto::clear_extension() { |
| 3037 | extension_.Clear(); |
| 3038 | } |
| 3039 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3040 | DescriptorProto::extension() const { |
| 3041 | return extension_; |
| 3042 | } |
| 3043 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3044 | DescriptorProto::mutable_extension() { |
| 3045 | return &extension_; |
| 3046 | } |
| 3047 | inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const { |
| 3048 | return extension_.Get(index); |
| 3049 | } |
| 3050 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) { |
| 3051 | return extension_.Mutable(index); |
| 3052 | } |
| 3053 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() { |
| 3054 | return extension_.Add(); |
| 3055 | } |
| 3056 | |
| 3057 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3058 | inline int DescriptorProto::nested_type_size() const { |
| 3059 | return nested_type_.size(); |
| 3060 | } |
| 3061 | inline void DescriptorProto::clear_nested_type() { |
| 3062 | nested_type_.Clear(); |
| 3063 | } |
| 3064 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 3065 | DescriptorProto::nested_type() const { |
| 3066 | return nested_type_; |
| 3067 | } |
| 3068 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 3069 | DescriptorProto::mutable_nested_type() { |
| 3070 | return &nested_type_; |
| 3071 | } |
| 3072 | inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const { |
| 3073 | return nested_type_.Get(index); |
| 3074 | } |
| 3075 | inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) { |
| 3076 | return nested_type_.Mutable(index); |
| 3077 | } |
| 3078 | inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() { |
| 3079 | return nested_type_.Add(); |
| 3080 | } |
| 3081 | |
| 3082 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3083 | inline int DescriptorProto::enum_type_size() const { |
| 3084 | return enum_type_.size(); |
| 3085 | } |
| 3086 | inline void DescriptorProto::clear_enum_type() { |
| 3087 | enum_type_.Clear(); |
| 3088 | } |
| 3089 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 3090 | DescriptorProto::enum_type() const { |
| 3091 | return enum_type_; |
| 3092 | } |
| 3093 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 3094 | DescriptorProto::mutable_enum_type() { |
| 3095 | return &enum_type_; |
| 3096 | } |
| 3097 | inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const { |
| 3098 | return enum_type_.Get(index); |
| 3099 | } |
| 3100 | inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) { |
| 3101 | return enum_type_.Mutable(index); |
| 3102 | } |
| 3103 | inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() { |
| 3104 | return enum_type_.Add(); |
| 3105 | } |
| 3106 | |
| 3107 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3108 | inline int DescriptorProto::extension_range_size() const { |
| 3109 | return extension_range_.size(); |
| 3110 | } |
| 3111 | inline void DescriptorProto::clear_extension_range() { |
| 3112 | extension_range_.Clear(); |
| 3113 | } |
| 3114 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >& |
| 3115 | DescriptorProto::extension_range() const { |
| 3116 | return extension_range_; |
| 3117 | } |
| 3118 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >* |
| 3119 | DescriptorProto::mutable_extension_range() { |
| 3120 | return &extension_range_; |
| 3121 | } |
| 3122 | inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const { |
| 3123 | return extension_range_.Get(index); |
| 3124 | } |
| 3125 | inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) { |
| 3126 | return extension_range_.Mutable(index); |
| 3127 | } |
| 3128 | inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() { |
| 3129 | return extension_range_.Add(); |
| 3130 | } |
| 3131 | |
| 3132 | // optional .google.protobuf.MessageOptions options = 7; |
| 3133 | inline bool DescriptorProto::has_options() const { |
| 3134 | return _has_bit(6); |
| 3135 | } |
| 3136 | inline void DescriptorProto::clear_options() { |
| 3137 | if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
| 3138 | _clear_bit(6); |
| 3139 | } |
| 3140 | inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3141 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3142 | } |
| 3143 | inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
| 3144 | _set_bit(6); |
| 3145 | if (options_ == NULL) options_ = new ::google::protobuf::MessageOptions; |
| 3146 | return options_; |
| 3147 | } |
| 3148 | |
| 3149 | // ------------------------------------------------------------------- |
| 3150 | |
| 3151 | // FieldDescriptorProto |
| 3152 | |
| 3153 | // optional string name = 1; |
| 3154 | inline bool FieldDescriptorProto::has_name() const { |
| 3155 | return _has_bit(0); |
| 3156 | } |
| 3157 | inline void FieldDescriptorProto::clear_name() { |
| 3158 | if (name_ != &_default_name_) { |
| 3159 | name_->clear(); |
| 3160 | } |
| 3161 | _clear_bit(0); |
| 3162 | } |
| 3163 | inline const ::std::string& FieldDescriptorProto::name() const { |
| 3164 | return *name_; |
| 3165 | } |
| 3166 | inline void FieldDescriptorProto::set_name(const ::std::string& value) { |
| 3167 | _set_bit(0); |
| 3168 | if (name_ == &_default_name_) { |
| 3169 | name_ = new ::std::string; |
| 3170 | } |
| 3171 | name_->assign(value); |
| 3172 | } |
| 3173 | inline void FieldDescriptorProto::set_name(const char* value) { |
| 3174 | _set_bit(0); |
| 3175 | if (name_ == &_default_name_) { |
| 3176 | name_ = new ::std::string; |
| 3177 | } |
| 3178 | name_->assign(value); |
| 3179 | } |
| 3180 | inline ::std::string* FieldDescriptorProto::mutable_name() { |
| 3181 | _set_bit(0); |
| 3182 | if (name_ == &_default_name_) { |
| 3183 | name_ = new ::std::string; |
| 3184 | } |
| 3185 | return name_; |
| 3186 | } |
| 3187 | |
| 3188 | // optional int32 number = 3; |
| 3189 | inline bool FieldDescriptorProto::has_number() const { |
| 3190 | return _has_bit(1); |
| 3191 | } |
| 3192 | inline void FieldDescriptorProto::clear_number() { |
| 3193 | number_ = 0; |
| 3194 | _clear_bit(1); |
| 3195 | } |
| 3196 | inline ::google::protobuf::int32 FieldDescriptorProto::number() const { |
| 3197 | return number_; |
| 3198 | } |
| 3199 | inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 3200 | _set_bit(1); |
| 3201 | number_ = value; |
| 3202 | } |
| 3203 | |
| 3204 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 3205 | inline bool FieldDescriptorProto::has_label() const { |
| 3206 | return _has_bit(2); |
| 3207 | } |
| 3208 | inline void FieldDescriptorProto::clear_label() { |
| 3209 | label_ = 1; |
| 3210 | _clear_bit(2); |
| 3211 | } |
| 3212 | inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const { |
| 3213 | return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
| 3214 | } |
| 3215 | inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) { |
| 3216 | GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
| 3217 | _set_bit(2); |
| 3218 | label_ = value; |
| 3219 | } |
| 3220 | |
| 3221 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 3222 | inline bool FieldDescriptorProto::has_type() const { |
| 3223 | return _has_bit(3); |
| 3224 | } |
| 3225 | inline void FieldDescriptorProto::clear_type() { |
| 3226 | type_ = 1; |
| 3227 | _clear_bit(3); |
| 3228 | } |
| 3229 | inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const { |
| 3230 | return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
| 3231 | } |
| 3232 | inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) { |
| 3233 | GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
| 3234 | _set_bit(3); |
| 3235 | type_ = value; |
| 3236 | } |
| 3237 | |
| 3238 | // optional string type_name = 6; |
| 3239 | inline bool FieldDescriptorProto::has_type_name() const { |
| 3240 | return _has_bit(4); |
| 3241 | } |
| 3242 | inline void FieldDescriptorProto::clear_type_name() { |
| 3243 | if (type_name_ != &_default_type_name_) { |
| 3244 | type_name_->clear(); |
| 3245 | } |
| 3246 | _clear_bit(4); |
| 3247 | } |
| 3248 | inline const ::std::string& FieldDescriptorProto::type_name() const { |
| 3249 | return *type_name_; |
| 3250 | } |
| 3251 | inline void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
| 3252 | _set_bit(4); |
| 3253 | if (type_name_ == &_default_type_name_) { |
| 3254 | type_name_ = new ::std::string; |
| 3255 | } |
| 3256 | type_name_->assign(value); |
| 3257 | } |
| 3258 | inline void FieldDescriptorProto::set_type_name(const char* value) { |
| 3259 | _set_bit(4); |
| 3260 | if (type_name_ == &_default_type_name_) { |
| 3261 | type_name_ = new ::std::string; |
| 3262 | } |
| 3263 | type_name_->assign(value); |
| 3264 | } |
| 3265 | inline ::std::string* FieldDescriptorProto::mutable_type_name() { |
| 3266 | _set_bit(4); |
| 3267 | if (type_name_ == &_default_type_name_) { |
| 3268 | type_name_ = new ::std::string; |
| 3269 | } |
| 3270 | return type_name_; |
| 3271 | } |
| 3272 | |
| 3273 | // optional string extendee = 2; |
| 3274 | inline bool FieldDescriptorProto::has_extendee() const { |
| 3275 | return _has_bit(5); |
| 3276 | } |
| 3277 | inline void FieldDescriptorProto::clear_extendee() { |
| 3278 | if (extendee_ != &_default_extendee_) { |
| 3279 | extendee_->clear(); |
| 3280 | } |
| 3281 | _clear_bit(5); |
| 3282 | } |
| 3283 | inline const ::std::string& FieldDescriptorProto::extendee() const { |
| 3284 | return *extendee_; |
| 3285 | } |
| 3286 | inline void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
| 3287 | _set_bit(5); |
| 3288 | if (extendee_ == &_default_extendee_) { |
| 3289 | extendee_ = new ::std::string; |
| 3290 | } |
| 3291 | extendee_->assign(value); |
| 3292 | } |
| 3293 | inline void FieldDescriptorProto::set_extendee(const char* value) { |
| 3294 | _set_bit(5); |
| 3295 | if (extendee_ == &_default_extendee_) { |
| 3296 | extendee_ = new ::std::string; |
| 3297 | } |
| 3298 | extendee_->assign(value); |
| 3299 | } |
| 3300 | inline ::std::string* FieldDescriptorProto::mutable_extendee() { |
| 3301 | _set_bit(5); |
| 3302 | if (extendee_ == &_default_extendee_) { |
| 3303 | extendee_ = new ::std::string; |
| 3304 | } |
| 3305 | return extendee_; |
| 3306 | } |
| 3307 | |
| 3308 | // optional string default_value = 7; |
| 3309 | inline bool FieldDescriptorProto::has_default_value() const { |
| 3310 | return _has_bit(6); |
| 3311 | } |
| 3312 | inline void FieldDescriptorProto::clear_default_value() { |
| 3313 | if (default_value_ != &_default_default_value_) { |
| 3314 | default_value_->clear(); |
| 3315 | } |
| 3316 | _clear_bit(6); |
| 3317 | } |
| 3318 | inline const ::std::string& FieldDescriptorProto::default_value() const { |
| 3319 | return *default_value_; |
| 3320 | } |
| 3321 | inline void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
| 3322 | _set_bit(6); |
| 3323 | if (default_value_ == &_default_default_value_) { |
| 3324 | default_value_ = new ::std::string; |
| 3325 | } |
| 3326 | default_value_->assign(value); |
| 3327 | } |
| 3328 | inline void FieldDescriptorProto::set_default_value(const char* value) { |
| 3329 | _set_bit(6); |
| 3330 | if (default_value_ == &_default_default_value_) { |
| 3331 | default_value_ = new ::std::string; |
| 3332 | } |
| 3333 | default_value_->assign(value); |
| 3334 | } |
| 3335 | inline ::std::string* FieldDescriptorProto::mutable_default_value() { |
| 3336 | _set_bit(6); |
| 3337 | if (default_value_ == &_default_default_value_) { |
| 3338 | default_value_ = new ::std::string; |
| 3339 | } |
| 3340 | return default_value_; |
| 3341 | } |
| 3342 | |
| 3343 | // optional .google.protobuf.FieldOptions options = 8; |
| 3344 | inline bool FieldDescriptorProto::has_options() const { |
| 3345 | return _has_bit(7); |
| 3346 | } |
| 3347 | inline void FieldDescriptorProto::clear_options() { |
| 3348 | if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
| 3349 | _clear_bit(7); |
| 3350 | } |
| 3351 | inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3352 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3353 | } |
| 3354 | inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
| 3355 | _set_bit(7); |
| 3356 | if (options_ == NULL) options_ = new ::google::protobuf::FieldOptions; |
| 3357 | return options_; |
| 3358 | } |
| 3359 | |
| 3360 | // ------------------------------------------------------------------- |
| 3361 | |
| 3362 | // EnumDescriptorProto |
| 3363 | |
| 3364 | // optional string name = 1; |
| 3365 | inline bool EnumDescriptorProto::has_name() const { |
| 3366 | return _has_bit(0); |
| 3367 | } |
| 3368 | inline void EnumDescriptorProto::clear_name() { |
| 3369 | if (name_ != &_default_name_) { |
| 3370 | name_->clear(); |
| 3371 | } |
| 3372 | _clear_bit(0); |
| 3373 | } |
| 3374 | inline const ::std::string& EnumDescriptorProto::name() const { |
| 3375 | return *name_; |
| 3376 | } |
| 3377 | inline void EnumDescriptorProto::set_name(const ::std::string& value) { |
| 3378 | _set_bit(0); |
| 3379 | if (name_ == &_default_name_) { |
| 3380 | name_ = new ::std::string; |
| 3381 | } |
| 3382 | name_->assign(value); |
| 3383 | } |
| 3384 | inline void EnumDescriptorProto::set_name(const char* value) { |
| 3385 | _set_bit(0); |
| 3386 | if (name_ == &_default_name_) { |
| 3387 | name_ = new ::std::string; |
| 3388 | } |
| 3389 | name_->assign(value); |
| 3390 | } |
| 3391 | inline ::std::string* EnumDescriptorProto::mutable_name() { |
| 3392 | _set_bit(0); |
| 3393 | if (name_ == &_default_name_) { |
| 3394 | name_ = new ::std::string; |
| 3395 | } |
| 3396 | return name_; |
| 3397 | } |
| 3398 | |
| 3399 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 3400 | inline int EnumDescriptorProto::value_size() const { |
| 3401 | return value_.size(); |
| 3402 | } |
| 3403 | inline void EnumDescriptorProto::clear_value() { |
| 3404 | value_.Clear(); |
| 3405 | } |
| 3406 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >& |
| 3407 | EnumDescriptorProto::value() const { |
| 3408 | return value_; |
| 3409 | } |
| 3410 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >* |
| 3411 | EnumDescriptorProto::mutable_value() { |
| 3412 | return &value_; |
| 3413 | } |
| 3414 | inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const { |
| 3415 | return value_.Get(index); |
| 3416 | } |
| 3417 | inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) { |
| 3418 | return value_.Mutable(index); |
| 3419 | } |
| 3420 | inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() { |
| 3421 | return value_.Add(); |
| 3422 | } |
| 3423 | |
| 3424 | // optional .google.protobuf.EnumOptions options = 3; |
| 3425 | inline bool EnumDescriptorProto::has_options() const { |
| 3426 | return _has_bit(2); |
| 3427 | } |
| 3428 | inline void EnumDescriptorProto::clear_options() { |
| 3429 | if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
| 3430 | _clear_bit(2); |
| 3431 | } |
| 3432 | inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3433 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3434 | } |
| 3435 | inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
| 3436 | _set_bit(2); |
| 3437 | if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions; |
| 3438 | return options_; |
| 3439 | } |
| 3440 | |
| 3441 | // ------------------------------------------------------------------- |
| 3442 | |
| 3443 | // EnumValueDescriptorProto |
| 3444 | |
| 3445 | // optional string name = 1; |
| 3446 | inline bool EnumValueDescriptorProto::has_name() const { |
| 3447 | return _has_bit(0); |
| 3448 | } |
| 3449 | inline void EnumValueDescriptorProto::clear_name() { |
| 3450 | if (name_ != &_default_name_) { |
| 3451 | name_->clear(); |
| 3452 | } |
| 3453 | _clear_bit(0); |
| 3454 | } |
| 3455 | inline const ::std::string& EnumValueDescriptorProto::name() const { |
| 3456 | return *name_; |
| 3457 | } |
| 3458 | inline void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
| 3459 | _set_bit(0); |
| 3460 | if (name_ == &_default_name_) { |
| 3461 | name_ = new ::std::string; |
| 3462 | } |
| 3463 | name_->assign(value); |
| 3464 | } |
| 3465 | inline void EnumValueDescriptorProto::set_name(const char* value) { |
| 3466 | _set_bit(0); |
| 3467 | if (name_ == &_default_name_) { |
| 3468 | name_ = new ::std::string; |
| 3469 | } |
| 3470 | name_->assign(value); |
| 3471 | } |
| 3472 | inline ::std::string* EnumValueDescriptorProto::mutable_name() { |
| 3473 | _set_bit(0); |
| 3474 | if (name_ == &_default_name_) { |
| 3475 | name_ = new ::std::string; |
| 3476 | } |
| 3477 | return name_; |
| 3478 | } |
| 3479 | |
| 3480 | // optional int32 number = 2; |
| 3481 | inline bool EnumValueDescriptorProto::has_number() const { |
| 3482 | return _has_bit(1); |
| 3483 | } |
| 3484 | inline void EnumValueDescriptorProto::clear_number() { |
| 3485 | number_ = 0; |
| 3486 | _clear_bit(1); |
| 3487 | } |
| 3488 | inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
| 3489 | return number_; |
| 3490 | } |
| 3491 | inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 3492 | _set_bit(1); |
| 3493 | number_ = value; |
| 3494 | } |
| 3495 | |
| 3496 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 3497 | inline bool EnumValueDescriptorProto::has_options() const { |
| 3498 | return _has_bit(2); |
| 3499 | } |
| 3500 | inline void EnumValueDescriptorProto::clear_options() { |
| 3501 | if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
| 3502 | _clear_bit(2); |
| 3503 | } |
| 3504 | inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3505 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3506 | } |
| 3507 | inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() { |
| 3508 | _set_bit(2); |
| 3509 | if (options_ == NULL) options_ = new ::google::protobuf::EnumValueOptions; |
| 3510 | return options_; |
| 3511 | } |
| 3512 | |
| 3513 | // ------------------------------------------------------------------- |
| 3514 | |
| 3515 | // ServiceDescriptorProto |
| 3516 | |
| 3517 | // optional string name = 1; |
| 3518 | inline bool ServiceDescriptorProto::has_name() const { |
| 3519 | return _has_bit(0); |
| 3520 | } |
| 3521 | inline void ServiceDescriptorProto::clear_name() { |
| 3522 | if (name_ != &_default_name_) { |
| 3523 | name_->clear(); |
| 3524 | } |
| 3525 | _clear_bit(0); |
| 3526 | } |
| 3527 | inline const ::std::string& ServiceDescriptorProto::name() const { |
| 3528 | return *name_; |
| 3529 | } |
| 3530 | inline void ServiceDescriptorProto::set_name(const ::std::string& value) { |
| 3531 | _set_bit(0); |
| 3532 | if (name_ == &_default_name_) { |
| 3533 | name_ = new ::std::string; |
| 3534 | } |
| 3535 | name_->assign(value); |
| 3536 | } |
| 3537 | inline void ServiceDescriptorProto::set_name(const char* value) { |
| 3538 | _set_bit(0); |
| 3539 | if (name_ == &_default_name_) { |
| 3540 | name_ = new ::std::string; |
| 3541 | } |
| 3542 | name_->assign(value); |
| 3543 | } |
| 3544 | inline ::std::string* ServiceDescriptorProto::mutable_name() { |
| 3545 | _set_bit(0); |
| 3546 | if (name_ == &_default_name_) { |
| 3547 | name_ = new ::std::string; |
| 3548 | } |
| 3549 | return name_; |
| 3550 | } |
| 3551 | |
| 3552 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 3553 | inline int ServiceDescriptorProto::method_size() const { |
| 3554 | return method_.size(); |
| 3555 | } |
| 3556 | inline void ServiceDescriptorProto::clear_method() { |
| 3557 | method_.Clear(); |
| 3558 | } |
| 3559 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >& |
| 3560 | ServiceDescriptorProto::method() const { |
| 3561 | return method_; |
| 3562 | } |
| 3563 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >* |
| 3564 | ServiceDescriptorProto::mutable_method() { |
| 3565 | return &method_; |
| 3566 | } |
| 3567 | inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const { |
| 3568 | return method_.Get(index); |
| 3569 | } |
| 3570 | inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) { |
| 3571 | return method_.Mutable(index); |
| 3572 | } |
| 3573 | inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() { |
| 3574 | return method_.Add(); |
| 3575 | } |
| 3576 | |
| 3577 | // optional .google.protobuf.ServiceOptions options = 3; |
| 3578 | inline bool ServiceDescriptorProto::has_options() const { |
| 3579 | return _has_bit(2); |
| 3580 | } |
| 3581 | inline void ServiceDescriptorProto::clear_options() { |
| 3582 | if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
| 3583 | _clear_bit(2); |
| 3584 | } |
| 3585 | inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3586 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3587 | } |
| 3588 | inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
| 3589 | _set_bit(2); |
| 3590 | if (options_ == NULL) options_ = new ::google::protobuf::ServiceOptions; |
| 3591 | return options_; |
| 3592 | } |
| 3593 | |
| 3594 | // ------------------------------------------------------------------- |
| 3595 | |
| 3596 | // MethodDescriptorProto |
| 3597 | |
| 3598 | // optional string name = 1; |
| 3599 | inline bool MethodDescriptorProto::has_name() const { |
| 3600 | return _has_bit(0); |
| 3601 | } |
| 3602 | inline void MethodDescriptorProto::clear_name() { |
| 3603 | if (name_ != &_default_name_) { |
| 3604 | name_->clear(); |
| 3605 | } |
| 3606 | _clear_bit(0); |
| 3607 | } |
| 3608 | inline const ::std::string& MethodDescriptorProto::name() const { |
| 3609 | return *name_; |
| 3610 | } |
| 3611 | inline void MethodDescriptorProto::set_name(const ::std::string& value) { |
| 3612 | _set_bit(0); |
| 3613 | if (name_ == &_default_name_) { |
| 3614 | name_ = new ::std::string; |
| 3615 | } |
| 3616 | name_->assign(value); |
| 3617 | } |
| 3618 | inline void MethodDescriptorProto::set_name(const char* value) { |
| 3619 | _set_bit(0); |
| 3620 | if (name_ == &_default_name_) { |
| 3621 | name_ = new ::std::string; |
| 3622 | } |
| 3623 | name_->assign(value); |
| 3624 | } |
| 3625 | inline ::std::string* MethodDescriptorProto::mutable_name() { |
| 3626 | _set_bit(0); |
| 3627 | if (name_ == &_default_name_) { |
| 3628 | name_ = new ::std::string; |
| 3629 | } |
| 3630 | return name_; |
| 3631 | } |
| 3632 | |
| 3633 | // optional string input_type = 2; |
| 3634 | inline bool MethodDescriptorProto::has_input_type() const { |
| 3635 | return _has_bit(1); |
| 3636 | } |
| 3637 | inline void MethodDescriptorProto::clear_input_type() { |
| 3638 | if (input_type_ != &_default_input_type_) { |
| 3639 | input_type_->clear(); |
| 3640 | } |
| 3641 | _clear_bit(1); |
| 3642 | } |
| 3643 | inline const ::std::string& MethodDescriptorProto::input_type() const { |
| 3644 | return *input_type_; |
| 3645 | } |
| 3646 | inline void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
| 3647 | _set_bit(1); |
| 3648 | if (input_type_ == &_default_input_type_) { |
| 3649 | input_type_ = new ::std::string; |
| 3650 | } |
| 3651 | input_type_->assign(value); |
| 3652 | } |
| 3653 | inline void MethodDescriptorProto::set_input_type(const char* value) { |
| 3654 | _set_bit(1); |
| 3655 | if (input_type_ == &_default_input_type_) { |
| 3656 | input_type_ = new ::std::string; |
| 3657 | } |
| 3658 | input_type_->assign(value); |
| 3659 | } |
| 3660 | inline ::std::string* MethodDescriptorProto::mutable_input_type() { |
| 3661 | _set_bit(1); |
| 3662 | if (input_type_ == &_default_input_type_) { |
| 3663 | input_type_ = new ::std::string; |
| 3664 | } |
| 3665 | return input_type_; |
| 3666 | } |
| 3667 | |
| 3668 | // optional string output_type = 3; |
| 3669 | inline bool MethodDescriptorProto::has_output_type() const { |
| 3670 | return _has_bit(2); |
| 3671 | } |
| 3672 | inline void MethodDescriptorProto::clear_output_type() { |
| 3673 | if (output_type_ != &_default_output_type_) { |
| 3674 | output_type_->clear(); |
| 3675 | } |
| 3676 | _clear_bit(2); |
| 3677 | } |
| 3678 | inline const ::std::string& MethodDescriptorProto::output_type() const { |
| 3679 | return *output_type_; |
| 3680 | } |
| 3681 | inline void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
| 3682 | _set_bit(2); |
| 3683 | if (output_type_ == &_default_output_type_) { |
| 3684 | output_type_ = new ::std::string; |
| 3685 | } |
| 3686 | output_type_->assign(value); |
| 3687 | } |
| 3688 | inline void MethodDescriptorProto::set_output_type(const char* value) { |
| 3689 | _set_bit(2); |
| 3690 | if (output_type_ == &_default_output_type_) { |
| 3691 | output_type_ = new ::std::string; |
| 3692 | } |
| 3693 | output_type_->assign(value); |
| 3694 | } |
| 3695 | inline ::std::string* MethodDescriptorProto::mutable_output_type() { |
| 3696 | _set_bit(2); |
| 3697 | if (output_type_ == &_default_output_type_) { |
| 3698 | output_type_ = new ::std::string; |
| 3699 | } |
| 3700 | return output_type_; |
| 3701 | } |
| 3702 | |
| 3703 | // optional .google.protobuf.MethodOptions options = 4; |
| 3704 | inline bool MethodDescriptorProto::has_options() const { |
| 3705 | return _has_bit(3); |
| 3706 | } |
| 3707 | inline void MethodDescriptorProto::clear_options() { |
| 3708 | if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
| 3709 | _clear_bit(3); |
| 3710 | } |
| 3711 | inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3712 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3713 | } |
| 3714 | inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
| 3715 | _set_bit(3); |
| 3716 | if (options_ == NULL) options_ = new ::google::protobuf::MethodOptions; |
| 3717 | return options_; |
| 3718 | } |
| 3719 | |
| 3720 | // ------------------------------------------------------------------- |
| 3721 | |
| 3722 | // FileOptions |
| 3723 | |
| 3724 | // optional string java_package = 1; |
| 3725 | inline bool FileOptions::has_java_package() const { |
| 3726 | return _has_bit(0); |
| 3727 | } |
| 3728 | inline void FileOptions::clear_java_package() { |
| 3729 | if (java_package_ != &_default_java_package_) { |
| 3730 | java_package_->clear(); |
| 3731 | } |
| 3732 | _clear_bit(0); |
| 3733 | } |
| 3734 | inline const ::std::string& FileOptions::java_package() const { |
| 3735 | return *java_package_; |
| 3736 | } |
| 3737 | inline void FileOptions::set_java_package(const ::std::string& value) { |
| 3738 | _set_bit(0); |
| 3739 | if (java_package_ == &_default_java_package_) { |
| 3740 | java_package_ = new ::std::string; |
| 3741 | } |
| 3742 | java_package_->assign(value); |
| 3743 | } |
| 3744 | inline void FileOptions::set_java_package(const char* value) { |
| 3745 | _set_bit(0); |
| 3746 | if (java_package_ == &_default_java_package_) { |
| 3747 | java_package_ = new ::std::string; |
| 3748 | } |
| 3749 | java_package_->assign(value); |
| 3750 | } |
| 3751 | inline ::std::string* FileOptions::mutable_java_package() { |
| 3752 | _set_bit(0); |
| 3753 | if (java_package_ == &_default_java_package_) { |
| 3754 | java_package_ = new ::std::string; |
| 3755 | } |
| 3756 | return java_package_; |
| 3757 | } |
| 3758 | |
| 3759 | // optional string java_outer_classname = 8; |
| 3760 | inline bool FileOptions::has_java_outer_classname() const { |
| 3761 | return _has_bit(1); |
| 3762 | } |
| 3763 | inline void FileOptions::clear_java_outer_classname() { |
| 3764 | if (java_outer_classname_ != &_default_java_outer_classname_) { |
| 3765 | java_outer_classname_->clear(); |
| 3766 | } |
| 3767 | _clear_bit(1); |
| 3768 | } |
| 3769 | inline const ::std::string& FileOptions::java_outer_classname() const { |
| 3770 | return *java_outer_classname_; |
| 3771 | } |
| 3772 | inline void FileOptions::set_java_outer_classname(const ::std::string& value) { |
| 3773 | _set_bit(1); |
| 3774 | if (java_outer_classname_ == &_default_java_outer_classname_) { |
| 3775 | java_outer_classname_ = new ::std::string; |
| 3776 | } |
| 3777 | java_outer_classname_->assign(value); |
| 3778 | } |
| 3779 | inline void FileOptions::set_java_outer_classname(const char* value) { |
| 3780 | _set_bit(1); |
| 3781 | if (java_outer_classname_ == &_default_java_outer_classname_) { |
| 3782 | java_outer_classname_ = new ::std::string; |
| 3783 | } |
| 3784 | java_outer_classname_->assign(value); |
| 3785 | } |
| 3786 | inline ::std::string* FileOptions::mutable_java_outer_classname() { |
| 3787 | _set_bit(1); |
| 3788 | if (java_outer_classname_ == &_default_java_outer_classname_) { |
| 3789 | java_outer_classname_ = new ::std::string; |
| 3790 | } |
| 3791 | return java_outer_classname_; |
| 3792 | } |
| 3793 | |
| 3794 | // optional bool java_multiple_files = 10 [default = false]; |
| 3795 | inline bool FileOptions::has_java_multiple_files() const { |
| 3796 | return _has_bit(2); |
| 3797 | } |
| 3798 | inline void FileOptions::clear_java_multiple_files() { |
| 3799 | java_multiple_files_ = false; |
| 3800 | _clear_bit(2); |
| 3801 | } |
| 3802 | inline bool FileOptions::java_multiple_files() const { |
| 3803 | return java_multiple_files_; |
| 3804 | } |
| 3805 | inline void FileOptions::set_java_multiple_files(bool value) { |
| 3806 | _set_bit(2); |
| 3807 | java_multiple_files_ = value; |
| 3808 | } |
| 3809 | |
| 3810 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = CODE_SIZE]; |
| 3811 | inline bool FileOptions::has_optimize_for() const { |
| 3812 | return _has_bit(3); |
| 3813 | } |
| 3814 | inline void FileOptions::clear_optimize_for() { |
| 3815 | optimize_for_ = 2; |
| 3816 | _clear_bit(3); |
| 3817 | } |
| 3818 | inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { |
| 3819 | return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_); |
| 3820 | } |
| 3821 | inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { |
| 3822 | GOOGLE_DCHECK(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
| 3823 | _set_bit(3); |
| 3824 | optimize_for_ = value; |
| 3825 | } |
| 3826 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3827 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 3828 | inline int FileOptions::uninterpreted_option_size() const { |
| 3829 | return uninterpreted_option_.size(); |
| 3830 | } |
| 3831 | inline void FileOptions::clear_uninterpreted_option() { |
| 3832 | uninterpreted_option_.Clear(); |
| 3833 | } |
| 3834 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 3835 | FileOptions::uninterpreted_option() const { |
| 3836 | return uninterpreted_option_; |
| 3837 | } |
| 3838 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 3839 | FileOptions::mutable_uninterpreted_option() { |
| 3840 | return &uninterpreted_option_; |
| 3841 | } |
| 3842 | inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const { |
| 3843 | return uninterpreted_option_.Get(index); |
| 3844 | } |
| 3845 | inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) { |
| 3846 | return uninterpreted_option_.Mutable(index); |
| 3847 | } |
| 3848 | inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() { |
| 3849 | return uninterpreted_option_.Add(); |
| 3850 | } |
| 3851 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3852 | // ------------------------------------------------------------------- |
| 3853 | |
| 3854 | // MessageOptions |
| 3855 | |
| 3856 | // optional bool message_set_wire_format = 1 [default = false]; |
| 3857 | inline bool MessageOptions::has_message_set_wire_format() const { |
| 3858 | return _has_bit(0); |
| 3859 | } |
| 3860 | inline void MessageOptions::clear_message_set_wire_format() { |
| 3861 | message_set_wire_format_ = false; |
| 3862 | _clear_bit(0); |
| 3863 | } |
| 3864 | inline bool MessageOptions::message_set_wire_format() const { |
| 3865 | return message_set_wire_format_; |
| 3866 | } |
| 3867 | inline void MessageOptions::set_message_set_wire_format(bool value) { |
| 3868 | _set_bit(0); |
| 3869 | message_set_wire_format_ = value; |
| 3870 | } |
| 3871 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3872 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 3873 | inline int MessageOptions::uninterpreted_option_size() const { |
| 3874 | return uninterpreted_option_.size(); |
| 3875 | } |
| 3876 | inline void MessageOptions::clear_uninterpreted_option() { |
| 3877 | uninterpreted_option_.Clear(); |
| 3878 | } |
| 3879 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 3880 | MessageOptions::uninterpreted_option() const { |
| 3881 | return uninterpreted_option_; |
| 3882 | } |
| 3883 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 3884 | MessageOptions::mutable_uninterpreted_option() { |
| 3885 | return &uninterpreted_option_; |
| 3886 | } |
| 3887 | inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const { |
| 3888 | return uninterpreted_option_.Get(index); |
| 3889 | } |
| 3890 | inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) { |
| 3891 | return uninterpreted_option_.Mutable(index); |
| 3892 | } |
| 3893 | inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() { |
| 3894 | return uninterpreted_option_.Add(); |
| 3895 | } |
| 3896 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3897 | // ------------------------------------------------------------------- |
| 3898 | |
| 3899 | // FieldOptions |
| 3900 | |
| 3901 | // optional .google.protobuf.FieldOptions.CType ctype = 1; |
| 3902 | inline bool FieldOptions::has_ctype() const { |
| 3903 | return _has_bit(0); |
| 3904 | } |
| 3905 | inline void FieldOptions::clear_ctype() { |
| 3906 | ctype_ = 1; |
| 3907 | _clear_bit(0); |
| 3908 | } |
| 3909 | inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
| 3910 | return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
| 3911 | } |
| 3912 | inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
| 3913 | GOOGLE_DCHECK(::google::protobuf::FieldOptions_CType_IsValid(value)); |
| 3914 | _set_bit(0); |
| 3915 | ctype_ = value; |
| 3916 | } |
| 3917 | |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 3918 | // optional bool packed = 2; |
| 3919 | inline bool FieldOptions::has_packed() const { |
| 3920 | return _has_bit(1); |
| 3921 | } |
| 3922 | inline void FieldOptions::clear_packed() { |
| 3923 | packed_ = false; |
| 3924 | _clear_bit(1); |
| 3925 | } |
| 3926 | inline bool FieldOptions::packed() const { |
| 3927 | return packed_; |
| 3928 | } |
| 3929 | inline void FieldOptions::set_packed(bool value) { |
| 3930 | _set_bit(1); |
| 3931 | packed_ = value; |
| 3932 | } |
| 3933 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3934 | // optional string experimental_map_key = 9; |
| 3935 | inline bool FieldOptions::has_experimental_map_key() const { |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 3936 | return _has_bit(2); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3937 | } |
| 3938 | inline void FieldOptions::clear_experimental_map_key() { |
| 3939 | if (experimental_map_key_ != &_default_experimental_map_key_) { |
| 3940 | experimental_map_key_->clear(); |
| 3941 | } |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 3942 | _clear_bit(2); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3943 | } |
| 3944 | inline const ::std::string& FieldOptions::experimental_map_key() const { |
| 3945 | return *experimental_map_key_; |
| 3946 | } |
| 3947 | inline void FieldOptions::set_experimental_map_key(const ::std::string& value) { |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 3948 | _set_bit(2); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3949 | if (experimental_map_key_ == &_default_experimental_map_key_) { |
| 3950 | experimental_map_key_ = new ::std::string; |
| 3951 | } |
| 3952 | experimental_map_key_->assign(value); |
| 3953 | } |
| 3954 | inline void FieldOptions::set_experimental_map_key(const char* value) { |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 3955 | _set_bit(2); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3956 | if (experimental_map_key_ == &_default_experimental_map_key_) { |
| 3957 | experimental_map_key_ = new ::std::string; |
| 3958 | } |
| 3959 | experimental_map_key_->assign(value); |
| 3960 | } |
| 3961 | inline ::std::string* FieldOptions::mutable_experimental_map_key() { |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame^] | 3962 | _set_bit(2); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3963 | if (experimental_map_key_ == &_default_experimental_map_key_) { |
| 3964 | experimental_map_key_ = new ::std::string; |
| 3965 | } |
| 3966 | return experimental_map_key_; |
| 3967 | } |
| 3968 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3969 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 3970 | inline int FieldOptions::uninterpreted_option_size() const { |
| 3971 | return uninterpreted_option_.size(); |
| 3972 | } |
| 3973 | inline void FieldOptions::clear_uninterpreted_option() { |
| 3974 | uninterpreted_option_.Clear(); |
| 3975 | } |
| 3976 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 3977 | FieldOptions::uninterpreted_option() const { |
| 3978 | return uninterpreted_option_; |
| 3979 | } |
| 3980 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 3981 | FieldOptions::mutable_uninterpreted_option() { |
| 3982 | return &uninterpreted_option_; |
| 3983 | } |
| 3984 | inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const { |
| 3985 | return uninterpreted_option_.Get(index); |
| 3986 | } |
| 3987 | inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) { |
| 3988 | return uninterpreted_option_.Mutable(index); |
| 3989 | } |
| 3990 | inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() { |
| 3991 | return uninterpreted_option_.Add(); |
| 3992 | } |
| 3993 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3994 | // ------------------------------------------------------------------- |
| 3995 | |
| 3996 | // EnumOptions |
| 3997 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3998 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 3999 | inline int EnumOptions::uninterpreted_option_size() const { |
| 4000 | return uninterpreted_option_.size(); |
| 4001 | } |
| 4002 | inline void EnumOptions::clear_uninterpreted_option() { |
| 4003 | uninterpreted_option_.Clear(); |
| 4004 | } |
| 4005 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4006 | EnumOptions::uninterpreted_option() const { |
| 4007 | return uninterpreted_option_; |
| 4008 | } |
| 4009 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4010 | EnumOptions::mutable_uninterpreted_option() { |
| 4011 | return &uninterpreted_option_; |
| 4012 | } |
| 4013 | inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const { |
| 4014 | return uninterpreted_option_.Get(index); |
| 4015 | } |
| 4016 | inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) { |
| 4017 | return uninterpreted_option_.Mutable(index); |
| 4018 | } |
| 4019 | inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() { |
| 4020 | return uninterpreted_option_.Add(); |
| 4021 | } |
| 4022 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4023 | // ------------------------------------------------------------------- |
| 4024 | |
| 4025 | // EnumValueOptions |
| 4026 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4027 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4028 | inline int EnumValueOptions::uninterpreted_option_size() const { |
| 4029 | return uninterpreted_option_.size(); |
| 4030 | } |
| 4031 | inline void EnumValueOptions::clear_uninterpreted_option() { |
| 4032 | uninterpreted_option_.Clear(); |
| 4033 | } |
| 4034 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4035 | EnumValueOptions::uninterpreted_option() const { |
| 4036 | return uninterpreted_option_; |
| 4037 | } |
| 4038 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4039 | EnumValueOptions::mutable_uninterpreted_option() { |
| 4040 | return &uninterpreted_option_; |
| 4041 | } |
| 4042 | inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const { |
| 4043 | return uninterpreted_option_.Get(index); |
| 4044 | } |
| 4045 | inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) { |
| 4046 | return uninterpreted_option_.Mutable(index); |
| 4047 | } |
| 4048 | inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() { |
| 4049 | return uninterpreted_option_.Add(); |
| 4050 | } |
| 4051 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4052 | // ------------------------------------------------------------------- |
| 4053 | |
| 4054 | // ServiceOptions |
| 4055 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4056 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4057 | inline int ServiceOptions::uninterpreted_option_size() const { |
| 4058 | return uninterpreted_option_.size(); |
| 4059 | } |
| 4060 | inline void ServiceOptions::clear_uninterpreted_option() { |
| 4061 | uninterpreted_option_.Clear(); |
| 4062 | } |
| 4063 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4064 | ServiceOptions::uninterpreted_option() const { |
| 4065 | return uninterpreted_option_; |
| 4066 | } |
| 4067 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4068 | ServiceOptions::mutable_uninterpreted_option() { |
| 4069 | return &uninterpreted_option_; |
| 4070 | } |
| 4071 | inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const { |
| 4072 | return uninterpreted_option_.Get(index); |
| 4073 | } |
| 4074 | inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) { |
| 4075 | return uninterpreted_option_.Mutable(index); |
| 4076 | } |
| 4077 | inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() { |
| 4078 | return uninterpreted_option_.Add(); |
| 4079 | } |
| 4080 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4081 | // ------------------------------------------------------------------- |
| 4082 | |
| 4083 | // MethodOptions |
| 4084 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4085 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4086 | inline int MethodOptions::uninterpreted_option_size() const { |
| 4087 | return uninterpreted_option_.size(); |
| 4088 | } |
| 4089 | inline void MethodOptions::clear_uninterpreted_option() { |
| 4090 | uninterpreted_option_.Clear(); |
| 4091 | } |
| 4092 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4093 | MethodOptions::uninterpreted_option() const { |
| 4094 | return uninterpreted_option_; |
| 4095 | } |
| 4096 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4097 | MethodOptions::mutable_uninterpreted_option() { |
| 4098 | return &uninterpreted_option_; |
| 4099 | } |
| 4100 | inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const { |
| 4101 | return uninterpreted_option_.Get(index); |
| 4102 | } |
| 4103 | inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) { |
| 4104 | return uninterpreted_option_.Mutable(index); |
| 4105 | } |
| 4106 | inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() { |
| 4107 | return uninterpreted_option_.Add(); |
| 4108 | } |
| 4109 | |
| 4110 | // ------------------------------------------------------------------- |
| 4111 | |
| 4112 | // UninterpretedOption_NamePart |
| 4113 | |
| 4114 | // required string name_part = 1; |
| 4115 | inline bool UninterpretedOption_NamePart::has_name_part() const { |
| 4116 | return _has_bit(0); |
| 4117 | } |
| 4118 | inline void UninterpretedOption_NamePart::clear_name_part() { |
| 4119 | if (name_part_ != &_default_name_part_) { |
| 4120 | name_part_->clear(); |
| 4121 | } |
| 4122 | _clear_bit(0); |
| 4123 | } |
| 4124 | inline const ::std::string& UninterpretedOption_NamePart::name_part() const { |
| 4125 | return *name_part_; |
| 4126 | } |
| 4127 | inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
| 4128 | _set_bit(0); |
| 4129 | if (name_part_ == &_default_name_part_) { |
| 4130 | name_part_ = new ::std::string; |
| 4131 | } |
| 4132 | name_part_->assign(value); |
| 4133 | } |
| 4134 | inline void UninterpretedOption_NamePart::set_name_part(const char* value) { |
| 4135 | _set_bit(0); |
| 4136 | if (name_part_ == &_default_name_part_) { |
| 4137 | name_part_ = new ::std::string; |
| 4138 | } |
| 4139 | name_part_->assign(value); |
| 4140 | } |
| 4141 | inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
| 4142 | _set_bit(0); |
| 4143 | if (name_part_ == &_default_name_part_) { |
| 4144 | name_part_ = new ::std::string; |
| 4145 | } |
| 4146 | return name_part_; |
| 4147 | } |
| 4148 | |
| 4149 | // required bool is_extension = 2; |
| 4150 | inline bool UninterpretedOption_NamePart::has_is_extension() const { |
| 4151 | return _has_bit(1); |
| 4152 | } |
| 4153 | inline void UninterpretedOption_NamePart::clear_is_extension() { |
| 4154 | is_extension_ = false; |
| 4155 | _clear_bit(1); |
| 4156 | } |
| 4157 | inline bool UninterpretedOption_NamePart::is_extension() const { |
| 4158 | return is_extension_; |
| 4159 | } |
| 4160 | inline void UninterpretedOption_NamePart::set_is_extension(bool value) { |
| 4161 | _set_bit(1); |
| 4162 | is_extension_ = value; |
| 4163 | } |
| 4164 | |
| 4165 | // ------------------------------------------------------------------- |
| 4166 | |
| 4167 | // UninterpretedOption |
| 4168 | |
| 4169 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 4170 | inline int UninterpretedOption::name_size() const { |
| 4171 | return name_.size(); |
| 4172 | } |
| 4173 | inline void UninterpretedOption::clear_name() { |
| 4174 | name_.Clear(); |
| 4175 | } |
| 4176 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >& |
| 4177 | UninterpretedOption::name() const { |
| 4178 | return name_; |
| 4179 | } |
| 4180 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >* |
| 4181 | UninterpretedOption::mutable_name() { |
| 4182 | return &name_; |
| 4183 | } |
| 4184 | inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const { |
| 4185 | return name_.Get(index); |
| 4186 | } |
| 4187 | inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) { |
| 4188 | return name_.Mutable(index); |
| 4189 | } |
| 4190 | inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() { |
| 4191 | return name_.Add(); |
| 4192 | } |
| 4193 | |
| 4194 | // optional string identifier_value = 3; |
| 4195 | inline bool UninterpretedOption::has_identifier_value() const { |
| 4196 | return _has_bit(1); |
| 4197 | } |
| 4198 | inline void UninterpretedOption::clear_identifier_value() { |
| 4199 | if (identifier_value_ != &_default_identifier_value_) { |
| 4200 | identifier_value_->clear(); |
| 4201 | } |
| 4202 | _clear_bit(1); |
| 4203 | } |
| 4204 | inline const ::std::string& UninterpretedOption::identifier_value() const { |
| 4205 | return *identifier_value_; |
| 4206 | } |
| 4207 | inline void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
| 4208 | _set_bit(1); |
| 4209 | if (identifier_value_ == &_default_identifier_value_) { |
| 4210 | identifier_value_ = new ::std::string; |
| 4211 | } |
| 4212 | identifier_value_->assign(value); |
| 4213 | } |
| 4214 | inline void UninterpretedOption::set_identifier_value(const char* value) { |
| 4215 | _set_bit(1); |
| 4216 | if (identifier_value_ == &_default_identifier_value_) { |
| 4217 | identifier_value_ = new ::std::string; |
| 4218 | } |
| 4219 | identifier_value_->assign(value); |
| 4220 | } |
| 4221 | inline ::std::string* UninterpretedOption::mutable_identifier_value() { |
| 4222 | _set_bit(1); |
| 4223 | if (identifier_value_ == &_default_identifier_value_) { |
| 4224 | identifier_value_ = new ::std::string; |
| 4225 | } |
| 4226 | return identifier_value_; |
| 4227 | } |
| 4228 | |
| 4229 | // optional uint64 positive_int_value = 4; |
| 4230 | inline bool UninterpretedOption::has_positive_int_value() const { |
| 4231 | return _has_bit(2); |
| 4232 | } |
| 4233 | inline void UninterpretedOption::clear_positive_int_value() { |
| 4234 | positive_int_value_ = GOOGLE_ULONGLONG(0); |
| 4235 | _clear_bit(2); |
| 4236 | } |
| 4237 | inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
| 4238 | return positive_int_value_; |
| 4239 | } |
| 4240 | inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) { |
| 4241 | _set_bit(2); |
| 4242 | positive_int_value_ = value; |
| 4243 | } |
| 4244 | |
| 4245 | // optional int64 negative_int_value = 5; |
| 4246 | inline bool UninterpretedOption::has_negative_int_value() const { |
| 4247 | return _has_bit(3); |
| 4248 | } |
| 4249 | inline void UninterpretedOption::clear_negative_int_value() { |
| 4250 | negative_int_value_ = GOOGLE_LONGLONG(0); |
| 4251 | _clear_bit(3); |
| 4252 | } |
| 4253 | inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
| 4254 | return negative_int_value_; |
| 4255 | } |
| 4256 | inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) { |
| 4257 | _set_bit(3); |
| 4258 | negative_int_value_ = value; |
| 4259 | } |
| 4260 | |
| 4261 | // optional double double_value = 6; |
| 4262 | inline bool UninterpretedOption::has_double_value() const { |
| 4263 | return _has_bit(4); |
| 4264 | } |
| 4265 | inline void UninterpretedOption::clear_double_value() { |
| 4266 | double_value_ = 0; |
| 4267 | _clear_bit(4); |
| 4268 | } |
| 4269 | inline double UninterpretedOption::double_value() const { |
| 4270 | return double_value_; |
| 4271 | } |
| 4272 | inline void UninterpretedOption::set_double_value(double value) { |
| 4273 | _set_bit(4); |
| 4274 | double_value_ = value; |
| 4275 | } |
| 4276 | |
| 4277 | // optional bytes string_value = 7; |
| 4278 | inline bool UninterpretedOption::has_string_value() const { |
| 4279 | return _has_bit(5); |
| 4280 | } |
| 4281 | inline void UninterpretedOption::clear_string_value() { |
| 4282 | if (string_value_ != &_default_string_value_) { |
| 4283 | string_value_->clear(); |
| 4284 | } |
| 4285 | _clear_bit(5); |
| 4286 | } |
| 4287 | inline const ::std::string& UninterpretedOption::string_value() const { |
| 4288 | return *string_value_; |
| 4289 | } |
| 4290 | inline void UninterpretedOption::set_string_value(const ::std::string& value) { |
| 4291 | _set_bit(5); |
| 4292 | if (string_value_ == &_default_string_value_) { |
| 4293 | string_value_ = new ::std::string; |
| 4294 | } |
| 4295 | string_value_->assign(value); |
| 4296 | } |
| 4297 | inline void UninterpretedOption::set_string_value(const char* value) { |
| 4298 | _set_bit(5); |
| 4299 | if (string_value_ == &_default_string_value_) { |
| 4300 | string_value_ = new ::std::string; |
| 4301 | } |
| 4302 | string_value_->assign(value); |
| 4303 | } |
| 4304 | inline void UninterpretedOption::set_string_value(const void* value, size_t size) { |
| 4305 | _set_bit(5); |
| 4306 | if (string_value_ == &_default_string_value_) { |
| 4307 | string_value_ = new ::std::string; |
| 4308 | } |
| 4309 | string_value_->assign(reinterpret_cast<const char*>(value), size); |
| 4310 | } |
| 4311 | inline ::std::string* UninterpretedOption::mutable_string_value() { |
| 4312 | _set_bit(5); |
| 4313 | if (string_value_ == &_default_string_value_) { |
| 4314 | string_value_ = new ::std::string; |
| 4315 | } |
| 4316 | return string_value_; |
| 4317 | } |
| 4318 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4319 | |
| 4320 | } // namespace protobuf |
| 4321 | } // namespace google |
| 4322 | #endif // PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED |