blob: e85a93367a9d90c2ab5b3008b48a8041294e0a20 [file] [log] [blame]
temporal40ee5512008-07-10 02:12:20 +00001// Generated by the protocol buffer compiler. DO NOT EDIT!
kenton@google.comfccb1462009-12-18 02:11:36 +00002// source: google/protobuf/descriptor.proto
temporal40ee5512008-07-10 02:12:20 +00003
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.comafd32ab2009-12-18 02:51:26 +000011#if GOOGLE_PROTOBUF_VERSION < 2003000
temporal40ee5512008-07-10 02:12:20 +000012#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.comea753232010-01-09 01:02:25 +000016#if 2003001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
temporal40ee5512008-07-10 02:12:20 +000017#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.com80b1d622009-07-29 01:13:20 +000022#include <google/protobuf/generated_message_util.h>
temporal40ee5512008-07-10 02:12:20 +000023#include <google/protobuf/repeated_field.h>
24#include <google/protobuf/extension_set.h>
kenton@google.com80b1d622009-07-29 01:13:20 +000025#include <google/protobuf/generated_message_reflection.h>
kenton@google.comfccb1462009-12-18 02:11:36 +000026// @@protoc_insertion_point(includes)
temporal40ee5512008-07-10 02:12:20 +000027
28namespace google {
29namespace protobuf {
30
kenton@google.com9b10f582008-09-30 00:09:40 +000031// Internal implementation detail -- do not call these.
kenton@google.comd37d46d2009-04-25 02:53:47 +000032void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
33void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +000034void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
temporal779f61c2008-08-13 03:15:00 +000035
36class FileDescriptorSet;
temporal40ee5512008-07-10 02:12:20 +000037class FileDescriptorProto;
38class DescriptorProto;
39class DescriptorProto_ExtensionRange;
40class FieldDescriptorProto;
41class EnumDescriptorProto;
42class EnumValueDescriptorProto;
43class ServiceDescriptorProto;
44class MethodDescriptorProto;
45class FileOptions;
46class MessageOptions;
47class FieldOptions;
48class EnumOptions;
49class EnumValueOptions;
50class ServiceOptions;
51class MethodOptions;
kenton@google.com24bf56f2008-09-24 20:31:01 +000052class UninterpretedOption;
53class UninterpretedOption_NamePart;
liujisi@google.com33165fe2010-11-02 13:14:58 +000054class SourceCodeInfo;
55class SourceCodeInfo_Location;
temporal40ee5512008-07-10 02:12:20 +000056
57enum 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.com24bf56f2008-09-24 20:31:01 +000075 FieldDescriptorProto_Type_TYPE_SINT64 = 18
temporal40ee5512008-07-10 02:12:20 +000076};
temporal40ee5512008-07-10 02:12:20 +000077LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
78const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
79const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
kenton@google.comfccb1462009-12-18 02:11:36 +000080const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
temporal40ee5512008-07-10 02:12:20 +000081
kenton@google.com80b1d622009-07-29 01:13:20 +000082LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
kenton@google.comd37d46d2009-04-25 02:53:47 +000083inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
84 return ::google::protobuf::internal::NameOfEnum(
85 FieldDescriptorProto_Type_descriptor(), value);
86}
87inline 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}
temporal40ee5512008-07-10 02:12:20 +000092enum FieldDescriptorProto_Label {
93 FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
94 FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
kenton@google.com24bf56f2008-09-24 20:31:01 +000095 FieldDescriptorProto_Label_LABEL_REPEATED = 3
temporal40ee5512008-07-10 02:12:20 +000096};
temporal40ee5512008-07-10 02:12:20 +000097LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
98const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
99const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
kenton@google.comfccb1462009-12-18 02:11:36 +0000100const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
temporal40ee5512008-07-10 02:12:20 +0000101
kenton@google.com80b1d622009-07-29 01:13:20 +0000102LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000103inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
104 return ::google::protobuf::internal::NameOfEnum(
105 FieldDescriptorProto_Label_descriptor(), value);
106}
107inline 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}
temporal40ee5512008-07-10 02:12:20 +0000112enum FileOptions_OptimizeMode {
113 FileOptions_OptimizeMode_SPEED = 1,
kenton@google.com80b1d622009-07-29 01:13:20 +0000114 FileOptions_OptimizeMode_CODE_SIZE = 2,
115 FileOptions_OptimizeMode_LITE_RUNTIME = 3
temporal40ee5512008-07-10 02:12:20 +0000116};
temporal40ee5512008-07-10 02:12:20 +0000117LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
118const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
kenton@google.com80b1d622009-07-29 01:13:20 +0000119const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
kenton@google.comfccb1462009-12-18 02:11:36 +0000120const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
temporal40ee5512008-07-10 02:12:20 +0000121
kenton@google.com80b1d622009-07-29 01:13:20 +0000122LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000123inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
124 return ::google::protobuf::internal::NameOfEnum(
125 FileOptions_OptimizeMode_descriptor(), value);
126}
127inline 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}
temporal40ee5512008-07-10 02:12:20 +0000132enum FieldOptions_CType {
kenton@google.comfccb1462009-12-18 02:11:36 +0000133 FieldOptions_CType_STRING = 0,
temporal40ee5512008-07-10 02:12:20 +0000134 FieldOptions_CType_CORD = 1,
kenton@google.com24bf56f2008-09-24 20:31:01 +0000135 FieldOptions_CType_STRING_PIECE = 2
temporal40ee5512008-07-10 02:12:20 +0000136};
temporal40ee5512008-07-10 02:12:20 +0000137LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
kenton@google.comfccb1462009-12-18 02:11:36 +0000138const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
temporal40ee5512008-07-10 02:12:20 +0000139const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
kenton@google.comfccb1462009-12-18 02:11:36 +0000140const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
temporal40ee5512008-07-10 02:12:20 +0000141
kenton@google.com80b1d622009-07-29 01:13:20 +0000142LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000143inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
144 return ::google::protobuf::internal::NameOfEnum(
145 FieldOptions_CType_descriptor(), value);
146}
147inline 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}
temporal40ee5512008-07-10 02:12:20 +0000152// ===================================================================
153
temporal779f61c2008-08-13 03:15:00 +0000154class 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
temporal779f61c2008-08-13 03:15:00 +0000166 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.com24bf56f2008-09-24 20:31:01 +0000175 static const FileDescriptorSet& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +0000176
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000177 void Swap(FileDescriptorSet* other);
178
temporal779f61c2008-08-13 03:15:00 +0000179 // 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;
temporal779f61c2008-08-13 03:15:00 +0000188
kenton@google.comd37d46d2009-04-25 02:53:47 +0000189 int ByteSize() const;
temporal779f61c2008-08-13 03:15:00 +0000190 bool MergePartialFromCodedStream(
191 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000192 void SerializeWithCachedSizes(
temporal779f61c2008-08-13 03:15:00 +0000193 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +0000194 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal779f61c2008-08-13 03:15:00 +0000195 int GetCachedSize() const { return _cached_size_; }
196 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +0000197 void SharedCtor();
198 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +0000199 void SetCachedSize(int size) const;
temporal779f61c2008-08-13 03:15:00 +0000200 public:
201
kenton@google.com80b1d622009-07-29 01:13:20 +0000202 ::google::protobuf::Metadata GetMetadata() const;
temporal779f61c2008-08-13 03:15:00 +0000203
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.comcfa2d8a2009-04-18 00:02:12 +0000211 static const int kFileFieldNumber = 1;
temporal779f61c2008-08-13 03:15:00 +0000212 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.comfccb1462009-12-18 02:11:36 +0000215 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
216 file() const;
217 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
218 mutable_file();
temporal779f61c2008-08-13 03:15:00 +0000219
kenton@google.comfccb1462009-12-18 02:11:36 +0000220 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
temporal779f61c2008-08-13 03:15:00 +0000221 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000222
temporal779f61c2008-08-13 03:15:00 +0000223 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal779f61c2008-08-13 03:15:00 +0000224
225 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000226
227 mutable int _cached_size_;
228 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
229
kenton@google.comccc11672009-04-28 01:48:06 +0000230 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000231 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +0000232 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +0000233
kenton@google.com24bf56f2008-09-24 20:31:01 +0000234 void InitAsDefaultInstance();
235 static FileDescriptorSet* default_instance_;
temporal779f61c2008-08-13 03:15:00 +0000236};
237// -------------------------------------------------------------------
238
temporal40ee5512008-07-10 02:12:20 +0000239class 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
temporal40ee5512008-07-10 02:12:20 +0000251 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +0000252 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000253 }
254
255 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +0000256 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000257 }
258
259 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +0000260 static const FileDescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +0000261
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000262 void Swap(FileDescriptorProto* other);
263
temporal40ee5512008-07-10 02:12:20 +0000264 // 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;
temporal40ee5512008-07-10 02:12:20 +0000273
kenton@google.comd37d46d2009-04-25 02:53:47 +0000274 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +0000275 bool MergePartialFromCodedStream(
276 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000277 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +0000278 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +0000279 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +0000280 int GetCachedSize() const { return _cached_size_; }
281 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +0000282 void SharedCtor();
283 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +0000284 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +0000285 public:
286
kenton@google.com80b1d622009-07-29 01:13:20 +0000287 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +0000288
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.comcfa2d8a2009-04-18 00:02:12 +0000296 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +0000297 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.comd37d46d2009-04-25 02:53:47 +0000300 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000301 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000302 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +0000303
304 // optional string package = 2;
305 inline bool has_package() const;
306 inline void clear_package();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000307 static const int kPackageFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +0000308 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.comd37d46d2009-04-25 02:53:47 +0000311 inline void set_package(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000312 inline ::std::string* mutable_package();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000313 inline ::std::string* release_package();
temporal40ee5512008-07-10 02:12:20 +0000314
315 // repeated string dependency = 3;
316 inline int dependency_size() const;
317 inline void clear_dependency();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000318 static const int kDependencyFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +0000319 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);
temporalf2063512008-07-23 01:19:07 +0000322 inline void set_dependency(int index, const char* value);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000323 inline void set_dependency(int index, const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000324 inline ::std::string* add_dependency();
325 inline void add_dependency(const ::std::string& value);
326 inline void add_dependency(const char* value);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000327 inline void add_dependency(const char* value, size_t size);
kenton@google.comfccb1462009-12-18 02:11:36 +0000328 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
329 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
temporal40ee5512008-07-10 02:12:20 +0000330
331 // repeated .google.protobuf.DescriptorProto message_type = 4;
332 inline int message_type_size() const;
333 inline void clear_message_type();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000334 static const int kMessageTypeFieldNumber = 4;
temporal40ee5512008-07-10 02:12:20 +0000335 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.comfccb1462009-12-18 02:11:36 +0000338 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
339 message_type() const;
340 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
341 mutable_message_type();
temporal40ee5512008-07-10 02:12:20 +0000342
343 // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
344 inline int enum_type_size() const;
345 inline void clear_enum_type();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000346 static const int kEnumTypeFieldNumber = 5;
temporal40ee5512008-07-10 02:12:20 +0000347 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.comfccb1462009-12-18 02:11:36 +0000350 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
351 enum_type() const;
352 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
353 mutable_enum_type();
temporal40ee5512008-07-10 02:12:20 +0000354
355 // repeated .google.protobuf.ServiceDescriptorProto service = 6;
356 inline int service_size() const;
357 inline void clear_service();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000358 static const int kServiceFieldNumber = 6;
temporal40ee5512008-07-10 02:12:20 +0000359 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.comfccb1462009-12-18 02:11:36 +0000362 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
363 service() const;
364 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
365 mutable_service();
temporal40ee5512008-07-10 02:12:20 +0000366
367 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
368 inline int extension_size() const;
369 inline void clear_extension();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000370 static const int kExtensionFieldNumber = 7;
temporal40ee5512008-07-10 02:12:20 +0000371 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.comfccb1462009-12-18 02:11:36 +0000374 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
375 extension() const;
376 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
377 mutable_extension();
temporal40ee5512008-07-10 02:12:20 +0000378
379 // optional .google.protobuf.FileOptions options = 8;
380 inline bool has_options() const;
381 inline void clear_options();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000382 static const int kOptionsFieldNumber = 8;
temporal40ee5512008-07-10 02:12:20 +0000383 inline const ::google::protobuf::FileOptions& options() const;
384 inline ::google::protobuf::FileOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000385 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();
temporal40ee5512008-07-10 02:12:20 +0000394
kenton@google.comfccb1462009-12-18 02:11:36 +0000395 // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
temporal40ee5512008-07-10 02:12:20 +0000396 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000397 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
temporal779f61c2008-08-13 03:15:00 +0000406 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000407
408 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +0000409 ::std::string* package_;
temporal40ee5512008-07-10 02:12:20 +0000410 ::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.com33165fe2010-11-02 13:14:58 +0000416 ::google::protobuf::SourceCodeInfo* source_code_info_;
417
418 mutable int _cached_size_;
419 ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
420
kenton@google.comccc11672009-04-28 01:48:06 +0000421 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000422 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +0000423 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +0000424
kenton@google.com24bf56f2008-09-24 20:31:01 +0000425 void InitAsDefaultInstance();
426 static FileDescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +0000427};
428// -------------------------------------------------------------------
429
430class 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
temporal40ee5512008-07-10 02:12:20 +0000442 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +0000443 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000444 }
445
446 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +0000447 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000448 }
449
450 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +0000451 static const DescriptorProto_ExtensionRange& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +0000452
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000453 void Swap(DescriptorProto_ExtensionRange* other);
454
temporal40ee5512008-07-10 02:12:20 +0000455 // 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;
temporal40ee5512008-07-10 02:12:20 +0000464
kenton@google.comd37d46d2009-04-25 02:53:47 +0000465 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +0000466 bool MergePartialFromCodedStream(
467 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000468 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +0000469 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +0000470 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +0000471 int GetCachedSize() const { return _cached_size_; }
472 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +0000473 void SharedCtor();
474 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +0000475 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +0000476 public:
477
kenton@google.com80b1d622009-07-29 01:13:20 +0000478 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +0000479
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.comcfa2d8a2009-04-18 00:02:12 +0000487 static const int kStartFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +0000488 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.comcfa2d8a2009-04-18 00:02:12 +0000494 static const int kEndFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +0000495 inline ::google::protobuf::int32 end() const;
496 inline void set_end(::google::protobuf::int32 value);
497
kenton@google.comfccb1462009-12-18 02:11:36 +0000498 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
temporal40ee5512008-07-10 02:12:20 +0000499 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000500 inline void set_has_start();
501 inline void clear_has_start();
502 inline void set_has_end();
503 inline void clear_has_end();
504
temporal779f61c2008-08-13 03:15:00 +0000505 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000506
507 ::google::protobuf::int32 start_;
508 ::google::protobuf::int32 end_;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000509
510 mutable int _cached_size_;
511 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
512
kenton@google.comccc11672009-04-28 01:48:06 +0000513 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000514 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +0000515 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +0000516
kenton@google.com24bf56f2008-09-24 20:31:01 +0000517 void InitAsDefaultInstance();
518 static DescriptorProto_ExtensionRange* default_instance_;
temporal40ee5512008-07-10 02:12:20 +0000519};
520// -------------------------------------------------------------------
521
522class 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
temporal40ee5512008-07-10 02:12:20 +0000534 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +0000535 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000536 }
537
538 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +0000539 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000540 }
541
542 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +0000543 static const DescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +0000544
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000545 void Swap(DescriptorProto* other);
546
temporal40ee5512008-07-10 02:12:20 +0000547 // 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;
temporal40ee5512008-07-10 02:12:20 +0000556
kenton@google.comd37d46d2009-04-25 02:53:47 +0000557 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +0000558 bool MergePartialFromCodedStream(
559 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000560 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +0000561 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +0000562 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +0000563 int GetCachedSize() const { return _cached_size_; }
564 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +0000565 void SharedCtor();
566 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +0000567 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +0000568 public:
569
kenton@google.com80b1d622009-07-29 01:13:20 +0000570 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +0000571
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.comcfa2d8a2009-04-18 00:02:12 +0000581 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +0000582 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.comd37d46d2009-04-25 02:53:47 +0000585 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000586 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000587 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +0000588
589 // repeated .google.protobuf.FieldDescriptorProto field = 2;
590 inline int field_size() const;
591 inline void clear_field();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000592 static const int kFieldFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +0000593 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.comfccb1462009-12-18 02:11:36 +0000596 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
597 field() const;
598 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
599 mutable_field();
temporal40ee5512008-07-10 02:12:20 +0000600
601 // repeated .google.protobuf.FieldDescriptorProto extension = 6;
602 inline int extension_size() const;
603 inline void clear_extension();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000604 static const int kExtensionFieldNumber = 6;
temporal40ee5512008-07-10 02:12:20 +0000605 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.comfccb1462009-12-18 02:11:36 +0000608 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
609 extension() const;
610 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
611 mutable_extension();
temporal40ee5512008-07-10 02:12:20 +0000612
613 // repeated .google.protobuf.DescriptorProto nested_type = 3;
614 inline int nested_type_size() const;
615 inline void clear_nested_type();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000616 static const int kNestedTypeFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +0000617 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.comfccb1462009-12-18 02:11:36 +0000620 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
621 nested_type() const;
622 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
623 mutable_nested_type();
temporal40ee5512008-07-10 02:12:20 +0000624
625 // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
626 inline int enum_type_size() const;
627 inline void clear_enum_type();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000628 static const int kEnumTypeFieldNumber = 4;
temporal40ee5512008-07-10 02:12:20 +0000629 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.comfccb1462009-12-18 02:11:36 +0000632 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
633 enum_type() const;
634 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
635 mutable_enum_type();
temporal40ee5512008-07-10 02:12:20 +0000636
637 // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
638 inline int extension_range_size() const;
639 inline void clear_extension_range();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000640 static const int kExtensionRangeFieldNumber = 5;
temporal40ee5512008-07-10 02:12:20 +0000641 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.comfccb1462009-12-18 02:11:36 +0000644 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();
temporal40ee5512008-07-10 02:12:20 +0000648
649 // optional .google.protobuf.MessageOptions options = 7;
650 inline bool has_options() const;
651 inline void clear_options();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000652 static const int kOptionsFieldNumber = 7;
temporal40ee5512008-07-10 02:12:20 +0000653 inline const ::google::protobuf::MessageOptions& options() const;
654 inline ::google::protobuf::MessageOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000655 inline ::google::protobuf::MessageOptions* release_options();
temporal40ee5512008-07-10 02:12:20 +0000656
kenton@google.comfccb1462009-12-18 02:11:36 +0000657 // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
temporal40ee5512008-07-10 02:12:20 +0000658 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000659 inline void set_has_name();
660 inline void clear_has_name();
661 inline void set_has_options();
662 inline void clear_has_options();
663
temporal779f61c2008-08-13 03:15:00 +0000664 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000665
666 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +0000667 ::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.com33165fe2010-11-02 13:14:58 +0000673
674 mutable int _cached_size_;
675 ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
676
kenton@google.comccc11672009-04-28 01:48:06 +0000677 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000678 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +0000679 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +0000680
kenton@google.com24bf56f2008-09-24 20:31:01 +0000681 void InitAsDefaultInstance();
682 static DescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +0000683};
684// -------------------------------------------------------------------
685
686class 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
temporal40ee5512008-07-10 02:12:20 +0000698 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +0000699 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000700 }
701
702 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +0000703 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000704 }
705
706 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +0000707 static const FieldDescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +0000708
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000709 void Swap(FieldDescriptorProto* other);
710
temporal40ee5512008-07-10 02:12:20 +0000711 // 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;
temporal40ee5512008-07-10 02:12:20 +0000720
kenton@google.comd37d46d2009-04-25 02:53:47 +0000721 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +0000722 bool MergePartialFromCodedStream(
723 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000724 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +0000725 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +0000726 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +0000727 int GetCachedSize() const { return _cached_size_; }
728 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +0000729 void SharedCtor();
730 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +0000731 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +0000732 public:
733
kenton@google.com80b1d622009-07-29 01:13:20 +0000734 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +0000735
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.com80b1d622009-07-29 01:13:20 +0000757 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.comfccb1462009-12-18 02:11:36 +0000764 static const int Type_ARRAYSIZE =
765 FieldDescriptorProto_Type_Type_ARRAYSIZE;
temporal40ee5512008-07-10 02:12:20 +0000766 static inline const ::google::protobuf::EnumDescriptor*
767 Type_descriptor() {
768 return FieldDescriptorProto_Type_descriptor();
769 }
kenton@google.comd37d46d2009-04-25 02:53:47 +0000770 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 }
temporal40ee5512008-07-10 02:12:20 +0000777
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.com80b1d622009-07-29 01:13:20 +0000782 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.comfccb1462009-12-18 02:11:36 +0000789 static const int Label_ARRAYSIZE =
790 FieldDescriptorProto_Label_Label_ARRAYSIZE;
temporal40ee5512008-07-10 02:12:20 +0000791 static inline const ::google::protobuf::EnumDescriptor*
792 Label_descriptor() {
793 return FieldDescriptorProto_Label_descriptor();
794 }
kenton@google.comd37d46d2009-04-25 02:53:47 +0000795 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 }
temporal40ee5512008-07-10 02:12:20 +0000802
803 // accessors -------------------------------------------------------
804
805 // optional string name = 1;
806 inline bool has_name() const;
807 inline void clear_name();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000808 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +0000809 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.comd37d46d2009-04-25 02:53:47 +0000812 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000813 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000814 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +0000815
816 // optional int32 number = 3;
817 inline bool has_number() const;
818 inline void clear_number();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000819 static const int kNumberFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +0000820 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.comcfa2d8a2009-04-18 00:02:12 +0000826 static const int kLabelFieldNumber = 4;
temporal40ee5512008-07-10 02:12:20 +0000827 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.comcfa2d8a2009-04-18 00:02:12 +0000833 static const int kTypeFieldNumber = 5;
temporal40ee5512008-07-10 02:12:20 +0000834 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.comcfa2d8a2009-04-18 00:02:12 +0000840 static const int kTypeNameFieldNumber = 6;
temporal40ee5512008-07-10 02:12:20 +0000841 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.comd37d46d2009-04-25 02:53:47 +0000844 inline void set_type_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000845 inline ::std::string* mutable_type_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000846 inline ::std::string* release_type_name();
temporal40ee5512008-07-10 02:12:20 +0000847
848 // optional string extendee = 2;
849 inline bool has_extendee() const;
850 inline void clear_extendee();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000851 static const int kExtendeeFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +0000852 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.comd37d46d2009-04-25 02:53:47 +0000855 inline void set_extendee(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000856 inline ::std::string* mutable_extendee();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000857 inline ::std::string* release_extendee();
temporal40ee5512008-07-10 02:12:20 +0000858
859 // optional string default_value = 7;
860 inline bool has_default_value() const;
861 inline void clear_default_value();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000862 static const int kDefaultValueFieldNumber = 7;
temporal40ee5512008-07-10 02:12:20 +0000863 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.comd37d46d2009-04-25 02:53:47 +0000866 inline void set_default_value(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000867 inline ::std::string* mutable_default_value();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000868 inline ::std::string* release_default_value();
temporal40ee5512008-07-10 02:12:20 +0000869
870 // optional .google.protobuf.FieldOptions options = 8;
871 inline bool has_options() const;
872 inline void clear_options();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000873 static const int kOptionsFieldNumber = 8;
temporal40ee5512008-07-10 02:12:20 +0000874 inline const ::google::protobuf::FieldOptions& options() const;
875 inline ::google::protobuf::FieldOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000876 inline ::google::protobuf::FieldOptions* release_options();
temporal40ee5512008-07-10 02:12:20 +0000877
kenton@google.comfccb1462009-12-18 02:11:36 +0000878 // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
temporal40ee5512008-07-10 02:12:20 +0000879 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +0000880 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
temporal779f61c2008-08-13 03:15:00 +0000897 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000898
899 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +0000900 ::google::protobuf::int32 number_;
901 int label_;
temporal40ee5512008-07-10 02:12:20 +0000902 ::std::string* type_name_;
temporal40ee5512008-07-10 02:12:20 +0000903 ::std::string* extendee_;
temporal40ee5512008-07-10 02:12:20 +0000904 ::std::string* default_value_;
temporal40ee5512008-07-10 02:12:20 +0000905 ::google::protobuf::FieldOptions* options_;
liujisi@google.com33165fe2010-11-02 13:14:58 +0000906 int type_;
907
908 mutable int _cached_size_;
909 ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32];
910
kenton@google.comccc11672009-04-28 01:48:06 +0000911 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +0000912 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +0000913 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +0000914
kenton@google.com24bf56f2008-09-24 20:31:01 +0000915 void InitAsDefaultInstance();
916 static FieldDescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +0000917};
918// -------------------------------------------------------------------
919
920class 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
temporal40ee5512008-07-10 02:12:20 +0000932 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +0000933 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000934 }
935
936 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +0000937 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +0000938 }
939
940 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +0000941 static const EnumDescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +0000942
kenton@google.com26bd9ee2008-11-21 00:06:27 +0000943 void Swap(EnumDescriptorProto* other);
944
temporal40ee5512008-07-10 02:12:20 +0000945 // 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;
temporal40ee5512008-07-10 02:12:20 +0000954
kenton@google.comd37d46d2009-04-25 02:53:47 +0000955 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +0000956 bool MergePartialFromCodedStream(
957 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +0000958 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +0000959 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +0000960 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +0000961 int GetCachedSize() const { return _cached_size_; }
962 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +0000963 void SharedCtor();
964 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +0000965 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +0000966 public:
967
kenton@google.com80b1d622009-07-29 01:13:20 +0000968 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +0000969
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.comcfa2d8a2009-04-18 00:02:12 +0000977 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +0000978 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.comd37d46d2009-04-25 02:53:47 +0000981 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +0000982 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +0000983 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +0000984
985 // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
986 inline int value_size() const;
987 inline void clear_value();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +0000988 static const int kValueFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +0000989 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.comfccb1462009-12-18 02:11:36 +0000992 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
993 value() const;
994 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
995 mutable_value();
temporal40ee5512008-07-10 02:12:20 +0000996
997 // optional .google.protobuf.EnumOptions options = 3;
998 inline bool has_options() const;
999 inline void clear_options();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001000 static const int kOptionsFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +00001001 inline const ::google::protobuf::EnumOptions& options() const;
1002 inline ::google::protobuf::EnumOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001003 inline ::google::protobuf::EnumOptions* release_options();
temporal40ee5512008-07-10 02:12:20 +00001004
kenton@google.comfccb1462009-12-18 02:11:36 +00001005 // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
temporal40ee5512008-07-10 02:12:20 +00001006 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001007 inline void set_has_name();
1008 inline void clear_has_name();
1009 inline void set_has_options();
1010 inline void clear_has_options();
1011
temporal779f61c2008-08-13 03:15:00 +00001012 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001013
1014 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +00001015 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
1016 ::google::protobuf::EnumOptions* options_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001017
1018 mutable int _cached_size_;
1019 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1020
kenton@google.comccc11672009-04-28 01:48:06 +00001021 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001022 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001023 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001024
kenton@google.com24bf56f2008-09-24 20:31:01 +00001025 void InitAsDefaultInstance();
1026 static EnumDescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001027};
1028// -------------------------------------------------------------------
1029
1030class 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
temporal40ee5512008-07-10 02:12:20 +00001042 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001043 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001044 }
1045
1046 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001047 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001048 }
1049
1050 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001051 static const EnumValueDescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001052
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001053 void Swap(EnumValueDescriptorProto* other);
1054
temporal40ee5512008-07-10 02:12:20 +00001055 // 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;
temporal40ee5512008-07-10 02:12:20 +00001064
kenton@google.comd37d46d2009-04-25 02:53:47 +00001065 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001066 bool MergePartialFromCodedStream(
1067 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001068 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001069 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001070 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001071 int GetCachedSize() const { return _cached_size_; }
1072 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001073 void SharedCtor();
1074 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001075 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001076 public:
1077
kenton@google.com80b1d622009-07-29 01:13:20 +00001078 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001079
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.comcfa2d8a2009-04-18 00:02:12 +00001087 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +00001088 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.comd37d46d2009-04-25 02:53:47 +00001091 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001092 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001093 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +00001094
1095 // optional int32 number = 2;
1096 inline bool has_number() const;
1097 inline void clear_number();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001098 static const int kNumberFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +00001099 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.comcfa2d8a2009-04-18 00:02:12 +00001105 static const int kOptionsFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +00001106 inline const ::google::protobuf::EnumValueOptions& options() const;
1107 inline ::google::protobuf::EnumValueOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001108 inline ::google::protobuf::EnumValueOptions* release_options();
temporal40ee5512008-07-10 02:12:20 +00001109
kenton@google.comfccb1462009-12-18 02:11:36 +00001110 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
temporal40ee5512008-07-10 02:12:20 +00001111 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001112 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
temporal779f61c2008-08-13 03:15:00 +00001119 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001120
1121 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +00001122 ::google::protobuf::EnumValueOptions* options_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001123 ::google::protobuf::int32 number_;
1124
1125 mutable int _cached_size_;
1126 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1127
kenton@google.comccc11672009-04-28 01:48:06 +00001128 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001129 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001130 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001131
kenton@google.com24bf56f2008-09-24 20:31:01 +00001132 void InitAsDefaultInstance();
1133 static EnumValueDescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001134};
1135// -------------------------------------------------------------------
1136
1137class 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
temporal40ee5512008-07-10 02:12:20 +00001149 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001150 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001151 }
1152
1153 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001154 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001155 }
1156
1157 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001158 static const ServiceDescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001159
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001160 void Swap(ServiceDescriptorProto* other);
1161
temporal40ee5512008-07-10 02:12:20 +00001162 // 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;
temporal40ee5512008-07-10 02:12:20 +00001171
kenton@google.comd37d46d2009-04-25 02:53:47 +00001172 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001173 bool MergePartialFromCodedStream(
1174 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001175 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001176 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001177 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001178 int GetCachedSize() const { return _cached_size_; }
1179 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001180 void SharedCtor();
1181 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001182 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001183 public:
1184
kenton@google.com80b1d622009-07-29 01:13:20 +00001185 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001186
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.comcfa2d8a2009-04-18 00:02:12 +00001194 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +00001195 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.comd37d46d2009-04-25 02:53:47 +00001198 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001199 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001200 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +00001201
1202 // repeated .google.protobuf.MethodDescriptorProto method = 2;
1203 inline int method_size() const;
1204 inline void clear_method();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001205 static const int kMethodFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +00001206 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.comfccb1462009-12-18 02:11:36 +00001209 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
1210 method() const;
1211 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
1212 mutable_method();
temporal40ee5512008-07-10 02:12:20 +00001213
1214 // optional .google.protobuf.ServiceOptions options = 3;
1215 inline bool has_options() const;
1216 inline void clear_options();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001217 static const int kOptionsFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +00001218 inline const ::google::protobuf::ServiceOptions& options() const;
1219 inline ::google::protobuf::ServiceOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001220 inline ::google::protobuf::ServiceOptions* release_options();
temporal40ee5512008-07-10 02:12:20 +00001221
kenton@google.comfccb1462009-12-18 02:11:36 +00001222 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
temporal40ee5512008-07-10 02:12:20 +00001223 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001224 inline void set_has_name();
1225 inline void clear_has_name();
1226 inline void set_has_options();
1227 inline void clear_has_options();
1228
temporal779f61c2008-08-13 03:15:00 +00001229 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001230
1231 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +00001232 ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
1233 ::google::protobuf::ServiceOptions* options_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001234
1235 mutable int _cached_size_;
1236 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1237
kenton@google.comccc11672009-04-28 01:48:06 +00001238 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001239 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001240 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001241
kenton@google.com24bf56f2008-09-24 20:31:01 +00001242 void InitAsDefaultInstance();
1243 static ServiceDescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001244};
1245// -------------------------------------------------------------------
1246
1247class 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
temporal40ee5512008-07-10 02:12:20 +00001259 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001260 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001261 }
1262
1263 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001264 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001265 }
1266
1267 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001268 static const MethodDescriptorProto& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001269
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001270 void Swap(MethodDescriptorProto* other);
1271
temporal40ee5512008-07-10 02:12:20 +00001272 // 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;
temporal40ee5512008-07-10 02:12:20 +00001281
kenton@google.comd37d46d2009-04-25 02:53:47 +00001282 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001283 bool MergePartialFromCodedStream(
1284 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001285 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001286 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001287 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001288 int GetCachedSize() const { return _cached_size_; }
1289 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001290 void SharedCtor();
1291 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001292 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001293 public:
1294
kenton@google.com80b1d622009-07-29 01:13:20 +00001295 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001296
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.comcfa2d8a2009-04-18 00:02:12 +00001304 static const int kNameFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +00001305 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.comd37d46d2009-04-25 02:53:47 +00001308 inline void set_name(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001309 inline ::std::string* mutable_name();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001310 inline ::std::string* release_name();
temporal40ee5512008-07-10 02:12:20 +00001311
1312 // optional string input_type = 2;
1313 inline bool has_input_type() const;
1314 inline void clear_input_type();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001315 static const int kInputTypeFieldNumber = 2;
temporal40ee5512008-07-10 02:12:20 +00001316 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.comd37d46d2009-04-25 02:53:47 +00001319 inline void set_input_type(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001320 inline ::std::string* mutable_input_type();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001321 inline ::std::string* release_input_type();
temporal40ee5512008-07-10 02:12:20 +00001322
1323 // optional string output_type = 3;
1324 inline bool has_output_type() const;
1325 inline void clear_output_type();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001326 static const int kOutputTypeFieldNumber = 3;
temporal40ee5512008-07-10 02:12:20 +00001327 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.comd37d46d2009-04-25 02:53:47 +00001330 inline void set_output_type(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001331 inline ::std::string* mutable_output_type();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001332 inline ::std::string* release_output_type();
temporal40ee5512008-07-10 02:12:20 +00001333
1334 // optional .google.protobuf.MethodOptions options = 4;
1335 inline bool has_options() const;
1336 inline void clear_options();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001337 static const int kOptionsFieldNumber = 4;
temporal40ee5512008-07-10 02:12:20 +00001338 inline const ::google::protobuf::MethodOptions& options() const;
1339 inline ::google::protobuf::MethodOptions* mutable_options();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001340 inline ::google::protobuf::MethodOptions* release_options();
temporal40ee5512008-07-10 02:12:20 +00001341
kenton@google.comfccb1462009-12-18 02:11:36 +00001342 // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
temporal40ee5512008-07-10 02:12:20 +00001343 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001344 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
temporal779f61c2008-08-13 03:15:00 +00001353 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001354
1355 ::std::string* name_;
temporal40ee5512008-07-10 02:12:20 +00001356 ::std::string* input_type_;
temporal40ee5512008-07-10 02:12:20 +00001357 ::std::string* output_type_;
temporal40ee5512008-07-10 02:12:20 +00001358 ::google::protobuf::MethodOptions* options_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001359
1360 mutable int _cached_size_;
1361 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
1362
kenton@google.comccc11672009-04-28 01:48:06 +00001363 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001364 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001365 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001366
kenton@google.com24bf56f2008-09-24 20:31:01 +00001367 void InitAsDefaultInstance();
1368 static MethodDescriptorProto* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001369};
1370// -------------------------------------------------------------------
1371
1372class 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
temporal40ee5512008-07-10 02:12:20 +00001384 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001385 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001386 }
1387
1388 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001389 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001390 }
1391
1392 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001393 static const FileOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001394
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001395 void Swap(FileOptions* other);
1396
temporal40ee5512008-07-10 02:12:20 +00001397 // 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;
temporal40ee5512008-07-10 02:12:20 +00001406
kenton@google.comd37d46d2009-04-25 02:53:47 +00001407 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001408 bool MergePartialFromCodedStream(
1409 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001410 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001411 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001412 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001413 int GetCachedSize() const { return _cached_size_; }
1414 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001415 void SharedCtor();
1416 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001417 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001418 public:
1419
kenton@google.com80b1d622009-07-29 01:13:20 +00001420 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001421
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.com80b1d622009-07-29 01:13:20 +00001427 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.comfccb1462009-12-18 02:11:36 +00001435 static const int OptimizeMode_ARRAYSIZE =
1436 FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
temporal40ee5512008-07-10 02:12:20 +00001437 static inline const ::google::protobuf::EnumDescriptor*
1438 OptimizeMode_descriptor() {
1439 return FileOptions_OptimizeMode_descriptor();
1440 }
kenton@google.comd37d46d2009-04-25 02:53:47 +00001441 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 }
temporal40ee5512008-07-10 02:12:20 +00001448
1449 // accessors -------------------------------------------------------
1450
1451 // optional string java_package = 1;
1452 inline bool has_java_package() const;
1453 inline void clear_java_package();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001454 static const int kJavaPackageFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +00001455 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.comd37d46d2009-04-25 02:53:47 +00001458 inline void set_java_package(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001459 inline ::std::string* mutable_java_package();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001460 inline ::std::string* release_java_package();
temporal40ee5512008-07-10 02:12:20 +00001461
1462 // optional string java_outer_classname = 8;
1463 inline bool has_java_outer_classname() const;
1464 inline void clear_java_outer_classname();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001465 static const int kJavaOuterClassnameFieldNumber = 8;
temporal40ee5512008-07-10 02:12:20 +00001466 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.comd37d46d2009-04-25 02:53:47 +00001469 inline void set_java_outer_classname(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001470 inline ::std::string* mutable_java_outer_classname();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001471 inline ::std::string* release_java_outer_classname();
temporal40ee5512008-07-10 02:12:20 +00001472
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.comcfa2d8a2009-04-18 00:02:12 +00001476 static const int kJavaMultipleFilesFieldNumber = 10;
temporal40ee5512008-07-10 02:12:20 +00001477 inline bool java_multiple_files() const;
1478 inline void set_java_multiple_files(bool value);
1479
liujisi@google.com33165fe2010-11-02 13:14:58 +00001480 // 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.comd37d46d2009-04-25 02:53:47 +00001487 // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
temporal40ee5512008-07-10 02:12:20 +00001488 inline bool has_optimize_for() const;
1489 inline void clear_optimize_for();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001490 static const int kOptimizeForFieldNumber = 9;
temporal40ee5512008-07-10 02:12:20 +00001491 inline ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
1492 inline void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
1493
liujisi@google.com33165fe2010-11-02 13:14:58 +00001494 // optional bool cc_generic_services = 16 [default = false];
kenton@google.comfccb1462009-12-18 02:11:36 +00001495 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.com33165fe2010-11-02 13:14:58 +00001501 // optional bool java_generic_services = 17 [default = false];
kenton@google.comfccb1462009-12-18 02:11:36 +00001502 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.com33165fe2010-11-02 13:14:58 +00001508 // optional bool py_generic_services = 18 [default = false];
kenton@google.comfccb1462009-12-18 02:11:36 +00001509 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.com24bf56f2008-09-24 20:31:01 +00001515 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1516 inline int uninterpreted_option_size() const;
1517 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001518 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001519 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.comfccb1462009-12-18 02:11:36 +00001522 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.com24bf56f2008-09-24 20:31:01 +00001526
kenton@google.comd37d46d2009-04-25 02:53:47 +00001527 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00001528 // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
temporal40ee5512008-07-10 02:12:20 +00001529 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001530 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.com24bf56f2008-09-24 20:31:01 +00001547 ::google::protobuf::internal::ExtensionSet _extensions_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001548
temporal779f61c2008-08-13 03:15:00 +00001549 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001550
1551 ::std::string* java_package_;
temporal40ee5512008-07-10 02:12:20 +00001552 ::std::string* java_outer_classname_;
temporal40ee5512008-07-10 02:12:20 +00001553 int optimize_for_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001554 bool java_multiple_files_;
1555 bool java_generate_equals_and_hash_;
kenton@google.comfccb1462009-12-18 02:11:36 +00001556 bool cc_generic_services_;
1557 bool java_generic_services_;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001558 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001559 bool py_generic_services_;
1560
1561 mutable int _cached_size_;
1562 ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
1563
kenton@google.comccc11672009-04-28 01:48:06 +00001564 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001565 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001566 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001567
kenton@google.com24bf56f2008-09-24 20:31:01 +00001568 void InitAsDefaultInstance();
1569 static FileOptions* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001570};
1571// -------------------------------------------------------------------
1572
1573class 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
temporal40ee5512008-07-10 02:12:20 +00001585 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001586 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001587 }
1588
1589 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001590 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001591 }
1592
1593 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001594 static const MessageOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001595
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001596 void Swap(MessageOptions* other);
1597
temporal40ee5512008-07-10 02:12:20 +00001598 // 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;
temporal40ee5512008-07-10 02:12:20 +00001607
kenton@google.comd37d46d2009-04-25 02:53:47 +00001608 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001609 bool MergePartialFromCodedStream(
1610 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001611 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001612 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001613 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001614 int GetCachedSize() const { return _cached_size_; }
1615 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001616 void SharedCtor();
1617 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001618 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001619 public:
1620
kenton@google.com80b1d622009-07-29 01:13:20 +00001621 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001622
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.comcfa2d8a2009-04-18 00:02:12 +00001630 static const int kMessageSetWireFormatFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +00001631 inline bool message_set_wire_format() const;
1632 inline void set_message_set_wire_format(bool value);
1633
kenton@google.com80b1d622009-07-29 01:13:20 +00001634 // 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.com24bf56f2008-09-24 20:31:01 +00001641 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1642 inline int uninterpreted_option_size() const;
1643 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001644 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001645 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.comfccb1462009-12-18 02:11:36 +00001648 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.com24bf56f2008-09-24 20:31:01 +00001652
kenton@google.comd37d46d2009-04-25 02:53:47 +00001653 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00001654 // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
temporal40ee5512008-07-10 02:12:20 +00001655 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001656 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();
temporal40ee5512008-07-10 02:12:20 +00001660
liujisi@google.com33165fe2010-11-02 13:14:58 +00001661 ::google::protobuf::internal::ExtensionSet _extensions_;
1662
1663 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1664
1665 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
temporal40ee5512008-07-10 02:12:20 +00001666 bool message_set_wire_format_;
kenton@google.com80b1d622009-07-29 01:13:20 +00001667 bool no_standard_descriptor_accessor_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001668
1669 mutable int _cached_size_;
1670 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1671
kenton@google.comccc11672009-04-28 01:48:06 +00001672 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001673 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001674 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001675
kenton@google.com24bf56f2008-09-24 20:31:01 +00001676 void InitAsDefaultInstance();
1677 static MessageOptions* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001678};
1679// -------------------------------------------------------------------
1680
1681class 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
temporal40ee5512008-07-10 02:12:20 +00001693 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001694 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001695 }
1696
1697 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001698 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001699 }
1700
1701 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001702 static const FieldOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001703
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001704 void Swap(FieldOptions* other);
1705
temporal40ee5512008-07-10 02:12:20 +00001706 // 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;
temporal40ee5512008-07-10 02:12:20 +00001715
kenton@google.comd37d46d2009-04-25 02:53:47 +00001716 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001717 bool MergePartialFromCodedStream(
1718 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001719 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001720 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001721 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001722 int GetCachedSize() const { return _cached_size_; }
1723 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001724 void SharedCtor();
1725 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001726 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001727 public:
1728
kenton@google.com80b1d622009-07-29 01:13:20 +00001729 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001730
1731 // nested types ----------------------------------------------------
1732
1733 typedef FieldOptions_CType CType;
kenton@google.comfccb1462009-12-18 02:11:36 +00001734 static const CType STRING = FieldOptions_CType_STRING;
temporal40ee5512008-07-10 02:12:20 +00001735 static const CType CORD = FieldOptions_CType_CORD;
1736 static const CType STRING_PIECE = FieldOptions_CType_STRING_PIECE;
kenton@google.com80b1d622009-07-29 01:13:20 +00001737 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.comfccb1462009-12-18 02:11:36 +00001744 static const int CType_ARRAYSIZE =
1745 FieldOptions_CType_CType_ARRAYSIZE;
temporal40ee5512008-07-10 02:12:20 +00001746 static inline const ::google::protobuf::EnumDescriptor*
1747 CType_descriptor() {
1748 return FieldOptions_CType_descriptor();
1749 }
kenton@google.comd37d46d2009-04-25 02:53:47 +00001750 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 }
temporal40ee5512008-07-10 02:12:20 +00001757
1758 // accessors -------------------------------------------------------
1759
kenton@google.comfccb1462009-12-18 02:11:36 +00001760 // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
temporal40ee5512008-07-10 02:12:20 +00001761 inline bool has_ctype() const;
1762 inline void clear_ctype();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001763 static const int kCtypeFieldNumber = 1;
temporal40ee5512008-07-10 02:12:20 +00001764 inline ::google::protobuf::FieldOptions_CType ctype() const;
1765 inline void set_ctype(::google::protobuf::FieldOptions_CType value);
1766
kenton@google.com2d6daa72009-01-22 01:27:00 +00001767 // optional bool packed = 2;
1768 inline bool has_packed() const;
1769 inline void clear_packed();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001770 static const int kPackedFieldNumber = 2;
kenton@google.com2d6daa72009-01-22 01:27:00 +00001771 inline bool packed() const;
1772 inline void set_packed(bool value);
1773
kenton@google.comd37d46d2009-04-25 02:53:47 +00001774 // 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
temporal40ee5512008-07-10 02:12:20 +00001781 // optional string experimental_map_key = 9;
1782 inline bool has_experimental_map_key() const;
1783 inline void clear_experimental_map_key();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001784 static const int kExperimentalMapKeyFieldNumber = 9;
temporal40ee5512008-07-10 02:12:20 +00001785 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.comd37d46d2009-04-25 02:53:47 +00001788 inline void set_experimental_map_key(const char* value, size_t size);
temporal40ee5512008-07-10 02:12:20 +00001789 inline ::std::string* mutable_experimental_map_key();
liujisi@google.com33165fe2010-11-02 13:14:58 +00001790 inline ::std::string* release_experimental_map_key();
temporal40ee5512008-07-10 02:12:20 +00001791
kenton@google.com24bf56f2008-09-24 20:31:01 +00001792 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1793 inline int uninterpreted_option_size() const;
1794 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001795 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001796 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.comfccb1462009-12-18 02:11:36 +00001799 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.com24bf56f2008-09-24 20:31:01 +00001803
kenton@google.comd37d46d2009-04-25 02:53:47 +00001804 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00001805 // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
temporal40ee5512008-07-10 02:12:20 +00001806 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001807 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.com24bf56f2008-09-24 20:31:01 +00001816 ::google::protobuf::internal::ExtensionSet _extensions_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001817
temporal779f61c2008-08-13 03:15:00 +00001818 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001819
1820 int ctype_;
kenton@google.com2d6daa72009-01-22 01:27:00 +00001821 bool packed_;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001822 bool deprecated_;
temporal40ee5512008-07-10 02:12:20 +00001823 ::std::string* experimental_map_key_;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001824 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001825
1826 mutable int _cached_size_;
1827 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
1828
kenton@google.comccc11672009-04-28 01:48:06 +00001829 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001830 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001831 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001832
kenton@google.com24bf56f2008-09-24 20:31:01 +00001833 void InitAsDefaultInstance();
1834 static FieldOptions* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001835};
1836// -------------------------------------------------------------------
1837
1838class 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
temporal40ee5512008-07-10 02:12:20 +00001850 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001851 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001852 }
1853
1854 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001855 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001856 }
1857
1858 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001859 static const EnumOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001860
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001861 void Swap(EnumOptions* other);
1862
temporal40ee5512008-07-10 02:12:20 +00001863 // 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;
temporal40ee5512008-07-10 02:12:20 +00001872
kenton@google.comd37d46d2009-04-25 02:53:47 +00001873 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001874 bool MergePartialFromCodedStream(
1875 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001876 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001877 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001878 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001879 int GetCachedSize() const { return _cached_size_; }
1880 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001881 void SharedCtor();
1882 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001883 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001884 public:
1885
kenton@google.com80b1d622009-07-29 01:13:20 +00001886 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001887
1888 // nested types ----------------------------------------------------
1889
1890 // accessors -------------------------------------------------------
1891
kenton@google.com24bf56f2008-09-24 20:31:01 +00001892 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1893 inline int uninterpreted_option_size() const;
1894 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001895 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001896 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.comfccb1462009-12-18 02:11:36 +00001899 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.com24bf56f2008-09-24 20:31:01 +00001903
kenton@google.comd37d46d2009-04-25 02:53:47 +00001904 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00001905 // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
temporal40ee5512008-07-10 02:12:20 +00001906 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001907
kenton@google.com24bf56f2008-09-24 20:31:01 +00001908 ::google::protobuf::internal::ExtensionSet _extensions_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001909
temporal779f61c2008-08-13 03:15:00 +00001910 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001911
kenton@google.com24bf56f2008-09-24 20:31:01 +00001912 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001913
1914 mutable int _cached_size_;
1915 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1916
kenton@google.comccc11672009-04-28 01:48:06 +00001917 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00001918 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00001919 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00001920
kenton@google.com24bf56f2008-09-24 20:31:01 +00001921 void InitAsDefaultInstance();
1922 static EnumOptions* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00001923};
1924// -------------------------------------------------------------------
1925
1926class 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
temporal40ee5512008-07-10 02:12:20 +00001938 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00001939 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001940 }
1941
1942 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00001943 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001944 }
1945
1946 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00001947 static const EnumValueOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00001948
kenton@google.com26bd9ee2008-11-21 00:06:27 +00001949 void Swap(EnumValueOptions* other);
1950
temporal40ee5512008-07-10 02:12:20 +00001951 // 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;
temporal40ee5512008-07-10 02:12:20 +00001960
kenton@google.comd37d46d2009-04-25 02:53:47 +00001961 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00001962 bool MergePartialFromCodedStream(
1963 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00001964 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00001965 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00001966 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00001967 int GetCachedSize() const { return _cached_size_; }
1968 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00001969 void SharedCtor();
1970 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00001971 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00001972 public:
1973
kenton@google.com80b1d622009-07-29 01:13:20 +00001974 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00001975
1976 // nested types ----------------------------------------------------
1977
1978 // accessors -------------------------------------------------------
1979
kenton@google.com24bf56f2008-09-24 20:31:01 +00001980 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
1981 inline int uninterpreted_option_size() const;
1982 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00001983 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00001984 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.comfccb1462009-12-18 02:11:36 +00001987 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.com24bf56f2008-09-24 20:31:01 +00001991
kenton@google.comd37d46d2009-04-25 02:53:47 +00001992 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00001993 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
temporal40ee5512008-07-10 02:12:20 +00001994 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00001995
kenton@google.com24bf56f2008-09-24 20:31:01 +00001996 ::google::protobuf::internal::ExtensionSet _extensions_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00001997
temporal779f61c2008-08-13 03:15:00 +00001998 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00001999
kenton@google.com24bf56f2008-09-24 20:31:01 +00002000 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002001
2002 mutable int _cached_size_;
2003 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
2004
kenton@google.comccc11672009-04-28 01:48:06 +00002005 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00002006 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00002007 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00002008
kenton@google.com24bf56f2008-09-24 20:31:01 +00002009 void InitAsDefaultInstance();
2010 static EnumValueOptions* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00002011};
2012// -------------------------------------------------------------------
2013
2014class 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
temporal40ee5512008-07-10 02:12:20 +00002026 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00002027 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00002028 }
2029
2030 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00002031 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00002032 }
2033
2034 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00002035 static const ServiceOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00002036
kenton@google.com26bd9ee2008-11-21 00:06:27 +00002037 void Swap(ServiceOptions* other);
2038
temporal40ee5512008-07-10 02:12:20 +00002039 // 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;
temporal40ee5512008-07-10 02:12:20 +00002048
kenton@google.comd37d46d2009-04-25 02:53:47 +00002049 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00002050 bool MergePartialFromCodedStream(
2051 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00002052 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00002053 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00002054 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00002055 int GetCachedSize() const { return _cached_size_; }
2056 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00002057 void SharedCtor();
2058 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00002059 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00002060 public:
2061
kenton@google.com80b1d622009-07-29 01:13:20 +00002062 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00002063
2064 // nested types ----------------------------------------------------
2065
2066 // accessors -------------------------------------------------------
2067
kenton@google.com24bf56f2008-09-24 20:31:01 +00002068 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2069 inline int uninterpreted_option_size() const;
2070 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00002071 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002072 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.comfccb1462009-12-18 02:11:36 +00002075 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.com24bf56f2008-09-24 20:31:01 +00002079
kenton@google.comd37d46d2009-04-25 02:53:47 +00002080 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00002081 // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
temporal40ee5512008-07-10 02:12:20 +00002082 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00002083
kenton@google.com24bf56f2008-09-24 20:31:01 +00002084 ::google::protobuf::internal::ExtensionSet _extensions_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002085
temporal779f61c2008-08-13 03:15:00 +00002086 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00002087
kenton@google.com24bf56f2008-09-24 20:31:01 +00002088 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002089
2090 mutable int _cached_size_;
2091 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
2092
kenton@google.comccc11672009-04-28 01:48:06 +00002093 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00002094 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00002095 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00002096
kenton@google.com24bf56f2008-09-24 20:31:01 +00002097 void InitAsDefaultInstance();
2098 static ServiceOptions* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00002099};
2100// -------------------------------------------------------------------
2101
2102class 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
temporal40ee5512008-07-10 02:12:20 +00002114 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
temporal779f61c2008-08-13 03:15:00 +00002115 return _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00002116 }
2117
2118 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
temporal779f61c2008-08-13 03:15:00 +00002119 return &_unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00002120 }
2121
2122 static const ::google::protobuf::Descriptor* descriptor();
kenton@google.com24bf56f2008-09-24 20:31:01 +00002123 static const MethodOptions& default_instance();
kenton@google.comfccb1462009-12-18 02:11:36 +00002124
kenton@google.com26bd9ee2008-11-21 00:06:27 +00002125 void Swap(MethodOptions* other);
2126
temporal40ee5512008-07-10 02:12:20 +00002127 // 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;
temporal40ee5512008-07-10 02:12:20 +00002136
kenton@google.comd37d46d2009-04-25 02:53:47 +00002137 int ByteSize() const;
temporal40ee5512008-07-10 02:12:20 +00002138 bool MergePartialFromCodedStream(
2139 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00002140 void SerializeWithCachedSizes(
temporal40ee5512008-07-10 02:12:20 +00002141 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00002142 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
temporal40ee5512008-07-10 02:12:20 +00002143 int GetCachedSize() const { return _cached_size_; }
2144 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00002145 void SharedCtor();
2146 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00002147 void SetCachedSize(int size) const;
temporal40ee5512008-07-10 02:12:20 +00002148 public:
2149
kenton@google.com80b1d622009-07-29 01:13:20 +00002150 ::google::protobuf::Metadata GetMetadata() const;
temporal40ee5512008-07-10 02:12:20 +00002151
2152 // nested types ----------------------------------------------------
2153
2154 // accessors -------------------------------------------------------
2155
kenton@google.com24bf56f2008-09-24 20:31:01 +00002156 // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
2157 inline int uninterpreted_option_size() const;
2158 inline void clear_uninterpreted_option();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00002159 static const int kUninterpretedOptionFieldNumber = 999;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002160 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.comfccb1462009-12-18 02:11:36 +00002163 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.com24bf56f2008-09-24 20:31:01 +00002167
kenton@google.comd37d46d2009-04-25 02:53:47 +00002168 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
kenton@google.comfccb1462009-12-18 02:11:36 +00002169 // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
temporal40ee5512008-07-10 02:12:20 +00002170 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00002171
kenton@google.com24bf56f2008-09-24 20:31:01 +00002172 ::google::protobuf::internal::ExtensionSet _extensions_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002173
temporal779f61c2008-08-13 03:15:00 +00002174 ::google::protobuf::UnknownFieldSet _unknown_fields_;
temporal40ee5512008-07-10 02:12:20 +00002175
kenton@google.com24bf56f2008-09-24 20:31:01 +00002176 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002177
2178 mutable int _cached_size_;
2179 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
2180
kenton@google.comccc11672009-04-28 01:48:06 +00002181 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00002182 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00002183 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00002184
kenton@google.com24bf56f2008-09-24 20:31:01 +00002185 void InitAsDefaultInstance();
2186 static MethodOptions* default_instance_;
2187};
2188// -------------------------------------------------------------------
2189
2190class 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.comfccb1462009-12-18 02:11:36 +00002212
kenton@google.com26bd9ee2008-11-21 00:06:27 +00002213 void Swap(UninterpretedOption_NamePart* other);
2214
kenton@google.com24bf56f2008-09-24 20:31:01 +00002215 // 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.com24bf56f2008-09-24 20:31:01 +00002224
kenton@google.comd37d46d2009-04-25 02:53:47 +00002225 int ByteSize() const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002226 bool MergePartialFromCodedStream(
2227 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00002228 void SerializeWithCachedSizes(
kenton@google.com24bf56f2008-09-24 20:31:01 +00002229 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00002230 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002231 int GetCachedSize() const { return _cached_size_; }
2232 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00002233 void SharedCtor();
2234 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00002235 void SetCachedSize(int size) const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002236 public:
2237
kenton@google.com80b1d622009-07-29 01:13:20 +00002238 ::google::protobuf::Metadata GetMetadata() const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002239
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.comcfa2d8a2009-04-18 00:02:12 +00002247 static const int kNamePartFieldNumber = 1;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002248 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.comd37d46d2009-04-25 02:53:47 +00002251 inline void set_name_part(const char* value, size_t size);
kenton@google.com24bf56f2008-09-24 20:31:01 +00002252 inline ::std::string* mutable_name_part();
liujisi@google.com33165fe2010-11-02 13:14:58 +00002253 inline ::std::string* release_name_part();
kenton@google.com24bf56f2008-09-24 20:31:01 +00002254
2255 // required bool is_extension = 2;
2256 inline bool has_is_extension() const;
2257 inline void clear_is_extension();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00002258 static const int kIsExtensionFieldNumber = 2;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002259 inline bool is_extension() const;
2260 inline void set_is_extension(bool value);
2261
kenton@google.comfccb1462009-12-18 02:11:36 +00002262 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
kenton@google.com24bf56f2008-09-24 20:31:01 +00002263 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00002264 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.com24bf56f2008-09-24 20:31:01 +00002269 ::google::protobuf::UnknownFieldSet _unknown_fields_;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002270
2271 ::std::string* name_part_;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002272 bool is_extension_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002273
2274 mutable int _cached_size_;
2275 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
2276
kenton@google.comccc11672009-04-28 01:48:06 +00002277 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00002278 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00002279 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00002280
kenton@google.com24bf56f2008-09-24 20:31:01 +00002281 void InitAsDefaultInstance();
2282 static UninterpretedOption_NamePart* default_instance_;
2283};
2284// -------------------------------------------------------------------
2285
2286class 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.comfccb1462009-12-18 02:11:36 +00002308
kenton@google.com26bd9ee2008-11-21 00:06:27 +00002309 void Swap(UninterpretedOption* other);
2310
kenton@google.com24bf56f2008-09-24 20:31:01 +00002311 // 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.com24bf56f2008-09-24 20:31:01 +00002320
kenton@google.comd37d46d2009-04-25 02:53:47 +00002321 int ByteSize() const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002322 bool MergePartialFromCodedStream(
2323 ::google::protobuf::io::CodedInputStream* input);
kenton@google.comd37d46d2009-04-25 02:53:47 +00002324 void SerializeWithCachedSizes(
kenton@google.com24bf56f2008-09-24 20:31:01 +00002325 ::google::protobuf::io::CodedOutputStream* output) const;
kenton@google.comd37d46d2009-04-25 02:53:47 +00002326 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002327 int GetCachedSize() const { return _cached_size_; }
2328 private:
kenton@google.comd37d46d2009-04-25 02:53:47 +00002329 void SharedCtor();
2330 void SharedDtor();
kenton@google.comfccb1462009-12-18 02:11:36 +00002331 void SetCachedSize(int size) const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002332 public:
2333
kenton@google.com80b1d622009-07-29 01:13:20 +00002334 ::google::protobuf::Metadata GetMetadata() const;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002335
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.comcfa2d8a2009-04-18 00:02:12 +00002345 static const int kNameFieldNumber = 2;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002346 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.comfccb1462009-12-18 02:11:36 +00002349 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.com24bf56f2008-09-24 20:31:01 +00002353
2354 // optional string identifier_value = 3;
2355 inline bool has_identifier_value() const;
2356 inline void clear_identifier_value();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00002357 static const int kIdentifierValueFieldNumber = 3;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002358 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.comd37d46d2009-04-25 02:53:47 +00002361 inline void set_identifier_value(const char* value, size_t size);
kenton@google.com24bf56f2008-09-24 20:31:01 +00002362 inline ::std::string* mutable_identifier_value();
liujisi@google.com33165fe2010-11-02 13:14:58 +00002363 inline ::std::string* release_identifier_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00002364
2365 // optional uint64 positive_int_value = 4;
2366 inline bool has_positive_int_value() const;
2367 inline void clear_positive_int_value();
kenton@google.comcfa2d8a2009-04-18 00:02:12 +00002368 static const int kPositiveIntValueFieldNumber = 4;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002369 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.comcfa2d8a2009-04-18 00:02:12 +00002375 static const int kNegativeIntValueFieldNumber = 5;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002376 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.comcfa2d8a2009-04-18 00:02:12 +00002382 static const int kDoubleValueFieldNumber = 6;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002383 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.comcfa2d8a2009-04-18 00:02:12 +00002389 static const int kStringValueFieldNumber = 7;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002390 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.com33165fe2010-11-02 13:14:58 +00002395 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.com24bf56f2008-09-24 20:31:01 +00002407
kenton@google.comfccb1462009-12-18 02:11:36 +00002408 // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
kenton@google.com24bf56f2008-09-24 20:31:01 +00002409 private:
liujisi@google.com33165fe2010-11-02 13:14:58 +00002410 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.com24bf56f2008-09-24 20:31:01 +00002423 ::google::protobuf::UnknownFieldSet _unknown_fields_;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002424
2425 ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
2426 ::std::string* identifier_value_;
kenton@google.com24bf56f2008-09-24 20:31:01 +00002427 ::google::protobuf::uint64 positive_int_value_;
2428 ::google::protobuf::int64 negative_int_value_;
2429 double double_value_;
2430 ::std::string* string_value_;
liujisi@google.com33165fe2010-11-02 13:14:58 +00002431 ::std::string* aggregate_value_;
2432
2433 mutable int _cached_size_;
2434 ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
2435
kenton@google.comccc11672009-04-28 01:48:06 +00002436 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.comd37d46d2009-04-25 02:53:47 +00002437 friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com63e646b2009-05-06 19:27:03 +00002438 friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
kenton@google.com80b1d622009-07-29 01:13:20 +00002439
kenton@google.com24bf56f2008-09-24 20:31:01 +00002440 void InitAsDefaultInstance();
2441 static UninterpretedOption* default_instance_;
temporal40ee5512008-07-10 02:12:20 +00002442};
liujisi@google.com33165fe2010-11-02 13:14:58 +00002443// -------------------------------------------------------------------
2444
2445class 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
2545class 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};
temporal40ee5512008-07-10 02:12:20 +00002630// ===================================================================
2631
2632
2633// ===================================================================
2634
temporal779f61c2008-08-13 03:15:00 +00002635// FileDescriptorSet
2636
2637// repeated .google.protobuf.FileDescriptorProto file = 1;
2638inline int FileDescriptorSet::file_size() const {
2639 return file_.size();
2640}
2641inline void FileDescriptorSet::clear_file() {
2642 file_.Clear();
2643}
temporal779f61c2008-08-13 03:15:00 +00002644inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
2645 return file_.Get(index);
2646}
2647inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
2648 return file_.Mutable(index);
2649}
2650inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
2651 return file_.Add();
2652}
kenton@google.comfccb1462009-12-18 02:11:36 +00002653inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
2654FileDescriptorSet::file() const {
2655 return file_;
2656}
2657inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
2658FileDescriptorSet::mutable_file() {
2659 return &file_;
2660}
temporal779f61c2008-08-13 03:15:00 +00002661
2662// -------------------------------------------------------------------
2663
temporal40ee5512008-07-10 02:12:20 +00002664// FileDescriptorProto
2665
2666// optional string name = 1;
2667inline bool FileDescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002668 return (_has_bits_[0] & 0x00000001u) != 0;
2669}
2670inline void FileDescriptorProto::set_has_name() {
2671 _has_bits_[0] |= 0x00000001u;
2672}
2673inline void FileDescriptorProto::clear_has_name() {
2674 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00002675}
2676inline void FileDescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002677 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002678 name_->clear();
2679 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00002680 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00002681}
2682inline const ::std::string& FileDescriptorProto::name() const {
2683 return *name_;
2684}
2685inline void FileDescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002686 set_has_name();
2687 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002688 name_ = new ::std::string;
2689 }
2690 name_->assign(value);
2691}
2692inline void FileDescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002693 set_has_name();
2694 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002695 name_ = new ::std::string;
2696 }
2697 name_->assign(value);
2698}
kenton@google.comd37d46d2009-04-25 02:53:47 +00002699inline void FileDescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002700 set_has_name();
2701 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00002702 name_ = new ::std::string;
2703 }
2704 name_->assign(reinterpret_cast<const char*>(value), size);
2705}
temporal40ee5512008-07-10 02:12:20 +00002706inline ::std::string* FileDescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002707 set_has_name();
2708 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002709 name_ = new ::std::string;
2710 }
2711 return name_;
2712}
liujisi@google.com33165fe2010-11-02 13:14:58 +00002713inline ::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}
temporal40ee5512008-07-10 02:12:20 +00002723
2724// optional string package = 2;
2725inline bool FileDescriptorProto::has_package() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002726 return (_has_bits_[0] & 0x00000002u) != 0;
2727}
2728inline void FileDescriptorProto::set_has_package() {
2729 _has_bits_[0] |= 0x00000002u;
2730}
2731inline void FileDescriptorProto::clear_has_package() {
2732 _has_bits_[0] &= ~0x00000002u;
temporal40ee5512008-07-10 02:12:20 +00002733}
2734inline void FileDescriptorProto::clear_package() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002735 if (package_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002736 package_->clear();
2737 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00002738 clear_has_package();
temporal40ee5512008-07-10 02:12:20 +00002739}
2740inline const ::std::string& FileDescriptorProto::package() const {
2741 return *package_;
2742}
2743inline void FileDescriptorProto::set_package(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002744 set_has_package();
2745 if (package_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002746 package_ = new ::std::string;
2747 }
2748 package_->assign(value);
2749}
2750inline void FileDescriptorProto::set_package(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002751 set_has_package();
2752 if (package_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002753 package_ = new ::std::string;
2754 }
2755 package_->assign(value);
2756}
kenton@google.comd37d46d2009-04-25 02:53:47 +00002757inline void FileDescriptorProto::set_package(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002758 set_has_package();
2759 if (package_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00002760 package_ = new ::std::string;
2761 }
2762 package_->assign(reinterpret_cast<const char*>(value), size);
2763}
temporal40ee5512008-07-10 02:12:20 +00002764inline ::std::string* FileDescriptorProto::mutable_package() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002765 set_has_package();
2766 if (package_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00002767 package_ = new ::std::string;
2768 }
2769 return package_;
2770}
liujisi@google.com33165fe2010-11-02 13:14:58 +00002771inline ::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}
temporal40ee5512008-07-10 02:12:20 +00002781
2782// repeated string dependency = 3;
2783inline int FileDescriptorProto::dependency_size() const {
2784 return dependency_.size();
2785}
2786inline void FileDescriptorProto::clear_dependency() {
2787 dependency_.Clear();
2788}
temporal40ee5512008-07-10 02:12:20 +00002789inline const ::std::string& FileDescriptorProto::dependency(int index) const {
2790 return dependency_.Get(index);
2791}
2792inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
2793 return dependency_.Mutable(index);
2794}
2795inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
2796 dependency_.Mutable(index)->assign(value);
2797}
temporalf2063512008-07-23 01:19:07 +00002798inline void FileDescriptorProto::set_dependency(int index, const char* value) {
2799 dependency_.Mutable(index)->assign(value);
2800}
kenton@google.comd37d46d2009-04-25 02:53:47 +00002801inline 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}
temporal40ee5512008-07-10 02:12:20 +00002805inline ::std::string* FileDescriptorProto::add_dependency() {
2806 return dependency_.Add();
2807}
2808inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
2809 dependency_.Add()->assign(value);
2810}
temporal40ee5512008-07-10 02:12:20 +00002811inline void FileDescriptorProto::add_dependency(const char* value) {
2812 dependency_.Add()->assign(value);
2813}
kenton@google.comd37d46d2009-04-25 02:53:47 +00002814inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
2815 dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
2816}
kenton@google.comfccb1462009-12-18 02:11:36 +00002817inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
2818FileDescriptorProto::dependency() const {
2819 return dependency_;
2820}
2821inline ::google::protobuf::RepeatedPtrField< ::std::string>*
2822FileDescriptorProto::mutable_dependency() {
2823 return &dependency_;
2824}
temporal40ee5512008-07-10 02:12:20 +00002825
2826// repeated .google.protobuf.DescriptorProto message_type = 4;
2827inline int FileDescriptorProto::message_type_size() const {
2828 return message_type_.size();
2829}
2830inline void FileDescriptorProto::clear_message_type() {
2831 message_type_.Clear();
2832}
temporal40ee5512008-07-10 02:12:20 +00002833inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
2834 return message_type_.Get(index);
2835}
2836inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
2837 return message_type_.Mutable(index);
2838}
2839inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
2840 return message_type_.Add();
2841}
kenton@google.comfccb1462009-12-18 02:11:36 +00002842inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
2843FileDescriptorProto::message_type() const {
2844 return message_type_;
2845}
2846inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
2847FileDescriptorProto::mutable_message_type() {
2848 return &message_type_;
2849}
temporal40ee5512008-07-10 02:12:20 +00002850
2851// repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
2852inline int FileDescriptorProto::enum_type_size() const {
2853 return enum_type_.size();
2854}
2855inline void FileDescriptorProto::clear_enum_type() {
2856 enum_type_.Clear();
2857}
temporal40ee5512008-07-10 02:12:20 +00002858inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
2859 return enum_type_.Get(index);
2860}
2861inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
2862 return enum_type_.Mutable(index);
2863}
2864inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
2865 return enum_type_.Add();
2866}
kenton@google.comfccb1462009-12-18 02:11:36 +00002867inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
2868FileDescriptorProto::enum_type() const {
2869 return enum_type_;
2870}
2871inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
2872FileDescriptorProto::mutable_enum_type() {
2873 return &enum_type_;
2874}
temporal40ee5512008-07-10 02:12:20 +00002875
2876// repeated .google.protobuf.ServiceDescriptorProto service = 6;
2877inline int FileDescriptorProto::service_size() const {
2878 return service_.size();
2879}
2880inline void FileDescriptorProto::clear_service() {
2881 service_.Clear();
2882}
temporal40ee5512008-07-10 02:12:20 +00002883inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
2884 return service_.Get(index);
2885}
2886inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
2887 return service_.Mutable(index);
2888}
2889inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
2890 return service_.Add();
2891}
kenton@google.comfccb1462009-12-18 02:11:36 +00002892inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
2893FileDescriptorProto::service() const {
2894 return service_;
2895}
2896inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
2897FileDescriptorProto::mutable_service() {
2898 return &service_;
2899}
temporal40ee5512008-07-10 02:12:20 +00002900
2901// repeated .google.protobuf.FieldDescriptorProto extension = 7;
2902inline int FileDescriptorProto::extension_size() const {
2903 return extension_.size();
2904}
2905inline void FileDescriptorProto::clear_extension() {
2906 extension_.Clear();
2907}
temporal40ee5512008-07-10 02:12:20 +00002908inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
2909 return extension_.Get(index);
2910}
2911inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
2912 return extension_.Mutable(index);
2913}
2914inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
2915 return extension_.Add();
2916}
kenton@google.comfccb1462009-12-18 02:11:36 +00002917inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
2918FileDescriptorProto::extension() const {
2919 return extension_;
2920}
2921inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
2922FileDescriptorProto::mutable_extension() {
2923 return &extension_;
2924}
temporal40ee5512008-07-10 02:12:20 +00002925
2926// optional .google.protobuf.FileOptions options = 8;
2927inline bool FileDescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002928 return (_has_bits_[0] & 0x00000080u) != 0;
2929}
2930inline void FileDescriptorProto::set_has_options() {
2931 _has_bits_[0] |= 0x00000080u;
2932}
2933inline void FileDescriptorProto::clear_has_options() {
2934 _has_bits_[0] &= ~0x00000080u;
temporal40ee5512008-07-10 02:12:20 +00002935}
2936inline void FileDescriptorProto::clear_options() {
2937 if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00002938 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00002939}
2940inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00002941 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00002942}
2943inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002944 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00002945 if (options_ == NULL) options_ = new ::google::protobuf::FileOptions;
2946 return options_;
2947}
liujisi@google.com33165fe2010-11-02 13:14:58 +00002948inline ::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;
2956inline bool FileDescriptorProto::has_source_code_info() const {
2957 return (_has_bits_[0] & 0x00000100u) != 0;
2958}
2959inline void FileDescriptorProto::set_has_source_code_info() {
2960 _has_bits_[0] |= 0x00000100u;
2961}
2962inline void FileDescriptorProto::clear_has_source_code_info() {
2963 _has_bits_[0] &= ~0x00000100u;
2964}
2965inline 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}
2969inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
2970 return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
2971}
2972inline ::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}
2977inline ::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}
temporal40ee5512008-07-10 02:12:20 +00002983
2984// -------------------------------------------------------------------
2985
2986// DescriptorProto_ExtensionRange
2987
2988// optional int32 start = 1;
2989inline bool DescriptorProto_ExtensionRange::has_start() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00002990 return (_has_bits_[0] & 0x00000001u) != 0;
2991}
2992inline void DescriptorProto_ExtensionRange::set_has_start() {
2993 _has_bits_[0] |= 0x00000001u;
2994}
2995inline void DescriptorProto_ExtensionRange::clear_has_start() {
2996 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00002997}
2998inline void DescriptorProto_ExtensionRange::clear_start() {
2999 start_ = 0;
liujisi@google.com33165fe2010-11-02 13:14:58 +00003000 clear_has_start();
temporal40ee5512008-07-10 02:12:20 +00003001}
3002inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
3003 return start_;
3004}
3005inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003006 set_has_start();
temporal40ee5512008-07-10 02:12:20 +00003007 start_ = value;
3008}
3009
3010// optional int32 end = 2;
3011inline bool DescriptorProto_ExtensionRange::has_end() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003012 return (_has_bits_[0] & 0x00000002u) != 0;
3013}
3014inline void DescriptorProto_ExtensionRange::set_has_end() {
3015 _has_bits_[0] |= 0x00000002u;
3016}
3017inline void DescriptorProto_ExtensionRange::clear_has_end() {
3018 _has_bits_[0] &= ~0x00000002u;
temporal40ee5512008-07-10 02:12:20 +00003019}
3020inline void DescriptorProto_ExtensionRange::clear_end() {
3021 end_ = 0;
liujisi@google.com33165fe2010-11-02 13:14:58 +00003022 clear_has_end();
temporal40ee5512008-07-10 02:12:20 +00003023}
3024inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
3025 return end_;
3026}
3027inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003028 set_has_end();
temporal40ee5512008-07-10 02:12:20 +00003029 end_ = value;
3030}
3031
3032// -------------------------------------------------------------------
3033
3034// DescriptorProto
3035
3036// optional string name = 1;
3037inline bool DescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003038 return (_has_bits_[0] & 0x00000001u) != 0;
3039}
3040inline void DescriptorProto::set_has_name() {
3041 _has_bits_[0] |= 0x00000001u;
3042}
3043inline void DescriptorProto::clear_has_name() {
3044 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00003045}
3046inline void DescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003047 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003048 name_->clear();
3049 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003050 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00003051}
3052inline const ::std::string& DescriptorProto::name() const {
3053 return *name_;
3054}
3055inline void DescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003056 set_has_name();
3057 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003058 name_ = new ::std::string;
3059 }
3060 name_->assign(value);
3061}
3062inline void DescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003063 set_has_name();
3064 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003065 name_ = new ::std::string;
3066 }
3067 name_->assign(value);
3068}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003069inline void DescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003070 set_has_name();
3071 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003072 name_ = new ::std::string;
3073 }
3074 name_->assign(reinterpret_cast<const char*>(value), size);
3075}
temporal40ee5512008-07-10 02:12:20 +00003076inline ::std::string* DescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003077 set_has_name();
3078 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003079 name_ = new ::std::string;
3080 }
3081 return name_;
3082}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003083inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003093
3094// repeated .google.protobuf.FieldDescriptorProto field = 2;
3095inline int DescriptorProto::field_size() const {
3096 return field_.size();
3097}
3098inline void DescriptorProto::clear_field() {
3099 field_.Clear();
3100}
temporal40ee5512008-07-10 02:12:20 +00003101inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
3102 return field_.Get(index);
3103}
3104inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
3105 return field_.Mutable(index);
3106}
3107inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
3108 return field_.Add();
3109}
kenton@google.comfccb1462009-12-18 02:11:36 +00003110inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
3111DescriptorProto::field() const {
3112 return field_;
3113}
3114inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
3115DescriptorProto::mutable_field() {
3116 return &field_;
3117}
temporal40ee5512008-07-10 02:12:20 +00003118
3119// repeated .google.protobuf.FieldDescriptorProto extension = 6;
3120inline int DescriptorProto::extension_size() const {
3121 return extension_.size();
3122}
3123inline void DescriptorProto::clear_extension() {
3124 extension_.Clear();
3125}
temporal40ee5512008-07-10 02:12:20 +00003126inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
3127 return extension_.Get(index);
3128}
3129inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
3130 return extension_.Mutable(index);
3131}
3132inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
3133 return extension_.Add();
3134}
kenton@google.comfccb1462009-12-18 02:11:36 +00003135inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
3136DescriptorProto::extension() const {
3137 return extension_;
3138}
3139inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
3140DescriptorProto::mutable_extension() {
3141 return &extension_;
3142}
temporal40ee5512008-07-10 02:12:20 +00003143
3144// repeated .google.protobuf.DescriptorProto nested_type = 3;
3145inline int DescriptorProto::nested_type_size() const {
3146 return nested_type_.size();
3147}
3148inline void DescriptorProto::clear_nested_type() {
3149 nested_type_.Clear();
3150}
temporal40ee5512008-07-10 02:12:20 +00003151inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
3152 return nested_type_.Get(index);
3153}
3154inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
3155 return nested_type_.Mutable(index);
3156}
3157inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
3158 return nested_type_.Add();
3159}
kenton@google.comfccb1462009-12-18 02:11:36 +00003160inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
3161DescriptorProto::nested_type() const {
3162 return nested_type_;
3163}
3164inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
3165DescriptorProto::mutable_nested_type() {
3166 return &nested_type_;
3167}
temporal40ee5512008-07-10 02:12:20 +00003168
3169// repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
3170inline int DescriptorProto::enum_type_size() const {
3171 return enum_type_.size();
3172}
3173inline void DescriptorProto::clear_enum_type() {
3174 enum_type_.Clear();
3175}
temporal40ee5512008-07-10 02:12:20 +00003176inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
3177 return enum_type_.Get(index);
3178}
3179inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
3180 return enum_type_.Mutable(index);
3181}
3182inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
3183 return enum_type_.Add();
3184}
kenton@google.comfccb1462009-12-18 02:11:36 +00003185inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
3186DescriptorProto::enum_type() const {
3187 return enum_type_;
3188}
3189inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
3190DescriptorProto::mutable_enum_type() {
3191 return &enum_type_;
3192}
temporal40ee5512008-07-10 02:12:20 +00003193
3194// repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
3195inline int DescriptorProto::extension_range_size() const {
3196 return extension_range_.size();
3197}
3198inline void DescriptorProto::clear_extension_range() {
3199 extension_range_.Clear();
3200}
temporal40ee5512008-07-10 02:12:20 +00003201inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
3202 return extension_range_.Get(index);
3203}
3204inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
3205 return extension_range_.Mutable(index);
3206}
3207inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
3208 return extension_range_.Add();
3209}
kenton@google.comfccb1462009-12-18 02:11:36 +00003210inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
3211DescriptorProto::extension_range() const {
3212 return extension_range_;
3213}
3214inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
3215DescriptorProto::mutable_extension_range() {
3216 return &extension_range_;
3217}
temporal40ee5512008-07-10 02:12:20 +00003218
3219// optional .google.protobuf.MessageOptions options = 7;
3220inline bool DescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003221 return (_has_bits_[0] & 0x00000040u) != 0;
3222}
3223inline void DescriptorProto::set_has_options() {
3224 _has_bits_[0] |= 0x00000040u;
3225}
3226inline void DescriptorProto::clear_has_options() {
3227 _has_bits_[0] &= ~0x00000040u;
temporal40ee5512008-07-10 02:12:20 +00003228}
3229inline void DescriptorProto::clear_options() {
3230 if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00003231 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00003232}
3233inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00003234 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00003235}
3236inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003237 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00003238 if (options_ == NULL) options_ = new ::google::protobuf::MessageOptions;
3239 return options_;
3240}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003241inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
3242 clear_has_options();
3243 ::google::protobuf::MessageOptions* temp = options_;
3244 options_ = NULL;
3245 return temp;
3246}
temporal40ee5512008-07-10 02:12:20 +00003247
3248// -------------------------------------------------------------------
3249
3250// FieldDescriptorProto
3251
3252// optional string name = 1;
3253inline bool FieldDescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003254 return (_has_bits_[0] & 0x00000001u) != 0;
3255}
3256inline void FieldDescriptorProto::set_has_name() {
3257 _has_bits_[0] |= 0x00000001u;
3258}
3259inline void FieldDescriptorProto::clear_has_name() {
3260 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00003261}
3262inline void FieldDescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003263 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003264 name_->clear();
3265 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003266 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00003267}
3268inline const ::std::string& FieldDescriptorProto::name() const {
3269 return *name_;
3270}
3271inline void FieldDescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003272 set_has_name();
3273 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003274 name_ = new ::std::string;
3275 }
3276 name_->assign(value);
3277}
3278inline void FieldDescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003279 set_has_name();
3280 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003281 name_ = new ::std::string;
3282 }
3283 name_->assign(value);
3284}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003285inline void FieldDescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003286 set_has_name();
3287 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003288 name_ = new ::std::string;
3289 }
3290 name_->assign(reinterpret_cast<const char*>(value), size);
3291}
temporal40ee5512008-07-10 02:12:20 +00003292inline ::std::string* FieldDescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003293 set_has_name();
3294 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003295 name_ = new ::std::string;
3296 }
3297 return name_;
3298}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003299inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003309
3310// optional int32 number = 3;
3311inline bool FieldDescriptorProto::has_number() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003312 return (_has_bits_[0] & 0x00000002u) != 0;
3313}
3314inline void FieldDescriptorProto::set_has_number() {
3315 _has_bits_[0] |= 0x00000002u;
3316}
3317inline void FieldDescriptorProto::clear_has_number() {
3318 _has_bits_[0] &= ~0x00000002u;
temporal40ee5512008-07-10 02:12:20 +00003319}
3320inline void FieldDescriptorProto::clear_number() {
3321 number_ = 0;
liujisi@google.com33165fe2010-11-02 13:14:58 +00003322 clear_has_number();
temporal40ee5512008-07-10 02:12:20 +00003323}
3324inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
3325 return number_;
3326}
3327inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003328 set_has_number();
temporal40ee5512008-07-10 02:12:20 +00003329 number_ = value;
3330}
3331
3332// optional .google.protobuf.FieldDescriptorProto.Label label = 4;
3333inline bool FieldDescriptorProto::has_label() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003334 return (_has_bits_[0] & 0x00000004u) != 0;
3335}
3336inline void FieldDescriptorProto::set_has_label() {
3337 _has_bits_[0] |= 0x00000004u;
3338}
3339inline void FieldDescriptorProto::clear_has_label() {
3340 _has_bits_[0] &= ~0x00000004u;
temporal40ee5512008-07-10 02:12:20 +00003341}
3342inline void FieldDescriptorProto::clear_label() {
3343 label_ = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +00003344 clear_has_label();
temporal40ee5512008-07-10 02:12:20 +00003345}
3346inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
3347 return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
3348}
3349inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
3350 GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
liujisi@google.com33165fe2010-11-02 13:14:58 +00003351 set_has_label();
temporal40ee5512008-07-10 02:12:20 +00003352 label_ = value;
3353}
3354
3355// optional .google.protobuf.FieldDescriptorProto.Type type = 5;
3356inline bool FieldDescriptorProto::has_type() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003357 return (_has_bits_[0] & 0x00000008u) != 0;
3358}
3359inline void FieldDescriptorProto::set_has_type() {
3360 _has_bits_[0] |= 0x00000008u;
3361}
3362inline void FieldDescriptorProto::clear_has_type() {
3363 _has_bits_[0] &= ~0x00000008u;
temporal40ee5512008-07-10 02:12:20 +00003364}
3365inline void FieldDescriptorProto::clear_type() {
3366 type_ = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +00003367 clear_has_type();
temporal40ee5512008-07-10 02:12:20 +00003368}
3369inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
3370 return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
3371}
3372inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
3373 GOOGLE_DCHECK(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
liujisi@google.com33165fe2010-11-02 13:14:58 +00003374 set_has_type();
temporal40ee5512008-07-10 02:12:20 +00003375 type_ = value;
3376}
3377
3378// optional string type_name = 6;
3379inline bool FieldDescriptorProto::has_type_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003380 return (_has_bits_[0] & 0x00000010u) != 0;
3381}
3382inline void FieldDescriptorProto::set_has_type_name() {
3383 _has_bits_[0] |= 0x00000010u;
3384}
3385inline void FieldDescriptorProto::clear_has_type_name() {
3386 _has_bits_[0] &= ~0x00000010u;
temporal40ee5512008-07-10 02:12:20 +00003387}
3388inline void FieldDescriptorProto::clear_type_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003389 if (type_name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003390 type_name_->clear();
3391 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003392 clear_has_type_name();
temporal40ee5512008-07-10 02:12:20 +00003393}
3394inline const ::std::string& FieldDescriptorProto::type_name() const {
3395 return *type_name_;
3396}
3397inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003398 set_has_type_name();
3399 if (type_name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003400 type_name_ = new ::std::string;
3401 }
3402 type_name_->assign(value);
3403}
3404inline void FieldDescriptorProto::set_type_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003405 set_has_type_name();
3406 if (type_name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003407 type_name_ = new ::std::string;
3408 }
3409 type_name_->assign(value);
3410}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003411inline void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003412 set_has_type_name();
3413 if (type_name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003414 type_name_ = new ::std::string;
3415 }
3416 type_name_->assign(reinterpret_cast<const char*>(value), size);
3417}
temporal40ee5512008-07-10 02:12:20 +00003418inline ::std::string* FieldDescriptorProto::mutable_type_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003419 set_has_type_name();
3420 if (type_name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003421 type_name_ = new ::std::string;
3422 }
3423 return type_name_;
3424}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003425inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003435
3436// optional string extendee = 2;
3437inline bool FieldDescriptorProto::has_extendee() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003438 return (_has_bits_[0] & 0x00000020u) != 0;
3439}
3440inline void FieldDescriptorProto::set_has_extendee() {
3441 _has_bits_[0] |= 0x00000020u;
3442}
3443inline void FieldDescriptorProto::clear_has_extendee() {
3444 _has_bits_[0] &= ~0x00000020u;
temporal40ee5512008-07-10 02:12:20 +00003445}
3446inline void FieldDescriptorProto::clear_extendee() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003447 if (extendee_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003448 extendee_->clear();
3449 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003450 clear_has_extendee();
temporal40ee5512008-07-10 02:12:20 +00003451}
3452inline const ::std::string& FieldDescriptorProto::extendee() const {
3453 return *extendee_;
3454}
3455inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003456 set_has_extendee();
3457 if (extendee_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003458 extendee_ = new ::std::string;
3459 }
3460 extendee_->assign(value);
3461}
3462inline void FieldDescriptorProto::set_extendee(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003463 set_has_extendee();
3464 if (extendee_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003465 extendee_ = new ::std::string;
3466 }
3467 extendee_->assign(value);
3468}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003469inline void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003470 set_has_extendee();
3471 if (extendee_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003472 extendee_ = new ::std::string;
3473 }
3474 extendee_->assign(reinterpret_cast<const char*>(value), size);
3475}
temporal40ee5512008-07-10 02:12:20 +00003476inline ::std::string* FieldDescriptorProto::mutable_extendee() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003477 set_has_extendee();
3478 if (extendee_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003479 extendee_ = new ::std::string;
3480 }
3481 return extendee_;
3482}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003483inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003493
3494// optional string default_value = 7;
3495inline bool FieldDescriptorProto::has_default_value() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003496 return (_has_bits_[0] & 0x00000040u) != 0;
3497}
3498inline void FieldDescriptorProto::set_has_default_value() {
3499 _has_bits_[0] |= 0x00000040u;
3500}
3501inline void FieldDescriptorProto::clear_has_default_value() {
3502 _has_bits_[0] &= ~0x00000040u;
temporal40ee5512008-07-10 02:12:20 +00003503}
3504inline void FieldDescriptorProto::clear_default_value() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003505 if (default_value_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003506 default_value_->clear();
3507 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003508 clear_has_default_value();
temporal40ee5512008-07-10 02:12:20 +00003509}
3510inline const ::std::string& FieldDescriptorProto::default_value() const {
3511 return *default_value_;
3512}
3513inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003514 set_has_default_value();
3515 if (default_value_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003516 default_value_ = new ::std::string;
3517 }
3518 default_value_->assign(value);
3519}
3520inline void FieldDescriptorProto::set_default_value(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003521 set_has_default_value();
3522 if (default_value_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003523 default_value_ = new ::std::string;
3524 }
3525 default_value_->assign(value);
3526}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003527inline void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003528 set_has_default_value();
3529 if (default_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003530 default_value_ = new ::std::string;
3531 }
3532 default_value_->assign(reinterpret_cast<const char*>(value), size);
3533}
temporal40ee5512008-07-10 02:12:20 +00003534inline ::std::string* FieldDescriptorProto::mutable_default_value() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003535 set_has_default_value();
3536 if (default_value_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003537 default_value_ = new ::std::string;
3538 }
3539 return default_value_;
3540}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003541inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003551
3552// optional .google.protobuf.FieldOptions options = 8;
3553inline bool FieldDescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003554 return (_has_bits_[0] & 0x00000080u) != 0;
3555}
3556inline void FieldDescriptorProto::set_has_options() {
3557 _has_bits_[0] |= 0x00000080u;
3558}
3559inline void FieldDescriptorProto::clear_has_options() {
3560 _has_bits_[0] &= ~0x00000080u;
temporal40ee5512008-07-10 02:12:20 +00003561}
3562inline void FieldDescriptorProto::clear_options() {
3563 if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00003564 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00003565}
3566inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00003567 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00003568}
3569inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003570 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00003571 if (options_ == NULL) options_ = new ::google::protobuf::FieldOptions;
3572 return options_;
3573}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003574inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
3575 clear_has_options();
3576 ::google::protobuf::FieldOptions* temp = options_;
3577 options_ = NULL;
3578 return temp;
3579}
temporal40ee5512008-07-10 02:12:20 +00003580
3581// -------------------------------------------------------------------
3582
3583// EnumDescriptorProto
3584
3585// optional string name = 1;
3586inline bool EnumDescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003587 return (_has_bits_[0] & 0x00000001u) != 0;
3588}
3589inline void EnumDescriptorProto::set_has_name() {
3590 _has_bits_[0] |= 0x00000001u;
3591}
3592inline void EnumDescriptorProto::clear_has_name() {
3593 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00003594}
3595inline void EnumDescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003596 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003597 name_->clear();
3598 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003599 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00003600}
3601inline const ::std::string& EnumDescriptorProto::name() const {
3602 return *name_;
3603}
3604inline void EnumDescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003605 set_has_name();
3606 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003607 name_ = new ::std::string;
3608 }
3609 name_->assign(value);
3610}
3611inline void EnumDescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003612 set_has_name();
3613 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003614 name_ = new ::std::string;
3615 }
3616 name_->assign(value);
3617}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003618inline void EnumDescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003619 set_has_name();
3620 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003621 name_ = new ::std::string;
3622 }
3623 name_->assign(reinterpret_cast<const char*>(value), size);
3624}
temporal40ee5512008-07-10 02:12:20 +00003625inline ::std::string* EnumDescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003626 set_has_name();
3627 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003628 name_ = new ::std::string;
3629 }
3630 return name_;
3631}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003632inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003642
3643// repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3644inline int EnumDescriptorProto::value_size() const {
3645 return value_.size();
3646}
3647inline void EnumDescriptorProto::clear_value() {
3648 value_.Clear();
3649}
temporal40ee5512008-07-10 02:12:20 +00003650inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
3651 return value_.Get(index);
3652}
3653inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
3654 return value_.Mutable(index);
3655}
3656inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
3657 return value_.Add();
3658}
kenton@google.comfccb1462009-12-18 02:11:36 +00003659inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
3660EnumDescriptorProto::value() const {
3661 return value_;
3662}
3663inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
3664EnumDescriptorProto::mutable_value() {
3665 return &value_;
3666}
temporal40ee5512008-07-10 02:12:20 +00003667
3668// optional .google.protobuf.EnumOptions options = 3;
3669inline bool EnumDescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003670 return (_has_bits_[0] & 0x00000004u) != 0;
3671}
3672inline void EnumDescriptorProto::set_has_options() {
3673 _has_bits_[0] |= 0x00000004u;
3674}
3675inline void EnumDescriptorProto::clear_has_options() {
3676 _has_bits_[0] &= ~0x00000004u;
temporal40ee5512008-07-10 02:12:20 +00003677}
3678inline void EnumDescriptorProto::clear_options() {
3679 if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00003680 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00003681}
3682inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00003683 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00003684}
3685inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003686 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00003687 if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions;
3688 return options_;
3689}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003690inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
3691 clear_has_options();
3692 ::google::protobuf::EnumOptions* temp = options_;
3693 options_ = NULL;
3694 return temp;
3695}
temporal40ee5512008-07-10 02:12:20 +00003696
3697// -------------------------------------------------------------------
3698
3699// EnumValueDescriptorProto
3700
3701// optional string name = 1;
3702inline bool EnumValueDescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003703 return (_has_bits_[0] & 0x00000001u) != 0;
3704}
3705inline void EnumValueDescriptorProto::set_has_name() {
3706 _has_bits_[0] |= 0x00000001u;
3707}
3708inline void EnumValueDescriptorProto::clear_has_name() {
3709 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00003710}
3711inline void EnumValueDescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003712 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003713 name_->clear();
3714 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003715 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00003716}
3717inline const ::std::string& EnumValueDescriptorProto::name() const {
3718 return *name_;
3719}
3720inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003721 set_has_name();
3722 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003723 name_ = new ::std::string;
3724 }
3725 name_->assign(value);
3726}
3727inline void EnumValueDescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003728 set_has_name();
3729 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003730 name_ = new ::std::string;
3731 }
3732 name_->assign(value);
3733}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003734inline void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003735 set_has_name();
3736 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003737 name_ = new ::std::string;
3738 }
3739 name_->assign(reinterpret_cast<const char*>(value), size);
3740}
temporal40ee5512008-07-10 02:12:20 +00003741inline ::std::string* EnumValueDescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003742 set_has_name();
3743 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003744 name_ = new ::std::string;
3745 }
3746 return name_;
3747}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003748inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003758
3759// optional int32 number = 2;
3760inline bool EnumValueDescriptorProto::has_number() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003761 return (_has_bits_[0] & 0x00000002u) != 0;
3762}
3763inline void EnumValueDescriptorProto::set_has_number() {
3764 _has_bits_[0] |= 0x00000002u;
3765}
3766inline void EnumValueDescriptorProto::clear_has_number() {
3767 _has_bits_[0] &= ~0x00000002u;
temporal40ee5512008-07-10 02:12:20 +00003768}
3769inline void EnumValueDescriptorProto::clear_number() {
3770 number_ = 0;
liujisi@google.com33165fe2010-11-02 13:14:58 +00003771 clear_has_number();
temporal40ee5512008-07-10 02:12:20 +00003772}
3773inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
3774 return number_;
3775}
3776inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003777 set_has_number();
temporal40ee5512008-07-10 02:12:20 +00003778 number_ = value;
3779}
3780
3781// optional .google.protobuf.EnumValueOptions options = 3;
3782inline bool EnumValueDescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003783 return (_has_bits_[0] & 0x00000004u) != 0;
3784}
3785inline void EnumValueDescriptorProto::set_has_options() {
3786 _has_bits_[0] |= 0x00000004u;
3787}
3788inline void EnumValueDescriptorProto::clear_has_options() {
3789 _has_bits_[0] &= ~0x00000004u;
temporal40ee5512008-07-10 02:12:20 +00003790}
3791inline void EnumValueDescriptorProto::clear_options() {
3792 if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00003793 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00003794}
3795inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00003796 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00003797}
3798inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003799 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00003800 if (options_ == NULL) options_ = new ::google::protobuf::EnumValueOptions;
3801 return options_;
3802}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003803inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
3804 clear_has_options();
3805 ::google::protobuf::EnumValueOptions* temp = options_;
3806 options_ = NULL;
3807 return temp;
3808}
temporal40ee5512008-07-10 02:12:20 +00003809
3810// -------------------------------------------------------------------
3811
3812// ServiceDescriptorProto
3813
3814// optional string name = 1;
3815inline bool ServiceDescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003816 return (_has_bits_[0] & 0x00000001u) != 0;
3817}
3818inline void ServiceDescriptorProto::set_has_name() {
3819 _has_bits_[0] |= 0x00000001u;
3820}
3821inline void ServiceDescriptorProto::clear_has_name() {
3822 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00003823}
3824inline void ServiceDescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003825 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003826 name_->clear();
3827 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003828 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00003829}
3830inline const ::std::string& ServiceDescriptorProto::name() const {
3831 return *name_;
3832}
3833inline void ServiceDescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003834 set_has_name();
3835 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003836 name_ = new ::std::string;
3837 }
3838 name_->assign(value);
3839}
3840inline void ServiceDescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003841 set_has_name();
3842 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003843 name_ = new ::std::string;
3844 }
3845 name_->assign(value);
3846}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003847inline void ServiceDescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003848 set_has_name();
3849 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003850 name_ = new ::std::string;
3851 }
3852 name_->assign(reinterpret_cast<const char*>(value), size);
3853}
temporal40ee5512008-07-10 02:12:20 +00003854inline ::std::string* ServiceDescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003855 set_has_name();
3856 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003857 name_ = new ::std::string;
3858 }
3859 return name_;
3860}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003861inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003871
3872// repeated .google.protobuf.MethodDescriptorProto method = 2;
3873inline int ServiceDescriptorProto::method_size() const {
3874 return method_.size();
3875}
3876inline void ServiceDescriptorProto::clear_method() {
3877 method_.Clear();
3878}
temporal40ee5512008-07-10 02:12:20 +00003879inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
3880 return method_.Get(index);
3881}
3882inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
3883 return method_.Mutable(index);
3884}
3885inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
3886 return method_.Add();
3887}
kenton@google.comfccb1462009-12-18 02:11:36 +00003888inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
3889ServiceDescriptorProto::method() const {
3890 return method_;
3891}
3892inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
3893ServiceDescriptorProto::mutable_method() {
3894 return &method_;
3895}
temporal40ee5512008-07-10 02:12:20 +00003896
3897// optional .google.protobuf.ServiceOptions options = 3;
3898inline bool ServiceDescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003899 return (_has_bits_[0] & 0x00000004u) != 0;
3900}
3901inline void ServiceDescriptorProto::set_has_options() {
3902 _has_bits_[0] |= 0x00000004u;
3903}
3904inline void ServiceDescriptorProto::clear_has_options() {
3905 _has_bits_[0] &= ~0x00000004u;
temporal40ee5512008-07-10 02:12:20 +00003906}
3907inline void ServiceDescriptorProto::clear_options() {
3908 if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00003909 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00003910}
3911inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00003912 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00003913}
3914inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003915 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00003916 if (options_ == NULL) options_ = new ::google::protobuf::ServiceOptions;
3917 return options_;
3918}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003919inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
3920 clear_has_options();
3921 ::google::protobuf::ServiceOptions* temp = options_;
3922 options_ = NULL;
3923 return temp;
3924}
temporal40ee5512008-07-10 02:12:20 +00003925
3926// -------------------------------------------------------------------
3927
3928// MethodDescriptorProto
3929
3930// optional string name = 1;
3931inline bool MethodDescriptorProto::has_name() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003932 return (_has_bits_[0] & 0x00000001u) != 0;
3933}
3934inline void MethodDescriptorProto::set_has_name() {
3935 _has_bits_[0] |= 0x00000001u;
3936}
3937inline void MethodDescriptorProto::clear_has_name() {
3938 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00003939}
3940inline void MethodDescriptorProto::clear_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003941 if (name_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003942 name_->clear();
3943 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00003944 clear_has_name();
temporal40ee5512008-07-10 02:12:20 +00003945}
3946inline const ::std::string& MethodDescriptorProto::name() const {
3947 return *name_;
3948}
3949inline void MethodDescriptorProto::set_name(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003950 set_has_name();
3951 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003952 name_ = new ::std::string;
3953 }
3954 name_->assign(value);
3955}
3956inline void MethodDescriptorProto::set_name(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003957 set_has_name();
3958 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003959 name_ = new ::std::string;
3960 }
3961 name_->assign(value);
3962}
kenton@google.comd37d46d2009-04-25 02:53:47 +00003963inline void MethodDescriptorProto::set_name(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003964 set_has_name();
3965 if (name_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00003966 name_ = new ::std::string;
3967 }
3968 name_->assign(reinterpret_cast<const char*>(value), size);
3969}
temporal40ee5512008-07-10 02:12:20 +00003970inline ::std::string* MethodDescriptorProto::mutable_name() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003971 set_has_name();
3972 if (name_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00003973 name_ = new ::std::string;
3974 }
3975 return name_;
3976}
liujisi@google.com33165fe2010-11-02 13:14:58 +00003977inline ::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}
temporal40ee5512008-07-10 02:12:20 +00003987
3988// optional string input_type = 2;
3989inline bool MethodDescriptorProto::has_input_type() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003990 return (_has_bits_[0] & 0x00000002u) != 0;
3991}
3992inline void MethodDescriptorProto::set_has_input_type() {
3993 _has_bits_[0] |= 0x00000002u;
3994}
3995inline void MethodDescriptorProto::clear_has_input_type() {
3996 _has_bits_[0] &= ~0x00000002u;
temporal40ee5512008-07-10 02:12:20 +00003997}
3998inline void MethodDescriptorProto::clear_input_type() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00003999 if (input_type_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004000 input_type_->clear();
4001 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004002 clear_has_input_type();
temporal40ee5512008-07-10 02:12:20 +00004003}
4004inline const ::std::string& MethodDescriptorProto::input_type() const {
4005 return *input_type_;
4006}
4007inline void MethodDescriptorProto::set_input_type(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004008 set_has_input_type();
4009 if (input_type_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004010 input_type_ = new ::std::string;
4011 }
4012 input_type_->assign(value);
4013}
4014inline void MethodDescriptorProto::set_input_type(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004015 set_has_input_type();
4016 if (input_type_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004017 input_type_ = new ::std::string;
4018 }
4019 input_type_->assign(value);
4020}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004021inline void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004022 set_has_input_type();
4023 if (input_type_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004024 input_type_ = new ::std::string;
4025 }
4026 input_type_->assign(reinterpret_cast<const char*>(value), size);
4027}
temporal40ee5512008-07-10 02:12:20 +00004028inline ::std::string* MethodDescriptorProto::mutable_input_type() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004029 set_has_input_type();
4030 if (input_type_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004031 input_type_ = new ::std::string;
4032 }
4033 return input_type_;
4034}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004035inline ::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}
temporal40ee5512008-07-10 02:12:20 +00004045
4046// optional string output_type = 3;
4047inline bool MethodDescriptorProto::has_output_type() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004048 return (_has_bits_[0] & 0x00000004u) != 0;
4049}
4050inline void MethodDescriptorProto::set_has_output_type() {
4051 _has_bits_[0] |= 0x00000004u;
4052}
4053inline void MethodDescriptorProto::clear_has_output_type() {
4054 _has_bits_[0] &= ~0x00000004u;
temporal40ee5512008-07-10 02:12:20 +00004055}
4056inline void MethodDescriptorProto::clear_output_type() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004057 if (output_type_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004058 output_type_->clear();
4059 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004060 clear_has_output_type();
temporal40ee5512008-07-10 02:12:20 +00004061}
4062inline const ::std::string& MethodDescriptorProto::output_type() const {
4063 return *output_type_;
4064}
4065inline void MethodDescriptorProto::set_output_type(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004066 set_has_output_type();
4067 if (output_type_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004068 output_type_ = new ::std::string;
4069 }
4070 output_type_->assign(value);
4071}
4072inline void MethodDescriptorProto::set_output_type(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004073 set_has_output_type();
4074 if (output_type_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004075 output_type_ = new ::std::string;
4076 }
4077 output_type_->assign(value);
4078}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004079inline void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004080 set_has_output_type();
4081 if (output_type_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004082 output_type_ = new ::std::string;
4083 }
4084 output_type_->assign(reinterpret_cast<const char*>(value), size);
4085}
temporal40ee5512008-07-10 02:12:20 +00004086inline ::std::string* MethodDescriptorProto::mutable_output_type() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004087 set_has_output_type();
4088 if (output_type_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004089 output_type_ = new ::std::string;
4090 }
4091 return output_type_;
4092}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004093inline ::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}
temporal40ee5512008-07-10 02:12:20 +00004103
4104// optional .google.protobuf.MethodOptions options = 4;
4105inline bool MethodDescriptorProto::has_options() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004106 return (_has_bits_[0] & 0x00000008u) != 0;
4107}
4108inline void MethodDescriptorProto::set_has_options() {
4109 _has_bits_[0] |= 0x00000008u;
4110}
4111inline void MethodDescriptorProto::clear_has_options() {
4112 _has_bits_[0] &= ~0x00000008u;
temporal40ee5512008-07-10 02:12:20 +00004113}
4114inline void MethodDescriptorProto::clear_options() {
4115 if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
liujisi@google.com33165fe2010-11-02 13:14:58 +00004116 clear_has_options();
temporal40ee5512008-07-10 02:12:20 +00004117}
4118inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004119 return options_ != NULL ? *options_ : *default_instance_->options_;
temporal40ee5512008-07-10 02:12:20 +00004120}
4121inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004122 set_has_options();
temporal40ee5512008-07-10 02:12:20 +00004123 if (options_ == NULL) options_ = new ::google::protobuf::MethodOptions;
4124 return options_;
4125}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004126inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
4127 clear_has_options();
4128 ::google::protobuf::MethodOptions* temp = options_;
4129 options_ = NULL;
4130 return temp;
4131}
temporal40ee5512008-07-10 02:12:20 +00004132
4133// -------------------------------------------------------------------
4134
4135// FileOptions
4136
4137// optional string java_package = 1;
4138inline bool FileOptions::has_java_package() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004139 return (_has_bits_[0] & 0x00000001u) != 0;
4140}
4141inline void FileOptions::set_has_java_package() {
4142 _has_bits_[0] |= 0x00000001u;
4143}
4144inline void FileOptions::clear_has_java_package() {
4145 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00004146}
4147inline void FileOptions::clear_java_package() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004148 if (java_package_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004149 java_package_->clear();
4150 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004151 clear_has_java_package();
temporal40ee5512008-07-10 02:12:20 +00004152}
4153inline const ::std::string& FileOptions::java_package() const {
4154 return *java_package_;
4155}
4156inline void FileOptions::set_java_package(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004157 set_has_java_package();
4158 if (java_package_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004159 java_package_ = new ::std::string;
4160 }
4161 java_package_->assign(value);
4162}
4163inline void FileOptions::set_java_package(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004164 set_has_java_package();
4165 if (java_package_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004166 java_package_ = new ::std::string;
4167 }
4168 java_package_->assign(value);
4169}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004170inline void FileOptions::set_java_package(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004171 set_has_java_package();
4172 if (java_package_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004173 java_package_ = new ::std::string;
4174 }
4175 java_package_->assign(reinterpret_cast<const char*>(value), size);
4176}
temporal40ee5512008-07-10 02:12:20 +00004177inline ::std::string* FileOptions::mutable_java_package() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004178 set_has_java_package();
4179 if (java_package_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004180 java_package_ = new ::std::string;
4181 }
4182 return java_package_;
4183}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004184inline ::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}
temporal40ee5512008-07-10 02:12:20 +00004194
4195// optional string java_outer_classname = 8;
4196inline bool FileOptions::has_java_outer_classname() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004197 return (_has_bits_[0] & 0x00000002u) != 0;
4198}
4199inline void FileOptions::set_has_java_outer_classname() {
4200 _has_bits_[0] |= 0x00000002u;
4201}
4202inline void FileOptions::clear_has_java_outer_classname() {
4203 _has_bits_[0] &= ~0x00000002u;
temporal40ee5512008-07-10 02:12:20 +00004204}
4205inline void FileOptions::clear_java_outer_classname() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004206 if (java_outer_classname_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004207 java_outer_classname_->clear();
4208 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004209 clear_has_java_outer_classname();
temporal40ee5512008-07-10 02:12:20 +00004210}
4211inline const ::std::string& FileOptions::java_outer_classname() const {
4212 return *java_outer_classname_;
4213}
4214inline void FileOptions::set_java_outer_classname(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004215 set_has_java_outer_classname();
4216 if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004217 java_outer_classname_ = new ::std::string;
4218 }
4219 java_outer_classname_->assign(value);
4220}
4221inline void FileOptions::set_java_outer_classname(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004222 set_has_java_outer_classname();
4223 if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004224 java_outer_classname_ = new ::std::string;
4225 }
4226 java_outer_classname_->assign(value);
4227}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004228inline void FileOptions::set_java_outer_classname(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004229 set_has_java_outer_classname();
4230 if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004231 java_outer_classname_ = new ::std::string;
4232 }
4233 java_outer_classname_->assign(reinterpret_cast<const char*>(value), size);
4234}
temporal40ee5512008-07-10 02:12:20 +00004235inline ::std::string* FileOptions::mutable_java_outer_classname() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004236 set_has_java_outer_classname();
4237 if (java_outer_classname_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004238 java_outer_classname_ = new ::std::string;
4239 }
4240 return java_outer_classname_;
4241}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004242inline ::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}
temporal40ee5512008-07-10 02:12:20 +00004252
4253// optional bool java_multiple_files = 10 [default = false];
4254inline bool FileOptions::has_java_multiple_files() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004255 return (_has_bits_[0] & 0x00000004u) != 0;
4256}
4257inline void FileOptions::set_has_java_multiple_files() {
4258 _has_bits_[0] |= 0x00000004u;
4259}
4260inline void FileOptions::clear_has_java_multiple_files() {
4261 _has_bits_[0] &= ~0x00000004u;
temporal40ee5512008-07-10 02:12:20 +00004262}
4263inline void FileOptions::clear_java_multiple_files() {
4264 java_multiple_files_ = false;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004265 clear_has_java_multiple_files();
temporal40ee5512008-07-10 02:12:20 +00004266}
4267inline bool FileOptions::java_multiple_files() const {
4268 return java_multiple_files_;
4269}
4270inline void FileOptions::set_java_multiple_files(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004271 set_has_java_multiple_files();
temporal40ee5512008-07-10 02:12:20 +00004272 java_multiple_files_ = value;
4273}
4274
liujisi@google.com33165fe2010-11-02 13:14:58 +00004275// optional bool java_generate_equals_and_hash = 20 [default = false];
4276inline bool FileOptions::has_java_generate_equals_and_hash() const {
4277 return (_has_bits_[0] & 0x00000008u) != 0;
4278}
4279inline void FileOptions::set_has_java_generate_equals_and_hash() {
4280 _has_bits_[0] |= 0x00000008u;
4281}
4282inline void FileOptions::clear_has_java_generate_equals_and_hash() {
4283 _has_bits_[0] &= ~0x00000008u;
4284}
4285inline void FileOptions::clear_java_generate_equals_and_hash() {
4286 java_generate_equals_and_hash_ = false;
4287 clear_has_java_generate_equals_and_hash();
4288}
4289inline bool FileOptions::java_generate_equals_and_hash() const {
4290 return java_generate_equals_and_hash_;
4291}
4292inline 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.comd37d46d2009-04-25 02:53:47 +00004297// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
temporal40ee5512008-07-10 02:12:20 +00004298inline bool FileOptions::has_optimize_for() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004299 return (_has_bits_[0] & 0x00000010u) != 0;
4300}
4301inline void FileOptions::set_has_optimize_for() {
4302 _has_bits_[0] |= 0x00000010u;
4303}
4304inline void FileOptions::clear_has_optimize_for() {
4305 _has_bits_[0] &= ~0x00000010u;
temporal40ee5512008-07-10 02:12:20 +00004306}
4307inline void FileOptions::clear_optimize_for() {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004308 optimize_for_ = 1;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004309 clear_has_optimize_for();
temporal40ee5512008-07-10 02:12:20 +00004310}
4311inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
4312 return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
4313}
4314inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
4315 GOOGLE_DCHECK(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
liujisi@google.com33165fe2010-11-02 13:14:58 +00004316 set_has_optimize_for();
temporal40ee5512008-07-10 02:12:20 +00004317 optimize_for_ = value;
4318}
4319
liujisi@google.com33165fe2010-11-02 13:14:58 +00004320// optional bool cc_generic_services = 16 [default = false];
kenton@google.comfccb1462009-12-18 02:11:36 +00004321inline bool FileOptions::has_cc_generic_services() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004322 return (_has_bits_[0] & 0x00000020u) != 0;
4323}
4324inline void FileOptions::set_has_cc_generic_services() {
4325 _has_bits_[0] |= 0x00000020u;
4326}
4327inline void FileOptions::clear_has_cc_generic_services() {
4328 _has_bits_[0] &= ~0x00000020u;
kenton@google.comfccb1462009-12-18 02:11:36 +00004329}
4330inline void FileOptions::clear_cc_generic_services() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004331 cc_generic_services_ = false;
4332 clear_has_cc_generic_services();
kenton@google.comfccb1462009-12-18 02:11:36 +00004333}
4334inline bool FileOptions::cc_generic_services() const {
4335 return cc_generic_services_;
4336}
4337inline void FileOptions::set_cc_generic_services(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004338 set_has_cc_generic_services();
kenton@google.comfccb1462009-12-18 02:11:36 +00004339 cc_generic_services_ = value;
4340}
4341
liujisi@google.com33165fe2010-11-02 13:14:58 +00004342// optional bool java_generic_services = 17 [default = false];
kenton@google.comfccb1462009-12-18 02:11:36 +00004343inline bool FileOptions::has_java_generic_services() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004344 return (_has_bits_[0] & 0x00000040u) != 0;
4345}
4346inline void FileOptions::set_has_java_generic_services() {
4347 _has_bits_[0] |= 0x00000040u;
4348}
4349inline void FileOptions::clear_has_java_generic_services() {
4350 _has_bits_[0] &= ~0x00000040u;
kenton@google.comfccb1462009-12-18 02:11:36 +00004351}
4352inline void FileOptions::clear_java_generic_services() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004353 java_generic_services_ = false;
4354 clear_has_java_generic_services();
kenton@google.comfccb1462009-12-18 02:11:36 +00004355}
4356inline bool FileOptions::java_generic_services() const {
4357 return java_generic_services_;
4358}
4359inline void FileOptions::set_java_generic_services(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004360 set_has_java_generic_services();
kenton@google.comfccb1462009-12-18 02:11:36 +00004361 java_generic_services_ = value;
4362}
4363
liujisi@google.com33165fe2010-11-02 13:14:58 +00004364// optional bool py_generic_services = 18 [default = false];
kenton@google.comfccb1462009-12-18 02:11:36 +00004365inline bool FileOptions::has_py_generic_services() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004366 return (_has_bits_[0] & 0x00000080u) != 0;
4367}
4368inline void FileOptions::set_has_py_generic_services() {
4369 _has_bits_[0] |= 0x00000080u;
4370}
4371inline void FileOptions::clear_has_py_generic_services() {
4372 _has_bits_[0] &= ~0x00000080u;
kenton@google.comfccb1462009-12-18 02:11:36 +00004373}
4374inline void FileOptions::clear_py_generic_services() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004375 py_generic_services_ = false;
4376 clear_has_py_generic_services();
kenton@google.comfccb1462009-12-18 02:11:36 +00004377}
4378inline bool FileOptions::py_generic_services() const {
4379 return py_generic_services_;
4380}
4381inline void FileOptions::set_py_generic_services(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004382 set_has_py_generic_services();
kenton@google.comfccb1462009-12-18 02:11:36 +00004383 py_generic_services_ = value;
4384}
4385
kenton@google.com24bf56f2008-09-24 20:31:01 +00004386// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4387inline int FileOptions::uninterpreted_option_size() const {
4388 return uninterpreted_option_.size();
4389}
4390inline void FileOptions::clear_uninterpreted_option() {
4391 uninterpreted_option_.Clear();
4392}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004393inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
4394 return uninterpreted_option_.Get(index);
4395}
4396inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
4397 return uninterpreted_option_.Mutable(index);
4398}
4399inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
4400 return uninterpreted_option_.Add();
4401}
kenton@google.comfccb1462009-12-18 02:11:36 +00004402inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4403FileOptions::uninterpreted_option() const {
4404 return uninterpreted_option_;
4405}
4406inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4407FileOptions::mutable_uninterpreted_option() {
4408 return &uninterpreted_option_;
4409}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004410
temporal40ee5512008-07-10 02:12:20 +00004411// -------------------------------------------------------------------
4412
4413// MessageOptions
4414
4415// optional bool message_set_wire_format = 1 [default = false];
4416inline bool MessageOptions::has_message_set_wire_format() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004417 return (_has_bits_[0] & 0x00000001u) != 0;
4418}
4419inline void MessageOptions::set_has_message_set_wire_format() {
4420 _has_bits_[0] |= 0x00000001u;
4421}
4422inline void MessageOptions::clear_has_message_set_wire_format() {
4423 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00004424}
4425inline void MessageOptions::clear_message_set_wire_format() {
4426 message_set_wire_format_ = false;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004427 clear_has_message_set_wire_format();
temporal40ee5512008-07-10 02:12:20 +00004428}
4429inline bool MessageOptions::message_set_wire_format() const {
4430 return message_set_wire_format_;
4431}
4432inline void MessageOptions::set_message_set_wire_format(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004433 set_has_message_set_wire_format();
temporal40ee5512008-07-10 02:12:20 +00004434 message_set_wire_format_ = value;
4435}
4436
kenton@google.com80b1d622009-07-29 01:13:20 +00004437// optional bool no_standard_descriptor_accessor = 2 [default = false];
4438inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004439 return (_has_bits_[0] & 0x00000002u) != 0;
4440}
4441inline void MessageOptions::set_has_no_standard_descriptor_accessor() {
4442 _has_bits_[0] |= 0x00000002u;
4443}
4444inline void MessageOptions::clear_has_no_standard_descriptor_accessor() {
4445 _has_bits_[0] &= ~0x00000002u;
kenton@google.com80b1d622009-07-29 01:13:20 +00004446}
4447inline void MessageOptions::clear_no_standard_descriptor_accessor() {
4448 no_standard_descriptor_accessor_ = false;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004449 clear_has_no_standard_descriptor_accessor();
kenton@google.com80b1d622009-07-29 01:13:20 +00004450}
4451inline bool MessageOptions::no_standard_descriptor_accessor() const {
4452 return no_standard_descriptor_accessor_;
4453}
4454inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004455 set_has_no_standard_descriptor_accessor();
kenton@google.com80b1d622009-07-29 01:13:20 +00004456 no_standard_descriptor_accessor_ = value;
4457}
4458
kenton@google.com24bf56f2008-09-24 20:31:01 +00004459// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4460inline int MessageOptions::uninterpreted_option_size() const {
4461 return uninterpreted_option_.size();
4462}
4463inline void MessageOptions::clear_uninterpreted_option() {
4464 uninterpreted_option_.Clear();
4465}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004466inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
4467 return uninterpreted_option_.Get(index);
4468}
4469inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
4470 return uninterpreted_option_.Mutable(index);
4471}
4472inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
4473 return uninterpreted_option_.Add();
4474}
kenton@google.comfccb1462009-12-18 02:11:36 +00004475inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4476MessageOptions::uninterpreted_option() const {
4477 return uninterpreted_option_;
4478}
4479inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4480MessageOptions::mutable_uninterpreted_option() {
4481 return &uninterpreted_option_;
4482}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004483
temporal40ee5512008-07-10 02:12:20 +00004484// -------------------------------------------------------------------
4485
4486// FieldOptions
4487
kenton@google.comfccb1462009-12-18 02:11:36 +00004488// optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
temporal40ee5512008-07-10 02:12:20 +00004489inline bool FieldOptions::has_ctype() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004490 return (_has_bits_[0] & 0x00000001u) != 0;
4491}
4492inline void FieldOptions::set_has_ctype() {
4493 _has_bits_[0] |= 0x00000001u;
4494}
4495inline void FieldOptions::clear_has_ctype() {
4496 _has_bits_[0] &= ~0x00000001u;
temporal40ee5512008-07-10 02:12:20 +00004497}
4498inline void FieldOptions::clear_ctype() {
kenton@google.comfccb1462009-12-18 02:11:36 +00004499 ctype_ = 0;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004500 clear_has_ctype();
temporal40ee5512008-07-10 02:12:20 +00004501}
4502inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
4503 return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
4504}
4505inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
4506 GOOGLE_DCHECK(::google::protobuf::FieldOptions_CType_IsValid(value));
liujisi@google.com33165fe2010-11-02 13:14:58 +00004507 set_has_ctype();
temporal40ee5512008-07-10 02:12:20 +00004508 ctype_ = value;
4509}
4510
kenton@google.com2d6daa72009-01-22 01:27:00 +00004511// optional bool packed = 2;
4512inline bool FieldOptions::has_packed() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004513 return (_has_bits_[0] & 0x00000002u) != 0;
4514}
4515inline void FieldOptions::set_has_packed() {
4516 _has_bits_[0] |= 0x00000002u;
4517}
4518inline void FieldOptions::clear_has_packed() {
4519 _has_bits_[0] &= ~0x00000002u;
kenton@google.com2d6daa72009-01-22 01:27:00 +00004520}
4521inline void FieldOptions::clear_packed() {
4522 packed_ = false;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004523 clear_has_packed();
kenton@google.com2d6daa72009-01-22 01:27:00 +00004524}
4525inline bool FieldOptions::packed() const {
4526 return packed_;
4527}
4528inline void FieldOptions::set_packed(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004529 set_has_packed();
kenton@google.com2d6daa72009-01-22 01:27:00 +00004530 packed_ = value;
4531}
4532
kenton@google.comd37d46d2009-04-25 02:53:47 +00004533// optional bool deprecated = 3 [default = false];
4534inline bool FieldOptions::has_deprecated() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004535 return (_has_bits_[0] & 0x00000004u) != 0;
4536}
4537inline void FieldOptions::set_has_deprecated() {
4538 _has_bits_[0] |= 0x00000004u;
4539}
4540inline void FieldOptions::clear_has_deprecated() {
4541 _has_bits_[0] &= ~0x00000004u;
kenton@google.comd37d46d2009-04-25 02:53:47 +00004542}
4543inline void FieldOptions::clear_deprecated() {
4544 deprecated_ = false;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004545 clear_has_deprecated();
kenton@google.comd37d46d2009-04-25 02:53:47 +00004546}
4547inline bool FieldOptions::deprecated() const {
4548 return deprecated_;
4549}
4550inline void FieldOptions::set_deprecated(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004551 set_has_deprecated();
kenton@google.comd37d46d2009-04-25 02:53:47 +00004552 deprecated_ = value;
4553}
4554
temporal40ee5512008-07-10 02:12:20 +00004555// optional string experimental_map_key = 9;
4556inline bool FieldOptions::has_experimental_map_key() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004557 return (_has_bits_[0] & 0x00000008u) != 0;
4558}
4559inline void FieldOptions::set_has_experimental_map_key() {
4560 _has_bits_[0] |= 0x00000008u;
4561}
4562inline void FieldOptions::clear_has_experimental_map_key() {
4563 _has_bits_[0] &= ~0x00000008u;
temporal40ee5512008-07-10 02:12:20 +00004564}
4565inline void FieldOptions::clear_experimental_map_key() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004566 if (experimental_map_key_ != &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004567 experimental_map_key_->clear();
4568 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004569 clear_has_experimental_map_key();
temporal40ee5512008-07-10 02:12:20 +00004570}
4571inline const ::std::string& FieldOptions::experimental_map_key() const {
4572 return *experimental_map_key_;
4573}
4574inline void FieldOptions::set_experimental_map_key(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004575 set_has_experimental_map_key();
4576 if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004577 experimental_map_key_ = new ::std::string;
4578 }
4579 experimental_map_key_->assign(value);
4580}
4581inline void FieldOptions::set_experimental_map_key(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004582 set_has_experimental_map_key();
4583 if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004584 experimental_map_key_ = new ::std::string;
4585 }
4586 experimental_map_key_->assign(value);
4587}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004588inline void FieldOptions::set_experimental_map_key(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004589 set_has_experimental_map_key();
4590 if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004591 experimental_map_key_ = new ::std::string;
4592 }
4593 experimental_map_key_->assign(reinterpret_cast<const char*>(value), size);
4594}
temporal40ee5512008-07-10 02:12:20 +00004595inline ::std::string* FieldOptions::mutable_experimental_map_key() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004596 set_has_experimental_map_key();
4597 if (experimental_map_key_ == &::google::protobuf::internal::kEmptyString) {
temporal40ee5512008-07-10 02:12:20 +00004598 experimental_map_key_ = new ::std::string;
4599 }
4600 return experimental_map_key_;
4601}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004602inline ::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}
temporal40ee5512008-07-10 02:12:20 +00004612
kenton@google.com24bf56f2008-09-24 20:31:01 +00004613// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4614inline int FieldOptions::uninterpreted_option_size() const {
4615 return uninterpreted_option_.size();
4616}
4617inline void FieldOptions::clear_uninterpreted_option() {
4618 uninterpreted_option_.Clear();
4619}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004620inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
4621 return uninterpreted_option_.Get(index);
4622}
4623inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
4624 return uninterpreted_option_.Mutable(index);
4625}
4626inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
4627 return uninterpreted_option_.Add();
4628}
kenton@google.comfccb1462009-12-18 02:11:36 +00004629inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4630FieldOptions::uninterpreted_option() const {
4631 return uninterpreted_option_;
4632}
4633inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4634FieldOptions::mutable_uninterpreted_option() {
4635 return &uninterpreted_option_;
4636}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004637
temporal40ee5512008-07-10 02:12:20 +00004638// -------------------------------------------------------------------
4639
4640// EnumOptions
4641
kenton@google.com24bf56f2008-09-24 20:31:01 +00004642// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4643inline int EnumOptions::uninterpreted_option_size() const {
4644 return uninterpreted_option_.size();
4645}
4646inline void EnumOptions::clear_uninterpreted_option() {
4647 uninterpreted_option_.Clear();
4648}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004649inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
4650 return uninterpreted_option_.Get(index);
4651}
4652inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
4653 return uninterpreted_option_.Mutable(index);
4654}
4655inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
4656 return uninterpreted_option_.Add();
4657}
kenton@google.comfccb1462009-12-18 02:11:36 +00004658inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4659EnumOptions::uninterpreted_option() const {
4660 return uninterpreted_option_;
4661}
4662inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4663EnumOptions::mutable_uninterpreted_option() {
4664 return &uninterpreted_option_;
4665}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004666
temporal40ee5512008-07-10 02:12:20 +00004667// -------------------------------------------------------------------
4668
4669// EnumValueOptions
4670
kenton@google.com24bf56f2008-09-24 20:31:01 +00004671// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4672inline int EnumValueOptions::uninterpreted_option_size() const {
4673 return uninterpreted_option_.size();
4674}
4675inline void EnumValueOptions::clear_uninterpreted_option() {
4676 uninterpreted_option_.Clear();
4677}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004678inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
4679 return uninterpreted_option_.Get(index);
4680}
4681inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
4682 return uninterpreted_option_.Mutable(index);
4683}
4684inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
4685 return uninterpreted_option_.Add();
4686}
kenton@google.comfccb1462009-12-18 02:11:36 +00004687inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4688EnumValueOptions::uninterpreted_option() const {
4689 return uninterpreted_option_;
4690}
4691inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4692EnumValueOptions::mutable_uninterpreted_option() {
4693 return &uninterpreted_option_;
4694}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004695
temporal40ee5512008-07-10 02:12:20 +00004696// -------------------------------------------------------------------
4697
4698// ServiceOptions
4699
kenton@google.com24bf56f2008-09-24 20:31:01 +00004700// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4701inline int ServiceOptions::uninterpreted_option_size() const {
4702 return uninterpreted_option_.size();
4703}
4704inline void ServiceOptions::clear_uninterpreted_option() {
4705 uninterpreted_option_.Clear();
4706}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004707inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
4708 return uninterpreted_option_.Get(index);
4709}
4710inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
4711 return uninterpreted_option_.Mutable(index);
4712}
4713inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
4714 return uninterpreted_option_.Add();
4715}
kenton@google.comfccb1462009-12-18 02:11:36 +00004716inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4717ServiceOptions::uninterpreted_option() const {
4718 return uninterpreted_option_;
4719}
4720inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4721ServiceOptions::mutable_uninterpreted_option() {
4722 return &uninterpreted_option_;
4723}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004724
temporal40ee5512008-07-10 02:12:20 +00004725// -------------------------------------------------------------------
4726
4727// MethodOptions
4728
kenton@google.com24bf56f2008-09-24 20:31:01 +00004729// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4730inline int MethodOptions::uninterpreted_option_size() const {
4731 return uninterpreted_option_.size();
4732}
4733inline void MethodOptions::clear_uninterpreted_option() {
4734 uninterpreted_option_.Clear();
4735}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004736inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
4737 return uninterpreted_option_.Get(index);
4738}
4739inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
4740 return uninterpreted_option_.Mutable(index);
4741}
4742inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
4743 return uninterpreted_option_.Add();
4744}
kenton@google.comfccb1462009-12-18 02:11:36 +00004745inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
4746MethodOptions::uninterpreted_option() const {
4747 return uninterpreted_option_;
4748}
4749inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
4750MethodOptions::mutable_uninterpreted_option() {
4751 return &uninterpreted_option_;
4752}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004753
4754// -------------------------------------------------------------------
4755
4756// UninterpretedOption_NamePart
4757
4758// required string name_part = 1;
4759inline bool UninterpretedOption_NamePart::has_name_part() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004760 return (_has_bits_[0] & 0x00000001u) != 0;
4761}
4762inline void UninterpretedOption_NamePart::set_has_name_part() {
4763 _has_bits_[0] |= 0x00000001u;
4764}
4765inline void UninterpretedOption_NamePart::clear_has_name_part() {
4766 _has_bits_[0] &= ~0x00000001u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00004767}
4768inline void UninterpretedOption_NamePart::clear_name_part() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004769 if (name_part_ != &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004770 name_part_->clear();
4771 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004772 clear_has_name_part();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004773}
4774inline const ::std::string& UninterpretedOption_NamePart::name_part() const {
4775 return *name_part_;
4776}
4777inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004778 set_has_name_part();
4779 if (name_part_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004780 name_part_ = new ::std::string;
4781 }
4782 name_part_->assign(value);
4783}
4784inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004785 set_has_name_part();
4786 if (name_part_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004787 name_part_ = new ::std::string;
4788 }
4789 name_part_->assign(value);
4790}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004791inline void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004792 set_has_name_part();
4793 if (name_part_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004794 name_part_ = new ::std::string;
4795 }
4796 name_part_->assign(reinterpret_cast<const char*>(value), size);
4797}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004798inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004799 set_has_name_part();
4800 if (name_part_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004801 name_part_ = new ::std::string;
4802 }
4803 return name_part_;
4804}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004805inline ::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.com24bf56f2008-09-24 20:31:01 +00004815
4816// required bool is_extension = 2;
4817inline bool UninterpretedOption_NamePart::has_is_extension() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004818 return (_has_bits_[0] & 0x00000002u) != 0;
4819}
4820inline void UninterpretedOption_NamePart::set_has_is_extension() {
4821 _has_bits_[0] |= 0x00000002u;
4822}
4823inline void UninterpretedOption_NamePart::clear_has_is_extension() {
4824 _has_bits_[0] &= ~0x00000002u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00004825}
4826inline void UninterpretedOption_NamePart::clear_is_extension() {
4827 is_extension_ = false;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004828 clear_has_is_extension();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004829}
4830inline bool UninterpretedOption_NamePart::is_extension() const {
4831 return is_extension_;
4832}
4833inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004834 set_has_is_extension();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004835 is_extension_ = value;
4836}
4837
4838// -------------------------------------------------------------------
4839
4840// UninterpretedOption
4841
4842// repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
4843inline int UninterpretedOption::name_size() const {
4844 return name_.size();
4845}
4846inline void UninterpretedOption::clear_name() {
4847 name_.Clear();
4848}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004849inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
4850 return name_.Get(index);
4851}
4852inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
4853 return name_.Mutable(index);
4854}
4855inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
4856 return name_.Add();
4857}
kenton@google.comfccb1462009-12-18 02:11:36 +00004858inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
4859UninterpretedOption::name() const {
4860 return name_;
4861}
4862inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
4863UninterpretedOption::mutable_name() {
4864 return &name_;
4865}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004866
4867// optional string identifier_value = 3;
4868inline bool UninterpretedOption::has_identifier_value() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004869 return (_has_bits_[0] & 0x00000002u) != 0;
4870}
4871inline void UninterpretedOption::set_has_identifier_value() {
4872 _has_bits_[0] |= 0x00000002u;
4873}
4874inline void UninterpretedOption::clear_has_identifier_value() {
4875 _has_bits_[0] &= ~0x00000002u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00004876}
4877inline void UninterpretedOption::clear_identifier_value() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004878 if (identifier_value_ != &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004879 identifier_value_->clear();
4880 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00004881 clear_has_identifier_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004882}
4883inline const ::std::string& UninterpretedOption::identifier_value() const {
4884 return *identifier_value_;
4885}
4886inline void UninterpretedOption::set_identifier_value(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004887 set_has_identifier_value();
4888 if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004889 identifier_value_ = new ::std::string;
4890 }
4891 identifier_value_->assign(value);
4892}
4893inline void UninterpretedOption::set_identifier_value(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004894 set_has_identifier_value();
4895 if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004896 identifier_value_ = new ::std::string;
4897 }
4898 identifier_value_->assign(value);
4899}
kenton@google.comd37d46d2009-04-25 02:53:47 +00004900inline void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004901 set_has_identifier_value();
4902 if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.comd37d46d2009-04-25 02:53:47 +00004903 identifier_value_ = new ::std::string;
4904 }
4905 identifier_value_->assign(reinterpret_cast<const char*>(value), size);
4906}
kenton@google.com24bf56f2008-09-24 20:31:01 +00004907inline ::std::string* UninterpretedOption::mutable_identifier_value() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004908 set_has_identifier_value();
4909 if (identifier_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00004910 identifier_value_ = new ::std::string;
4911 }
4912 return identifier_value_;
4913}
liujisi@google.com33165fe2010-11-02 13:14:58 +00004914inline ::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.com24bf56f2008-09-24 20:31:01 +00004924
4925// optional uint64 positive_int_value = 4;
4926inline bool UninterpretedOption::has_positive_int_value() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004927 return (_has_bits_[0] & 0x00000004u) != 0;
4928}
4929inline void UninterpretedOption::set_has_positive_int_value() {
4930 _has_bits_[0] |= 0x00000004u;
4931}
4932inline void UninterpretedOption::clear_has_positive_int_value() {
4933 _has_bits_[0] &= ~0x00000004u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00004934}
4935inline void UninterpretedOption::clear_positive_int_value() {
4936 positive_int_value_ = GOOGLE_ULONGLONG(0);
liujisi@google.com33165fe2010-11-02 13:14:58 +00004937 clear_has_positive_int_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004938}
4939inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
4940 return positive_int_value_;
4941}
4942inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004943 set_has_positive_int_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004944 positive_int_value_ = value;
4945}
4946
4947// optional int64 negative_int_value = 5;
4948inline bool UninterpretedOption::has_negative_int_value() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004949 return (_has_bits_[0] & 0x00000008u) != 0;
4950}
4951inline void UninterpretedOption::set_has_negative_int_value() {
4952 _has_bits_[0] |= 0x00000008u;
4953}
4954inline void UninterpretedOption::clear_has_negative_int_value() {
4955 _has_bits_[0] &= ~0x00000008u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00004956}
4957inline void UninterpretedOption::clear_negative_int_value() {
4958 negative_int_value_ = GOOGLE_LONGLONG(0);
liujisi@google.com33165fe2010-11-02 13:14:58 +00004959 clear_has_negative_int_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004960}
4961inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
4962 return negative_int_value_;
4963}
4964inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004965 set_has_negative_int_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004966 negative_int_value_ = value;
4967}
4968
4969// optional double double_value = 6;
4970inline bool UninterpretedOption::has_double_value() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004971 return (_has_bits_[0] & 0x00000010u) != 0;
4972}
4973inline void UninterpretedOption::set_has_double_value() {
4974 _has_bits_[0] |= 0x00000010u;
4975}
4976inline void UninterpretedOption::clear_has_double_value() {
4977 _has_bits_[0] &= ~0x00000010u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00004978}
4979inline void UninterpretedOption::clear_double_value() {
4980 double_value_ = 0;
liujisi@google.com33165fe2010-11-02 13:14:58 +00004981 clear_has_double_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004982}
4983inline double UninterpretedOption::double_value() const {
4984 return double_value_;
4985}
4986inline void UninterpretedOption::set_double_value(double value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004987 set_has_double_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00004988 double_value_ = value;
4989}
4990
4991// optional bytes string_value = 7;
4992inline bool UninterpretedOption::has_string_value() const {
liujisi@google.com33165fe2010-11-02 13:14:58 +00004993 return (_has_bits_[0] & 0x00000020u) != 0;
4994}
4995inline void UninterpretedOption::set_has_string_value() {
4996 _has_bits_[0] |= 0x00000020u;
4997}
4998inline void UninterpretedOption::clear_has_string_value() {
4999 _has_bits_[0] &= ~0x00000020u;
kenton@google.com24bf56f2008-09-24 20:31:01 +00005000}
5001inline void UninterpretedOption::clear_string_value() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00005002 if (string_value_ != &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00005003 string_value_->clear();
5004 }
liujisi@google.com33165fe2010-11-02 13:14:58 +00005005 clear_has_string_value();
kenton@google.com24bf56f2008-09-24 20:31:01 +00005006}
5007inline const ::std::string& UninterpretedOption::string_value() const {
5008 return *string_value_;
5009}
5010inline void UninterpretedOption::set_string_value(const ::std::string& value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00005011 set_has_string_value();
5012 if (string_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00005013 string_value_ = new ::std::string;
5014 }
5015 string_value_->assign(value);
5016}
5017inline void UninterpretedOption::set_string_value(const char* value) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00005018 set_has_string_value();
5019 if (string_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00005020 string_value_ = new ::std::string;
5021 }
5022 string_value_->assign(value);
5023}
5024inline void UninterpretedOption::set_string_value(const void* value, size_t size) {
liujisi@google.com33165fe2010-11-02 13:14:58 +00005025 set_has_string_value();
5026 if (string_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00005027 string_value_ = new ::std::string;
5028 }
5029 string_value_->assign(reinterpret_cast<const char*>(value), size);
5030}
5031inline ::std::string* UninterpretedOption::mutable_string_value() {
liujisi@google.com33165fe2010-11-02 13:14:58 +00005032 set_has_string_value();
5033 if (string_value_ == &::google::protobuf::internal::kEmptyString) {
kenton@google.com24bf56f2008-09-24 20:31:01 +00005034 string_value_ = new ::std::string;
5035 }
5036 return string_value_;
5037}
liujisi@google.com33165fe2010-11-02 13:14:58 +00005038inline ::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;
5050inline bool UninterpretedOption::has_aggregate_value() const {
5051 return (_has_bits_[0] & 0x00000040u) != 0;
5052}
5053inline void UninterpretedOption::set_has_aggregate_value() {
5054 _has_bits_[0] |= 0x00000040u;
5055}
5056inline void UninterpretedOption::clear_has_aggregate_value() {
5057 _has_bits_[0] &= ~0x00000040u;
5058}
5059inline void UninterpretedOption::clear_aggregate_value() {
5060 if (aggregate_value_ != &::google::protobuf::internal::kEmptyString) {
5061 aggregate_value_->clear();
5062 }
5063 clear_has_aggregate_value();
5064}
5065inline const ::std::string& UninterpretedOption::aggregate_value() const {
5066 return *aggregate_value_;
5067}
5068inline 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}
5075inline 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}
5082inline 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}
5089inline ::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}
5096inline ::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];
5112inline int SourceCodeInfo_Location::path_size() const {
5113 return path_.size();
5114}
5115inline void SourceCodeInfo_Location::clear_path() {
5116 path_.Clear();
5117}
5118inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
5119 return path_.Get(index);
5120}
5121inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
5122 path_.Set(index, value);
5123}
5124inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
5125 path_.Add(value);
5126}
5127inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
5128SourceCodeInfo_Location::path() const {
5129 return path_;
5130}
5131inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
5132SourceCodeInfo_Location::mutable_path() {
5133 return &path_;
5134}
5135
5136// repeated int32 span = 2 [packed = true];
5137inline int SourceCodeInfo_Location::span_size() const {
5138 return span_.size();
5139}
5140inline void SourceCodeInfo_Location::clear_span() {
5141 span_.Clear();
5142}
5143inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
5144 return span_.Get(index);
5145}
5146inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
5147 span_.Set(index, value);
5148}
5149inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
5150 span_.Add(value);
5151}
5152inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
5153SourceCodeInfo_Location::span() const {
5154 return span_;
5155}
5156inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
5157SourceCodeInfo_Location::mutable_span() {
5158 return &span_;
5159}
5160
5161// -------------------------------------------------------------------
5162
5163// SourceCodeInfo
5164
5165// repeated .google.protobuf.SourceCodeInfo.Location location = 1;
5166inline int SourceCodeInfo::location_size() const {
5167 return location_.size();
5168}
5169inline void SourceCodeInfo::clear_location() {
5170 location_.Clear();
5171}
5172inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
5173 return location_.Get(index);
5174}
5175inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
5176 return location_.Mutable(index);
5177}
5178inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
5179 return location_.Add();
5180}
5181inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
5182SourceCodeInfo::location() const {
5183 return location_;
5184}
5185inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
5186SourceCodeInfo::mutable_location() {
5187 return &location_;
5188}
kenton@google.com24bf56f2008-09-24 20:31:01 +00005189
temporal40ee5512008-07-10 02:12:20 +00005190
kenton@google.comfccb1462009-12-18 02:11:36 +00005191// @@protoc_insertion_point(namespace_scope)
5192
temporal40ee5512008-07-10 02:12:20 +00005193} // namespace protobuf
5194} // namespace google
kenton@google.com80b1d622009-07-29 01:13:20 +00005195
5196#ifndef SWIG
5197namespace google {
5198namespace protobuf {
5199
5200template <>
5201inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() {
5202 return ::google::protobuf::FieldDescriptorProto_Type_descriptor();
5203}
5204template <>
5205inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() {
5206 return ::google::protobuf::FieldDescriptorProto_Label_descriptor();
5207}
5208template <>
5209inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() {
5210 return ::google::protobuf::FileOptions_OptimizeMode_descriptor();
5211}
5212template <>
5213inline 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.comfccb1462009-12-18 02:11:36 +00005221// @@protoc_insertion_point(global_scope)
5222
temporal40ee5512008-07-10 02:12:20 +00005223#endif // PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED