temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2 | // source: google/protobuf/descriptor.proto |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3 | |
| 4 | #ifndef PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED |
| 5 | #define PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include <google/protobuf/stubs/common.h> |
| 10 | |
kenton@google.com | afd32ab | 2009-12-18 02:51:26 +0000 | [diff] [blame] | 11 | #if GOOGLE_PROTOBUF_VERSION < 2003000 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 12 | #error This file was generated by a newer version of protoc which is |
| 13 | #error incompatible with your Protocol Buffer headers. Please update |
| 14 | #error your headers. |
| 15 | #endif |
kenton@google.com | ea75323 | 2010-01-09 01:02:25 +0000 | [diff] [blame] | 16 | #if 2003001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 17 | #error This file was generated by an older version of protoc which is |
| 18 | #error incompatible with your Protocol Buffer headers. Please |
| 19 | #error regenerate this file with a newer version of protoc. |
| 20 | #endif |
| 21 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 22 | #include <google/protobuf/generated_message_util.h> |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 23 | #include <google/protobuf/repeated_field.h> |
| 24 | #include <google/protobuf/extension_set.h> |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 25 | #include <google/protobuf/generated_message_reflection.h> |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 26 | // @@protoc_insertion_point(includes) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 27 | |
| 28 | namespace google { |
| 29 | namespace protobuf { |
| 30 | |
kenton@google.com | 9b10f58 | 2008-09-30 00:09:40 +0000 | [diff] [blame] | 31 | // Internal implementation detail -- do not call these. |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 32 | void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 33 | void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 34 | void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 35 | |
| 36 | class FileDescriptorSet; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 37 | class FileDescriptorProto; |
| 38 | class DescriptorProto; |
| 39 | class DescriptorProto_ExtensionRange; |
| 40 | class FieldDescriptorProto; |
| 41 | class EnumDescriptorProto; |
| 42 | class EnumValueDescriptorProto; |
| 43 | class ServiceDescriptorProto; |
| 44 | class MethodDescriptorProto; |
| 45 | class FileOptions; |
| 46 | class MessageOptions; |
| 47 | class FieldOptions; |
| 48 | class EnumOptions; |
| 49 | class EnumValueOptions; |
| 50 | class ServiceOptions; |
| 51 | class MethodOptions; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 52 | class UninterpretedOption; |
| 53 | class UninterpretedOption_NamePart; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 54 | class SourceCodeInfo; |
| 55 | class SourceCodeInfo_Location; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 56 | |
| 57 | enum FieldDescriptorProto_Type { |
| 58 | FieldDescriptorProto_Type_TYPE_DOUBLE = 1, |
| 59 | FieldDescriptorProto_Type_TYPE_FLOAT = 2, |
| 60 | FieldDescriptorProto_Type_TYPE_INT64 = 3, |
| 61 | FieldDescriptorProto_Type_TYPE_UINT64 = 4, |
| 62 | FieldDescriptorProto_Type_TYPE_INT32 = 5, |
| 63 | FieldDescriptorProto_Type_TYPE_FIXED64 = 6, |
| 64 | FieldDescriptorProto_Type_TYPE_FIXED32 = 7, |
| 65 | FieldDescriptorProto_Type_TYPE_BOOL = 8, |
| 66 | FieldDescriptorProto_Type_TYPE_STRING = 9, |
| 67 | FieldDescriptorProto_Type_TYPE_GROUP = 10, |
| 68 | FieldDescriptorProto_Type_TYPE_MESSAGE = 11, |
| 69 | FieldDescriptorProto_Type_TYPE_BYTES = 12, |
| 70 | FieldDescriptorProto_Type_TYPE_UINT32 = 13, |
| 71 | FieldDescriptorProto_Type_TYPE_ENUM = 14, |
| 72 | FieldDescriptorProto_Type_TYPE_SFIXED32 = 15, |
| 73 | FieldDescriptorProto_Type_TYPE_SFIXED64 = 16, |
| 74 | FieldDescriptorProto_Type_TYPE_SINT32 = 17, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 75 | FieldDescriptorProto_Type_TYPE_SINT64 = 18 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 76 | }; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 77 | LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value); |
| 78 | const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE; |
| 79 | const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 80 | const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 81 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 82 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 83 | inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) { |
| 84 | return ::google::protobuf::internal::NameOfEnum( |
| 85 | FieldDescriptorProto_Type_descriptor(), value); |
| 86 | } |
| 87 | inline bool FieldDescriptorProto_Type_Parse( |
| 88 | const ::std::string& name, FieldDescriptorProto_Type* value) { |
| 89 | return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>( |
| 90 | FieldDescriptorProto_Type_descriptor(), name, value); |
| 91 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 92 | enum FieldDescriptorProto_Label { |
| 93 | FieldDescriptorProto_Label_LABEL_OPTIONAL = 1, |
| 94 | FieldDescriptorProto_Label_LABEL_REQUIRED = 2, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 95 | FieldDescriptorProto_Label_LABEL_REPEATED = 3 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 96 | }; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 97 | LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value); |
| 98 | const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL; |
| 99 | const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 100 | const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 101 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 102 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 103 | inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) { |
| 104 | return ::google::protobuf::internal::NameOfEnum( |
| 105 | FieldDescriptorProto_Label_descriptor(), value); |
| 106 | } |
| 107 | inline bool FieldDescriptorProto_Label_Parse( |
| 108 | const ::std::string& name, FieldDescriptorProto_Label* value) { |
| 109 | return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>( |
| 110 | FieldDescriptorProto_Label_descriptor(), name, value); |
| 111 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 112 | enum FileOptions_OptimizeMode { |
| 113 | FileOptions_OptimizeMode_SPEED = 1, |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 114 | FileOptions_OptimizeMode_CODE_SIZE = 2, |
| 115 | FileOptions_OptimizeMode_LITE_RUNTIME = 3 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 116 | }; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 117 | LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value); |
| 118 | const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 119 | const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 120 | const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 121 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 122 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 123 | inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) { |
| 124 | return ::google::protobuf::internal::NameOfEnum( |
| 125 | FileOptions_OptimizeMode_descriptor(), value); |
| 126 | } |
| 127 | inline bool FileOptions_OptimizeMode_Parse( |
| 128 | const ::std::string& name, FileOptions_OptimizeMode* value) { |
| 129 | return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>( |
| 130 | FileOptions_OptimizeMode_descriptor(), name, value); |
| 131 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 132 | enum FieldOptions_CType { |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 133 | FieldOptions_CType_STRING = 0, |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 134 | FieldOptions_CType_CORD = 1, |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 135 | FieldOptions_CType_STRING_PIECE = 2 |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 136 | }; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 137 | LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 138 | const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 139 | const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 140 | const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 141 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 142 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 143 | inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) { |
| 144 | return ::google::protobuf::internal::NameOfEnum( |
| 145 | FieldOptions_CType_descriptor(), value); |
| 146 | } |
| 147 | inline bool FieldOptions_CType_Parse( |
| 148 | const ::std::string& name, FieldOptions_CType* value) { |
| 149 | return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>( |
| 150 | FieldOptions_CType_descriptor(), name, value); |
| 151 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 152 | // =================================================================== |
| 153 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 154 | class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message { |
| 155 | public: |
| 156 | FileDescriptorSet(); |
| 157 | virtual ~FileDescriptorSet(); |
| 158 | |
| 159 | FileDescriptorSet(const FileDescriptorSet& from); |
| 160 | |
| 161 | inline FileDescriptorSet& operator=(const FileDescriptorSet& from) { |
| 162 | CopyFrom(from); |
| 163 | return *this; |
| 164 | } |
| 165 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 166 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 167 | return _unknown_fields_; |
| 168 | } |
| 169 | |
| 170 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 171 | return &_unknown_fields_; |
| 172 | } |
| 173 | |
| 174 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 175 | static const FileDescriptorSet& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 176 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 177 | void Swap(FileDescriptorSet* other); |
| 178 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 179 | // implements Message ---------------------------------------------- |
| 180 | |
| 181 | FileDescriptorSet* New() const; |
| 182 | void CopyFrom(const ::google::protobuf::Message& from); |
| 183 | void MergeFrom(const ::google::protobuf::Message& from); |
| 184 | void CopyFrom(const FileDescriptorSet& from); |
| 185 | void MergeFrom(const FileDescriptorSet& from); |
| 186 | void Clear(); |
| 187 | bool IsInitialized() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 188 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 189 | int ByteSize() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 190 | bool MergePartialFromCodedStream( |
| 191 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 192 | void SerializeWithCachedSizes( |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 193 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 194 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 195 | int GetCachedSize() const { return _cached_size_; } |
| 196 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 197 | void SharedCtor(); |
| 198 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 199 | void SetCachedSize(int size) const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 200 | public: |
| 201 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 202 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 203 | |
| 204 | // nested types ---------------------------------------------------- |
| 205 | |
| 206 | // accessors ------------------------------------------------------- |
| 207 | |
| 208 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 209 | inline int file_size() const; |
| 210 | inline void clear_file(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 211 | static const int kFileFieldNumber = 1; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 212 | inline const ::google::protobuf::FileDescriptorProto& file(int index) const; |
| 213 | inline ::google::protobuf::FileDescriptorProto* mutable_file(int index); |
| 214 | inline ::google::protobuf::FileDescriptorProto* add_file(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 215 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& |
| 216 | file() const; |
| 217 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* |
| 218 | mutable_file(); |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 219 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 220 | // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 221 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 222 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 223 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 224 | |
| 225 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 226 | |
| 227 | mutable int _cached_size_; |
| 228 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 229 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 230 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 231 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 232 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 233 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 234 | void InitAsDefaultInstance(); |
| 235 | static FileDescriptorSet* default_instance_; |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 236 | }; |
| 237 | // ------------------------------------------------------------------- |
| 238 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 239 | class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message { |
| 240 | public: |
| 241 | FileDescriptorProto(); |
| 242 | virtual ~FileDescriptorProto(); |
| 243 | |
| 244 | FileDescriptorProto(const FileDescriptorProto& from); |
| 245 | |
| 246 | inline FileDescriptorProto& operator=(const FileDescriptorProto& from) { |
| 247 | CopyFrom(from); |
| 248 | return *this; |
| 249 | } |
| 250 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 251 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 252 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 253 | } |
| 254 | |
| 255 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 256 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 257 | } |
| 258 | |
| 259 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 260 | static const FileDescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 261 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 262 | void Swap(FileDescriptorProto* other); |
| 263 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 264 | // implements Message ---------------------------------------------- |
| 265 | |
| 266 | FileDescriptorProto* New() const; |
| 267 | void CopyFrom(const ::google::protobuf::Message& from); |
| 268 | void MergeFrom(const ::google::protobuf::Message& from); |
| 269 | void CopyFrom(const FileDescriptorProto& from); |
| 270 | void MergeFrom(const FileDescriptorProto& from); |
| 271 | void Clear(); |
| 272 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 273 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 274 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 275 | bool MergePartialFromCodedStream( |
| 276 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 277 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 278 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 279 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 280 | int GetCachedSize() const { return _cached_size_; } |
| 281 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 282 | void SharedCtor(); |
| 283 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 284 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 285 | public: |
| 286 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 287 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 288 | |
| 289 | // nested types ---------------------------------------------------- |
| 290 | |
| 291 | // accessors ------------------------------------------------------- |
| 292 | |
| 293 | // optional string name = 1; |
| 294 | inline bool has_name() const; |
| 295 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 296 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 297 | inline const ::std::string& name() const; |
| 298 | inline void set_name(const ::std::string& value); |
| 299 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 300 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 301 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 302 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 303 | |
| 304 | // optional string package = 2; |
| 305 | inline bool has_package() const; |
| 306 | inline void clear_package(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 307 | static const int kPackageFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 308 | inline const ::std::string& package() const; |
| 309 | inline void set_package(const ::std::string& value); |
| 310 | inline void set_package(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 311 | inline void set_package(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 312 | inline ::std::string* mutable_package(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 313 | inline ::std::string* release_package(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 314 | |
| 315 | // repeated string dependency = 3; |
| 316 | inline int dependency_size() const; |
| 317 | inline void clear_dependency(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 318 | static const int kDependencyFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 319 | inline const ::std::string& dependency(int index) const; |
| 320 | inline ::std::string* mutable_dependency(int index); |
| 321 | inline void set_dependency(int index, const ::std::string& value); |
temporal | f206351 | 2008-07-23 01:19:07 +0000 | [diff] [blame] | 322 | inline void set_dependency(int index, const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 323 | inline void set_dependency(int index, const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 324 | inline ::std::string* add_dependency(); |
| 325 | inline void add_dependency(const ::std::string& value); |
| 326 | inline void add_dependency(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 327 | inline void add_dependency(const char* value, size_t size); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 328 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const; |
| 329 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 330 | |
| 331 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 332 | inline int message_type_size() const; |
| 333 | inline void clear_message_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 334 | static const int kMessageTypeFieldNumber = 4; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 335 | inline const ::google::protobuf::DescriptorProto& message_type(int index) const; |
| 336 | inline ::google::protobuf::DescriptorProto* mutable_message_type(int index); |
| 337 | inline ::google::protobuf::DescriptorProto* add_message_type(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 338 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 339 | message_type() const; |
| 340 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 341 | mutable_message_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 342 | |
| 343 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 344 | inline int enum_type_size() const; |
| 345 | inline void clear_enum_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 346 | static const int kEnumTypeFieldNumber = 5; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 347 | inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const; |
| 348 | inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index); |
| 349 | inline ::google::protobuf::EnumDescriptorProto* add_enum_type(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 350 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 351 | enum_type() const; |
| 352 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 353 | mutable_enum_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 354 | |
| 355 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 356 | inline int service_size() const; |
| 357 | inline void clear_service(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 358 | static const int kServiceFieldNumber = 6; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 359 | inline const ::google::protobuf::ServiceDescriptorProto& service(int index) const; |
| 360 | inline ::google::protobuf::ServiceDescriptorProto* mutable_service(int index); |
| 361 | inline ::google::protobuf::ServiceDescriptorProto* add_service(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 362 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >& |
| 363 | service() const; |
| 364 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >* |
| 365 | mutable_service(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 366 | |
| 367 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 368 | inline int extension_size() const; |
| 369 | inline void clear_extension(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 370 | static const int kExtensionFieldNumber = 7; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 371 | inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const; |
| 372 | inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index); |
| 373 | inline ::google::protobuf::FieldDescriptorProto* add_extension(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 374 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 375 | extension() const; |
| 376 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 377 | mutable_extension(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 378 | |
| 379 | // optional .google.protobuf.FileOptions options = 8; |
| 380 | inline bool has_options() const; |
| 381 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 382 | static const int kOptionsFieldNumber = 8; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 383 | inline const ::google::protobuf::FileOptions& options() const; |
| 384 | inline ::google::protobuf::FileOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 385 | inline ::google::protobuf::FileOptions* release_options(); |
| 386 | |
| 387 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 388 | inline bool has_source_code_info() const; |
| 389 | inline void clear_source_code_info(); |
| 390 | static const int kSourceCodeInfoFieldNumber = 9; |
| 391 | inline const ::google::protobuf::SourceCodeInfo& source_code_info() const; |
| 392 | inline ::google::protobuf::SourceCodeInfo* mutable_source_code_info(); |
| 393 | inline ::google::protobuf::SourceCodeInfo* release_source_code_info(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 394 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 395 | // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 396 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 397 | inline void set_has_name(); |
| 398 | inline void clear_has_name(); |
| 399 | inline void set_has_package(); |
| 400 | inline void clear_has_package(); |
| 401 | inline void set_has_options(); |
| 402 | inline void clear_has_options(); |
| 403 | inline void set_has_source_code_info(); |
| 404 | inline void clear_has_source_code_info(); |
| 405 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 406 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 407 | |
| 408 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 409 | ::std::string* package_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 410 | ::google::protobuf::RepeatedPtrField< ::std::string> dependency_; |
| 411 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_; |
| 412 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_; |
| 413 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_; |
| 414 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_; |
| 415 | ::google::protobuf::FileOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 416 | ::google::protobuf::SourceCodeInfo* source_code_info_; |
| 417 | |
| 418 | mutable int _cached_size_; |
| 419 | ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; |
| 420 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 421 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 422 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 423 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 424 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 425 | void InitAsDefaultInstance(); |
| 426 | static FileDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 427 | }; |
| 428 | // ------------------------------------------------------------------- |
| 429 | |
| 430 | class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message { |
| 431 | public: |
| 432 | DescriptorProto_ExtensionRange(); |
| 433 | virtual ~DescriptorProto_ExtensionRange(); |
| 434 | |
| 435 | DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from); |
| 436 | |
| 437 | inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) { |
| 438 | CopyFrom(from); |
| 439 | return *this; |
| 440 | } |
| 441 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 442 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 443 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 444 | } |
| 445 | |
| 446 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 447 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 448 | } |
| 449 | |
| 450 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 451 | static const DescriptorProto_ExtensionRange& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 452 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 453 | void Swap(DescriptorProto_ExtensionRange* other); |
| 454 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 455 | // implements Message ---------------------------------------------- |
| 456 | |
| 457 | DescriptorProto_ExtensionRange* New() const; |
| 458 | void CopyFrom(const ::google::protobuf::Message& from); |
| 459 | void MergeFrom(const ::google::protobuf::Message& from); |
| 460 | void CopyFrom(const DescriptorProto_ExtensionRange& from); |
| 461 | void MergeFrom(const DescriptorProto_ExtensionRange& from); |
| 462 | void Clear(); |
| 463 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 464 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 465 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 466 | bool MergePartialFromCodedStream( |
| 467 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 468 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 469 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 470 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 471 | int GetCachedSize() const { return _cached_size_; } |
| 472 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 473 | void SharedCtor(); |
| 474 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 475 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 476 | public: |
| 477 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 478 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 479 | |
| 480 | // nested types ---------------------------------------------------- |
| 481 | |
| 482 | // accessors ------------------------------------------------------- |
| 483 | |
| 484 | // optional int32 start = 1; |
| 485 | inline bool has_start() const; |
| 486 | inline void clear_start(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 487 | static const int kStartFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 488 | inline ::google::protobuf::int32 start() const; |
| 489 | inline void set_start(::google::protobuf::int32 value); |
| 490 | |
| 491 | // optional int32 end = 2; |
| 492 | inline bool has_end() const; |
| 493 | inline void clear_end(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 494 | static const int kEndFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 495 | inline ::google::protobuf::int32 end() const; |
| 496 | inline void set_end(::google::protobuf::int32 value); |
| 497 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 498 | // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 499 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 500 | inline void set_has_start(); |
| 501 | inline void clear_has_start(); |
| 502 | inline void set_has_end(); |
| 503 | inline void clear_has_end(); |
| 504 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 505 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 506 | |
| 507 | ::google::protobuf::int32 start_; |
| 508 | ::google::protobuf::int32 end_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 509 | |
| 510 | mutable int _cached_size_; |
| 511 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
| 512 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 513 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 514 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 515 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 516 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 517 | void InitAsDefaultInstance(); |
| 518 | static DescriptorProto_ExtensionRange* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 519 | }; |
| 520 | // ------------------------------------------------------------------- |
| 521 | |
| 522 | class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message { |
| 523 | public: |
| 524 | DescriptorProto(); |
| 525 | virtual ~DescriptorProto(); |
| 526 | |
| 527 | DescriptorProto(const DescriptorProto& from); |
| 528 | |
| 529 | inline DescriptorProto& operator=(const DescriptorProto& from) { |
| 530 | CopyFrom(from); |
| 531 | return *this; |
| 532 | } |
| 533 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 534 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 535 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 536 | } |
| 537 | |
| 538 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 539 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 540 | } |
| 541 | |
| 542 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 543 | static const DescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 544 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 545 | void Swap(DescriptorProto* other); |
| 546 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 547 | // implements Message ---------------------------------------------- |
| 548 | |
| 549 | DescriptorProto* New() const; |
| 550 | void CopyFrom(const ::google::protobuf::Message& from); |
| 551 | void MergeFrom(const ::google::protobuf::Message& from); |
| 552 | void CopyFrom(const DescriptorProto& from); |
| 553 | void MergeFrom(const DescriptorProto& from); |
| 554 | void Clear(); |
| 555 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 556 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 557 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 558 | bool MergePartialFromCodedStream( |
| 559 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 560 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 561 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 562 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 563 | int GetCachedSize() const { return _cached_size_; } |
| 564 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 565 | void SharedCtor(); |
| 566 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 567 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 568 | public: |
| 569 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 570 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 571 | |
| 572 | // nested types ---------------------------------------------------- |
| 573 | |
| 574 | typedef DescriptorProto_ExtensionRange ExtensionRange; |
| 575 | |
| 576 | // accessors ------------------------------------------------------- |
| 577 | |
| 578 | // optional string name = 1; |
| 579 | inline bool has_name() const; |
| 580 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 581 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 582 | inline const ::std::string& name() const; |
| 583 | inline void set_name(const ::std::string& value); |
| 584 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 585 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 586 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 587 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 588 | |
| 589 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 590 | inline int field_size() const; |
| 591 | inline void clear_field(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 592 | static const int kFieldFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 593 | inline const ::google::protobuf::FieldDescriptorProto& field(int index) const; |
| 594 | inline ::google::protobuf::FieldDescriptorProto* mutable_field(int index); |
| 595 | inline ::google::protobuf::FieldDescriptorProto* add_field(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 596 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 597 | field() const; |
| 598 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 599 | mutable_field(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 600 | |
| 601 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 602 | inline int extension_size() const; |
| 603 | inline void clear_extension(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 604 | static const int kExtensionFieldNumber = 6; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 605 | inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const; |
| 606 | inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index); |
| 607 | inline ::google::protobuf::FieldDescriptorProto* add_extension(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 608 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 609 | extension() const; |
| 610 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 611 | mutable_extension(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 612 | |
| 613 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 614 | inline int nested_type_size() const; |
| 615 | inline void clear_nested_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 616 | static const int kNestedTypeFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 617 | inline const ::google::protobuf::DescriptorProto& nested_type(int index) const; |
| 618 | inline ::google::protobuf::DescriptorProto* mutable_nested_type(int index); |
| 619 | inline ::google::protobuf::DescriptorProto* add_nested_type(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 620 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 621 | nested_type() const; |
| 622 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 623 | mutable_nested_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 624 | |
| 625 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 626 | inline int enum_type_size() const; |
| 627 | inline void clear_enum_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 628 | static const int kEnumTypeFieldNumber = 4; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 629 | inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const; |
| 630 | inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index); |
| 631 | inline ::google::protobuf::EnumDescriptorProto* add_enum_type(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 632 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 633 | enum_type() const; |
| 634 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 635 | mutable_enum_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 636 | |
| 637 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 638 | inline int extension_range_size() const; |
| 639 | inline void clear_extension_range(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 640 | static const int kExtensionRangeFieldNumber = 5; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 641 | inline const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const; |
| 642 | inline ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index); |
| 643 | inline ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 644 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >& |
| 645 | extension_range() const; |
| 646 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >* |
| 647 | mutable_extension_range(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 648 | |
| 649 | // optional .google.protobuf.MessageOptions options = 7; |
| 650 | inline bool has_options() const; |
| 651 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 652 | static const int kOptionsFieldNumber = 7; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 653 | inline const ::google::protobuf::MessageOptions& options() const; |
| 654 | inline ::google::protobuf::MessageOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 655 | inline ::google::protobuf::MessageOptions* release_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 656 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 657 | // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 658 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 659 | inline void set_has_name(); |
| 660 | inline void clear_has_name(); |
| 661 | inline void set_has_options(); |
| 662 | inline void clear_has_options(); |
| 663 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 664 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 665 | |
| 666 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 667 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_; |
| 668 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_; |
| 669 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_; |
| 670 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_; |
| 671 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_; |
| 672 | ::google::protobuf::MessageOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 673 | |
| 674 | mutable int _cached_size_; |
| 675 | ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; |
| 676 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 677 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 678 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 679 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 680 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 681 | void InitAsDefaultInstance(); |
| 682 | static DescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 683 | }; |
| 684 | // ------------------------------------------------------------------- |
| 685 | |
| 686 | class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message { |
| 687 | public: |
| 688 | FieldDescriptorProto(); |
| 689 | virtual ~FieldDescriptorProto(); |
| 690 | |
| 691 | FieldDescriptorProto(const FieldDescriptorProto& from); |
| 692 | |
| 693 | inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) { |
| 694 | CopyFrom(from); |
| 695 | return *this; |
| 696 | } |
| 697 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 698 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 699 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 700 | } |
| 701 | |
| 702 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 703 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 704 | } |
| 705 | |
| 706 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 707 | static const FieldDescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 708 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 709 | void Swap(FieldDescriptorProto* other); |
| 710 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 711 | // implements Message ---------------------------------------------- |
| 712 | |
| 713 | FieldDescriptorProto* New() const; |
| 714 | void CopyFrom(const ::google::protobuf::Message& from); |
| 715 | void MergeFrom(const ::google::protobuf::Message& from); |
| 716 | void CopyFrom(const FieldDescriptorProto& from); |
| 717 | void MergeFrom(const FieldDescriptorProto& from); |
| 718 | void Clear(); |
| 719 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 720 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 721 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 722 | bool MergePartialFromCodedStream( |
| 723 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 724 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 725 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 726 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 727 | int GetCachedSize() const { return _cached_size_; } |
| 728 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 729 | void SharedCtor(); |
| 730 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 731 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 732 | public: |
| 733 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 734 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 735 | |
| 736 | // nested types ---------------------------------------------------- |
| 737 | |
| 738 | typedef FieldDescriptorProto_Type Type; |
| 739 | static const Type TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE; |
| 740 | static const Type TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT; |
| 741 | static const Type TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64; |
| 742 | static const Type TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64; |
| 743 | static const Type TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32; |
| 744 | static const Type TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64; |
| 745 | static const Type TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32; |
| 746 | static const Type TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL; |
| 747 | static const Type TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING; |
| 748 | static const Type TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP; |
| 749 | static const Type TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE; |
| 750 | static const Type TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES; |
| 751 | static const Type TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32; |
| 752 | static const Type TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM; |
| 753 | static const Type TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32; |
| 754 | static const Type TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64; |
| 755 | static const Type TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32; |
| 756 | static const Type TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 757 | static inline bool Type_IsValid(int value) { |
| 758 | return FieldDescriptorProto_Type_IsValid(value); |
| 759 | } |
| 760 | static const Type Type_MIN = |
| 761 | FieldDescriptorProto_Type_Type_MIN; |
| 762 | static const Type Type_MAX = |
| 763 | FieldDescriptorProto_Type_Type_MAX; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 764 | static const int Type_ARRAYSIZE = |
| 765 | FieldDescriptorProto_Type_Type_ARRAYSIZE; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 766 | static inline const ::google::protobuf::EnumDescriptor* |
| 767 | Type_descriptor() { |
| 768 | return FieldDescriptorProto_Type_descriptor(); |
| 769 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 770 | static inline const ::std::string& Type_Name(Type value) { |
| 771 | return FieldDescriptorProto_Type_Name(value); |
| 772 | } |
| 773 | static inline bool Type_Parse(const ::std::string& name, |
| 774 | Type* value) { |
| 775 | return FieldDescriptorProto_Type_Parse(name, value); |
| 776 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 777 | |
| 778 | typedef FieldDescriptorProto_Label Label; |
| 779 | static const Label LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL; |
| 780 | static const Label LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED; |
| 781 | static const Label LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 782 | static inline bool Label_IsValid(int value) { |
| 783 | return FieldDescriptorProto_Label_IsValid(value); |
| 784 | } |
| 785 | static const Label Label_MIN = |
| 786 | FieldDescriptorProto_Label_Label_MIN; |
| 787 | static const Label Label_MAX = |
| 788 | FieldDescriptorProto_Label_Label_MAX; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 789 | static const int Label_ARRAYSIZE = |
| 790 | FieldDescriptorProto_Label_Label_ARRAYSIZE; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 791 | static inline const ::google::protobuf::EnumDescriptor* |
| 792 | Label_descriptor() { |
| 793 | return FieldDescriptorProto_Label_descriptor(); |
| 794 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 795 | static inline const ::std::string& Label_Name(Label value) { |
| 796 | return FieldDescriptorProto_Label_Name(value); |
| 797 | } |
| 798 | static inline bool Label_Parse(const ::std::string& name, |
| 799 | Label* value) { |
| 800 | return FieldDescriptorProto_Label_Parse(name, value); |
| 801 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 802 | |
| 803 | // accessors ------------------------------------------------------- |
| 804 | |
| 805 | // optional string name = 1; |
| 806 | inline bool has_name() const; |
| 807 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 808 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 809 | inline const ::std::string& name() const; |
| 810 | inline void set_name(const ::std::string& value); |
| 811 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 812 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 813 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 814 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 815 | |
| 816 | // optional int32 number = 3; |
| 817 | inline bool has_number() const; |
| 818 | inline void clear_number(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 819 | static const int kNumberFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 820 | inline ::google::protobuf::int32 number() const; |
| 821 | inline void set_number(::google::protobuf::int32 value); |
| 822 | |
| 823 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 824 | inline bool has_label() const; |
| 825 | inline void clear_label(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 826 | static const int kLabelFieldNumber = 4; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 827 | inline ::google::protobuf::FieldDescriptorProto_Label label() const; |
| 828 | inline void set_label(::google::protobuf::FieldDescriptorProto_Label value); |
| 829 | |
| 830 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 831 | inline bool has_type() const; |
| 832 | inline void clear_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 833 | static const int kTypeFieldNumber = 5; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 834 | inline ::google::protobuf::FieldDescriptorProto_Type type() const; |
| 835 | inline void set_type(::google::protobuf::FieldDescriptorProto_Type value); |
| 836 | |
| 837 | // optional string type_name = 6; |
| 838 | inline bool has_type_name() const; |
| 839 | inline void clear_type_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 840 | static const int kTypeNameFieldNumber = 6; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 841 | inline const ::std::string& type_name() const; |
| 842 | inline void set_type_name(const ::std::string& value); |
| 843 | inline void set_type_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 844 | inline void set_type_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 845 | inline ::std::string* mutable_type_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 846 | inline ::std::string* release_type_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 847 | |
| 848 | // optional string extendee = 2; |
| 849 | inline bool has_extendee() const; |
| 850 | inline void clear_extendee(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 851 | static const int kExtendeeFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 852 | inline const ::std::string& extendee() const; |
| 853 | inline void set_extendee(const ::std::string& value); |
| 854 | inline void set_extendee(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 855 | inline void set_extendee(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 856 | inline ::std::string* mutable_extendee(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 857 | inline ::std::string* release_extendee(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 858 | |
| 859 | // optional string default_value = 7; |
| 860 | inline bool has_default_value() const; |
| 861 | inline void clear_default_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 862 | static const int kDefaultValueFieldNumber = 7; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 863 | inline const ::std::string& default_value() const; |
| 864 | inline void set_default_value(const ::std::string& value); |
| 865 | inline void set_default_value(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 866 | inline void set_default_value(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 867 | inline ::std::string* mutable_default_value(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 868 | inline ::std::string* release_default_value(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 869 | |
| 870 | // optional .google.protobuf.FieldOptions options = 8; |
| 871 | inline bool has_options() const; |
| 872 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 873 | static const int kOptionsFieldNumber = 8; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 874 | inline const ::google::protobuf::FieldOptions& options() const; |
| 875 | inline ::google::protobuf::FieldOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 876 | inline ::google::protobuf::FieldOptions* release_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 877 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 878 | // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 879 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 880 | inline void set_has_name(); |
| 881 | inline void clear_has_name(); |
| 882 | inline void set_has_number(); |
| 883 | inline void clear_has_number(); |
| 884 | inline void set_has_label(); |
| 885 | inline void clear_has_label(); |
| 886 | inline void set_has_type(); |
| 887 | inline void clear_has_type(); |
| 888 | inline void set_has_type_name(); |
| 889 | inline void clear_has_type_name(); |
| 890 | inline void set_has_extendee(); |
| 891 | inline void clear_has_extendee(); |
| 892 | inline void set_has_default_value(); |
| 893 | inline void clear_has_default_value(); |
| 894 | inline void set_has_options(); |
| 895 | inline void clear_has_options(); |
| 896 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 897 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 898 | |
| 899 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 900 | ::google::protobuf::int32 number_; |
| 901 | int label_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 902 | ::std::string* type_name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 903 | ::std::string* extendee_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 904 | ::std::string* default_value_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 905 | ::google::protobuf::FieldOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 906 | int type_; |
| 907 | |
| 908 | mutable int _cached_size_; |
| 909 | ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; |
| 910 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 911 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 912 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 913 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 914 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 915 | void InitAsDefaultInstance(); |
| 916 | static FieldDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 917 | }; |
| 918 | // ------------------------------------------------------------------- |
| 919 | |
| 920 | class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message { |
| 921 | public: |
| 922 | EnumDescriptorProto(); |
| 923 | virtual ~EnumDescriptorProto(); |
| 924 | |
| 925 | EnumDescriptorProto(const EnumDescriptorProto& from); |
| 926 | |
| 927 | inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) { |
| 928 | CopyFrom(from); |
| 929 | return *this; |
| 930 | } |
| 931 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 932 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 933 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 934 | } |
| 935 | |
| 936 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 937 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 938 | } |
| 939 | |
| 940 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 941 | static const EnumDescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 942 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 943 | void Swap(EnumDescriptorProto* other); |
| 944 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 945 | // implements Message ---------------------------------------------- |
| 946 | |
| 947 | EnumDescriptorProto* New() const; |
| 948 | void CopyFrom(const ::google::protobuf::Message& from); |
| 949 | void MergeFrom(const ::google::protobuf::Message& from); |
| 950 | void CopyFrom(const EnumDescriptorProto& from); |
| 951 | void MergeFrom(const EnumDescriptorProto& from); |
| 952 | void Clear(); |
| 953 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 954 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 955 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 956 | bool MergePartialFromCodedStream( |
| 957 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 958 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 959 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 960 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 961 | int GetCachedSize() const { return _cached_size_; } |
| 962 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 963 | void SharedCtor(); |
| 964 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 965 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 966 | public: |
| 967 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 968 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 969 | |
| 970 | // nested types ---------------------------------------------------- |
| 971 | |
| 972 | // accessors ------------------------------------------------------- |
| 973 | |
| 974 | // optional string name = 1; |
| 975 | inline bool has_name() const; |
| 976 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 977 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 978 | inline const ::std::string& name() const; |
| 979 | inline void set_name(const ::std::string& value); |
| 980 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 981 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 982 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 983 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 984 | |
| 985 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 986 | inline int value_size() const; |
| 987 | inline void clear_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 988 | static const int kValueFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 989 | inline const ::google::protobuf::EnumValueDescriptorProto& value(int index) const; |
| 990 | inline ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index); |
| 991 | inline ::google::protobuf::EnumValueDescriptorProto* add_value(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 992 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >& |
| 993 | value() const; |
| 994 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >* |
| 995 | mutable_value(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 996 | |
| 997 | // optional .google.protobuf.EnumOptions options = 3; |
| 998 | inline bool has_options() const; |
| 999 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1000 | static const int kOptionsFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1001 | inline const ::google::protobuf::EnumOptions& options() const; |
| 1002 | inline ::google::protobuf::EnumOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1003 | inline ::google::protobuf::EnumOptions* release_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1004 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1005 | // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1006 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1007 | inline void set_has_name(); |
| 1008 | inline void clear_has_name(); |
| 1009 | inline void set_has_options(); |
| 1010 | inline void clear_has_options(); |
| 1011 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1012 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1013 | |
| 1014 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1015 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_; |
| 1016 | ::google::protobuf::EnumOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1017 | |
| 1018 | mutable int _cached_size_; |
| 1019 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 1020 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1021 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1022 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1023 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1024 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1025 | void InitAsDefaultInstance(); |
| 1026 | static EnumDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1027 | }; |
| 1028 | // ------------------------------------------------------------------- |
| 1029 | |
| 1030 | class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message { |
| 1031 | public: |
| 1032 | EnumValueDescriptorProto(); |
| 1033 | virtual ~EnumValueDescriptorProto(); |
| 1034 | |
| 1035 | EnumValueDescriptorProto(const EnumValueDescriptorProto& from); |
| 1036 | |
| 1037 | inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) { |
| 1038 | CopyFrom(from); |
| 1039 | return *this; |
| 1040 | } |
| 1041 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1042 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1043 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1044 | } |
| 1045 | |
| 1046 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1047 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1048 | } |
| 1049 | |
| 1050 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1051 | static const EnumValueDescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1052 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1053 | void Swap(EnumValueDescriptorProto* other); |
| 1054 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1055 | // implements Message ---------------------------------------------- |
| 1056 | |
| 1057 | EnumValueDescriptorProto* New() const; |
| 1058 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1059 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1060 | void CopyFrom(const EnumValueDescriptorProto& from); |
| 1061 | void MergeFrom(const EnumValueDescriptorProto& from); |
| 1062 | void Clear(); |
| 1063 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1064 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1065 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1066 | bool MergePartialFromCodedStream( |
| 1067 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1068 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1069 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1070 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1071 | int GetCachedSize() const { return _cached_size_; } |
| 1072 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1073 | void SharedCtor(); |
| 1074 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1075 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1076 | public: |
| 1077 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1078 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1079 | |
| 1080 | // nested types ---------------------------------------------------- |
| 1081 | |
| 1082 | // accessors ------------------------------------------------------- |
| 1083 | |
| 1084 | // optional string name = 1; |
| 1085 | inline bool has_name() const; |
| 1086 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1087 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1088 | inline const ::std::string& name() const; |
| 1089 | inline void set_name(const ::std::string& value); |
| 1090 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1091 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1092 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1093 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1094 | |
| 1095 | // optional int32 number = 2; |
| 1096 | inline bool has_number() const; |
| 1097 | inline void clear_number(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1098 | static const int kNumberFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1099 | inline ::google::protobuf::int32 number() const; |
| 1100 | inline void set_number(::google::protobuf::int32 value); |
| 1101 | |
| 1102 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 1103 | inline bool has_options() const; |
| 1104 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1105 | static const int kOptionsFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1106 | inline const ::google::protobuf::EnumValueOptions& options() const; |
| 1107 | inline ::google::protobuf::EnumValueOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1108 | inline ::google::protobuf::EnumValueOptions* release_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1109 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1110 | // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1111 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1112 | inline void set_has_name(); |
| 1113 | inline void clear_has_name(); |
| 1114 | inline void set_has_number(); |
| 1115 | inline void clear_has_number(); |
| 1116 | inline void set_has_options(); |
| 1117 | inline void clear_has_options(); |
| 1118 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1119 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1120 | |
| 1121 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1122 | ::google::protobuf::EnumValueOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1123 | ::google::protobuf::int32 number_; |
| 1124 | |
| 1125 | mutable int _cached_size_; |
| 1126 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 1127 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1128 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1129 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1130 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1131 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1132 | void InitAsDefaultInstance(); |
| 1133 | static EnumValueDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1134 | }; |
| 1135 | // ------------------------------------------------------------------- |
| 1136 | |
| 1137 | class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message { |
| 1138 | public: |
| 1139 | ServiceDescriptorProto(); |
| 1140 | virtual ~ServiceDescriptorProto(); |
| 1141 | |
| 1142 | ServiceDescriptorProto(const ServiceDescriptorProto& from); |
| 1143 | |
| 1144 | inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) { |
| 1145 | CopyFrom(from); |
| 1146 | return *this; |
| 1147 | } |
| 1148 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1149 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1150 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1151 | } |
| 1152 | |
| 1153 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1154 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1155 | } |
| 1156 | |
| 1157 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1158 | static const ServiceDescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1159 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1160 | void Swap(ServiceDescriptorProto* other); |
| 1161 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1162 | // implements Message ---------------------------------------------- |
| 1163 | |
| 1164 | ServiceDescriptorProto* New() const; |
| 1165 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1166 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1167 | void CopyFrom(const ServiceDescriptorProto& from); |
| 1168 | void MergeFrom(const ServiceDescriptorProto& from); |
| 1169 | void Clear(); |
| 1170 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1171 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1172 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1173 | bool MergePartialFromCodedStream( |
| 1174 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1175 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1176 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1177 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1178 | int GetCachedSize() const { return _cached_size_; } |
| 1179 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1180 | void SharedCtor(); |
| 1181 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1182 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1183 | public: |
| 1184 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1185 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1186 | |
| 1187 | // nested types ---------------------------------------------------- |
| 1188 | |
| 1189 | // accessors ------------------------------------------------------- |
| 1190 | |
| 1191 | // optional string name = 1; |
| 1192 | inline bool has_name() const; |
| 1193 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1194 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1195 | inline const ::std::string& name() const; |
| 1196 | inline void set_name(const ::std::string& value); |
| 1197 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1198 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1199 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1200 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1201 | |
| 1202 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 1203 | inline int method_size() const; |
| 1204 | inline void clear_method(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1205 | static const int kMethodFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1206 | inline const ::google::protobuf::MethodDescriptorProto& method(int index) const; |
| 1207 | inline ::google::protobuf::MethodDescriptorProto* mutable_method(int index); |
| 1208 | inline ::google::protobuf::MethodDescriptorProto* add_method(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1209 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >& |
| 1210 | method() const; |
| 1211 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >* |
| 1212 | mutable_method(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1213 | |
| 1214 | // optional .google.protobuf.ServiceOptions options = 3; |
| 1215 | inline bool has_options() const; |
| 1216 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1217 | static const int kOptionsFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1218 | inline const ::google::protobuf::ServiceOptions& options() const; |
| 1219 | inline ::google::protobuf::ServiceOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1220 | inline ::google::protobuf::ServiceOptions* release_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1221 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1222 | // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1223 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1224 | inline void set_has_name(); |
| 1225 | inline void clear_has_name(); |
| 1226 | inline void set_has_options(); |
| 1227 | inline void clear_has_options(); |
| 1228 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1229 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1230 | |
| 1231 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1232 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_; |
| 1233 | ::google::protobuf::ServiceOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1234 | |
| 1235 | mutable int _cached_size_; |
| 1236 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 1237 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1238 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1239 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1240 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1241 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1242 | void InitAsDefaultInstance(); |
| 1243 | static ServiceDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1244 | }; |
| 1245 | // ------------------------------------------------------------------- |
| 1246 | |
| 1247 | class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message { |
| 1248 | public: |
| 1249 | MethodDescriptorProto(); |
| 1250 | virtual ~MethodDescriptorProto(); |
| 1251 | |
| 1252 | MethodDescriptorProto(const MethodDescriptorProto& from); |
| 1253 | |
| 1254 | inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) { |
| 1255 | CopyFrom(from); |
| 1256 | return *this; |
| 1257 | } |
| 1258 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1259 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1260 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1261 | } |
| 1262 | |
| 1263 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1264 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1265 | } |
| 1266 | |
| 1267 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1268 | static const MethodDescriptorProto& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1269 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1270 | void Swap(MethodDescriptorProto* other); |
| 1271 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1272 | // implements Message ---------------------------------------------- |
| 1273 | |
| 1274 | MethodDescriptorProto* New() const; |
| 1275 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1276 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1277 | void CopyFrom(const MethodDescriptorProto& from); |
| 1278 | void MergeFrom(const MethodDescriptorProto& from); |
| 1279 | void Clear(); |
| 1280 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1281 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1282 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1283 | bool MergePartialFromCodedStream( |
| 1284 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1285 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1286 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1287 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1288 | int GetCachedSize() const { return _cached_size_; } |
| 1289 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1290 | void SharedCtor(); |
| 1291 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1292 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1293 | public: |
| 1294 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1295 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1296 | |
| 1297 | // nested types ---------------------------------------------------- |
| 1298 | |
| 1299 | // accessors ------------------------------------------------------- |
| 1300 | |
| 1301 | // optional string name = 1; |
| 1302 | inline bool has_name() const; |
| 1303 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1304 | static const int kNameFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1305 | inline const ::std::string& name() const; |
| 1306 | inline void set_name(const ::std::string& value); |
| 1307 | inline void set_name(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1308 | inline void set_name(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1309 | inline ::std::string* mutable_name(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1310 | inline ::std::string* release_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1311 | |
| 1312 | // optional string input_type = 2; |
| 1313 | inline bool has_input_type() const; |
| 1314 | inline void clear_input_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1315 | static const int kInputTypeFieldNumber = 2; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1316 | inline const ::std::string& input_type() const; |
| 1317 | inline void set_input_type(const ::std::string& value); |
| 1318 | inline void set_input_type(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1319 | inline void set_input_type(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1320 | inline ::std::string* mutable_input_type(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1321 | inline ::std::string* release_input_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1322 | |
| 1323 | // optional string output_type = 3; |
| 1324 | inline bool has_output_type() const; |
| 1325 | inline void clear_output_type(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1326 | static const int kOutputTypeFieldNumber = 3; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1327 | inline const ::std::string& output_type() const; |
| 1328 | inline void set_output_type(const ::std::string& value); |
| 1329 | inline void set_output_type(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1330 | inline void set_output_type(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1331 | inline ::std::string* mutable_output_type(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1332 | inline ::std::string* release_output_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1333 | |
| 1334 | // optional .google.protobuf.MethodOptions options = 4; |
| 1335 | inline bool has_options() const; |
| 1336 | inline void clear_options(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1337 | static const int kOptionsFieldNumber = 4; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1338 | inline const ::google::protobuf::MethodOptions& options() const; |
| 1339 | inline ::google::protobuf::MethodOptions* mutable_options(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1340 | inline ::google::protobuf::MethodOptions* release_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1341 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1342 | // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1343 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1344 | inline void set_has_name(); |
| 1345 | inline void clear_has_name(); |
| 1346 | inline void set_has_input_type(); |
| 1347 | inline void clear_has_input_type(); |
| 1348 | inline void set_has_output_type(); |
| 1349 | inline void clear_has_output_type(); |
| 1350 | inline void set_has_options(); |
| 1351 | inline void clear_has_options(); |
| 1352 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1353 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1354 | |
| 1355 | ::std::string* name_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1356 | ::std::string* input_type_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1357 | ::std::string* output_type_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1358 | ::google::protobuf::MethodOptions* options_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1359 | |
| 1360 | mutable int _cached_size_; |
| 1361 | ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; |
| 1362 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1363 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1364 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1365 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1366 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1367 | void InitAsDefaultInstance(); |
| 1368 | static MethodDescriptorProto* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1369 | }; |
| 1370 | // ------------------------------------------------------------------- |
| 1371 | |
| 1372 | class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message { |
| 1373 | public: |
| 1374 | FileOptions(); |
| 1375 | virtual ~FileOptions(); |
| 1376 | |
| 1377 | FileOptions(const FileOptions& from); |
| 1378 | |
| 1379 | inline FileOptions& operator=(const FileOptions& from) { |
| 1380 | CopyFrom(from); |
| 1381 | return *this; |
| 1382 | } |
| 1383 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1384 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1385 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1386 | } |
| 1387 | |
| 1388 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1389 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1390 | } |
| 1391 | |
| 1392 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1393 | static const FileOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1394 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1395 | void Swap(FileOptions* other); |
| 1396 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1397 | // implements Message ---------------------------------------------- |
| 1398 | |
| 1399 | FileOptions* New() const; |
| 1400 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1401 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1402 | void CopyFrom(const FileOptions& from); |
| 1403 | void MergeFrom(const FileOptions& from); |
| 1404 | void Clear(); |
| 1405 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1406 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1407 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1408 | bool MergePartialFromCodedStream( |
| 1409 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1410 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1411 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1412 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1413 | int GetCachedSize() const { return _cached_size_; } |
| 1414 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1415 | void SharedCtor(); |
| 1416 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1417 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1418 | public: |
| 1419 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1420 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1421 | |
| 1422 | // nested types ---------------------------------------------------- |
| 1423 | |
| 1424 | typedef FileOptions_OptimizeMode OptimizeMode; |
| 1425 | static const OptimizeMode SPEED = FileOptions_OptimizeMode_SPEED; |
| 1426 | static const OptimizeMode CODE_SIZE = FileOptions_OptimizeMode_CODE_SIZE; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1427 | static const OptimizeMode LITE_RUNTIME = FileOptions_OptimizeMode_LITE_RUNTIME; |
| 1428 | static inline bool OptimizeMode_IsValid(int value) { |
| 1429 | return FileOptions_OptimizeMode_IsValid(value); |
| 1430 | } |
| 1431 | static const OptimizeMode OptimizeMode_MIN = |
| 1432 | FileOptions_OptimizeMode_OptimizeMode_MIN; |
| 1433 | static const OptimizeMode OptimizeMode_MAX = |
| 1434 | FileOptions_OptimizeMode_OptimizeMode_MAX; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1435 | static const int OptimizeMode_ARRAYSIZE = |
| 1436 | FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1437 | static inline const ::google::protobuf::EnumDescriptor* |
| 1438 | OptimizeMode_descriptor() { |
| 1439 | return FileOptions_OptimizeMode_descriptor(); |
| 1440 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1441 | static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) { |
| 1442 | return FileOptions_OptimizeMode_Name(value); |
| 1443 | } |
| 1444 | static inline bool OptimizeMode_Parse(const ::std::string& name, |
| 1445 | OptimizeMode* value) { |
| 1446 | return FileOptions_OptimizeMode_Parse(name, value); |
| 1447 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1448 | |
| 1449 | // accessors ------------------------------------------------------- |
| 1450 | |
| 1451 | // optional string java_package = 1; |
| 1452 | inline bool has_java_package() const; |
| 1453 | inline void clear_java_package(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1454 | static const int kJavaPackageFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1455 | inline const ::std::string& java_package() const; |
| 1456 | inline void set_java_package(const ::std::string& value); |
| 1457 | inline void set_java_package(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1458 | inline void set_java_package(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1459 | inline ::std::string* mutable_java_package(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1460 | inline ::std::string* release_java_package(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1461 | |
| 1462 | // optional string java_outer_classname = 8; |
| 1463 | inline bool has_java_outer_classname() const; |
| 1464 | inline void clear_java_outer_classname(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1465 | static const int kJavaOuterClassnameFieldNumber = 8; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1466 | inline const ::std::string& java_outer_classname() const; |
| 1467 | inline void set_java_outer_classname(const ::std::string& value); |
| 1468 | inline void set_java_outer_classname(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1469 | inline void set_java_outer_classname(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1470 | inline ::std::string* mutable_java_outer_classname(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1471 | inline ::std::string* release_java_outer_classname(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1472 | |
| 1473 | // optional bool java_multiple_files = 10 [default = false]; |
| 1474 | inline bool has_java_multiple_files() const; |
| 1475 | inline void clear_java_multiple_files(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1476 | static const int kJavaMultipleFilesFieldNumber = 10; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1477 | inline bool java_multiple_files() const; |
| 1478 | inline void set_java_multiple_files(bool value); |
| 1479 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1480 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 1481 | inline bool has_java_generate_equals_and_hash() const; |
| 1482 | inline void clear_java_generate_equals_and_hash(); |
| 1483 | static const int kJavaGenerateEqualsAndHashFieldNumber = 20; |
| 1484 | inline bool java_generate_equals_and_hash() const; |
| 1485 | inline void set_java_generate_equals_and_hash(bool value); |
| 1486 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1487 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1488 | inline bool has_optimize_for() const; |
| 1489 | inline void clear_optimize_for(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1490 | static const int kOptimizeForFieldNumber = 9; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1491 | inline ::google::protobuf::FileOptions_OptimizeMode optimize_for() const; |
| 1492 | inline void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value); |
| 1493 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1494 | // optional bool cc_generic_services = 16 [default = false]; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1495 | inline bool has_cc_generic_services() const; |
| 1496 | inline void clear_cc_generic_services(); |
| 1497 | static const int kCcGenericServicesFieldNumber = 16; |
| 1498 | inline bool cc_generic_services() const; |
| 1499 | inline void set_cc_generic_services(bool value); |
| 1500 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1501 | // optional bool java_generic_services = 17 [default = false]; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1502 | inline bool has_java_generic_services() const; |
| 1503 | inline void clear_java_generic_services(); |
| 1504 | static const int kJavaGenericServicesFieldNumber = 17; |
| 1505 | inline bool java_generic_services() const; |
| 1506 | inline void set_java_generic_services(bool value); |
| 1507 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1508 | // optional bool py_generic_services = 18 [default = false]; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1509 | inline bool has_py_generic_services() const; |
| 1510 | inline void clear_py_generic_services(); |
| 1511 | static const int kPyGenericServicesFieldNumber = 18; |
| 1512 | inline bool py_generic_services() const; |
| 1513 | inline void set_py_generic_services(bool value); |
| 1514 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1515 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1516 | inline int uninterpreted_option_size() const; |
| 1517 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1518 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1519 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1520 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1521 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1522 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 1523 | uninterpreted_option() const; |
| 1524 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 1525 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1526 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1527 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1528 | // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1529 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1530 | inline void set_has_java_package(); |
| 1531 | inline void clear_has_java_package(); |
| 1532 | inline void set_has_java_outer_classname(); |
| 1533 | inline void clear_has_java_outer_classname(); |
| 1534 | inline void set_has_java_multiple_files(); |
| 1535 | inline void clear_has_java_multiple_files(); |
| 1536 | inline void set_has_java_generate_equals_and_hash(); |
| 1537 | inline void clear_has_java_generate_equals_and_hash(); |
| 1538 | inline void set_has_optimize_for(); |
| 1539 | inline void clear_has_optimize_for(); |
| 1540 | inline void set_has_cc_generic_services(); |
| 1541 | inline void clear_has_cc_generic_services(); |
| 1542 | inline void set_has_java_generic_services(); |
| 1543 | inline void clear_has_java_generic_services(); |
| 1544 | inline void set_has_py_generic_services(); |
| 1545 | inline void clear_has_py_generic_services(); |
| 1546 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1547 | ::google::protobuf::internal::ExtensionSet _extensions_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1548 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1549 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1550 | |
| 1551 | ::std::string* java_package_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1552 | ::std::string* java_outer_classname_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1553 | int optimize_for_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1554 | bool java_multiple_files_; |
| 1555 | bool java_generate_equals_and_hash_; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1556 | bool cc_generic_services_; |
| 1557 | bool java_generic_services_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1558 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1559 | bool py_generic_services_; |
| 1560 | |
| 1561 | mutable int _cached_size_; |
| 1562 | ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32]; |
| 1563 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1564 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1565 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1566 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1567 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1568 | void InitAsDefaultInstance(); |
| 1569 | static FileOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1570 | }; |
| 1571 | // ------------------------------------------------------------------- |
| 1572 | |
| 1573 | class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message { |
| 1574 | public: |
| 1575 | MessageOptions(); |
| 1576 | virtual ~MessageOptions(); |
| 1577 | |
| 1578 | MessageOptions(const MessageOptions& from); |
| 1579 | |
| 1580 | inline MessageOptions& operator=(const MessageOptions& from) { |
| 1581 | CopyFrom(from); |
| 1582 | return *this; |
| 1583 | } |
| 1584 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1585 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1586 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1587 | } |
| 1588 | |
| 1589 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1590 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1591 | } |
| 1592 | |
| 1593 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1594 | static const MessageOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1595 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1596 | void Swap(MessageOptions* other); |
| 1597 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1598 | // implements Message ---------------------------------------------- |
| 1599 | |
| 1600 | MessageOptions* New() const; |
| 1601 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1602 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1603 | void CopyFrom(const MessageOptions& from); |
| 1604 | void MergeFrom(const MessageOptions& from); |
| 1605 | void Clear(); |
| 1606 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1607 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1608 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1609 | bool MergePartialFromCodedStream( |
| 1610 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1611 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1612 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1613 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1614 | int GetCachedSize() const { return _cached_size_; } |
| 1615 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1616 | void SharedCtor(); |
| 1617 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1618 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1619 | public: |
| 1620 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1621 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1622 | |
| 1623 | // nested types ---------------------------------------------------- |
| 1624 | |
| 1625 | // accessors ------------------------------------------------------- |
| 1626 | |
| 1627 | // optional bool message_set_wire_format = 1 [default = false]; |
| 1628 | inline bool has_message_set_wire_format() const; |
| 1629 | inline void clear_message_set_wire_format(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1630 | static const int kMessageSetWireFormatFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1631 | inline bool message_set_wire_format() const; |
| 1632 | inline void set_message_set_wire_format(bool value); |
| 1633 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1634 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 1635 | inline bool has_no_standard_descriptor_accessor() const; |
| 1636 | inline void clear_no_standard_descriptor_accessor(); |
| 1637 | static const int kNoStandardDescriptorAccessorFieldNumber = 2; |
| 1638 | inline bool no_standard_descriptor_accessor() const; |
| 1639 | inline void set_no_standard_descriptor_accessor(bool value); |
| 1640 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1641 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1642 | inline int uninterpreted_option_size() const; |
| 1643 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1644 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1645 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1646 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1647 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1648 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 1649 | uninterpreted_option() const; |
| 1650 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 1651 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1652 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1653 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1654 | // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1655 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1656 | inline void set_has_message_set_wire_format(); |
| 1657 | inline void clear_has_message_set_wire_format(); |
| 1658 | inline void set_has_no_standard_descriptor_accessor(); |
| 1659 | inline void clear_has_no_standard_descriptor_accessor(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1660 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1661 | ::google::protobuf::internal::ExtensionSet _extensions_; |
| 1662 | |
| 1663 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
| 1664 | |
| 1665 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1666 | bool message_set_wire_format_; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1667 | bool no_standard_descriptor_accessor_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1668 | |
| 1669 | mutable int _cached_size_; |
| 1670 | ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; |
| 1671 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1672 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1673 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1674 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1675 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1676 | void InitAsDefaultInstance(); |
| 1677 | static MessageOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1678 | }; |
| 1679 | // ------------------------------------------------------------------- |
| 1680 | |
| 1681 | class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message { |
| 1682 | public: |
| 1683 | FieldOptions(); |
| 1684 | virtual ~FieldOptions(); |
| 1685 | |
| 1686 | FieldOptions(const FieldOptions& from); |
| 1687 | |
| 1688 | inline FieldOptions& operator=(const FieldOptions& from) { |
| 1689 | CopyFrom(from); |
| 1690 | return *this; |
| 1691 | } |
| 1692 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1693 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1694 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1695 | } |
| 1696 | |
| 1697 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1698 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1699 | } |
| 1700 | |
| 1701 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1702 | static const FieldOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1703 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1704 | void Swap(FieldOptions* other); |
| 1705 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1706 | // implements Message ---------------------------------------------- |
| 1707 | |
| 1708 | FieldOptions* New() const; |
| 1709 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1710 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1711 | void CopyFrom(const FieldOptions& from); |
| 1712 | void MergeFrom(const FieldOptions& from); |
| 1713 | void Clear(); |
| 1714 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1715 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1716 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1717 | bool MergePartialFromCodedStream( |
| 1718 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1719 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1720 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1721 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1722 | int GetCachedSize() const { return _cached_size_; } |
| 1723 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1724 | void SharedCtor(); |
| 1725 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1726 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1727 | public: |
| 1728 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1729 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1730 | |
| 1731 | // nested types ---------------------------------------------------- |
| 1732 | |
| 1733 | typedef FieldOptions_CType CType; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1734 | static const CType STRING = FieldOptions_CType_STRING; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1735 | static const CType CORD = FieldOptions_CType_CORD; |
| 1736 | static const CType STRING_PIECE = FieldOptions_CType_STRING_PIECE; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1737 | static inline bool CType_IsValid(int value) { |
| 1738 | return FieldOptions_CType_IsValid(value); |
| 1739 | } |
| 1740 | static const CType CType_MIN = |
| 1741 | FieldOptions_CType_CType_MIN; |
| 1742 | static const CType CType_MAX = |
| 1743 | FieldOptions_CType_CType_MAX; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1744 | static const int CType_ARRAYSIZE = |
| 1745 | FieldOptions_CType_CType_ARRAYSIZE; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1746 | static inline const ::google::protobuf::EnumDescriptor* |
| 1747 | CType_descriptor() { |
| 1748 | return FieldOptions_CType_descriptor(); |
| 1749 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1750 | static inline const ::std::string& CType_Name(CType value) { |
| 1751 | return FieldOptions_CType_Name(value); |
| 1752 | } |
| 1753 | static inline bool CType_Parse(const ::std::string& name, |
| 1754 | CType* value) { |
| 1755 | return FieldOptions_CType_Parse(name, value); |
| 1756 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1757 | |
| 1758 | // accessors ------------------------------------------------------- |
| 1759 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1760 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1761 | inline bool has_ctype() const; |
| 1762 | inline void clear_ctype(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1763 | static const int kCtypeFieldNumber = 1; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1764 | inline ::google::protobuf::FieldOptions_CType ctype() const; |
| 1765 | inline void set_ctype(::google::protobuf::FieldOptions_CType value); |
| 1766 | |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 1767 | // optional bool packed = 2; |
| 1768 | inline bool has_packed() const; |
| 1769 | inline void clear_packed(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1770 | static const int kPackedFieldNumber = 2; |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 1771 | inline bool packed() const; |
| 1772 | inline void set_packed(bool value); |
| 1773 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1774 | // optional bool deprecated = 3 [default = false]; |
| 1775 | inline bool has_deprecated() const; |
| 1776 | inline void clear_deprecated(); |
| 1777 | static const int kDeprecatedFieldNumber = 3; |
| 1778 | inline bool deprecated() const; |
| 1779 | inline void set_deprecated(bool value); |
| 1780 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1781 | // optional string experimental_map_key = 9; |
| 1782 | inline bool has_experimental_map_key() const; |
| 1783 | inline void clear_experimental_map_key(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1784 | static const int kExperimentalMapKeyFieldNumber = 9; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1785 | inline const ::std::string& experimental_map_key() const; |
| 1786 | inline void set_experimental_map_key(const ::std::string& value); |
| 1787 | inline void set_experimental_map_key(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1788 | inline void set_experimental_map_key(const char* value, size_t size); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1789 | inline ::std::string* mutable_experimental_map_key(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1790 | inline ::std::string* release_experimental_map_key(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1791 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1792 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1793 | inline int uninterpreted_option_size() const; |
| 1794 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1795 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1796 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1797 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1798 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1799 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 1800 | uninterpreted_option() const; |
| 1801 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 1802 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1803 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1804 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1805 | // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1806 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1807 | inline void set_has_ctype(); |
| 1808 | inline void clear_has_ctype(); |
| 1809 | inline void set_has_packed(); |
| 1810 | inline void clear_has_packed(); |
| 1811 | inline void set_has_deprecated(); |
| 1812 | inline void clear_has_deprecated(); |
| 1813 | inline void set_has_experimental_map_key(); |
| 1814 | inline void clear_has_experimental_map_key(); |
| 1815 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1816 | ::google::protobuf::internal::ExtensionSet _extensions_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1817 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1818 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1819 | |
| 1820 | int ctype_; |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 1821 | bool packed_; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1822 | bool deprecated_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1823 | ::std::string* experimental_map_key_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1824 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1825 | |
| 1826 | mutable int _cached_size_; |
| 1827 | ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; |
| 1828 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1829 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1830 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1831 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1832 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1833 | void InitAsDefaultInstance(); |
| 1834 | static FieldOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1835 | }; |
| 1836 | // ------------------------------------------------------------------- |
| 1837 | |
| 1838 | class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message { |
| 1839 | public: |
| 1840 | EnumOptions(); |
| 1841 | virtual ~EnumOptions(); |
| 1842 | |
| 1843 | EnumOptions(const EnumOptions& from); |
| 1844 | |
| 1845 | inline EnumOptions& operator=(const EnumOptions& from) { |
| 1846 | CopyFrom(from); |
| 1847 | return *this; |
| 1848 | } |
| 1849 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1850 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1851 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1852 | } |
| 1853 | |
| 1854 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1855 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1856 | } |
| 1857 | |
| 1858 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1859 | static const EnumOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1860 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1861 | void Swap(EnumOptions* other); |
| 1862 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1863 | // implements Message ---------------------------------------------- |
| 1864 | |
| 1865 | EnumOptions* New() const; |
| 1866 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1867 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1868 | void CopyFrom(const EnumOptions& from); |
| 1869 | void MergeFrom(const EnumOptions& from); |
| 1870 | void Clear(); |
| 1871 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1872 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1873 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1874 | bool MergePartialFromCodedStream( |
| 1875 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1876 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1877 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1878 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1879 | int GetCachedSize() const { return _cached_size_; } |
| 1880 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1881 | void SharedCtor(); |
| 1882 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1883 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1884 | public: |
| 1885 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1886 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1887 | |
| 1888 | // nested types ---------------------------------------------------- |
| 1889 | |
| 1890 | // accessors ------------------------------------------------------- |
| 1891 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1892 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1893 | inline int uninterpreted_option_size() const; |
| 1894 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1895 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1896 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1897 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1898 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1899 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 1900 | uninterpreted_option() const; |
| 1901 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 1902 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1903 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1904 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1905 | // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1906 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1907 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1908 | ::google::protobuf::internal::ExtensionSet _extensions_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1909 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1910 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1911 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1912 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1913 | |
| 1914 | mutable int _cached_size_; |
| 1915 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 1916 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 1917 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1918 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 1919 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1920 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1921 | void InitAsDefaultInstance(); |
| 1922 | static EnumOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1923 | }; |
| 1924 | // ------------------------------------------------------------------- |
| 1925 | |
| 1926 | class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message { |
| 1927 | public: |
| 1928 | EnumValueOptions(); |
| 1929 | virtual ~EnumValueOptions(); |
| 1930 | |
| 1931 | EnumValueOptions(const EnumValueOptions& from); |
| 1932 | |
| 1933 | inline EnumValueOptions& operator=(const EnumValueOptions& from) { |
| 1934 | CopyFrom(from); |
| 1935 | return *this; |
| 1936 | } |
| 1937 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1938 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1939 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1940 | } |
| 1941 | |
| 1942 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1943 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1944 | } |
| 1945 | |
| 1946 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1947 | static const EnumValueOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1948 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 1949 | void Swap(EnumValueOptions* other); |
| 1950 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1951 | // implements Message ---------------------------------------------- |
| 1952 | |
| 1953 | EnumValueOptions* New() const; |
| 1954 | void CopyFrom(const ::google::protobuf::Message& from); |
| 1955 | void MergeFrom(const ::google::protobuf::Message& from); |
| 1956 | void CopyFrom(const EnumValueOptions& from); |
| 1957 | void MergeFrom(const EnumValueOptions& from); |
| 1958 | void Clear(); |
| 1959 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1960 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1961 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1962 | bool MergePartialFromCodedStream( |
| 1963 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1964 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1965 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1966 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1967 | int GetCachedSize() const { return _cached_size_; } |
| 1968 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1969 | void SharedCtor(); |
| 1970 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1971 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1972 | public: |
| 1973 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 1974 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1975 | |
| 1976 | // nested types ---------------------------------------------------- |
| 1977 | |
| 1978 | // accessors ------------------------------------------------------- |
| 1979 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1980 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 1981 | inline int uninterpreted_option_size() const; |
| 1982 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 1983 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1984 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 1985 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 1986 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1987 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 1988 | uninterpreted_option() const; |
| 1989 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 1990 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1991 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 1992 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 1993 | // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1994 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1995 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 1996 | ::google::protobuf::internal::ExtensionSet _extensions_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 1997 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 1998 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1999 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2000 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2001 | |
| 2002 | mutable int _cached_size_; |
| 2003 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 2004 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 2005 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2006 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 2007 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2008 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2009 | void InitAsDefaultInstance(); |
| 2010 | static EnumValueOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2011 | }; |
| 2012 | // ------------------------------------------------------------------- |
| 2013 | |
| 2014 | class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message { |
| 2015 | public: |
| 2016 | ServiceOptions(); |
| 2017 | virtual ~ServiceOptions(); |
| 2018 | |
| 2019 | ServiceOptions(const ServiceOptions& from); |
| 2020 | |
| 2021 | inline ServiceOptions& operator=(const ServiceOptions& from) { |
| 2022 | CopyFrom(from); |
| 2023 | return *this; |
| 2024 | } |
| 2025 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2026 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2027 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2028 | } |
| 2029 | |
| 2030 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2031 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2032 | } |
| 2033 | |
| 2034 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2035 | static const ServiceOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2036 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2037 | void Swap(ServiceOptions* other); |
| 2038 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2039 | // implements Message ---------------------------------------------- |
| 2040 | |
| 2041 | ServiceOptions* New() const; |
| 2042 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2043 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2044 | void CopyFrom(const ServiceOptions& from); |
| 2045 | void MergeFrom(const ServiceOptions& from); |
| 2046 | void Clear(); |
| 2047 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2048 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2049 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2050 | bool MergePartialFromCodedStream( |
| 2051 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2052 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2053 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2054 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2055 | int GetCachedSize() const { return _cached_size_; } |
| 2056 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2057 | void SharedCtor(); |
| 2058 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2059 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2060 | public: |
| 2061 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2062 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2063 | |
| 2064 | // nested types ---------------------------------------------------- |
| 2065 | |
| 2066 | // accessors ------------------------------------------------------- |
| 2067 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2068 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 2069 | inline int uninterpreted_option_size() const; |
| 2070 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2071 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2072 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 2073 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 2074 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2075 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 2076 | uninterpreted_option() const; |
| 2077 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 2078 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2079 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2080 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2081 | // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2082 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2083 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2084 | ::google::protobuf::internal::ExtensionSet _extensions_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2085 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2086 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2087 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2088 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2089 | |
| 2090 | mutable int _cached_size_; |
| 2091 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 2092 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 2093 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2094 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 2095 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2096 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2097 | void InitAsDefaultInstance(); |
| 2098 | static ServiceOptions* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2099 | }; |
| 2100 | // ------------------------------------------------------------------- |
| 2101 | |
| 2102 | class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message { |
| 2103 | public: |
| 2104 | MethodOptions(); |
| 2105 | virtual ~MethodOptions(); |
| 2106 | |
| 2107 | MethodOptions(const MethodOptions& from); |
| 2108 | |
| 2109 | inline MethodOptions& operator=(const MethodOptions& from) { |
| 2110 | CopyFrom(from); |
| 2111 | return *this; |
| 2112 | } |
| 2113 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2114 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2115 | return _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2116 | } |
| 2117 | |
| 2118 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2119 | return &_unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2120 | } |
| 2121 | |
| 2122 | static const ::google::protobuf::Descriptor* descriptor(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2123 | static const MethodOptions& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2124 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2125 | void Swap(MethodOptions* other); |
| 2126 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2127 | // implements Message ---------------------------------------------- |
| 2128 | |
| 2129 | MethodOptions* New() const; |
| 2130 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2131 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2132 | void CopyFrom(const MethodOptions& from); |
| 2133 | void MergeFrom(const MethodOptions& from); |
| 2134 | void Clear(); |
| 2135 | bool IsInitialized() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2136 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2137 | int ByteSize() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2138 | bool MergePartialFromCodedStream( |
| 2139 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2140 | void SerializeWithCachedSizes( |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2141 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2142 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2143 | int GetCachedSize() const { return _cached_size_; } |
| 2144 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2145 | void SharedCtor(); |
| 2146 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2147 | void SetCachedSize(int size) const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2148 | public: |
| 2149 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2150 | ::google::protobuf::Metadata GetMetadata() const; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2151 | |
| 2152 | // nested types ---------------------------------------------------- |
| 2153 | |
| 2154 | // accessors ------------------------------------------------------- |
| 2155 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2156 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 2157 | inline int uninterpreted_option_size() const; |
| 2158 | inline void clear_uninterpreted_option(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2159 | static const int kUninterpretedOptionFieldNumber = 999; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2160 | inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const; |
| 2161 | inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index); |
| 2162 | inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2163 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 2164 | uninterpreted_option() const; |
| 2165 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 2166 | mutable_uninterpreted_option(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2167 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2168 | GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions) |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2169 | // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions) |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2170 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2171 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2172 | ::google::protobuf::internal::ExtensionSet _extensions_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2173 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2174 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2175 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2176 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2177 | |
| 2178 | mutable int _cached_size_; |
| 2179 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 2180 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 2181 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2182 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 2183 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2184 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2185 | void InitAsDefaultInstance(); |
| 2186 | static MethodOptions* default_instance_; |
| 2187 | }; |
| 2188 | // ------------------------------------------------------------------- |
| 2189 | |
| 2190 | class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message { |
| 2191 | public: |
| 2192 | UninterpretedOption_NamePart(); |
| 2193 | virtual ~UninterpretedOption_NamePart(); |
| 2194 | |
| 2195 | UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from); |
| 2196 | |
| 2197 | inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) { |
| 2198 | CopyFrom(from); |
| 2199 | return *this; |
| 2200 | } |
| 2201 | |
| 2202 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 2203 | return _unknown_fields_; |
| 2204 | } |
| 2205 | |
| 2206 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 2207 | return &_unknown_fields_; |
| 2208 | } |
| 2209 | |
| 2210 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2211 | static const UninterpretedOption_NamePart& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2212 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2213 | void Swap(UninterpretedOption_NamePart* other); |
| 2214 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2215 | // implements Message ---------------------------------------------- |
| 2216 | |
| 2217 | UninterpretedOption_NamePart* New() const; |
| 2218 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2219 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2220 | void CopyFrom(const UninterpretedOption_NamePart& from); |
| 2221 | void MergeFrom(const UninterpretedOption_NamePart& from); |
| 2222 | void Clear(); |
| 2223 | bool IsInitialized() const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2224 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2225 | int ByteSize() const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2226 | bool MergePartialFromCodedStream( |
| 2227 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2228 | void SerializeWithCachedSizes( |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2229 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2230 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2231 | int GetCachedSize() const { return _cached_size_; } |
| 2232 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2233 | void SharedCtor(); |
| 2234 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2235 | void SetCachedSize(int size) const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2236 | public: |
| 2237 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2238 | ::google::protobuf::Metadata GetMetadata() const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2239 | |
| 2240 | // nested types ---------------------------------------------------- |
| 2241 | |
| 2242 | // accessors ------------------------------------------------------- |
| 2243 | |
| 2244 | // required string name_part = 1; |
| 2245 | inline bool has_name_part() const; |
| 2246 | inline void clear_name_part(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2247 | static const int kNamePartFieldNumber = 1; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2248 | inline const ::std::string& name_part() const; |
| 2249 | inline void set_name_part(const ::std::string& value); |
| 2250 | inline void set_name_part(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2251 | inline void set_name_part(const char* value, size_t size); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2252 | inline ::std::string* mutable_name_part(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2253 | inline ::std::string* release_name_part(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2254 | |
| 2255 | // required bool is_extension = 2; |
| 2256 | inline bool has_is_extension() const; |
| 2257 | inline void clear_is_extension(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2258 | static const int kIsExtensionFieldNumber = 2; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2259 | inline bool is_extension() const; |
| 2260 | inline void set_is_extension(bool value); |
| 2261 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2262 | // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart) |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2263 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2264 | inline void set_has_name_part(); |
| 2265 | inline void clear_has_name_part(); |
| 2266 | inline void set_has_is_extension(); |
| 2267 | inline void clear_has_is_extension(); |
| 2268 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2269 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2270 | |
| 2271 | ::std::string* name_part_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2272 | bool is_extension_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2273 | |
| 2274 | mutable int _cached_size_; |
| 2275 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
| 2276 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 2277 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2278 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 2279 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2280 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2281 | void InitAsDefaultInstance(); |
| 2282 | static UninterpretedOption_NamePart* default_instance_; |
| 2283 | }; |
| 2284 | // ------------------------------------------------------------------- |
| 2285 | |
| 2286 | class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message { |
| 2287 | public: |
| 2288 | UninterpretedOption(); |
| 2289 | virtual ~UninterpretedOption(); |
| 2290 | |
| 2291 | UninterpretedOption(const UninterpretedOption& from); |
| 2292 | |
| 2293 | inline UninterpretedOption& operator=(const UninterpretedOption& from) { |
| 2294 | CopyFrom(from); |
| 2295 | return *this; |
| 2296 | } |
| 2297 | |
| 2298 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 2299 | return _unknown_fields_; |
| 2300 | } |
| 2301 | |
| 2302 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 2303 | return &_unknown_fields_; |
| 2304 | } |
| 2305 | |
| 2306 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2307 | static const UninterpretedOption& default_instance(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2308 | |
kenton@google.com | 26bd9ee | 2008-11-21 00:06:27 +0000 | [diff] [blame] | 2309 | void Swap(UninterpretedOption* other); |
| 2310 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2311 | // implements Message ---------------------------------------------- |
| 2312 | |
| 2313 | UninterpretedOption* New() const; |
| 2314 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2315 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2316 | void CopyFrom(const UninterpretedOption& from); |
| 2317 | void MergeFrom(const UninterpretedOption& from); |
| 2318 | void Clear(); |
| 2319 | bool IsInitialized() const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2320 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2321 | int ByteSize() const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2322 | bool MergePartialFromCodedStream( |
| 2323 | ::google::protobuf::io::CodedInputStream* input); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2324 | void SerializeWithCachedSizes( |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2325 | ::google::protobuf::io::CodedOutputStream* output) const; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2326 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2327 | int GetCachedSize() const { return _cached_size_; } |
| 2328 | private: |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2329 | void SharedCtor(); |
| 2330 | void SharedDtor(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2331 | void SetCachedSize(int size) const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2332 | public: |
| 2333 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2334 | ::google::protobuf::Metadata GetMetadata() const; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2335 | |
| 2336 | // nested types ---------------------------------------------------- |
| 2337 | |
| 2338 | typedef UninterpretedOption_NamePart NamePart; |
| 2339 | |
| 2340 | // accessors ------------------------------------------------------- |
| 2341 | |
| 2342 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 2343 | inline int name_size() const; |
| 2344 | inline void clear_name(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2345 | static const int kNameFieldNumber = 2; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2346 | inline const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const; |
| 2347 | inline ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index); |
| 2348 | inline ::google::protobuf::UninterpretedOption_NamePart* add_name(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2349 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >& |
| 2350 | name() const; |
| 2351 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >* |
| 2352 | mutable_name(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2353 | |
| 2354 | // optional string identifier_value = 3; |
| 2355 | inline bool has_identifier_value() const; |
| 2356 | inline void clear_identifier_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2357 | static const int kIdentifierValueFieldNumber = 3; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2358 | inline const ::std::string& identifier_value() const; |
| 2359 | inline void set_identifier_value(const ::std::string& value); |
| 2360 | inline void set_identifier_value(const char* value); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2361 | inline void set_identifier_value(const char* value, size_t size); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2362 | inline ::std::string* mutable_identifier_value(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2363 | inline ::std::string* release_identifier_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2364 | |
| 2365 | // optional uint64 positive_int_value = 4; |
| 2366 | inline bool has_positive_int_value() const; |
| 2367 | inline void clear_positive_int_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2368 | static const int kPositiveIntValueFieldNumber = 4; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2369 | inline ::google::protobuf::uint64 positive_int_value() const; |
| 2370 | inline void set_positive_int_value(::google::protobuf::uint64 value); |
| 2371 | |
| 2372 | // optional int64 negative_int_value = 5; |
| 2373 | inline bool has_negative_int_value() const; |
| 2374 | inline void clear_negative_int_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2375 | static const int kNegativeIntValueFieldNumber = 5; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2376 | inline ::google::protobuf::int64 negative_int_value() const; |
| 2377 | inline void set_negative_int_value(::google::protobuf::int64 value); |
| 2378 | |
| 2379 | // optional double double_value = 6; |
| 2380 | inline bool has_double_value() const; |
| 2381 | inline void clear_double_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2382 | static const int kDoubleValueFieldNumber = 6; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2383 | inline double double_value() const; |
| 2384 | inline void set_double_value(double value); |
| 2385 | |
| 2386 | // optional bytes string_value = 7; |
| 2387 | inline bool has_string_value() const; |
| 2388 | inline void clear_string_value(); |
kenton@google.com | cfa2d8a | 2009-04-18 00:02:12 +0000 | [diff] [blame] | 2389 | static const int kStringValueFieldNumber = 7; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2390 | inline const ::std::string& string_value() const; |
| 2391 | inline void set_string_value(const ::std::string& value); |
| 2392 | inline void set_string_value(const char* value); |
| 2393 | inline void set_string_value(const void* value, size_t size); |
| 2394 | inline ::std::string* mutable_string_value(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2395 | inline ::std::string* release_string_value(); |
| 2396 | |
| 2397 | // optional string aggregate_value = 8; |
| 2398 | inline bool has_aggregate_value() const; |
| 2399 | inline void clear_aggregate_value(); |
| 2400 | static const int kAggregateValueFieldNumber = 8; |
| 2401 | inline const ::std::string& aggregate_value() const; |
| 2402 | inline void set_aggregate_value(const ::std::string& value); |
| 2403 | inline void set_aggregate_value(const char* value); |
| 2404 | inline void set_aggregate_value(const char* value, size_t size); |
| 2405 | inline ::std::string* mutable_aggregate_value(); |
| 2406 | inline ::std::string* release_aggregate_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2407 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2408 | // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption) |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2409 | private: |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2410 | inline void set_has_identifier_value(); |
| 2411 | inline void clear_has_identifier_value(); |
| 2412 | inline void set_has_positive_int_value(); |
| 2413 | inline void clear_has_positive_int_value(); |
| 2414 | inline void set_has_negative_int_value(); |
| 2415 | inline void clear_has_negative_int_value(); |
| 2416 | inline void set_has_double_value(); |
| 2417 | inline void clear_has_double_value(); |
| 2418 | inline void set_has_string_value(); |
| 2419 | inline void clear_has_string_value(); |
| 2420 | inline void set_has_aggregate_value(); |
| 2421 | inline void clear_has_aggregate_value(); |
| 2422 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2423 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2424 | |
| 2425 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_; |
| 2426 | ::std::string* identifier_value_; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2427 | ::google::protobuf::uint64 positive_int_value_; |
| 2428 | ::google::protobuf::int64 negative_int_value_; |
| 2429 | double double_value_; |
| 2430 | ::std::string* string_value_; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2431 | ::std::string* aggregate_value_; |
| 2432 | |
| 2433 | mutable int _cached_size_; |
| 2434 | ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; |
| 2435 | |
kenton@google.com | ccc1167 | 2009-04-28 01:48:06 +0000 | [diff] [blame] | 2436 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2437 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 63e646b | 2009-05-06 19:27:03 +0000 | [diff] [blame] | 2438 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 2439 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2440 | void InitAsDefaultInstance(); |
| 2441 | static UninterpretedOption* default_instance_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2442 | }; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2443 | // ------------------------------------------------------------------- |
| 2444 | |
| 2445 | class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message { |
| 2446 | public: |
| 2447 | SourceCodeInfo_Location(); |
| 2448 | virtual ~SourceCodeInfo_Location(); |
| 2449 | |
| 2450 | SourceCodeInfo_Location(const SourceCodeInfo_Location& from); |
| 2451 | |
| 2452 | inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) { |
| 2453 | CopyFrom(from); |
| 2454 | return *this; |
| 2455 | } |
| 2456 | |
| 2457 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 2458 | return _unknown_fields_; |
| 2459 | } |
| 2460 | |
| 2461 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 2462 | return &_unknown_fields_; |
| 2463 | } |
| 2464 | |
| 2465 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2466 | static const SourceCodeInfo_Location& default_instance(); |
| 2467 | |
| 2468 | void Swap(SourceCodeInfo_Location* other); |
| 2469 | |
| 2470 | // implements Message ---------------------------------------------- |
| 2471 | |
| 2472 | SourceCodeInfo_Location* New() const; |
| 2473 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2474 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2475 | void CopyFrom(const SourceCodeInfo_Location& from); |
| 2476 | void MergeFrom(const SourceCodeInfo_Location& from); |
| 2477 | void Clear(); |
| 2478 | bool IsInitialized() const; |
| 2479 | |
| 2480 | int ByteSize() const; |
| 2481 | bool MergePartialFromCodedStream( |
| 2482 | ::google::protobuf::io::CodedInputStream* input); |
| 2483 | void SerializeWithCachedSizes( |
| 2484 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 2485 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
| 2486 | int GetCachedSize() const { return _cached_size_; } |
| 2487 | private: |
| 2488 | void SharedCtor(); |
| 2489 | void SharedDtor(); |
| 2490 | void SetCachedSize(int size) const; |
| 2491 | public: |
| 2492 | |
| 2493 | ::google::protobuf::Metadata GetMetadata() const; |
| 2494 | |
| 2495 | // nested types ---------------------------------------------------- |
| 2496 | |
| 2497 | // accessors ------------------------------------------------------- |
| 2498 | |
| 2499 | // repeated int32 path = 1 [packed = true]; |
| 2500 | inline int path_size() const; |
| 2501 | inline void clear_path(); |
| 2502 | static const int kPathFieldNumber = 1; |
| 2503 | inline ::google::protobuf::int32 path(int index) const; |
| 2504 | inline void set_path(int index, ::google::protobuf::int32 value); |
| 2505 | inline void add_path(::google::protobuf::int32 value); |
| 2506 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2507 | path() const; |
| 2508 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2509 | mutable_path(); |
| 2510 | |
| 2511 | // repeated int32 span = 2 [packed = true]; |
| 2512 | inline int span_size() const; |
| 2513 | inline void clear_span(); |
| 2514 | static const int kSpanFieldNumber = 2; |
| 2515 | inline ::google::protobuf::int32 span(int index) const; |
| 2516 | inline void set_span(int index, ::google::protobuf::int32 value); |
| 2517 | inline void add_span(::google::protobuf::int32 value); |
| 2518 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2519 | span() const; |
| 2520 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2521 | mutable_span(); |
| 2522 | |
| 2523 | // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location) |
| 2524 | private: |
| 2525 | |
| 2526 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
| 2527 | |
| 2528 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_; |
| 2529 | mutable int _path_cached_byte_size_; |
| 2530 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_; |
| 2531 | mutable int _span_cached_byte_size_; |
| 2532 | |
| 2533 | mutable int _cached_size_; |
| 2534 | ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; |
| 2535 | |
| 2536 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2537 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2538 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2539 | |
| 2540 | void InitAsDefaultInstance(); |
| 2541 | static SourceCodeInfo_Location* default_instance_; |
| 2542 | }; |
| 2543 | // ------------------------------------------------------------------- |
| 2544 | |
| 2545 | class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message { |
| 2546 | public: |
| 2547 | SourceCodeInfo(); |
| 2548 | virtual ~SourceCodeInfo(); |
| 2549 | |
| 2550 | SourceCodeInfo(const SourceCodeInfo& from); |
| 2551 | |
| 2552 | inline SourceCodeInfo& operator=(const SourceCodeInfo& from) { |
| 2553 | CopyFrom(from); |
| 2554 | return *this; |
| 2555 | } |
| 2556 | |
| 2557 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
| 2558 | return _unknown_fields_; |
| 2559 | } |
| 2560 | |
| 2561 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
| 2562 | return &_unknown_fields_; |
| 2563 | } |
| 2564 | |
| 2565 | static const ::google::protobuf::Descriptor* descriptor(); |
| 2566 | static const SourceCodeInfo& default_instance(); |
| 2567 | |
| 2568 | void Swap(SourceCodeInfo* other); |
| 2569 | |
| 2570 | // implements Message ---------------------------------------------- |
| 2571 | |
| 2572 | SourceCodeInfo* New() const; |
| 2573 | void CopyFrom(const ::google::protobuf::Message& from); |
| 2574 | void MergeFrom(const ::google::protobuf::Message& from); |
| 2575 | void CopyFrom(const SourceCodeInfo& from); |
| 2576 | void MergeFrom(const SourceCodeInfo& from); |
| 2577 | void Clear(); |
| 2578 | bool IsInitialized() const; |
| 2579 | |
| 2580 | int ByteSize() const; |
| 2581 | bool MergePartialFromCodedStream( |
| 2582 | ::google::protobuf::io::CodedInputStream* input); |
| 2583 | void SerializeWithCachedSizes( |
| 2584 | ::google::protobuf::io::CodedOutputStream* output) const; |
| 2585 | ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
| 2586 | int GetCachedSize() const { return _cached_size_; } |
| 2587 | private: |
| 2588 | void SharedCtor(); |
| 2589 | void SharedDtor(); |
| 2590 | void SetCachedSize(int size) const; |
| 2591 | public: |
| 2592 | |
| 2593 | ::google::protobuf::Metadata GetMetadata() const; |
| 2594 | |
| 2595 | // nested types ---------------------------------------------------- |
| 2596 | |
| 2597 | typedef SourceCodeInfo_Location Location; |
| 2598 | |
| 2599 | // accessors ------------------------------------------------------- |
| 2600 | |
| 2601 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 2602 | inline int location_size() const; |
| 2603 | inline void clear_location(); |
| 2604 | static const int kLocationFieldNumber = 1; |
| 2605 | inline const ::google::protobuf::SourceCodeInfo_Location& location(int index) const; |
| 2606 | inline ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index); |
| 2607 | inline ::google::protobuf::SourceCodeInfo_Location* add_location(); |
| 2608 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >& |
| 2609 | location() const; |
| 2610 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >* |
| 2611 | mutable_location(); |
| 2612 | |
| 2613 | // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo) |
| 2614 | private: |
| 2615 | |
| 2616 | ::google::protobuf::UnknownFieldSet _unknown_fields_; |
| 2617 | |
| 2618 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_; |
| 2619 | |
| 2620 | mutable int _cached_size_; |
| 2621 | ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; |
| 2622 | |
| 2623 | friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2624 | friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2625 | friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2626 | |
| 2627 | void InitAsDefaultInstance(); |
| 2628 | static SourceCodeInfo* default_instance_; |
| 2629 | }; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2630 | // =================================================================== |
| 2631 | |
| 2632 | |
| 2633 | // =================================================================== |
| 2634 | |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2635 | // FileDescriptorSet |
| 2636 | |
| 2637 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 2638 | inline int FileDescriptorSet::file_size() const { |
| 2639 | return file_.size(); |
| 2640 | } |
| 2641 | inline void FileDescriptorSet::clear_file() { |
| 2642 | file_.Clear(); |
| 2643 | } |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2644 | inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const { |
| 2645 | return file_.Get(index); |
| 2646 | } |
| 2647 | inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) { |
| 2648 | return file_.Mutable(index); |
| 2649 | } |
| 2650 | inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() { |
| 2651 | return file_.Add(); |
| 2652 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2653 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& |
| 2654 | FileDescriptorSet::file() const { |
| 2655 | return file_; |
| 2656 | } |
| 2657 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* |
| 2658 | FileDescriptorSet::mutable_file() { |
| 2659 | return &file_; |
| 2660 | } |
temporal | 779f61c | 2008-08-13 03:15:00 +0000 | [diff] [blame] | 2661 | |
| 2662 | // ------------------------------------------------------------------- |
| 2663 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2664 | // FileDescriptorProto |
| 2665 | |
| 2666 | // optional string name = 1; |
| 2667 | inline bool FileDescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2668 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 2669 | } |
| 2670 | inline void FileDescriptorProto::set_has_name() { |
| 2671 | _has_bits_[0] |= 0x00000001u; |
| 2672 | } |
| 2673 | inline void FileDescriptorProto::clear_has_name() { |
| 2674 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2675 | } |
| 2676 | inline void FileDescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2677 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2678 | name_->clear(); |
| 2679 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2680 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2681 | } |
| 2682 | inline const ::std::string& FileDescriptorProto::name() const { |
| 2683 | return *name_; |
| 2684 | } |
| 2685 | inline void FileDescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2686 | set_has_name(); |
| 2687 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2688 | name_ = new ::std::string; |
| 2689 | } |
| 2690 | name_->assign(value); |
| 2691 | } |
| 2692 | inline void FileDescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2693 | set_has_name(); |
| 2694 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2695 | name_ = new ::std::string; |
| 2696 | } |
| 2697 | name_->assign(value); |
| 2698 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2699 | inline void FileDescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2700 | set_has_name(); |
| 2701 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2702 | name_ = new ::std::string; |
| 2703 | } |
| 2704 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 2705 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2706 | inline ::std::string* FileDescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2707 | set_has_name(); |
| 2708 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2709 | name_ = new ::std::string; |
| 2710 | } |
| 2711 | return name_; |
| 2712 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2713 | inline ::std::string* FileDescriptorProto::release_name() { |
| 2714 | clear_has_name(); |
| 2715 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 2716 | return NULL; |
| 2717 | } else { |
| 2718 | ::std::string* temp = name_; |
| 2719 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 2720 | return temp; |
| 2721 | } |
| 2722 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2723 | |
| 2724 | // optional string package = 2; |
| 2725 | inline bool FileDescriptorProto::has_package() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2726 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 2727 | } |
| 2728 | inline void FileDescriptorProto::set_has_package() { |
| 2729 | _has_bits_[0] |= 0x00000002u; |
| 2730 | } |
| 2731 | inline void FileDescriptorProto::clear_has_package() { |
| 2732 | _has_bits_[0] &= ~0x00000002u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2733 | } |
| 2734 | inline void FileDescriptorProto::clear_package() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2735 | if (package_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2736 | package_->clear(); |
| 2737 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2738 | clear_has_package(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2739 | } |
| 2740 | inline const ::std::string& FileDescriptorProto::package() const { |
| 2741 | return *package_; |
| 2742 | } |
| 2743 | inline void FileDescriptorProto::set_package(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2744 | set_has_package(); |
| 2745 | if (package_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2746 | package_ = new ::std::string; |
| 2747 | } |
| 2748 | package_->assign(value); |
| 2749 | } |
| 2750 | inline void FileDescriptorProto::set_package(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2751 | set_has_package(); |
| 2752 | if (package_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2753 | package_ = new ::std::string; |
| 2754 | } |
| 2755 | package_->assign(value); |
| 2756 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2757 | inline void FileDescriptorProto::set_package(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2758 | set_has_package(); |
| 2759 | if (package_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2760 | package_ = new ::std::string; |
| 2761 | } |
| 2762 | package_->assign(reinterpret_cast<const char*>(value), size); |
| 2763 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2764 | inline ::std::string* FileDescriptorProto::mutable_package() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2765 | set_has_package(); |
| 2766 | if (package_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2767 | package_ = new ::std::string; |
| 2768 | } |
| 2769 | return package_; |
| 2770 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2771 | inline ::std::string* FileDescriptorProto::release_package() { |
| 2772 | clear_has_package(); |
| 2773 | if (package_ == &::google::protobuf::internal::kEmptyString) { |
| 2774 | return NULL; |
| 2775 | } else { |
| 2776 | ::std::string* temp = package_; |
| 2777 | package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 2778 | return temp; |
| 2779 | } |
| 2780 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2781 | |
| 2782 | // repeated string dependency = 3; |
| 2783 | inline int FileDescriptorProto::dependency_size() const { |
| 2784 | return dependency_.size(); |
| 2785 | } |
| 2786 | inline void FileDescriptorProto::clear_dependency() { |
| 2787 | dependency_.Clear(); |
| 2788 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2789 | inline const ::std::string& FileDescriptorProto::dependency(int index) const { |
| 2790 | return dependency_.Get(index); |
| 2791 | } |
| 2792 | inline ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
| 2793 | return dependency_.Mutable(index); |
| 2794 | } |
| 2795 | inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { |
| 2796 | dependency_.Mutable(index)->assign(value); |
| 2797 | } |
temporal | f206351 | 2008-07-23 01:19:07 +0000 | [diff] [blame] | 2798 | inline void FileDescriptorProto::set_dependency(int index, const char* value) { |
| 2799 | dependency_.Mutable(index)->assign(value); |
| 2800 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2801 | inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) { |
| 2802 | dependency_.Mutable(index)->assign( |
| 2803 | reinterpret_cast<const char*>(value), size); |
| 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 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 2814 | inline void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
| 2815 | dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2816 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2817 | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 2818 | FileDescriptorProto::dependency() const { |
| 2819 | return dependency_; |
| 2820 | } |
| 2821 | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 2822 | FileDescriptorProto::mutable_dependency() { |
| 2823 | return &dependency_; |
| 2824 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2825 | |
| 2826 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 2827 | inline int FileDescriptorProto::message_type_size() const { |
| 2828 | return message_type_.size(); |
| 2829 | } |
| 2830 | inline void FileDescriptorProto::clear_message_type() { |
| 2831 | message_type_.Clear(); |
| 2832 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2833 | inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const { |
| 2834 | return message_type_.Get(index); |
| 2835 | } |
| 2836 | inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) { |
| 2837 | return message_type_.Mutable(index); |
| 2838 | } |
| 2839 | inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() { |
| 2840 | return message_type_.Add(); |
| 2841 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2842 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 2843 | FileDescriptorProto::message_type() const { |
| 2844 | return message_type_; |
| 2845 | } |
| 2846 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 2847 | FileDescriptorProto::mutable_message_type() { |
| 2848 | return &message_type_; |
| 2849 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2850 | |
| 2851 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 2852 | inline int FileDescriptorProto::enum_type_size() const { |
| 2853 | return enum_type_.size(); |
| 2854 | } |
| 2855 | inline void FileDescriptorProto::clear_enum_type() { |
| 2856 | enum_type_.Clear(); |
| 2857 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2858 | inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const { |
| 2859 | return enum_type_.Get(index); |
| 2860 | } |
| 2861 | inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) { |
| 2862 | return enum_type_.Mutable(index); |
| 2863 | } |
| 2864 | inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() { |
| 2865 | return enum_type_.Add(); |
| 2866 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2867 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 2868 | FileDescriptorProto::enum_type() const { |
| 2869 | return enum_type_; |
| 2870 | } |
| 2871 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 2872 | FileDescriptorProto::mutable_enum_type() { |
| 2873 | return &enum_type_; |
| 2874 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2875 | |
| 2876 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 2877 | inline int FileDescriptorProto::service_size() const { |
| 2878 | return service_.size(); |
| 2879 | } |
| 2880 | inline void FileDescriptorProto::clear_service() { |
| 2881 | service_.Clear(); |
| 2882 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2883 | inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const { |
| 2884 | return service_.Get(index); |
| 2885 | } |
| 2886 | inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) { |
| 2887 | return service_.Mutable(index); |
| 2888 | } |
| 2889 | inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() { |
| 2890 | return service_.Add(); |
| 2891 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2892 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >& |
| 2893 | FileDescriptorProto::service() const { |
| 2894 | return service_; |
| 2895 | } |
| 2896 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >* |
| 2897 | FileDescriptorProto::mutable_service() { |
| 2898 | return &service_; |
| 2899 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2900 | |
| 2901 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 2902 | inline int FileDescriptorProto::extension_size() const { |
| 2903 | return extension_.size(); |
| 2904 | } |
| 2905 | inline void FileDescriptorProto::clear_extension() { |
| 2906 | extension_.Clear(); |
| 2907 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2908 | inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const { |
| 2909 | return extension_.Get(index); |
| 2910 | } |
| 2911 | inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) { |
| 2912 | return extension_.Mutable(index); |
| 2913 | } |
| 2914 | inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() { |
| 2915 | return extension_.Add(); |
| 2916 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 2917 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 2918 | FileDescriptorProto::extension() const { |
| 2919 | return extension_; |
| 2920 | } |
| 2921 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 2922 | FileDescriptorProto::mutable_extension() { |
| 2923 | return &extension_; |
| 2924 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2925 | |
| 2926 | // optional .google.protobuf.FileOptions options = 8; |
| 2927 | inline bool FileDescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2928 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 2929 | } |
| 2930 | inline void FileDescriptorProto::set_has_options() { |
| 2931 | _has_bits_[0] |= 0x00000080u; |
| 2932 | } |
| 2933 | inline void FileDescriptorProto::clear_has_options() { |
| 2934 | _has_bits_[0] &= ~0x00000080u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2935 | } |
| 2936 | inline void FileDescriptorProto::clear_options() { |
| 2937 | if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2938 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2939 | } |
| 2940 | inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 2941 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2942 | } |
| 2943 | inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2944 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2945 | if (options_ == NULL) options_ = new ::google::protobuf::FileOptions; |
| 2946 | return options_; |
| 2947 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2948 | inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { |
| 2949 | clear_has_options(); |
| 2950 | ::google::protobuf::FileOptions* temp = options_; |
| 2951 | options_ = NULL; |
| 2952 | return temp; |
| 2953 | } |
| 2954 | |
| 2955 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 2956 | inline bool FileDescriptorProto::has_source_code_info() const { |
| 2957 | return (_has_bits_[0] & 0x00000100u) != 0; |
| 2958 | } |
| 2959 | inline void FileDescriptorProto::set_has_source_code_info() { |
| 2960 | _has_bits_[0] |= 0x00000100u; |
| 2961 | } |
| 2962 | inline void FileDescriptorProto::clear_has_source_code_info() { |
| 2963 | _has_bits_[0] &= ~0x00000100u; |
| 2964 | } |
| 2965 | inline void FileDescriptorProto::clear_source_code_info() { |
| 2966 | if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear(); |
| 2967 | clear_has_source_code_info(); |
| 2968 | } |
| 2969 | inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const { |
| 2970 | return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_; |
| 2971 | } |
| 2972 | inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() { |
| 2973 | set_has_source_code_info(); |
| 2974 | if (source_code_info_ == NULL) source_code_info_ = new ::google::protobuf::SourceCodeInfo; |
| 2975 | return source_code_info_; |
| 2976 | } |
| 2977 | inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() { |
| 2978 | clear_has_source_code_info(); |
| 2979 | ::google::protobuf::SourceCodeInfo* temp = source_code_info_; |
| 2980 | source_code_info_ = NULL; |
| 2981 | return temp; |
| 2982 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2983 | |
| 2984 | // ------------------------------------------------------------------- |
| 2985 | |
| 2986 | // DescriptorProto_ExtensionRange |
| 2987 | |
| 2988 | // optional int32 start = 1; |
| 2989 | inline bool DescriptorProto_ExtensionRange::has_start() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 2990 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 2991 | } |
| 2992 | inline void DescriptorProto_ExtensionRange::set_has_start() { |
| 2993 | _has_bits_[0] |= 0x00000001u; |
| 2994 | } |
| 2995 | inline void DescriptorProto_ExtensionRange::clear_has_start() { |
| 2996 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 2997 | } |
| 2998 | inline void DescriptorProto_ExtensionRange::clear_start() { |
| 2999 | start_ = 0; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3000 | clear_has_start(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3001 | } |
| 3002 | inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
| 3003 | return start_; |
| 3004 | } |
| 3005 | inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3006 | set_has_start(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3007 | start_ = value; |
| 3008 | } |
| 3009 | |
| 3010 | // optional int32 end = 2; |
| 3011 | inline bool DescriptorProto_ExtensionRange::has_end() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3012 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3013 | } |
| 3014 | inline void DescriptorProto_ExtensionRange::set_has_end() { |
| 3015 | _has_bits_[0] |= 0x00000002u; |
| 3016 | } |
| 3017 | inline void DescriptorProto_ExtensionRange::clear_has_end() { |
| 3018 | _has_bits_[0] &= ~0x00000002u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3019 | } |
| 3020 | inline void DescriptorProto_ExtensionRange::clear_end() { |
| 3021 | end_ = 0; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3022 | clear_has_end(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3023 | } |
| 3024 | inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
| 3025 | return end_; |
| 3026 | } |
| 3027 | inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3028 | set_has_end(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3029 | end_ = value; |
| 3030 | } |
| 3031 | |
| 3032 | // ------------------------------------------------------------------- |
| 3033 | |
| 3034 | // DescriptorProto |
| 3035 | |
| 3036 | // optional string name = 1; |
| 3037 | inline bool DescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3038 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3039 | } |
| 3040 | inline void DescriptorProto::set_has_name() { |
| 3041 | _has_bits_[0] |= 0x00000001u; |
| 3042 | } |
| 3043 | inline void DescriptorProto::clear_has_name() { |
| 3044 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3045 | } |
| 3046 | inline void DescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3047 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3048 | name_->clear(); |
| 3049 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3050 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3051 | } |
| 3052 | inline const ::std::string& DescriptorProto::name() const { |
| 3053 | return *name_; |
| 3054 | } |
| 3055 | inline void DescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3056 | set_has_name(); |
| 3057 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3058 | name_ = new ::std::string; |
| 3059 | } |
| 3060 | name_->assign(value); |
| 3061 | } |
| 3062 | inline void DescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3063 | set_has_name(); |
| 3064 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3065 | name_ = new ::std::string; |
| 3066 | } |
| 3067 | name_->assign(value); |
| 3068 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3069 | inline void DescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3070 | set_has_name(); |
| 3071 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3072 | name_ = new ::std::string; |
| 3073 | } |
| 3074 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 3075 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3076 | inline ::std::string* DescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3077 | set_has_name(); |
| 3078 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3079 | name_ = new ::std::string; |
| 3080 | } |
| 3081 | return name_; |
| 3082 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3083 | inline ::std::string* DescriptorProto::release_name() { |
| 3084 | clear_has_name(); |
| 3085 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 3086 | return NULL; |
| 3087 | } else { |
| 3088 | ::std::string* temp = name_; |
| 3089 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3090 | return temp; |
| 3091 | } |
| 3092 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3093 | |
| 3094 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3095 | inline int DescriptorProto::field_size() const { |
| 3096 | return field_.size(); |
| 3097 | } |
| 3098 | inline void DescriptorProto::clear_field() { |
| 3099 | field_.Clear(); |
| 3100 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3101 | inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const { |
| 3102 | return field_.Get(index); |
| 3103 | } |
| 3104 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) { |
| 3105 | return field_.Mutable(index); |
| 3106 | } |
| 3107 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() { |
| 3108 | return field_.Add(); |
| 3109 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3110 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3111 | DescriptorProto::field() const { |
| 3112 | return field_; |
| 3113 | } |
| 3114 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3115 | DescriptorProto::mutable_field() { |
| 3116 | return &field_; |
| 3117 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3118 | |
| 3119 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3120 | inline int DescriptorProto::extension_size() const { |
| 3121 | return extension_.size(); |
| 3122 | } |
| 3123 | inline void DescriptorProto::clear_extension() { |
| 3124 | extension_.Clear(); |
| 3125 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3126 | inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const { |
| 3127 | return extension_.Get(index); |
| 3128 | } |
| 3129 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) { |
| 3130 | return extension_.Mutable(index); |
| 3131 | } |
| 3132 | inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() { |
| 3133 | return extension_.Add(); |
| 3134 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3135 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3136 | DescriptorProto::extension() const { |
| 3137 | return extension_; |
| 3138 | } |
| 3139 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3140 | DescriptorProto::mutable_extension() { |
| 3141 | return &extension_; |
| 3142 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3143 | |
| 3144 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3145 | inline int DescriptorProto::nested_type_size() const { |
| 3146 | return nested_type_.size(); |
| 3147 | } |
| 3148 | inline void DescriptorProto::clear_nested_type() { |
| 3149 | nested_type_.Clear(); |
| 3150 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3151 | inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const { |
| 3152 | return nested_type_.Get(index); |
| 3153 | } |
| 3154 | inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) { |
| 3155 | return nested_type_.Mutable(index); |
| 3156 | } |
| 3157 | inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() { |
| 3158 | return nested_type_.Add(); |
| 3159 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3160 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 3161 | DescriptorProto::nested_type() const { |
| 3162 | return nested_type_; |
| 3163 | } |
| 3164 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 3165 | DescriptorProto::mutable_nested_type() { |
| 3166 | return &nested_type_; |
| 3167 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3168 | |
| 3169 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3170 | inline int DescriptorProto::enum_type_size() const { |
| 3171 | return enum_type_.size(); |
| 3172 | } |
| 3173 | inline void DescriptorProto::clear_enum_type() { |
| 3174 | enum_type_.Clear(); |
| 3175 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3176 | inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const { |
| 3177 | return enum_type_.Get(index); |
| 3178 | } |
| 3179 | inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) { |
| 3180 | return enum_type_.Mutable(index); |
| 3181 | } |
| 3182 | inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() { |
| 3183 | return enum_type_.Add(); |
| 3184 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3185 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 3186 | DescriptorProto::enum_type() const { |
| 3187 | return enum_type_; |
| 3188 | } |
| 3189 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 3190 | DescriptorProto::mutable_enum_type() { |
| 3191 | return &enum_type_; |
| 3192 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3193 | |
| 3194 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3195 | inline int DescriptorProto::extension_range_size() const { |
| 3196 | return extension_range_.size(); |
| 3197 | } |
| 3198 | inline void DescriptorProto::clear_extension_range() { |
| 3199 | extension_range_.Clear(); |
| 3200 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3201 | inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const { |
| 3202 | return extension_range_.Get(index); |
| 3203 | } |
| 3204 | inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) { |
| 3205 | return extension_range_.Mutable(index); |
| 3206 | } |
| 3207 | inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() { |
| 3208 | return extension_range_.Add(); |
| 3209 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3210 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >& |
| 3211 | DescriptorProto::extension_range() const { |
| 3212 | return extension_range_; |
| 3213 | } |
| 3214 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >* |
| 3215 | DescriptorProto::mutable_extension_range() { |
| 3216 | return &extension_range_; |
| 3217 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3218 | |
| 3219 | // optional .google.protobuf.MessageOptions options = 7; |
| 3220 | inline bool DescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3221 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 3222 | } |
| 3223 | inline void DescriptorProto::set_has_options() { |
| 3224 | _has_bits_[0] |= 0x00000040u; |
| 3225 | } |
| 3226 | inline void DescriptorProto::clear_has_options() { |
| 3227 | _has_bits_[0] &= ~0x00000040u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3228 | } |
| 3229 | inline void DescriptorProto::clear_options() { |
| 3230 | if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3231 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3232 | } |
| 3233 | inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3234 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3235 | } |
| 3236 | inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3237 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3238 | if (options_ == NULL) options_ = new ::google::protobuf::MessageOptions; |
| 3239 | return options_; |
| 3240 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3241 | inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() { |
| 3242 | clear_has_options(); |
| 3243 | ::google::protobuf::MessageOptions* temp = options_; |
| 3244 | options_ = NULL; |
| 3245 | return temp; |
| 3246 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3247 | |
| 3248 | // ------------------------------------------------------------------- |
| 3249 | |
| 3250 | // FieldDescriptorProto |
| 3251 | |
| 3252 | // optional string name = 1; |
| 3253 | inline bool FieldDescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3254 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3255 | } |
| 3256 | inline void FieldDescriptorProto::set_has_name() { |
| 3257 | _has_bits_[0] |= 0x00000001u; |
| 3258 | } |
| 3259 | inline void FieldDescriptorProto::clear_has_name() { |
| 3260 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3261 | } |
| 3262 | inline void FieldDescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3263 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3264 | name_->clear(); |
| 3265 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3266 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3267 | } |
| 3268 | inline const ::std::string& FieldDescriptorProto::name() const { |
| 3269 | return *name_; |
| 3270 | } |
| 3271 | inline void FieldDescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3272 | set_has_name(); |
| 3273 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3274 | name_ = new ::std::string; |
| 3275 | } |
| 3276 | name_->assign(value); |
| 3277 | } |
| 3278 | inline void FieldDescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3279 | set_has_name(); |
| 3280 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3281 | name_ = new ::std::string; |
| 3282 | } |
| 3283 | name_->assign(value); |
| 3284 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3285 | inline void FieldDescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3286 | set_has_name(); |
| 3287 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3288 | name_ = new ::std::string; |
| 3289 | } |
| 3290 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 3291 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3292 | inline ::std::string* FieldDescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3293 | set_has_name(); |
| 3294 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3295 | name_ = new ::std::string; |
| 3296 | } |
| 3297 | return name_; |
| 3298 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3299 | inline ::std::string* FieldDescriptorProto::release_name() { |
| 3300 | clear_has_name(); |
| 3301 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 3302 | return NULL; |
| 3303 | } else { |
| 3304 | ::std::string* temp = name_; |
| 3305 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3306 | return temp; |
| 3307 | } |
| 3308 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3309 | |
| 3310 | // optional int32 number = 3; |
| 3311 | inline bool FieldDescriptorProto::has_number() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3312 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3313 | } |
| 3314 | inline void FieldDescriptorProto::set_has_number() { |
| 3315 | _has_bits_[0] |= 0x00000002u; |
| 3316 | } |
| 3317 | inline void FieldDescriptorProto::clear_has_number() { |
| 3318 | _has_bits_[0] &= ~0x00000002u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3319 | } |
| 3320 | inline void FieldDescriptorProto::clear_number() { |
| 3321 | number_ = 0; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3322 | clear_has_number(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3323 | } |
| 3324 | inline ::google::protobuf::int32 FieldDescriptorProto::number() const { |
| 3325 | return number_; |
| 3326 | } |
| 3327 | inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3328 | set_has_number(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3329 | number_ = value; |
| 3330 | } |
| 3331 | |
| 3332 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 3333 | inline bool FieldDescriptorProto::has_label() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3334 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 3335 | } |
| 3336 | inline void FieldDescriptorProto::set_has_label() { |
| 3337 | _has_bits_[0] |= 0x00000004u; |
| 3338 | } |
| 3339 | inline void FieldDescriptorProto::clear_has_label() { |
| 3340 | _has_bits_[0] &= ~0x00000004u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3341 | } |
| 3342 | inline void FieldDescriptorProto::clear_label() { |
| 3343 | label_ = 1; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3344 | clear_has_label(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3345 | } |
| 3346 | inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const { |
| 3347 | return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
| 3348 | } |
| 3349 | inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) { |
| 3350 | GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3351 | set_has_label(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3352 | label_ = value; |
| 3353 | } |
| 3354 | |
| 3355 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 3356 | inline bool FieldDescriptorProto::has_type() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3357 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 3358 | } |
| 3359 | inline void FieldDescriptorProto::set_has_type() { |
| 3360 | _has_bits_[0] |= 0x00000008u; |
| 3361 | } |
| 3362 | inline void FieldDescriptorProto::clear_has_type() { |
| 3363 | _has_bits_[0] &= ~0x00000008u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3364 | } |
| 3365 | inline void FieldDescriptorProto::clear_type() { |
| 3366 | type_ = 1; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3367 | clear_has_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3368 | } |
| 3369 | inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const { |
| 3370 | return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
| 3371 | } |
| 3372 | inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) { |
| 3373 | GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3374 | set_has_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3375 | type_ = value; |
| 3376 | } |
| 3377 | |
| 3378 | // optional string type_name = 6; |
| 3379 | inline bool FieldDescriptorProto::has_type_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3380 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 3381 | } |
| 3382 | inline void FieldDescriptorProto::set_has_type_name() { |
| 3383 | _has_bits_[0] |= 0x00000010u; |
| 3384 | } |
| 3385 | inline void FieldDescriptorProto::clear_has_type_name() { |
| 3386 | _has_bits_[0] &= ~0x00000010u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3387 | } |
| 3388 | inline void FieldDescriptorProto::clear_type_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3389 | if (type_name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3390 | type_name_->clear(); |
| 3391 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3392 | clear_has_type_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3393 | } |
| 3394 | inline const ::std::string& FieldDescriptorProto::type_name() const { |
| 3395 | return *type_name_; |
| 3396 | } |
| 3397 | inline void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3398 | set_has_type_name(); |
| 3399 | if (type_name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3400 | type_name_ = new ::std::string; |
| 3401 | } |
| 3402 | type_name_->assign(value); |
| 3403 | } |
| 3404 | inline void FieldDescriptorProto::set_type_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3405 | set_has_type_name(); |
| 3406 | if (type_name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3407 | type_name_ = new ::std::string; |
| 3408 | } |
| 3409 | type_name_->assign(value); |
| 3410 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3411 | inline void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3412 | set_has_type_name(); |
| 3413 | if (type_name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3414 | type_name_ = new ::std::string; |
| 3415 | } |
| 3416 | type_name_->assign(reinterpret_cast<const char*>(value), size); |
| 3417 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3418 | inline ::std::string* FieldDescriptorProto::mutable_type_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3419 | set_has_type_name(); |
| 3420 | if (type_name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3421 | type_name_ = new ::std::string; |
| 3422 | } |
| 3423 | return type_name_; |
| 3424 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3425 | inline ::std::string* FieldDescriptorProto::release_type_name() { |
| 3426 | clear_has_type_name(); |
| 3427 | if (type_name_ == &::google::protobuf::internal::kEmptyString) { |
| 3428 | return NULL; |
| 3429 | } else { |
| 3430 | ::std::string* temp = type_name_; |
| 3431 | type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3432 | return temp; |
| 3433 | } |
| 3434 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3435 | |
| 3436 | // optional string extendee = 2; |
| 3437 | inline bool FieldDescriptorProto::has_extendee() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3438 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 3439 | } |
| 3440 | inline void FieldDescriptorProto::set_has_extendee() { |
| 3441 | _has_bits_[0] |= 0x00000020u; |
| 3442 | } |
| 3443 | inline void FieldDescriptorProto::clear_has_extendee() { |
| 3444 | _has_bits_[0] &= ~0x00000020u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3445 | } |
| 3446 | inline void FieldDescriptorProto::clear_extendee() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3447 | if (extendee_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3448 | extendee_->clear(); |
| 3449 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3450 | clear_has_extendee(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3451 | } |
| 3452 | inline const ::std::string& FieldDescriptorProto::extendee() const { |
| 3453 | return *extendee_; |
| 3454 | } |
| 3455 | inline void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3456 | set_has_extendee(); |
| 3457 | if (extendee_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3458 | extendee_ = new ::std::string; |
| 3459 | } |
| 3460 | extendee_->assign(value); |
| 3461 | } |
| 3462 | inline void FieldDescriptorProto::set_extendee(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3463 | set_has_extendee(); |
| 3464 | if (extendee_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3465 | extendee_ = new ::std::string; |
| 3466 | } |
| 3467 | extendee_->assign(value); |
| 3468 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3469 | inline void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3470 | set_has_extendee(); |
| 3471 | if (extendee_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3472 | extendee_ = new ::std::string; |
| 3473 | } |
| 3474 | extendee_->assign(reinterpret_cast<const char*>(value), size); |
| 3475 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3476 | inline ::std::string* FieldDescriptorProto::mutable_extendee() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3477 | set_has_extendee(); |
| 3478 | if (extendee_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3479 | extendee_ = new ::std::string; |
| 3480 | } |
| 3481 | return extendee_; |
| 3482 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3483 | inline ::std::string* FieldDescriptorProto::release_extendee() { |
| 3484 | clear_has_extendee(); |
| 3485 | if (extendee_ == &::google::protobuf::internal::kEmptyString) { |
| 3486 | return NULL; |
| 3487 | } else { |
| 3488 | ::std::string* temp = extendee_; |
| 3489 | extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3490 | return temp; |
| 3491 | } |
| 3492 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3493 | |
| 3494 | // optional string default_value = 7; |
| 3495 | inline bool FieldDescriptorProto::has_default_value() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3496 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 3497 | } |
| 3498 | inline void FieldDescriptorProto::set_has_default_value() { |
| 3499 | _has_bits_[0] |= 0x00000040u; |
| 3500 | } |
| 3501 | inline void FieldDescriptorProto::clear_has_default_value() { |
| 3502 | _has_bits_[0] &= ~0x00000040u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3503 | } |
| 3504 | inline void FieldDescriptorProto::clear_default_value() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3505 | if (default_value_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3506 | default_value_->clear(); |
| 3507 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3508 | clear_has_default_value(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3509 | } |
| 3510 | inline const ::std::string& FieldDescriptorProto::default_value() const { |
| 3511 | return *default_value_; |
| 3512 | } |
| 3513 | inline void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3514 | set_has_default_value(); |
| 3515 | if (default_value_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3516 | default_value_ = new ::std::string; |
| 3517 | } |
| 3518 | default_value_->assign(value); |
| 3519 | } |
| 3520 | inline void FieldDescriptorProto::set_default_value(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3521 | set_has_default_value(); |
| 3522 | if (default_value_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3523 | default_value_ = new ::std::string; |
| 3524 | } |
| 3525 | default_value_->assign(value); |
| 3526 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3527 | inline void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3528 | set_has_default_value(); |
| 3529 | if (default_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3530 | default_value_ = new ::std::string; |
| 3531 | } |
| 3532 | default_value_->assign(reinterpret_cast<const char*>(value), size); |
| 3533 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3534 | inline ::std::string* FieldDescriptorProto::mutable_default_value() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3535 | set_has_default_value(); |
| 3536 | if (default_value_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3537 | default_value_ = new ::std::string; |
| 3538 | } |
| 3539 | return default_value_; |
| 3540 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3541 | inline ::std::string* FieldDescriptorProto::release_default_value() { |
| 3542 | clear_has_default_value(); |
| 3543 | if (default_value_ == &::google::protobuf::internal::kEmptyString) { |
| 3544 | return NULL; |
| 3545 | } else { |
| 3546 | ::std::string* temp = default_value_; |
| 3547 | default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3548 | return temp; |
| 3549 | } |
| 3550 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3551 | |
| 3552 | // optional .google.protobuf.FieldOptions options = 8; |
| 3553 | inline bool FieldDescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3554 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 3555 | } |
| 3556 | inline void FieldDescriptorProto::set_has_options() { |
| 3557 | _has_bits_[0] |= 0x00000080u; |
| 3558 | } |
| 3559 | inline void FieldDescriptorProto::clear_has_options() { |
| 3560 | _has_bits_[0] &= ~0x00000080u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3561 | } |
| 3562 | inline void FieldDescriptorProto::clear_options() { |
| 3563 | if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3564 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3565 | } |
| 3566 | inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3567 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3568 | } |
| 3569 | inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3570 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3571 | if (options_ == NULL) options_ = new ::google::protobuf::FieldOptions; |
| 3572 | return options_; |
| 3573 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3574 | inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { |
| 3575 | clear_has_options(); |
| 3576 | ::google::protobuf::FieldOptions* temp = options_; |
| 3577 | options_ = NULL; |
| 3578 | return temp; |
| 3579 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3580 | |
| 3581 | // ------------------------------------------------------------------- |
| 3582 | |
| 3583 | // EnumDescriptorProto |
| 3584 | |
| 3585 | // optional string name = 1; |
| 3586 | inline bool EnumDescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3587 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3588 | } |
| 3589 | inline void EnumDescriptorProto::set_has_name() { |
| 3590 | _has_bits_[0] |= 0x00000001u; |
| 3591 | } |
| 3592 | inline void EnumDescriptorProto::clear_has_name() { |
| 3593 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3594 | } |
| 3595 | inline void EnumDescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3596 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3597 | name_->clear(); |
| 3598 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3599 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3600 | } |
| 3601 | inline const ::std::string& EnumDescriptorProto::name() const { |
| 3602 | return *name_; |
| 3603 | } |
| 3604 | inline void EnumDescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3605 | set_has_name(); |
| 3606 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3607 | name_ = new ::std::string; |
| 3608 | } |
| 3609 | name_->assign(value); |
| 3610 | } |
| 3611 | inline void EnumDescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3612 | set_has_name(); |
| 3613 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3614 | name_ = new ::std::string; |
| 3615 | } |
| 3616 | name_->assign(value); |
| 3617 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3618 | inline void EnumDescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3619 | set_has_name(); |
| 3620 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3621 | name_ = new ::std::string; |
| 3622 | } |
| 3623 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 3624 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3625 | inline ::std::string* EnumDescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3626 | set_has_name(); |
| 3627 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3628 | name_ = new ::std::string; |
| 3629 | } |
| 3630 | return name_; |
| 3631 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3632 | inline ::std::string* EnumDescriptorProto::release_name() { |
| 3633 | clear_has_name(); |
| 3634 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 3635 | return NULL; |
| 3636 | } else { |
| 3637 | ::std::string* temp = name_; |
| 3638 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3639 | return temp; |
| 3640 | } |
| 3641 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3642 | |
| 3643 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 3644 | inline int EnumDescriptorProto::value_size() const { |
| 3645 | return value_.size(); |
| 3646 | } |
| 3647 | inline void EnumDescriptorProto::clear_value() { |
| 3648 | value_.Clear(); |
| 3649 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3650 | inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const { |
| 3651 | return value_.Get(index); |
| 3652 | } |
| 3653 | inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) { |
| 3654 | return value_.Mutable(index); |
| 3655 | } |
| 3656 | inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() { |
| 3657 | return value_.Add(); |
| 3658 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3659 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >& |
| 3660 | EnumDescriptorProto::value() const { |
| 3661 | return value_; |
| 3662 | } |
| 3663 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >* |
| 3664 | EnumDescriptorProto::mutable_value() { |
| 3665 | return &value_; |
| 3666 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3667 | |
| 3668 | // optional .google.protobuf.EnumOptions options = 3; |
| 3669 | inline bool EnumDescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3670 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 3671 | } |
| 3672 | inline void EnumDescriptorProto::set_has_options() { |
| 3673 | _has_bits_[0] |= 0x00000004u; |
| 3674 | } |
| 3675 | inline void EnumDescriptorProto::clear_has_options() { |
| 3676 | _has_bits_[0] &= ~0x00000004u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3677 | } |
| 3678 | inline void EnumDescriptorProto::clear_options() { |
| 3679 | if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3680 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3681 | } |
| 3682 | inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3683 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3684 | } |
| 3685 | inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3686 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3687 | if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions; |
| 3688 | return options_; |
| 3689 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3690 | inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { |
| 3691 | clear_has_options(); |
| 3692 | ::google::protobuf::EnumOptions* temp = options_; |
| 3693 | options_ = NULL; |
| 3694 | return temp; |
| 3695 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3696 | |
| 3697 | // ------------------------------------------------------------------- |
| 3698 | |
| 3699 | // EnumValueDescriptorProto |
| 3700 | |
| 3701 | // optional string name = 1; |
| 3702 | inline bool EnumValueDescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3703 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3704 | } |
| 3705 | inline void EnumValueDescriptorProto::set_has_name() { |
| 3706 | _has_bits_[0] |= 0x00000001u; |
| 3707 | } |
| 3708 | inline void EnumValueDescriptorProto::clear_has_name() { |
| 3709 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3710 | } |
| 3711 | inline void EnumValueDescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3712 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3713 | name_->clear(); |
| 3714 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3715 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3716 | } |
| 3717 | inline const ::std::string& EnumValueDescriptorProto::name() const { |
| 3718 | return *name_; |
| 3719 | } |
| 3720 | inline void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3721 | set_has_name(); |
| 3722 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3723 | name_ = new ::std::string; |
| 3724 | } |
| 3725 | name_->assign(value); |
| 3726 | } |
| 3727 | inline void EnumValueDescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3728 | set_has_name(); |
| 3729 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3730 | name_ = new ::std::string; |
| 3731 | } |
| 3732 | name_->assign(value); |
| 3733 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3734 | inline void EnumValueDescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3735 | set_has_name(); |
| 3736 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3737 | name_ = new ::std::string; |
| 3738 | } |
| 3739 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 3740 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3741 | inline ::std::string* EnumValueDescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3742 | set_has_name(); |
| 3743 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3744 | name_ = new ::std::string; |
| 3745 | } |
| 3746 | return name_; |
| 3747 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3748 | inline ::std::string* EnumValueDescriptorProto::release_name() { |
| 3749 | clear_has_name(); |
| 3750 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 3751 | return NULL; |
| 3752 | } else { |
| 3753 | ::std::string* temp = name_; |
| 3754 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3755 | return temp; |
| 3756 | } |
| 3757 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3758 | |
| 3759 | // optional int32 number = 2; |
| 3760 | inline bool EnumValueDescriptorProto::has_number() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3761 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3762 | } |
| 3763 | inline void EnumValueDescriptorProto::set_has_number() { |
| 3764 | _has_bits_[0] |= 0x00000002u; |
| 3765 | } |
| 3766 | inline void EnumValueDescriptorProto::clear_has_number() { |
| 3767 | _has_bits_[0] &= ~0x00000002u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3768 | } |
| 3769 | inline void EnumValueDescriptorProto::clear_number() { |
| 3770 | number_ = 0; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3771 | clear_has_number(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3772 | } |
| 3773 | inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
| 3774 | return number_; |
| 3775 | } |
| 3776 | inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3777 | set_has_number(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3778 | number_ = value; |
| 3779 | } |
| 3780 | |
| 3781 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 3782 | inline bool EnumValueDescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3783 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 3784 | } |
| 3785 | inline void EnumValueDescriptorProto::set_has_options() { |
| 3786 | _has_bits_[0] |= 0x00000004u; |
| 3787 | } |
| 3788 | inline void EnumValueDescriptorProto::clear_has_options() { |
| 3789 | _has_bits_[0] &= ~0x00000004u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3790 | } |
| 3791 | inline void EnumValueDescriptorProto::clear_options() { |
| 3792 | if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3793 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3794 | } |
| 3795 | inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3796 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3797 | } |
| 3798 | inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3799 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3800 | if (options_ == NULL) options_ = new ::google::protobuf::EnumValueOptions; |
| 3801 | return options_; |
| 3802 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3803 | inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() { |
| 3804 | clear_has_options(); |
| 3805 | ::google::protobuf::EnumValueOptions* temp = options_; |
| 3806 | options_ = NULL; |
| 3807 | return temp; |
| 3808 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3809 | |
| 3810 | // ------------------------------------------------------------------- |
| 3811 | |
| 3812 | // ServiceDescriptorProto |
| 3813 | |
| 3814 | // optional string name = 1; |
| 3815 | inline bool ServiceDescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3816 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3817 | } |
| 3818 | inline void ServiceDescriptorProto::set_has_name() { |
| 3819 | _has_bits_[0] |= 0x00000001u; |
| 3820 | } |
| 3821 | inline void ServiceDescriptorProto::clear_has_name() { |
| 3822 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3823 | } |
| 3824 | inline void ServiceDescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3825 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3826 | name_->clear(); |
| 3827 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3828 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3829 | } |
| 3830 | inline const ::std::string& ServiceDescriptorProto::name() const { |
| 3831 | return *name_; |
| 3832 | } |
| 3833 | inline void ServiceDescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3834 | set_has_name(); |
| 3835 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3836 | name_ = new ::std::string; |
| 3837 | } |
| 3838 | name_->assign(value); |
| 3839 | } |
| 3840 | inline void ServiceDescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3841 | set_has_name(); |
| 3842 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3843 | name_ = new ::std::string; |
| 3844 | } |
| 3845 | name_->assign(value); |
| 3846 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3847 | inline void ServiceDescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3848 | set_has_name(); |
| 3849 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3850 | name_ = new ::std::string; |
| 3851 | } |
| 3852 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 3853 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3854 | inline ::std::string* ServiceDescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3855 | set_has_name(); |
| 3856 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3857 | name_ = new ::std::string; |
| 3858 | } |
| 3859 | return name_; |
| 3860 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3861 | inline ::std::string* ServiceDescriptorProto::release_name() { |
| 3862 | clear_has_name(); |
| 3863 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 3864 | return NULL; |
| 3865 | } else { |
| 3866 | ::std::string* temp = name_; |
| 3867 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3868 | return temp; |
| 3869 | } |
| 3870 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3871 | |
| 3872 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 3873 | inline int ServiceDescriptorProto::method_size() const { |
| 3874 | return method_.size(); |
| 3875 | } |
| 3876 | inline void ServiceDescriptorProto::clear_method() { |
| 3877 | method_.Clear(); |
| 3878 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3879 | inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const { |
| 3880 | return method_.Get(index); |
| 3881 | } |
| 3882 | inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) { |
| 3883 | return method_.Mutable(index); |
| 3884 | } |
| 3885 | inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() { |
| 3886 | return method_.Add(); |
| 3887 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 3888 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >& |
| 3889 | ServiceDescriptorProto::method() const { |
| 3890 | return method_; |
| 3891 | } |
| 3892 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >* |
| 3893 | ServiceDescriptorProto::mutable_method() { |
| 3894 | return &method_; |
| 3895 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3896 | |
| 3897 | // optional .google.protobuf.ServiceOptions options = 3; |
| 3898 | inline bool ServiceDescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3899 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 3900 | } |
| 3901 | inline void ServiceDescriptorProto::set_has_options() { |
| 3902 | _has_bits_[0] |= 0x00000004u; |
| 3903 | } |
| 3904 | inline void ServiceDescriptorProto::clear_has_options() { |
| 3905 | _has_bits_[0] &= ~0x00000004u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3906 | } |
| 3907 | inline void ServiceDescriptorProto::clear_options() { |
| 3908 | if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3909 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3910 | } |
| 3911 | inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 3912 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3913 | } |
| 3914 | inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3915 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3916 | if (options_ == NULL) options_ = new ::google::protobuf::ServiceOptions; |
| 3917 | return options_; |
| 3918 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3919 | inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { |
| 3920 | clear_has_options(); |
| 3921 | ::google::protobuf::ServiceOptions* temp = options_; |
| 3922 | options_ = NULL; |
| 3923 | return temp; |
| 3924 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3925 | |
| 3926 | // ------------------------------------------------------------------- |
| 3927 | |
| 3928 | // MethodDescriptorProto |
| 3929 | |
| 3930 | // optional string name = 1; |
| 3931 | inline bool MethodDescriptorProto::has_name() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3932 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3933 | } |
| 3934 | inline void MethodDescriptorProto::set_has_name() { |
| 3935 | _has_bits_[0] |= 0x00000001u; |
| 3936 | } |
| 3937 | inline void MethodDescriptorProto::clear_has_name() { |
| 3938 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3939 | } |
| 3940 | inline void MethodDescriptorProto::clear_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3941 | if (name_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3942 | name_->clear(); |
| 3943 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3944 | clear_has_name(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3945 | } |
| 3946 | inline const ::std::string& MethodDescriptorProto::name() const { |
| 3947 | return *name_; |
| 3948 | } |
| 3949 | inline void MethodDescriptorProto::set_name(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3950 | set_has_name(); |
| 3951 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3952 | name_ = new ::std::string; |
| 3953 | } |
| 3954 | name_->assign(value); |
| 3955 | } |
| 3956 | inline void MethodDescriptorProto::set_name(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3957 | set_has_name(); |
| 3958 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3959 | name_ = new ::std::string; |
| 3960 | } |
| 3961 | name_->assign(value); |
| 3962 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3963 | inline void MethodDescriptorProto::set_name(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3964 | set_has_name(); |
| 3965 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 3966 | name_ = new ::std::string; |
| 3967 | } |
| 3968 | name_->assign(reinterpret_cast<const char*>(value), size); |
| 3969 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3970 | inline ::std::string* MethodDescriptorProto::mutable_name() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3971 | set_has_name(); |
| 3972 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3973 | name_ = new ::std::string; |
| 3974 | } |
| 3975 | return name_; |
| 3976 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3977 | inline ::std::string* MethodDescriptorProto::release_name() { |
| 3978 | clear_has_name(); |
| 3979 | if (name_ == &::google::protobuf::internal::kEmptyString) { |
| 3980 | return NULL; |
| 3981 | } else { |
| 3982 | ::std::string* temp = name_; |
| 3983 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 3984 | return temp; |
| 3985 | } |
| 3986 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3987 | |
| 3988 | // optional string input_type = 2; |
| 3989 | inline bool MethodDescriptorProto::has_input_type() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3990 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3991 | } |
| 3992 | inline void MethodDescriptorProto::set_has_input_type() { |
| 3993 | _has_bits_[0] |= 0x00000002u; |
| 3994 | } |
| 3995 | inline void MethodDescriptorProto::clear_has_input_type() { |
| 3996 | _has_bits_[0] &= ~0x00000002u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 3997 | } |
| 3998 | inline void MethodDescriptorProto::clear_input_type() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 3999 | if (input_type_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4000 | input_type_->clear(); |
| 4001 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4002 | clear_has_input_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4003 | } |
| 4004 | inline const ::std::string& MethodDescriptorProto::input_type() const { |
| 4005 | return *input_type_; |
| 4006 | } |
| 4007 | inline void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4008 | set_has_input_type(); |
| 4009 | if (input_type_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4010 | input_type_ = new ::std::string; |
| 4011 | } |
| 4012 | input_type_->assign(value); |
| 4013 | } |
| 4014 | inline void MethodDescriptorProto::set_input_type(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4015 | set_has_input_type(); |
| 4016 | if (input_type_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4017 | input_type_ = new ::std::string; |
| 4018 | } |
| 4019 | input_type_->assign(value); |
| 4020 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4021 | inline void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4022 | set_has_input_type(); |
| 4023 | if (input_type_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4024 | input_type_ = new ::std::string; |
| 4025 | } |
| 4026 | input_type_->assign(reinterpret_cast<const char*>(value), size); |
| 4027 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4028 | inline ::std::string* MethodDescriptorProto::mutable_input_type() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4029 | set_has_input_type(); |
| 4030 | if (input_type_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4031 | input_type_ = new ::std::string; |
| 4032 | } |
| 4033 | return input_type_; |
| 4034 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4035 | inline ::std::string* MethodDescriptorProto::release_input_type() { |
| 4036 | clear_has_input_type(); |
| 4037 | if (input_type_ == &::google::protobuf::internal::kEmptyString) { |
| 4038 | return NULL; |
| 4039 | } else { |
| 4040 | ::std::string* temp = input_type_; |
| 4041 | input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4042 | return temp; |
| 4043 | } |
| 4044 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4045 | |
| 4046 | // optional string output_type = 3; |
| 4047 | inline bool MethodDescriptorProto::has_output_type() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4048 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 4049 | } |
| 4050 | inline void MethodDescriptorProto::set_has_output_type() { |
| 4051 | _has_bits_[0] |= 0x00000004u; |
| 4052 | } |
| 4053 | inline void MethodDescriptorProto::clear_has_output_type() { |
| 4054 | _has_bits_[0] &= ~0x00000004u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4055 | } |
| 4056 | inline void MethodDescriptorProto::clear_output_type() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4057 | if (output_type_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4058 | output_type_->clear(); |
| 4059 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4060 | clear_has_output_type(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4061 | } |
| 4062 | inline const ::std::string& MethodDescriptorProto::output_type() const { |
| 4063 | return *output_type_; |
| 4064 | } |
| 4065 | inline void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4066 | set_has_output_type(); |
| 4067 | if (output_type_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4068 | output_type_ = new ::std::string; |
| 4069 | } |
| 4070 | output_type_->assign(value); |
| 4071 | } |
| 4072 | inline void MethodDescriptorProto::set_output_type(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4073 | set_has_output_type(); |
| 4074 | if (output_type_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4075 | output_type_ = new ::std::string; |
| 4076 | } |
| 4077 | output_type_->assign(value); |
| 4078 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4079 | inline void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4080 | set_has_output_type(); |
| 4081 | if (output_type_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4082 | output_type_ = new ::std::string; |
| 4083 | } |
| 4084 | output_type_->assign(reinterpret_cast<const char*>(value), size); |
| 4085 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4086 | inline ::std::string* MethodDescriptorProto::mutable_output_type() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4087 | set_has_output_type(); |
| 4088 | if (output_type_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4089 | output_type_ = new ::std::string; |
| 4090 | } |
| 4091 | return output_type_; |
| 4092 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4093 | inline ::std::string* MethodDescriptorProto::release_output_type() { |
| 4094 | clear_has_output_type(); |
| 4095 | if (output_type_ == &::google::protobuf::internal::kEmptyString) { |
| 4096 | return NULL; |
| 4097 | } else { |
| 4098 | ::std::string* temp = output_type_; |
| 4099 | output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4100 | return temp; |
| 4101 | } |
| 4102 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4103 | |
| 4104 | // optional .google.protobuf.MethodOptions options = 4; |
| 4105 | inline bool MethodDescriptorProto::has_options() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4106 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 4107 | } |
| 4108 | inline void MethodDescriptorProto::set_has_options() { |
| 4109 | _has_bits_[0] |= 0x00000008u; |
| 4110 | } |
| 4111 | inline void MethodDescriptorProto::clear_has_options() { |
| 4112 | _has_bits_[0] &= ~0x00000008u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4113 | } |
| 4114 | inline void MethodDescriptorProto::clear_options() { |
| 4115 | if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4116 | clear_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4117 | } |
| 4118 | inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4119 | return options_ != NULL ? *options_ : *default_instance_->options_; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4120 | } |
| 4121 | inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4122 | set_has_options(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4123 | if (options_ == NULL) options_ = new ::google::protobuf::MethodOptions; |
| 4124 | return options_; |
| 4125 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4126 | inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { |
| 4127 | clear_has_options(); |
| 4128 | ::google::protobuf::MethodOptions* temp = options_; |
| 4129 | options_ = NULL; |
| 4130 | return temp; |
| 4131 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4132 | |
| 4133 | // ------------------------------------------------------------------- |
| 4134 | |
| 4135 | // FileOptions |
| 4136 | |
| 4137 | // optional string java_package = 1; |
| 4138 | inline bool FileOptions::has_java_package() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4139 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 4140 | } |
| 4141 | inline void FileOptions::set_has_java_package() { |
| 4142 | _has_bits_[0] |= 0x00000001u; |
| 4143 | } |
| 4144 | inline void FileOptions::clear_has_java_package() { |
| 4145 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4146 | } |
| 4147 | inline void FileOptions::clear_java_package() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4148 | if (java_package_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4149 | java_package_->clear(); |
| 4150 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4151 | clear_has_java_package(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4152 | } |
| 4153 | inline const ::std::string& FileOptions::java_package() const { |
| 4154 | return *java_package_; |
| 4155 | } |
| 4156 | inline void FileOptions::set_java_package(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4157 | set_has_java_package(); |
| 4158 | if (java_package_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4159 | java_package_ = new ::std::string; |
| 4160 | } |
| 4161 | java_package_->assign(value); |
| 4162 | } |
| 4163 | inline void FileOptions::set_java_package(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4164 | set_has_java_package(); |
| 4165 | if (java_package_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4166 | java_package_ = new ::std::string; |
| 4167 | } |
| 4168 | java_package_->assign(value); |
| 4169 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4170 | inline void FileOptions::set_java_package(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4171 | set_has_java_package(); |
| 4172 | if (java_package_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4173 | java_package_ = new ::std::string; |
| 4174 | } |
| 4175 | java_package_->assign(reinterpret_cast<const char*>(value), size); |
| 4176 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4177 | inline ::std::string* FileOptions::mutable_java_package() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4178 | set_has_java_package(); |
| 4179 | if (java_package_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4180 | java_package_ = new ::std::string; |
| 4181 | } |
| 4182 | return java_package_; |
| 4183 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4184 | inline ::std::string* FileOptions::release_java_package() { |
| 4185 | clear_has_java_package(); |
| 4186 | if (java_package_ == &::google::protobuf::internal::kEmptyString) { |
| 4187 | return NULL; |
| 4188 | } else { |
| 4189 | ::std::string* temp = java_package_; |
| 4190 | java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4191 | return temp; |
| 4192 | } |
| 4193 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4194 | |
| 4195 | // optional string java_outer_classname = 8; |
| 4196 | inline bool FileOptions::has_java_outer_classname() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4197 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4198 | } |
| 4199 | inline void FileOptions::set_has_java_outer_classname() { |
| 4200 | _has_bits_[0] |= 0x00000002u; |
| 4201 | } |
| 4202 | inline void FileOptions::clear_has_java_outer_classname() { |
| 4203 | _has_bits_[0] &= ~0x00000002u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4204 | } |
| 4205 | inline void FileOptions::clear_java_outer_classname() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4206 | if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4207 | java_outer_classname_->clear(); |
| 4208 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4209 | clear_has_java_outer_classname(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4210 | } |
| 4211 | inline const ::std::string& FileOptions::java_outer_classname() const { |
| 4212 | return *java_outer_classname_; |
| 4213 | } |
| 4214 | inline void FileOptions::set_java_outer_classname(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4215 | set_has_java_outer_classname(); |
| 4216 | if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4217 | java_outer_classname_ = new ::std::string; |
| 4218 | } |
| 4219 | java_outer_classname_->assign(value); |
| 4220 | } |
| 4221 | inline void FileOptions::set_java_outer_classname(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4222 | set_has_java_outer_classname(); |
| 4223 | if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4224 | java_outer_classname_ = new ::std::string; |
| 4225 | } |
| 4226 | java_outer_classname_->assign(value); |
| 4227 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4228 | inline void FileOptions::set_java_outer_classname(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4229 | set_has_java_outer_classname(); |
| 4230 | if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4231 | java_outer_classname_ = new ::std::string; |
| 4232 | } |
| 4233 | java_outer_classname_->assign(reinterpret_cast<const char*>(value), size); |
| 4234 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4235 | inline ::std::string* FileOptions::mutable_java_outer_classname() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4236 | set_has_java_outer_classname(); |
| 4237 | if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4238 | java_outer_classname_ = new ::std::string; |
| 4239 | } |
| 4240 | return java_outer_classname_; |
| 4241 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4242 | inline ::std::string* FileOptions::release_java_outer_classname() { |
| 4243 | clear_has_java_outer_classname(); |
| 4244 | if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) { |
| 4245 | return NULL; |
| 4246 | } else { |
| 4247 | ::std::string* temp = java_outer_classname_; |
| 4248 | java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4249 | return temp; |
| 4250 | } |
| 4251 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4252 | |
| 4253 | // optional bool java_multiple_files = 10 [default = false]; |
| 4254 | inline bool FileOptions::has_java_multiple_files() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4255 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 4256 | } |
| 4257 | inline void FileOptions::set_has_java_multiple_files() { |
| 4258 | _has_bits_[0] |= 0x00000004u; |
| 4259 | } |
| 4260 | inline void FileOptions::clear_has_java_multiple_files() { |
| 4261 | _has_bits_[0] &= ~0x00000004u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4262 | } |
| 4263 | inline void FileOptions::clear_java_multiple_files() { |
| 4264 | java_multiple_files_ = false; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4265 | clear_has_java_multiple_files(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4266 | } |
| 4267 | inline bool FileOptions::java_multiple_files() const { |
| 4268 | return java_multiple_files_; |
| 4269 | } |
| 4270 | inline void FileOptions::set_java_multiple_files(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4271 | set_has_java_multiple_files(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4272 | java_multiple_files_ = value; |
| 4273 | } |
| 4274 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4275 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 4276 | inline bool FileOptions::has_java_generate_equals_and_hash() const { |
| 4277 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 4278 | } |
| 4279 | inline void FileOptions::set_has_java_generate_equals_and_hash() { |
| 4280 | _has_bits_[0] |= 0x00000008u; |
| 4281 | } |
| 4282 | inline void FileOptions::clear_has_java_generate_equals_and_hash() { |
| 4283 | _has_bits_[0] &= ~0x00000008u; |
| 4284 | } |
| 4285 | inline void FileOptions::clear_java_generate_equals_and_hash() { |
| 4286 | java_generate_equals_and_hash_ = false; |
| 4287 | clear_has_java_generate_equals_and_hash(); |
| 4288 | } |
| 4289 | inline bool FileOptions::java_generate_equals_and_hash() const { |
| 4290 | return java_generate_equals_and_hash_; |
| 4291 | } |
| 4292 | inline void FileOptions::set_java_generate_equals_and_hash(bool value) { |
| 4293 | set_has_java_generate_equals_and_hash(); |
| 4294 | java_generate_equals_and_hash_ = value; |
| 4295 | } |
| 4296 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4297 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4298 | inline bool FileOptions::has_optimize_for() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4299 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 4300 | } |
| 4301 | inline void FileOptions::set_has_optimize_for() { |
| 4302 | _has_bits_[0] |= 0x00000010u; |
| 4303 | } |
| 4304 | inline void FileOptions::clear_has_optimize_for() { |
| 4305 | _has_bits_[0] &= ~0x00000010u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4306 | } |
| 4307 | inline void FileOptions::clear_optimize_for() { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4308 | optimize_for_ = 1; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4309 | clear_has_optimize_for(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4310 | } |
| 4311 | inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { |
| 4312 | return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_); |
| 4313 | } |
| 4314 | inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { |
| 4315 | GOOGLE_DCHECK(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4316 | set_has_optimize_for(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4317 | optimize_for_ = value; |
| 4318 | } |
| 4319 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4320 | // optional bool cc_generic_services = 16 [default = false]; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4321 | inline bool FileOptions::has_cc_generic_services() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4322 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 4323 | } |
| 4324 | inline void FileOptions::set_has_cc_generic_services() { |
| 4325 | _has_bits_[0] |= 0x00000020u; |
| 4326 | } |
| 4327 | inline void FileOptions::clear_has_cc_generic_services() { |
| 4328 | _has_bits_[0] &= ~0x00000020u; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4329 | } |
| 4330 | inline void FileOptions::clear_cc_generic_services() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4331 | cc_generic_services_ = false; |
| 4332 | clear_has_cc_generic_services(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4333 | } |
| 4334 | inline bool FileOptions::cc_generic_services() const { |
| 4335 | return cc_generic_services_; |
| 4336 | } |
| 4337 | inline void FileOptions::set_cc_generic_services(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4338 | set_has_cc_generic_services(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4339 | cc_generic_services_ = value; |
| 4340 | } |
| 4341 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4342 | // optional bool java_generic_services = 17 [default = false]; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4343 | inline bool FileOptions::has_java_generic_services() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4344 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 4345 | } |
| 4346 | inline void FileOptions::set_has_java_generic_services() { |
| 4347 | _has_bits_[0] |= 0x00000040u; |
| 4348 | } |
| 4349 | inline void FileOptions::clear_has_java_generic_services() { |
| 4350 | _has_bits_[0] &= ~0x00000040u; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4351 | } |
| 4352 | inline void FileOptions::clear_java_generic_services() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4353 | java_generic_services_ = false; |
| 4354 | clear_has_java_generic_services(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4355 | } |
| 4356 | inline bool FileOptions::java_generic_services() const { |
| 4357 | return java_generic_services_; |
| 4358 | } |
| 4359 | inline void FileOptions::set_java_generic_services(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4360 | set_has_java_generic_services(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4361 | java_generic_services_ = value; |
| 4362 | } |
| 4363 | |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4364 | // optional bool py_generic_services = 18 [default = false]; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4365 | inline bool FileOptions::has_py_generic_services() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4366 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 4367 | } |
| 4368 | inline void FileOptions::set_has_py_generic_services() { |
| 4369 | _has_bits_[0] |= 0x00000080u; |
| 4370 | } |
| 4371 | inline void FileOptions::clear_has_py_generic_services() { |
| 4372 | _has_bits_[0] &= ~0x00000080u; |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4373 | } |
| 4374 | inline void FileOptions::clear_py_generic_services() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4375 | py_generic_services_ = false; |
| 4376 | clear_has_py_generic_services(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4377 | } |
| 4378 | inline bool FileOptions::py_generic_services() const { |
| 4379 | return py_generic_services_; |
| 4380 | } |
| 4381 | inline void FileOptions::set_py_generic_services(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4382 | set_has_py_generic_services(); |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4383 | py_generic_services_ = value; |
| 4384 | } |
| 4385 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4386 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4387 | inline int FileOptions::uninterpreted_option_size() const { |
| 4388 | return uninterpreted_option_.size(); |
| 4389 | } |
| 4390 | inline void FileOptions::clear_uninterpreted_option() { |
| 4391 | uninterpreted_option_.Clear(); |
| 4392 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4393 | inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const { |
| 4394 | return uninterpreted_option_.Get(index); |
| 4395 | } |
| 4396 | inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) { |
| 4397 | return uninterpreted_option_.Mutable(index); |
| 4398 | } |
| 4399 | inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() { |
| 4400 | return uninterpreted_option_.Add(); |
| 4401 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4402 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4403 | FileOptions::uninterpreted_option() const { |
| 4404 | return uninterpreted_option_; |
| 4405 | } |
| 4406 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4407 | FileOptions::mutable_uninterpreted_option() { |
| 4408 | return &uninterpreted_option_; |
| 4409 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4410 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4411 | // ------------------------------------------------------------------- |
| 4412 | |
| 4413 | // MessageOptions |
| 4414 | |
| 4415 | // optional bool message_set_wire_format = 1 [default = false]; |
| 4416 | inline bool MessageOptions::has_message_set_wire_format() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4417 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 4418 | } |
| 4419 | inline void MessageOptions::set_has_message_set_wire_format() { |
| 4420 | _has_bits_[0] |= 0x00000001u; |
| 4421 | } |
| 4422 | inline void MessageOptions::clear_has_message_set_wire_format() { |
| 4423 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4424 | } |
| 4425 | inline void MessageOptions::clear_message_set_wire_format() { |
| 4426 | message_set_wire_format_ = false; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4427 | clear_has_message_set_wire_format(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4428 | } |
| 4429 | inline bool MessageOptions::message_set_wire_format() const { |
| 4430 | return message_set_wire_format_; |
| 4431 | } |
| 4432 | inline void MessageOptions::set_message_set_wire_format(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4433 | set_has_message_set_wire_format(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4434 | message_set_wire_format_ = value; |
| 4435 | } |
| 4436 | |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 4437 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 4438 | inline bool MessageOptions::has_no_standard_descriptor_accessor() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4439 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4440 | } |
| 4441 | inline void MessageOptions::set_has_no_standard_descriptor_accessor() { |
| 4442 | _has_bits_[0] |= 0x00000002u; |
| 4443 | } |
| 4444 | inline void MessageOptions::clear_has_no_standard_descriptor_accessor() { |
| 4445 | _has_bits_[0] &= ~0x00000002u; |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 4446 | } |
| 4447 | inline void MessageOptions::clear_no_standard_descriptor_accessor() { |
| 4448 | no_standard_descriptor_accessor_ = false; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4449 | clear_has_no_standard_descriptor_accessor(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 4450 | } |
| 4451 | inline bool MessageOptions::no_standard_descriptor_accessor() const { |
| 4452 | return no_standard_descriptor_accessor_; |
| 4453 | } |
| 4454 | inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4455 | set_has_no_standard_descriptor_accessor(); |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 4456 | no_standard_descriptor_accessor_ = value; |
| 4457 | } |
| 4458 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4459 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4460 | inline int MessageOptions::uninterpreted_option_size() const { |
| 4461 | return uninterpreted_option_.size(); |
| 4462 | } |
| 4463 | inline void MessageOptions::clear_uninterpreted_option() { |
| 4464 | uninterpreted_option_.Clear(); |
| 4465 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4466 | inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const { |
| 4467 | return uninterpreted_option_.Get(index); |
| 4468 | } |
| 4469 | inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) { |
| 4470 | return uninterpreted_option_.Mutable(index); |
| 4471 | } |
| 4472 | inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() { |
| 4473 | return uninterpreted_option_.Add(); |
| 4474 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4475 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4476 | MessageOptions::uninterpreted_option() const { |
| 4477 | return uninterpreted_option_; |
| 4478 | } |
| 4479 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4480 | MessageOptions::mutable_uninterpreted_option() { |
| 4481 | return &uninterpreted_option_; |
| 4482 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4483 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4484 | // ------------------------------------------------------------------- |
| 4485 | |
| 4486 | // FieldOptions |
| 4487 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4488 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4489 | inline bool FieldOptions::has_ctype() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4490 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 4491 | } |
| 4492 | inline void FieldOptions::set_has_ctype() { |
| 4493 | _has_bits_[0] |= 0x00000001u; |
| 4494 | } |
| 4495 | inline void FieldOptions::clear_has_ctype() { |
| 4496 | _has_bits_[0] &= ~0x00000001u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4497 | } |
| 4498 | inline void FieldOptions::clear_ctype() { |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4499 | ctype_ = 0; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4500 | clear_has_ctype(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4501 | } |
| 4502 | inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
| 4503 | return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
| 4504 | } |
| 4505 | inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
| 4506 | GOOGLE_DCHECK(::google::protobuf::FieldOptions_CType_IsValid(value)); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4507 | set_has_ctype(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4508 | ctype_ = value; |
| 4509 | } |
| 4510 | |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 4511 | // optional bool packed = 2; |
| 4512 | inline bool FieldOptions::has_packed() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4513 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4514 | } |
| 4515 | inline void FieldOptions::set_has_packed() { |
| 4516 | _has_bits_[0] |= 0x00000002u; |
| 4517 | } |
| 4518 | inline void FieldOptions::clear_has_packed() { |
| 4519 | _has_bits_[0] &= ~0x00000002u; |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 4520 | } |
| 4521 | inline void FieldOptions::clear_packed() { |
| 4522 | packed_ = false; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4523 | clear_has_packed(); |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 4524 | } |
| 4525 | inline bool FieldOptions::packed() const { |
| 4526 | return packed_; |
| 4527 | } |
| 4528 | inline void FieldOptions::set_packed(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4529 | set_has_packed(); |
kenton@google.com | 2d6daa7 | 2009-01-22 01:27:00 +0000 | [diff] [blame] | 4530 | packed_ = value; |
| 4531 | } |
| 4532 | |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4533 | // optional bool deprecated = 3 [default = false]; |
| 4534 | inline bool FieldOptions::has_deprecated() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4535 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 4536 | } |
| 4537 | inline void FieldOptions::set_has_deprecated() { |
| 4538 | _has_bits_[0] |= 0x00000004u; |
| 4539 | } |
| 4540 | inline void FieldOptions::clear_has_deprecated() { |
| 4541 | _has_bits_[0] &= ~0x00000004u; |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4542 | } |
| 4543 | inline void FieldOptions::clear_deprecated() { |
| 4544 | deprecated_ = false; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4545 | clear_has_deprecated(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4546 | } |
| 4547 | inline bool FieldOptions::deprecated() const { |
| 4548 | return deprecated_; |
| 4549 | } |
| 4550 | inline void FieldOptions::set_deprecated(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4551 | set_has_deprecated(); |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4552 | deprecated_ = value; |
| 4553 | } |
| 4554 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4555 | // optional string experimental_map_key = 9; |
| 4556 | inline bool FieldOptions::has_experimental_map_key() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4557 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 4558 | } |
| 4559 | inline void FieldOptions::set_has_experimental_map_key() { |
| 4560 | _has_bits_[0] |= 0x00000008u; |
| 4561 | } |
| 4562 | inline void FieldOptions::clear_has_experimental_map_key() { |
| 4563 | _has_bits_[0] &= ~0x00000008u; |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4564 | } |
| 4565 | inline void FieldOptions::clear_experimental_map_key() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4566 | if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4567 | experimental_map_key_->clear(); |
| 4568 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4569 | clear_has_experimental_map_key(); |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4570 | } |
| 4571 | inline const ::std::string& FieldOptions::experimental_map_key() const { |
| 4572 | return *experimental_map_key_; |
| 4573 | } |
| 4574 | inline void FieldOptions::set_experimental_map_key(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4575 | set_has_experimental_map_key(); |
| 4576 | if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4577 | experimental_map_key_ = new ::std::string; |
| 4578 | } |
| 4579 | experimental_map_key_->assign(value); |
| 4580 | } |
| 4581 | inline void FieldOptions::set_experimental_map_key(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4582 | set_has_experimental_map_key(); |
| 4583 | if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4584 | experimental_map_key_ = new ::std::string; |
| 4585 | } |
| 4586 | experimental_map_key_->assign(value); |
| 4587 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4588 | inline void FieldOptions::set_experimental_map_key(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4589 | set_has_experimental_map_key(); |
| 4590 | if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4591 | experimental_map_key_ = new ::std::string; |
| 4592 | } |
| 4593 | experimental_map_key_->assign(reinterpret_cast<const char*>(value), size); |
| 4594 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4595 | inline ::std::string* FieldOptions::mutable_experimental_map_key() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4596 | set_has_experimental_map_key(); |
| 4597 | if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) { |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4598 | experimental_map_key_ = new ::std::string; |
| 4599 | } |
| 4600 | return experimental_map_key_; |
| 4601 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4602 | inline ::std::string* FieldOptions::release_experimental_map_key() { |
| 4603 | clear_has_experimental_map_key(); |
| 4604 | if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) { |
| 4605 | return NULL; |
| 4606 | } else { |
| 4607 | ::std::string* temp = experimental_map_key_; |
| 4608 | experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4609 | return temp; |
| 4610 | } |
| 4611 | } |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4612 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4613 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4614 | inline int FieldOptions::uninterpreted_option_size() const { |
| 4615 | return uninterpreted_option_.size(); |
| 4616 | } |
| 4617 | inline void FieldOptions::clear_uninterpreted_option() { |
| 4618 | uninterpreted_option_.Clear(); |
| 4619 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4620 | inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const { |
| 4621 | return uninterpreted_option_.Get(index); |
| 4622 | } |
| 4623 | inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) { |
| 4624 | return uninterpreted_option_.Mutable(index); |
| 4625 | } |
| 4626 | inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() { |
| 4627 | return uninterpreted_option_.Add(); |
| 4628 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4629 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4630 | FieldOptions::uninterpreted_option() const { |
| 4631 | return uninterpreted_option_; |
| 4632 | } |
| 4633 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4634 | FieldOptions::mutable_uninterpreted_option() { |
| 4635 | return &uninterpreted_option_; |
| 4636 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4637 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4638 | // ------------------------------------------------------------------- |
| 4639 | |
| 4640 | // EnumOptions |
| 4641 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4642 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4643 | inline int EnumOptions::uninterpreted_option_size() const { |
| 4644 | return uninterpreted_option_.size(); |
| 4645 | } |
| 4646 | inline void EnumOptions::clear_uninterpreted_option() { |
| 4647 | uninterpreted_option_.Clear(); |
| 4648 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4649 | inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const { |
| 4650 | return uninterpreted_option_.Get(index); |
| 4651 | } |
| 4652 | inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) { |
| 4653 | return uninterpreted_option_.Mutable(index); |
| 4654 | } |
| 4655 | inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() { |
| 4656 | return uninterpreted_option_.Add(); |
| 4657 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4658 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4659 | EnumOptions::uninterpreted_option() const { |
| 4660 | return uninterpreted_option_; |
| 4661 | } |
| 4662 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4663 | EnumOptions::mutable_uninterpreted_option() { |
| 4664 | return &uninterpreted_option_; |
| 4665 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4666 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4667 | // ------------------------------------------------------------------- |
| 4668 | |
| 4669 | // EnumValueOptions |
| 4670 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4671 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4672 | inline int EnumValueOptions::uninterpreted_option_size() const { |
| 4673 | return uninterpreted_option_.size(); |
| 4674 | } |
| 4675 | inline void EnumValueOptions::clear_uninterpreted_option() { |
| 4676 | uninterpreted_option_.Clear(); |
| 4677 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4678 | inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const { |
| 4679 | return uninterpreted_option_.Get(index); |
| 4680 | } |
| 4681 | inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) { |
| 4682 | return uninterpreted_option_.Mutable(index); |
| 4683 | } |
| 4684 | inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() { |
| 4685 | return uninterpreted_option_.Add(); |
| 4686 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4687 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4688 | EnumValueOptions::uninterpreted_option() const { |
| 4689 | return uninterpreted_option_; |
| 4690 | } |
| 4691 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4692 | EnumValueOptions::mutable_uninterpreted_option() { |
| 4693 | return &uninterpreted_option_; |
| 4694 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4695 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4696 | // ------------------------------------------------------------------- |
| 4697 | |
| 4698 | // ServiceOptions |
| 4699 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4700 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4701 | inline int ServiceOptions::uninterpreted_option_size() const { |
| 4702 | return uninterpreted_option_.size(); |
| 4703 | } |
| 4704 | inline void ServiceOptions::clear_uninterpreted_option() { |
| 4705 | uninterpreted_option_.Clear(); |
| 4706 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4707 | inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const { |
| 4708 | return uninterpreted_option_.Get(index); |
| 4709 | } |
| 4710 | inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) { |
| 4711 | return uninterpreted_option_.Mutable(index); |
| 4712 | } |
| 4713 | inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() { |
| 4714 | return uninterpreted_option_.Add(); |
| 4715 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4716 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4717 | ServiceOptions::uninterpreted_option() const { |
| 4718 | return uninterpreted_option_; |
| 4719 | } |
| 4720 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4721 | ServiceOptions::mutable_uninterpreted_option() { |
| 4722 | return &uninterpreted_option_; |
| 4723 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4724 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4725 | // ------------------------------------------------------------------- |
| 4726 | |
| 4727 | // MethodOptions |
| 4728 | |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4729 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 4730 | inline int MethodOptions::uninterpreted_option_size() const { |
| 4731 | return uninterpreted_option_.size(); |
| 4732 | } |
| 4733 | inline void MethodOptions::clear_uninterpreted_option() { |
| 4734 | uninterpreted_option_.Clear(); |
| 4735 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4736 | inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const { |
| 4737 | return uninterpreted_option_.Get(index); |
| 4738 | } |
| 4739 | inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) { |
| 4740 | return uninterpreted_option_.Mutable(index); |
| 4741 | } |
| 4742 | inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() { |
| 4743 | return uninterpreted_option_.Add(); |
| 4744 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4745 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 4746 | MethodOptions::uninterpreted_option() const { |
| 4747 | return uninterpreted_option_; |
| 4748 | } |
| 4749 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 4750 | MethodOptions::mutable_uninterpreted_option() { |
| 4751 | return &uninterpreted_option_; |
| 4752 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4753 | |
| 4754 | // ------------------------------------------------------------------- |
| 4755 | |
| 4756 | // UninterpretedOption_NamePart |
| 4757 | |
| 4758 | // required string name_part = 1; |
| 4759 | inline bool UninterpretedOption_NamePart::has_name_part() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4760 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 4761 | } |
| 4762 | inline void UninterpretedOption_NamePart::set_has_name_part() { |
| 4763 | _has_bits_[0] |= 0x00000001u; |
| 4764 | } |
| 4765 | inline void UninterpretedOption_NamePart::clear_has_name_part() { |
| 4766 | _has_bits_[0] &= ~0x00000001u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4767 | } |
| 4768 | inline void UninterpretedOption_NamePart::clear_name_part() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4769 | if (name_part_ != &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4770 | name_part_->clear(); |
| 4771 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4772 | clear_has_name_part(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4773 | } |
| 4774 | inline const ::std::string& UninterpretedOption_NamePart::name_part() const { |
| 4775 | return *name_part_; |
| 4776 | } |
| 4777 | inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4778 | set_has_name_part(); |
| 4779 | if (name_part_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4780 | name_part_ = new ::std::string; |
| 4781 | } |
| 4782 | name_part_->assign(value); |
| 4783 | } |
| 4784 | inline void UninterpretedOption_NamePart::set_name_part(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4785 | set_has_name_part(); |
| 4786 | if (name_part_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4787 | name_part_ = new ::std::string; |
| 4788 | } |
| 4789 | name_part_->assign(value); |
| 4790 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4791 | inline void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4792 | set_has_name_part(); |
| 4793 | if (name_part_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4794 | name_part_ = new ::std::string; |
| 4795 | } |
| 4796 | name_part_->assign(reinterpret_cast<const char*>(value), size); |
| 4797 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4798 | inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4799 | set_has_name_part(); |
| 4800 | if (name_part_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4801 | name_part_ = new ::std::string; |
| 4802 | } |
| 4803 | return name_part_; |
| 4804 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4805 | inline ::std::string* UninterpretedOption_NamePart::release_name_part() { |
| 4806 | clear_has_name_part(); |
| 4807 | if (name_part_ == &::google::protobuf::internal::kEmptyString) { |
| 4808 | return NULL; |
| 4809 | } else { |
| 4810 | ::std::string* temp = name_part_; |
| 4811 | name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4812 | return temp; |
| 4813 | } |
| 4814 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4815 | |
| 4816 | // required bool is_extension = 2; |
| 4817 | inline bool UninterpretedOption_NamePart::has_is_extension() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4818 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4819 | } |
| 4820 | inline void UninterpretedOption_NamePart::set_has_is_extension() { |
| 4821 | _has_bits_[0] |= 0x00000002u; |
| 4822 | } |
| 4823 | inline void UninterpretedOption_NamePart::clear_has_is_extension() { |
| 4824 | _has_bits_[0] &= ~0x00000002u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4825 | } |
| 4826 | inline void UninterpretedOption_NamePart::clear_is_extension() { |
| 4827 | is_extension_ = false; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4828 | clear_has_is_extension(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4829 | } |
| 4830 | inline bool UninterpretedOption_NamePart::is_extension() const { |
| 4831 | return is_extension_; |
| 4832 | } |
| 4833 | inline void UninterpretedOption_NamePart::set_is_extension(bool value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4834 | set_has_is_extension(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4835 | is_extension_ = value; |
| 4836 | } |
| 4837 | |
| 4838 | // ------------------------------------------------------------------- |
| 4839 | |
| 4840 | // UninterpretedOption |
| 4841 | |
| 4842 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 4843 | inline int UninterpretedOption::name_size() const { |
| 4844 | return name_.size(); |
| 4845 | } |
| 4846 | inline void UninterpretedOption::clear_name() { |
| 4847 | name_.Clear(); |
| 4848 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4849 | inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const { |
| 4850 | return name_.Get(index); |
| 4851 | } |
| 4852 | inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) { |
| 4853 | return name_.Mutable(index); |
| 4854 | } |
| 4855 | inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() { |
| 4856 | return name_.Add(); |
| 4857 | } |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 4858 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >& |
| 4859 | UninterpretedOption::name() const { |
| 4860 | return name_; |
| 4861 | } |
| 4862 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >* |
| 4863 | UninterpretedOption::mutable_name() { |
| 4864 | return &name_; |
| 4865 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4866 | |
| 4867 | // optional string identifier_value = 3; |
| 4868 | inline bool UninterpretedOption::has_identifier_value() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4869 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4870 | } |
| 4871 | inline void UninterpretedOption::set_has_identifier_value() { |
| 4872 | _has_bits_[0] |= 0x00000002u; |
| 4873 | } |
| 4874 | inline void UninterpretedOption::clear_has_identifier_value() { |
| 4875 | _has_bits_[0] &= ~0x00000002u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4876 | } |
| 4877 | inline void UninterpretedOption::clear_identifier_value() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4878 | if (identifier_value_ != &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4879 | identifier_value_->clear(); |
| 4880 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4881 | clear_has_identifier_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4882 | } |
| 4883 | inline const ::std::string& UninterpretedOption::identifier_value() const { |
| 4884 | return *identifier_value_; |
| 4885 | } |
| 4886 | inline void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4887 | set_has_identifier_value(); |
| 4888 | if (identifier_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4889 | identifier_value_ = new ::std::string; |
| 4890 | } |
| 4891 | identifier_value_->assign(value); |
| 4892 | } |
| 4893 | inline void UninterpretedOption::set_identifier_value(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4894 | set_has_identifier_value(); |
| 4895 | if (identifier_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4896 | identifier_value_ = new ::std::string; |
| 4897 | } |
| 4898 | identifier_value_->assign(value); |
| 4899 | } |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4900 | inline void UninterpretedOption::set_identifier_value(const char* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4901 | set_has_identifier_value(); |
| 4902 | if (identifier_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | d37d46d | 2009-04-25 02:53:47 +0000 | [diff] [blame] | 4903 | identifier_value_ = new ::std::string; |
| 4904 | } |
| 4905 | identifier_value_->assign(reinterpret_cast<const char*>(value), size); |
| 4906 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4907 | inline ::std::string* UninterpretedOption::mutable_identifier_value() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4908 | set_has_identifier_value(); |
| 4909 | if (identifier_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4910 | identifier_value_ = new ::std::string; |
| 4911 | } |
| 4912 | return identifier_value_; |
| 4913 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4914 | inline ::std::string* UninterpretedOption::release_identifier_value() { |
| 4915 | clear_has_identifier_value(); |
| 4916 | if (identifier_value_ == &::google::protobuf::internal::kEmptyString) { |
| 4917 | return NULL; |
| 4918 | } else { |
| 4919 | ::std::string* temp = identifier_value_; |
| 4920 | identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 4921 | return temp; |
| 4922 | } |
| 4923 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4924 | |
| 4925 | // optional uint64 positive_int_value = 4; |
| 4926 | inline bool UninterpretedOption::has_positive_int_value() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4927 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 4928 | } |
| 4929 | inline void UninterpretedOption::set_has_positive_int_value() { |
| 4930 | _has_bits_[0] |= 0x00000004u; |
| 4931 | } |
| 4932 | inline void UninterpretedOption::clear_has_positive_int_value() { |
| 4933 | _has_bits_[0] &= ~0x00000004u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4934 | } |
| 4935 | inline void UninterpretedOption::clear_positive_int_value() { |
| 4936 | positive_int_value_ = GOOGLE_ULONGLONG(0); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4937 | clear_has_positive_int_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4938 | } |
| 4939 | inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
| 4940 | return positive_int_value_; |
| 4941 | } |
| 4942 | inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4943 | set_has_positive_int_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4944 | positive_int_value_ = value; |
| 4945 | } |
| 4946 | |
| 4947 | // optional int64 negative_int_value = 5; |
| 4948 | inline bool UninterpretedOption::has_negative_int_value() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4949 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 4950 | } |
| 4951 | inline void UninterpretedOption::set_has_negative_int_value() { |
| 4952 | _has_bits_[0] |= 0x00000008u; |
| 4953 | } |
| 4954 | inline void UninterpretedOption::clear_has_negative_int_value() { |
| 4955 | _has_bits_[0] &= ~0x00000008u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4956 | } |
| 4957 | inline void UninterpretedOption::clear_negative_int_value() { |
| 4958 | negative_int_value_ = GOOGLE_LONGLONG(0); |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4959 | clear_has_negative_int_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4960 | } |
| 4961 | inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
| 4962 | return negative_int_value_; |
| 4963 | } |
| 4964 | inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4965 | set_has_negative_int_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4966 | negative_int_value_ = value; |
| 4967 | } |
| 4968 | |
| 4969 | // optional double double_value = 6; |
| 4970 | inline bool UninterpretedOption::has_double_value() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4971 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 4972 | } |
| 4973 | inline void UninterpretedOption::set_has_double_value() { |
| 4974 | _has_bits_[0] |= 0x00000010u; |
| 4975 | } |
| 4976 | inline void UninterpretedOption::clear_has_double_value() { |
| 4977 | _has_bits_[0] &= ~0x00000010u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4978 | } |
| 4979 | inline void UninterpretedOption::clear_double_value() { |
| 4980 | double_value_ = 0; |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4981 | clear_has_double_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4982 | } |
| 4983 | inline double UninterpretedOption::double_value() const { |
| 4984 | return double_value_; |
| 4985 | } |
| 4986 | inline void UninterpretedOption::set_double_value(double value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4987 | set_has_double_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 4988 | double_value_ = value; |
| 4989 | } |
| 4990 | |
| 4991 | // optional bytes string_value = 7; |
| 4992 | inline bool UninterpretedOption::has_string_value() const { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 4993 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 4994 | } |
| 4995 | inline void UninterpretedOption::set_has_string_value() { |
| 4996 | _has_bits_[0] |= 0x00000020u; |
| 4997 | } |
| 4998 | inline void UninterpretedOption::clear_has_string_value() { |
| 4999 | _has_bits_[0] &= ~0x00000020u; |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5000 | } |
| 5001 | inline void UninterpretedOption::clear_string_value() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5002 | if (string_value_ != &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5003 | string_value_->clear(); |
| 5004 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5005 | clear_has_string_value(); |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5006 | } |
| 5007 | inline const ::std::string& UninterpretedOption::string_value() const { |
| 5008 | return *string_value_; |
| 5009 | } |
| 5010 | inline void UninterpretedOption::set_string_value(const ::std::string& value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5011 | set_has_string_value(); |
| 5012 | if (string_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5013 | string_value_ = new ::std::string; |
| 5014 | } |
| 5015 | string_value_->assign(value); |
| 5016 | } |
| 5017 | inline void UninterpretedOption::set_string_value(const char* value) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5018 | set_has_string_value(); |
| 5019 | if (string_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5020 | string_value_ = new ::std::string; |
| 5021 | } |
| 5022 | string_value_->assign(value); |
| 5023 | } |
| 5024 | inline void UninterpretedOption::set_string_value(const void* value, size_t size) { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5025 | set_has_string_value(); |
| 5026 | if (string_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5027 | string_value_ = new ::std::string; |
| 5028 | } |
| 5029 | string_value_->assign(reinterpret_cast<const char*>(value), size); |
| 5030 | } |
| 5031 | inline ::std::string* UninterpretedOption::mutable_string_value() { |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5032 | set_has_string_value(); |
| 5033 | if (string_value_ == &::google::protobuf::internal::kEmptyString) { |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5034 | string_value_ = new ::std::string; |
| 5035 | } |
| 5036 | return string_value_; |
| 5037 | } |
liujisi@google.com | 33165fe | 2010-11-02 13:14:58 +0000 | [diff] [blame^] | 5038 | inline ::std::string* UninterpretedOption::release_string_value() { |
| 5039 | clear_has_string_value(); |
| 5040 | if (string_value_ == &::google::protobuf::internal::kEmptyString) { |
| 5041 | return NULL; |
| 5042 | } else { |
| 5043 | ::std::string* temp = string_value_; |
| 5044 | string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 5045 | return temp; |
| 5046 | } |
| 5047 | } |
| 5048 | |
| 5049 | // optional string aggregate_value = 8; |
| 5050 | inline bool UninterpretedOption::has_aggregate_value() const { |
| 5051 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 5052 | } |
| 5053 | inline void UninterpretedOption::set_has_aggregate_value() { |
| 5054 | _has_bits_[0] |= 0x00000040u; |
| 5055 | } |
| 5056 | inline void UninterpretedOption::clear_has_aggregate_value() { |
| 5057 | _has_bits_[0] &= ~0x00000040u; |
| 5058 | } |
| 5059 | inline void UninterpretedOption::clear_aggregate_value() { |
| 5060 | if (aggregate_value_ != &::google::protobuf::internal::kEmptyString) { |
| 5061 | aggregate_value_->clear(); |
| 5062 | } |
| 5063 | clear_has_aggregate_value(); |
| 5064 | } |
| 5065 | inline const ::std::string& UninterpretedOption::aggregate_value() const { |
| 5066 | return *aggregate_value_; |
| 5067 | } |
| 5068 | inline void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
| 5069 | set_has_aggregate_value(); |
| 5070 | if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) { |
| 5071 | aggregate_value_ = new ::std::string; |
| 5072 | } |
| 5073 | aggregate_value_->assign(value); |
| 5074 | } |
| 5075 | inline void UninterpretedOption::set_aggregate_value(const char* value) { |
| 5076 | set_has_aggregate_value(); |
| 5077 | if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) { |
| 5078 | aggregate_value_ = new ::std::string; |
| 5079 | } |
| 5080 | aggregate_value_->assign(value); |
| 5081 | } |
| 5082 | inline void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
| 5083 | set_has_aggregate_value(); |
| 5084 | if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) { |
| 5085 | aggregate_value_ = new ::std::string; |
| 5086 | } |
| 5087 | aggregate_value_->assign(reinterpret_cast<const char*>(value), size); |
| 5088 | } |
| 5089 | inline ::std::string* UninterpretedOption::mutable_aggregate_value() { |
| 5090 | set_has_aggregate_value(); |
| 5091 | if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) { |
| 5092 | aggregate_value_ = new ::std::string; |
| 5093 | } |
| 5094 | return aggregate_value_; |
| 5095 | } |
| 5096 | inline ::std::string* UninterpretedOption::release_aggregate_value() { |
| 5097 | clear_has_aggregate_value(); |
| 5098 | if (aggregate_value_ == &::google::protobuf::internal::kEmptyString) { |
| 5099 | return NULL; |
| 5100 | } else { |
| 5101 | ::std::string* temp = aggregate_value_; |
| 5102 | aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); |
| 5103 | return temp; |
| 5104 | } |
| 5105 | } |
| 5106 | |
| 5107 | // ------------------------------------------------------------------- |
| 5108 | |
| 5109 | // SourceCodeInfo_Location |
| 5110 | |
| 5111 | // repeated int32 path = 1 [packed = true]; |
| 5112 | inline int SourceCodeInfo_Location::path_size() const { |
| 5113 | return path_.size(); |
| 5114 | } |
| 5115 | inline void SourceCodeInfo_Location::clear_path() { |
| 5116 | path_.Clear(); |
| 5117 | } |
| 5118 | inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
| 5119 | return path_.Get(index); |
| 5120 | } |
| 5121 | inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) { |
| 5122 | path_.Set(index, value); |
| 5123 | } |
| 5124 | inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
| 5125 | path_.Add(value); |
| 5126 | } |
| 5127 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 5128 | SourceCodeInfo_Location::path() const { |
| 5129 | return path_; |
| 5130 | } |
| 5131 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 5132 | SourceCodeInfo_Location::mutable_path() { |
| 5133 | return &path_; |
| 5134 | } |
| 5135 | |
| 5136 | // repeated int32 span = 2 [packed = true]; |
| 5137 | inline int SourceCodeInfo_Location::span_size() const { |
| 5138 | return span_.size(); |
| 5139 | } |
| 5140 | inline void SourceCodeInfo_Location::clear_span() { |
| 5141 | span_.Clear(); |
| 5142 | } |
| 5143 | inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
| 5144 | return span_.Get(index); |
| 5145 | } |
| 5146 | inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) { |
| 5147 | span_.Set(index, value); |
| 5148 | } |
| 5149 | inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
| 5150 | span_.Add(value); |
| 5151 | } |
| 5152 | inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 5153 | SourceCodeInfo_Location::span() const { |
| 5154 | return span_; |
| 5155 | } |
| 5156 | inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 5157 | SourceCodeInfo_Location::mutable_span() { |
| 5158 | return &span_; |
| 5159 | } |
| 5160 | |
| 5161 | // ------------------------------------------------------------------- |
| 5162 | |
| 5163 | // SourceCodeInfo |
| 5164 | |
| 5165 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 5166 | inline int SourceCodeInfo::location_size() const { |
| 5167 | return location_.size(); |
| 5168 | } |
| 5169 | inline void SourceCodeInfo::clear_location() { |
| 5170 | location_.Clear(); |
| 5171 | } |
| 5172 | inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const { |
| 5173 | return location_.Get(index); |
| 5174 | } |
| 5175 | inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) { |
| 5176 | return location_.Mutable(index); |
| 5177 | } |
| 5178 | inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() { |
| 5179 | return location_.Add(); |
| 5180 | } |
| 5181 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >& |
| 5182 | SourceCodeInfo::location() const { |
| 5183 | return location_; |
| 5184 | } |
| 5185 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >* |
| 5186 | SourceCodeInfo::mutable_location() { |
| 5187 | return &location_; |
| 5188 | } |
kenton@google.com | 24bf56f | 2008-09-24 20:31:01 +0000 | [diff] [blame] | 5189 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 5190 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 5191 | // @@protoc_insertion_point(namespace_scope) |
| 5192 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 5193 | } // namespace protobuf |
| 5194 | } // namespace google |
kenton@google.com | 80b1d62 | 2009-07-29 01:13:20 +0000 | [diff] [blame] | 5195 | |
| 5196 | #ifndef SWIG |
| 5197 | namespace google { |
| 5198 | namespace protobuf { |
| 5199 | |
| 5200 | template <> |
| 5201 | inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() { |
| 5202 | return ::google::protobuf::FieldDescriptorProto_Type_descriptor(); |
| 5203 | } |
| 5204 | template <> |
| 5205 | inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() { |
| 5206 | return ::google::protobuf::FieldDescriptorProto_Label_descriptor(); |
| 5207 | } |
| 5208 | template <> |
| 5209 | inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() { |
| 5210 | return ::google::protobuf::FileOptions_OptimizeMode_descriptor(); |
| 5211 | } |
| 5212 | template <> |
| 5213 | inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_CType>() { |
| 5214 | return ::google::protobuf::FieldOptions_CType_descriptor(); |
| 5215 | } |
| 5216 | |
| 5217 | } // namespace google |
| 5218 | } // namespace protobuf |
| 5219 | #endif // SWIG |
| 5220 | |
kenton@google.com | fccb146 | 2009-12-18 02:11:36 +0000 | [diff] [blame] | 5221 | // @@protoc_insertion_point(global_scope) |
| 5222 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 5223 | #endif // PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED |